29 #define FUNC_MAIN_DECL(KIND, SPAN) \ 30 int ff_idet_filter_line_##KIND(const uint8_t *a, const uint8_t *b, \ 31 const uint8_t *c, int w); \ 32 static int idet_filter_line_##KIND(const uint8_t *a, const uint8_t *b, \ 33 const uint8_t *c, int w) { \ 35 const int left_over = w & (SPAN - 1); \ 38 sum += ff_idet_filter_line_##KIND(a, b, c, w); \ 40 sum += ff_idet_filter_line_c(a + w, b + w, c + w, left_over); \ 45 #define FUNC_MAIN_DECL_16bit(KIND, SPAN) \ 46 int ff_idet_filter_line_16bit_##KIND(const uint16_t *a, const uint16_t *b, \ 47 const uint16_t *c, int w); \ 48 static int idet_filter_line_16bit_##KIND(const uint16_t *a, const uint16_t *b, \ 49 const uint16_t *c, int w) { \ 51 const int left_over = w & (SPAN - 1); \ 54 sum += ff_idet_filter_line_16bit_##KIND(a, b, c, w); \ 56 sum += ff_idet_filter_line_c_16bit(a + w, b + w, c + w, left_over); \ 60 FUNC_MAIN_DECL(sse2, 16)
61 FUNC_MAIN_DECL_16bit(sse2, 8)
63 FUNC_MAIN_DECL(mmx, 8)
64 FUNC_MAIN_DECL(mmxext, 8)
65 FUNC_MAIN_DECL_16bit(mmx, 4)
#define EXTERNAL_MMX(flags)
Memory handling functions.
static atomic_int cpu_flags
Macro definitions for various function/variable attributes.
#define EXTERNAL_SSE2(flags)
int(* ff_idet_filter_func)(const uint8_t *a, const uint8_t *b, const uint8_t *c, int w)
ff_idet_filter_func filter_line
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define EXTERNAL_MMXEXT(flags)
av_cold void ff_idet_init_x86(IDETContext *idet, int for_16b)