diff options
author | Alan Kelly <alankelly-at-google.com@ffmpeg.org> | 2022-07-15 17:59:43 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-18 17:24:48 +0300 |
commit | a38293e4448c9389e604af9858984361a5677a20 (patch) | |
tree | 3ef0779d0e57789967b69edbd1d3dc187e529762 /libswscale/x86/swscale.c | |
parent | a6724285fd45111436dd5242eab2c489182aa5c2 (diff) |
libswscale: Enable hscale_avx2 for all input sizes.
ff_shuffle_filter_coefficients shuffles the tail as required.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libswscale/x86/swscale.c')
-rw-r--r-- | libswscale/x86/swscale.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c index 89ef9f5d2b..ec1ca0e01c 100644 --- a/libswscale/x86/swscale.c +++ b/libswscale/x86/swscale.c @@ -625,10 +625,8 @@ switch(c->dstBpc){ \ if (EXTERNAL_AVX2_FAST(cpu_flags) && !(cpu_flags & AV_CPU_FLAG_SLOW_GATHER)) { if ((c->srcBpc == 8) && (c->dstBpc <= 14)) { - if (c->chrDstW % 16 == 0) - ASSIGN_AVX2_SCALE_FUNC(c->hcScale, c->hChrFilterSize); - if (c->dstW % 16 == 0) - ASSIGN_AVX2_SCALE_FUNC(c->hyScale, c->hLumFilterSize); + ASSIGN_AVX2_SCALE_FUNC(c->hcScale, c->hChrFilterSize); + ASSIGN_AVX2_SCALE_FUNC(c->hyScale, c->hLumFilterSize); } } |