You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/x86/vf_blackdetect_init: don't enable the ASM functions on targets where it's known they will be slower
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ unsigned ff_blackdetect_16_avx2(const uint8_t *, ptrdiff_t, ptrdiff_t, ptrdiff_t
|
|||||||
av_cold ff_blackdetect_fn ff_blackdetect_get_fn_x86(int depth)
|
av_cold ff_blackdetect_fn ff_blackdetect_get_fn_x86(int depth)
|
||||||
{
|
{
|
||||||
int cpu_flags = av_get_cpu_flags();
|
int cpu_flags = av_get_cpu_flags();
|
||||||
if (EXTERNAL_AVX2(cpu_flags))
|
if (EXTERNAL_AVX2_FAST(cpu_flags))
|
||||||
return depth == 8 ? ff_blackdetect_8_avx2 : ff_blackdetect_16_avx2;
|
return depth == 8 ? ff_blackdetect_8_avx2 : ff_blackdetect_16_avx2;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user