diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-17 20:28:31 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-17 20:28:31 +0200 |
commit | 71e33c6e01f60f7ea9fe0ae10f244dbde64ca3b9 (patch) | |
tree | 6acf553e23ae278d2a5515a853a359a6e8f725d5 /libavfilter/x86 | |
parent | 295d99b4393de8ff844048237eddac8496af567c (diff) | |
download | ffmpeg-71e33c6e01f60f7ea9fe0ae10f244dbde64ca3b9.tar.gz |
avfilter/vf_atadenoise: add option to use additional algorithm
Diffstat (limited to 'libavfilter/x86')
-rw-r--r-- | libavfilter/x86/vf_atadenoise_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/x86/vf_atadenoise_init.c b/libavfilter/x86/vf_atadenoise_init.c index 5ddfb243f2..24f171cb9e 100644 --- a/libavfilter/x86/vf_atadenoise_init.c +++ b/libavfilter/x86/vf_atadenoise_init.c @@ -30,11 +30,11 @@ void ff_atadenoise_filter_row8_sse4(const uint8_t *src, uint8_t *dst, int w, int mid, int size, int thra, int thrb); -av_cold void ff_atadenoise_init_x86(ATADenoiseDSPContext *dsp, int depth) +av_cold void ff_atadenoise_init_x86(ATADenoiseDSPContext *dsp, int depth, int algorithm) { int cpu_flags = av_get_cpu_flags(); - if (ARCH_X86_64 && EXTERNAL_SSE4(cpu_flags) && depth <= 8) { + if (ARCH_X86_64 && EXTERNAL_SSE4(cpu_flags) && depth <= 8 && algorithm == PARALLEL) { dsp->filter_row = ff_atadenoise_filter_row8_sse4; } } |