35 ptrdiff_t line_size,
int h);
37 ptrdiff_t line_size,
int h);
39 ptrdiff_t line_size,
int h);
41 ptrdiff_t line_size,
int h);
43 ptrdiff_t line_size,
int h);
45 ptrdiff_t line_size,
int h);
47 ptrdiff_t line_size,
int h);
49 ptrdiff_t line_size,
int h);
51 ptrdiff_t line_size,
int h);
53 ptrdiff_t line_size,
int h);
56 ptrdiff_t line_size,
int h);
59 ptrdiff_t line_size,
int h);
61 ptrdiff_t line_size,
int h);
63 ptrdiff_t line_size,
int h);
65 ptrdiff_t line_size,
int h);
67 ptrdiff_t line_size,
int h);
70 ptrdiff_t line_size,
int h);
73 ptrdiff_t line_size,
int h);
75 ptrdiff_t line_size,
int h);
77 ptrdiff_t line_size,
int h);
79 ptrdiff_t line_size,
int h);
81 ptrdiff_t line_size,
int h);
83 ptrdiff_t line_size,
int h);
85 ptrdiff_t line_size,
int h);
87 ptrdiff_t line_size,
int h);
89 ptrdiff_t line_size,
int h);
91 #define avg_pixels8_mmx ff_avg_pixels8_mmx
92 #define avg_pixels8_x2_mmx ff_avg_pixels8_x2_mmx
93 #define avg_pixels16_mmx ff_avg_pixels16_mmx
94 #define avg_pixels8_xy2_mmx ff_avg_pixels8_xy2_mmx
95 #define avg_pixels16_xy2_mmx ff_avg_pixels16_xy2_mmx
96 #define put_pixels8_mmx ff_put_pixels8_mmx
97 #define put_pixels16_mmx ff_put_pixels16_mmx
98 #define put_pixels8_xy2_mmx ff_put_pixels8_xy2_mmx
99 #define put_pixels16_xy2_mmx ff_put_pixels16_xy2_mmx
100 #define avg_no_rnd_pixels16_mmx ff_avg_pixels16_mmx
101 #define put_no_rnd_pixels8_mmx ff_put_pixels8_mmx
102 #define put_no_rnd_pixels16_mmx ff_put_pixels16_mmx
108 #define DEF(x, y) x ## _no_rnd_ ## y ## _mmx
109 #define SET_RND MOVQ_WONE
110 #define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX_NO_RND(a, b, c, d, e, f)
111 #define PAVGB(a, b, c, e) PAVGB_MMX_NO_RND(a, b, c, e)
112 #define STATIC static
124 CALL_2X_PIXELS(avg_no_rnd_pixels16_y2_mmx, avg_no_rnd_pixels8_y2_mmx, 8)
125 CALL_2X_PIXELS(put_no_rnd_pixels16_y2_mmx, put_no_rnd_pixels8_y2_mmx, 8)
127 CALL_2X_PIXELS(avg_no_rnd_pixels16_xy2_mmx, avg_no_rnd_pixels8_xy2_mmx, 8)
128 CALL_2X_PIXELS(put_no_rnd_pixels16_xy2_mmx, put_no_rnd_pixels8_xy2_mmx, 8)
134 #define DEF(x, y) x ## _ ## y ## _mmx
135 #define SET_RND MOVQ_WTWO
136 #define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX(a, b, c, d, e, f)
137 #define PAVGB(a, b, c, e) PAVGB_MMX(a, b, c, e)
142 #define DEF(x, y) ff_ ## x ## _ ## y ## _mmx
165 #define HPELDSP_AVG_PIXELS16(CPUEXT) \
166 CALL_2X_PIXELS(put_no_rnd_pixels16_x2 ## CPUEXT, ff_put_no_rnd_pixels8_x2 ## CPUEXT, 8) \
167 CALL_2X_PIXELS(put_pixels16_y2 ## CPUEXT, ff_put_pixels8_y2 ## CPUEXT, 8) \
168 CALL_2X_PIXELS(put_no_rnd_pixels16_y2 ## CPUEXT, ff_put_no_rnd_pixels8_y2 ## CPUEXT, 8) \
169 CALL_2X_PIXELS(avg_pixels16 ## CPUEXT, ff_avg_pixels8 ## CPUEXT, 8) \
170 CALL_2X_PIXELS(avg_pixels16_x2 ## CPUEXT, ff_avg_pixels8_x2 ## CPUEXT, 8) \
171 CALL_2X_PIXELS(avg_pixels16_y2 ## CPUEXT, ff_avg_pixels8_y2 ## CPUEXT, 8) \
172 CALL_2X_PIXELS(avg_pixels16_xy2 ## CPUEXT, ff_avg_pixels8_xy2 ## CPUEXT, 8) \
173 CALL_2X_PIXELS(avg_approx_pixels16_xy2## CPUEXT, ff_avg_approx_pixels8_xy2## CPUEXT, 8)
175 HPELDSP_AVG_PIXELS16(_3dnow)
176 HPELDSP_AVG_PIXELS16(_mmxext)
180 #define SET_HPEL_FUNCS_EXT(PFX, IDX, SIZE, CPU) \
181 if (HAVE_MMX_EXTERNAL) \
182 c->PFX ## _pixels_tab IDX [0] = PFX ## _pixels ## SIZE ## _ ## CPU;
185 #define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU) \
187 SET_HPEL_FUNCS_EXT(PFX, IDX, SIZE, CPU) \
188 c->PFX ## _pixels_tab IDX [1] = PFX ## _pixels ## SIZE ## _x2_ ## CPU; \
189 c->PFX ## _pixels_tab IDX [2] = PFX ## _pixels ## SIZE ## _y2_ ## CPU; \
190 c->PFX ## _pixels_tab IDX [3] = PFX ## _pixels ## SIZE ## _xy2_ ## CPU; \
193 #define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU) \
195 SET_HPEL_FUNCS_EXT(PFX, IDX, SIZE, CPU) \
207 if (HAVE_MMX_EXTERNAL) {
219 #if HAVE_MMXEXT_EXTERNAL
246 if (CONFIG_VP3_DECODER && flags & AV_CODEC_FLAG_BITEXACT) {
255 #if HAVE_AMD3DNOW_EXTERNAL
282 if (CONFIG_VP3_DECODER && flags & AV_CODEC_FLAG_BITEXACT) {
291 #if HAVE_SSE2_EXTERNAL
309 #if HAVE_SSSE3_EXTERNAL
void ff_put_pixels16_y2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels8_x2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_no_rnd_pixels8_y2_exact_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
op_pixels_func avg_pixels_tab[4][4]
Halfpel motion compensation with rounding (a+b+1)>>1.
void ff_avg_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels16_xy2_ssse3(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
static void hpeldsp_init_3dnow(HpelDSPContext *c, int flags, int cpu_flags)
static void hpeldsp_init_mmx(HpelDSPContext *c, int flags, int cpu_flags)
Macro definitions for various function/variable attributes.
static void hpeldsp_init_mmxext(HpelDSPContext *c, int flags, int cpu_flags)
void ff_avg_pixels8_x2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels8_x2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_no_rnd_pixels8_y2_exact_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_y2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels16_xy2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
av_cold void ff_hpeldsp_init_x86(HpelDSPContext *c, int flags)
void ff_put_pixels8_y2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define AV_CPU_FLAG_SSE2SLOW
SSE2 supported, but usually not faster.
#define CALL_2X_PIXELS(a, b, n)
#define EXTERNAL_SSE2(flags)
void ff_avg_pixels16_y2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define INLINE_MMX(flags)
void ff_put_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_xy2_ssse3(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels16_x2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_no_rnd_pixels8_y2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define AV_CODEC_FLAG_BITEXACT
Use only bitexact stuff (except (I)DCT).
static void hpeldsp_init_sse2(HpelDSPContext *c, int flags, int cpu_flags)
#define CALL_2X_PIXELS_EXPORT(a, b, n)
#define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU)
void ff_avg_pixels8_x2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_no_rnd_pixels8_y2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels16_x2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels16_x2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
Libavcodec external API header.
void ff_put_pixels16_x2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
op_pixels_func put_pixels_tab[4][4]
Halfpel motion compensation with rounding (a+b+1)>>1.
void ff_put_no_rnd_pixels8_x2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define EXTERNAL_SSSE3(flags)
op_pixels_func put_no_rnd_pixels_tab[4][4]
Halfpel motion compensation with no rounding (a+b)>>1.
void ff_put_pixels8_xy2_ssse3(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
void ff_avg_pixels8_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels16_xy2_mmx(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_xy2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels16_xy2_ssse3(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define EXTERNAL_MMXEXT(flags)
void ff_avg_pixels8_mmx(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels16_xy2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_no_rnd_pixels8_x2_exact_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_approx_pixels8_xy2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_approx_pixels8_xy2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_y2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_x2_mmx(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels8_y2_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_no_rnd_pixels8_x2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_no_rnd_pixels8_x2_exact_3dnow(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
static void hpeldsp_init_ssse3(HpelDSPContext *c, int flags, int cpu_flags)
#define EXTERNAL_AMD3DNOW(flags)
void ff_avg_pixels8_xy2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)