Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Kelly <alankelly-at-google.com@ffmpeg.org>2022-07-15 17:59:43 +0300
committerAnton Khirnov <anton@khirnov.net>2022-08-18 17:24:48 +0300
commita38293e4448c9389e604af9858984361a5677a20 (patch)
tree3ef0779d0e57789967b69edbd1d3dc187e529762 /libswscale/x86/swscale.c
parenta6724285fd45111436dd5242eab2c489182aa5c2 (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.c6
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);
}
}