浏览代码

avfilter/x86/vf_colordetect: add missing preprocessor checks

Signed-off-by: James Almer <jamrial@gmail.com>
James Almer 4 月之前
父节点
当前提交
a01dc3aa27
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libavfilter/x86/vf_colordetect.asm

+ 4 - 0
libavfilter/x86/vf_colordetect.asm

@@ -133,6 +133,7 @@ cglobal detect_alpha%1_%3, 6, 7, 6, color, color_stride, alpha, alpha_stride, wi
     RET
 %endmacro
 
+%if HAVE_AVX2_EXTERNAL
 INIT_YMM avx2
 detect_range_fn b
 detect_range_fn w
@@ -140,7 +141,9 @@ detect_alpha_fn b, w, full
 detect_alpha_fn w, d, full
 detect_alpha_fn b, w, limited
 detect_alpha_fn w, d, limited
+%endif
 
+%if HAVE_AVX512ICL_EXTERNAL
 INIT_ZMM avx512icl
 detect_range_fn b
 detect_range_fn w
@@ -148,3 +151,4 @@ detect_alpha_fn b, w, full
 detect_alpha_fn w, d, full
 detect_alpha_fn b, w, limited
 detect_alpha_fn w, d, limited
+%endif