56 #define CHROMA_MC(OP, NUM, DEPTH, OPT) \
57 void ff_ ## OP ## _h264_chroma_mc ## NUM ## _ ## DEPTH ## _ ## OPT \
58 (uint8_t *dst, uint8_t *src, \
59 int stride, int h, int x, int y);
72 int high_bit_depth = bit_depth > 8;
93 c->put_h264_chroma_pixels_tab[2] = ff_put_h264_chroma_mc2_10_mmxext;
94 c->avg_h264_chroma_pixels_tab[2] = ff_avg_h264_chroma_mc2_10_mmxext;
95 c->put_h264_chroma_pixels_tab[1] = ff_put_h264_chroma_mc4_10_mmxext;
96 c->avg_h264_chroma_pixels_tab[1] = ff_avg_h264_chroma_mc4_10_mmxext;
99 if (
EXTERNAL_SSE2(cpu_flags) && bit_depth > 8 && bit_depth <= 10) {
100 c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_10_sse2;
101 c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_10_sse2;
111 if (
EXTERNAL_AVX(cpu_flags) && bit_depth > 8 && bit_depth <= 10) {
114 c->put_h264_chroma_pixels_tab[0] = ff_put_h264_chroma_mc8_10_avx;
115 c->avg_h264_chroma_pixels_tab[0] = ff_avg_h264_chroma_mc8_10_avx;
void ff_put_h264_chroma_mc4_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
#define EXTERNAL_MMX(flags)
void ff_put_h264_chroma_mc2_mmxext(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
void ff_avg_h264_chroma_mc4_ssse3(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
void ff_avg_h264_chroma_mc8_rnd_ssse3(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
Macro definitions for various function/variable attributes.
void ff_avg_h264_chroma_mc8_rnd_mmxext(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
#define EXTERNAL_SSE2(flags)
void ff_put_h264_chroma_mc8_rnd_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
void ff_avg_h264_chroma_mc4_mmxext(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
void ff_put_h264_chroma_mc4_ssse3(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
av_cold void ff_h264chroma_init_x86(H264ChromaContext *c, int bit_depth)
#define CHROMA_MC(OP, NUM, DEPTH, OPT)
#define EXTERNAL_SSSE3(flags)
void ff_put_h264_chroma_mc8_rnd_ssse3(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define EXTERNAL_MMXEXT(flags)
GLint GLenum GLboolean GLsizei stride
static unsigned bit_depth(uint64_t mask)
void ff_avg_h264_chroma_mc8_rnd_3dnow(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
void ff_avg_h264_chroma_mc4_3dnow(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
void ff_avg_h264_chroma_mc2_mmxext(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y)
#define EXTERNAL_AMD3DNOW(flags)
#define EXTERNAL_AVX(flags)