History

avfilter/x86/vf_blackdetect_init: don't enable the ASM functions on targets where it's known they will be slower

James Almer committed 1 year ago

Commit ee4ff3f1 parent f2631921 file · +1 −1Browse files

Unified · Split

libavfilter/x86/vf_blackdetect_init.c+1−1
@@ -28,7 +28,7 @@ unsigned ff_blackdetect_16_avx2(const uint8_t *, ptrdiff_t, ptrdiff_t, ptrdiff_t · 27 unmodified lines
28av_cold ff_blackdetect_fn ff_blackdetect_get_fn_x86(int depth)28av_cold ff_blackdetect_fn ff_blackdetect_get_fn_x86(int depth)
29{29{
30 int cpu_flags = av_get_cpu_flags();30 int cpu_flags = av_get_cpu_flags();
31 if (EXTERNAL_AVX2(cpu_flags))31 if (EXTERNAL_AVX2_FAST(cpu_flags))
32 return depth == 8 ? ff_blackdetect_8_avx2 : ff_blackdetect_16_avx2;32 return depth == 8 ? ff_blackdetect_8_avx2 : ff_blackdetect_16_avx2;
33 return NULL;33 return NULL;
34}34}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t