Go to the documentation of this file.
23 #define SCENE_SAD_FUNC(FUNC_NAME, ASM_FUNC_NAME, MMSIZE) \
24 void ASM_FUNC_NAME(SCENE_SAD_PARAMS); \
26 static void FUNC_NAME(SCENE_SAD_PARAMS) { \
27 uint64_t sad[MMSIZE / 8] = {0}; \
28 ptrdiff_t awidth = width & ~(MMSIZE - 1); \
30 ASM_FUNC_NAME(src1, stride1, src2, stride2, awidth, height, sad); \
31 for (int i = 0; i < MMSIZE / 8; i++) \
33 ff_scene_sad_c(src1 + awidth, stride1, \
34 src2 + awidth, stride2, \
35 width - awidth, height, sad); \
41 #if HAVE_AVX2_EXTERNAL
51 #if HAVE_AVX2_EXTERNAL
53 return scene_sad_avx2;
56 return scene_sad_sse2;
#define EXTERNAL_AVX2_FAST(flags)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
ff_scene_sad_fn ff_scene_sad_get_fn_x86(int depth)
static atomic_int cpu_flags
#define SCENE_SAD_FUNC(FUNC_NAME, ASM_FUNC_NAME, MMSIZE)
void(* ff_scene_sad_fn)(SCENE_SAD_PARAMS)
#define EXTERNAL_SSE2(flags)