diff options
author | James Almer <jamrial@gmail.com> | 2019-09-06 11:18:45 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-09-06 12:11:46 -0300 |
commit | 4857688732e27e33fac58e2bd30989f20da2f181 (patch) | |
tree | 2cf5be9c5ff316d70f81779dad808d31b214fbe4 /libavfilter/x86 | |
parent | 2200cf1acaf0c4d74f563ca7f0e56c62082d9b79 (diff) | |
download | ffmpeg-4857688732e27e33fac58e2bd30989f20da2f181.tar.gz |
x86/vf_v360: use a faster horizontal add in remap4_8bit_line_avx2
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/x86')
-rw-r--r-- | libavfilter/x86/vf_v360.asm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libavfilter/x86/vf_v360.asm b/libavfilter/x86/vf_v360.asm index f49702b603..a0936eb6dc 100644 --- a/libavfilter/x86/vf_v360.asm +++ b/libavfilter/x86/vf_v360.asm @@ -130,14 +130,11 @@ cglobal remap4_8bit_line, 7, 9, 11, dst, width, src, in_linesize, u, v, ker, x, pmulld m4, m5 paddd m2, m4 - vextracti128 xm1, m2, 1 - paddd m1, m2 - phaddd m1, m1 - phaddd m1, m1 - psrld m1, m1, 0xe - packuswb m1, m1 + HADDD m2, m1 + psrld m2, m2, 0xe + packuswb m2, m2 - pextrb [dstq+xq], xm1, 0 + pextrb [dstq+xq], xm2, 0 add xq, 1 add yq, 32 |