mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swscale/x86/yuv2yuvX: use the SPLATW helper macro
Simplifies code Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
c00567647e
commit
d512ebbaed
@ -62,18 +62,8 @@ cglobal yuv2yuvX, 7, 7, 8, filter, filterSize, src, dest, dstW, dither, offset
|
||||
|
||||
.offset:
|
||||
add offsetq, srcq
|
||||
%if cpuflag(avx2)
|
||||
movd xmm1, filterSized
|
||||
vpbroadcastw m1, xmm1
|
||||
%elif cpuflag(sse3)
|
||||
movd xmm1, filterSized
|
||||
pshuflw m1, m1, q0000
|
||||
punpcklqdq m1, m1
|
||||
%else
|
||||
movd m1, filterSized
|
||||
punpcklwd m1, m1
|
||||
punpckldq m1, m1
|
||||
%endif ; avx2
|
||||
movd xm1, filterSized
|
||||
SPLATW m1, xm1, 0
|
||||
pxor m0, m0, m0
|
||||
mov filterSizeq, filterq
|
||||
mov srcq, [filterSizeq]
|
||||
|
Loading…
Reference in New Issue
Block a user