26 #define THRESHOLD_FUNC(depth, opt) \
27 void ff_threshold##depth##_##opt(const uint8_t *in, const uint8_t *threshold,\
28 const uint8_t *min, const uint8_t *max, \
30 ptrdiff_t ilinesize, ptrdiff_t tlinesize, \
31 ptrdiff_t flinesize, ptrdiff_t slinesize, \
32 ptrdiff_t olinesize, \
37 THRESHOLD_FUNC(16, sse4)
38 THRESHOLD_FUNC(16, avx2)
46 s->threshold = ff_threshold8_sse4;
49 s->threshold = ff_threshold8_avx2;
51 }
else if (s->depth == 16) {
53 s->threshold = ff_threshold16_sse4;
56 s->threshold = ff_threshold16_avx2;
av_cold void ff_threshold_init_x86(ThresholdContext *s)
static atomic_int cpu_flags
Macro definitions for various function/variable attributes.
#define EXTERNAL_SSE4(flags)
#define EXTERNAL_AVX2_FAST(flags)
#define THRESHOLD_FUNC(depth, opt)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.