You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
swscale/x86/yuv2yuvX: use the movsxdifnidn helper macro
Simplifies code Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -40,11 +40,9 @@ cglobal yuv2yuvX, 7, 7, 8, filter, filterSize, src, dest, dstW, dither, offset
|
||||
%else
|
||||
%define movr movdqu
|
||||
%endif
|
||||
%if ARCH_X86_64
|
||||
movsxd dstWq, dstWd
|
||||
movsxd offsetq, offsetd
|
||||
movsxd srcq, srcd
|
||||
%endif ; x86-64
|
||||
movsxdifnidn dstWq, dstWd
|
||||
movsxdifnidn offsetq, offsetd
|
||||
movsxdifnidn srcq, srcd
|
||||
%if cpuflag(avx2)
|
||||
vpbroadcastq m3, [ditherq]
|
||||
%else
|
||||
|
Reference in New Issue
Block a user