Go to the documentation of this file.
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 const uint8_t *pixels,
50 ptrdiff_t line_size,
int h);
52 ptrdiff_t line_size,
int h);
54 ptrdiff_t line_size,
int h);
56 const uint8_t *pixels,
57 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 #define avg_pixels16_mmx ff_avg_pixels16_mmx
66 #define put_pixels8_mmx ff_put_pixels8_mmx
67 #define put_pixels16_mmx ff_put_pixels16_mmx
68 #define put_pixels8_xy2_mmx ff_put_pixels8_xy2_mmx
69 #define avg_no_rnd_pixels16_mmx ff_avg_pixels16_mmx
70 #define put_no_rnd_pixels8_mmx ff_put_pixels8_mmx
71 #define put_no_rnd_pixels16_mmx ff_put_pixels16_mmx
77 #define DEF(x, y) x ## _no_rnd_ ## y ## _mmx
78 #define SET_RND MOVQ_WONE
79 #define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX_NO_RND(a, b, c, d, e, f)
80 #define PAVGB(a, b, c, e) PAVGB_MMX_NO_RND(a, b, c, e)
93 CALL_2X_PIXELS(avg_no_rnd_pixels16_y2_mmx, avg_no_rnd_pixels8_y2_mmx, 8)
94 CALL_2X_PIXELS(put_no_rnd_pixels16_y2_mmx, put_no_rnd_pixels8_y2_mmx, 8)
96 CALL_2X_PIXELS(avg_no_rnd_pixels16_xy2_mmx, avg_no_rnd_pixels8_xy2_mmx, 8)
97 CALL_2X_PIXELS(put_no_rnd_pixels16_xy2_mmx, put_no_rnd_pixels8_xy2_mmx, 8)
103 #define SET_RND MOVQ_WTWO
104 #define DEF(x, y) ff_ ## x ## _ ## y ## _mmx
123 #define HPELDSP_AVG_PIXELS16(CPUEXT) \
124 CALL_2X_PIXELS(put_no_rnd_pixels16_x2 ## CPUEXT, ff_put_no_rnd_pixels8_x2 ## CPUEXT, 8) \
125 CALL_2X_PIXELS(put_pixels16_y2 ## CPUEXT, ff_put_pixels8_y2 ## CPUEXT, 8) \
126 CALL_2X_PIXELS(put_no_rnd_pixels16_y2 ## CPUEXT, ff_put_no_rnd_pixels8_y2 ## CPUEXT, 8) \
127 CALL_2X_PIXELS(avg_pixels16 ## CPUEXT, ff_avg_pixels8 ## CPUEXT, 8) \
128 CALL_2X_PIXELS(avg_pixels16_x2 ## CPUEXT, ff_avg_pixels8_x2 ## CPUEXT, 8) \
129 CALL_2X_PIXELS(avg_pixels16_y2 ## CPUEXT, ff_avg_pixels8_y2 ## CPUEXT, 8) \
130 CALL_2X_PIXELS(avg_pixels16_xy2 ## CPUEXT, ff_avg_pixels8_xy2 ## CPUEXT, 8) \
131 CALL_2X_PIXELS(avg_approx_pixels16_xy2## CPUEXT, ff_avg_approx_pixels8_xy2## CPUEXT, 8)
133 HPELDSP_AVG_PIXELS16(_mmxext)
137 #define SET_HPEL_FUNCS_EXT(PFX, IDX, SIZE, CPU) \
138 if (HAVE_MMX_EXTERNAL) \
139 c->PFX ## _pixels_tab IDX [0] = PFX ## _pixels ## SIZE ## _ ## CPU
142 #define SET_HPEL_FUNCS03(PFX, IDX, SIZE, CPU) \
144 SET_HPEL_FUNCS_EXT(PFX, IDX, SIZE, CPU); \
145 c->PFX ## _pixels_tab IDX [3] = PFX ## _pixels ## SIZE ## _xy2_ ## CPU; \
147 #define SET_HPEL_FUNCS12(PFX, IDX, SIZE, CPU) \
149 c->PFX ## _pixels_tab IDX [1] = PFX ## _pixels ## SIZE ## _x2_ ## CPU; \
150 c->PFX ## _pixels_tab IDX [2] = PFX ## _pixels ## SIZE ## _y2_ ## CPU; \
153 #define SET_HPEL_FUNCS03(PFX, IDX, SIZE, CPU) SET_HPEL_FUNCS_EXT(PFX, IDX, SIZE, CPU)
154 #define SET_HPEL_FUNCS12(PFX, IDX, SIZE, CPU) ((void)0)
156 #define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU) \
158 SET_HPEL_FUNCS03(PFX, IDX, SIZE, CPU); \
159 SET_HPEL_FUNCS12(PFX, IDX, SIZE, CPU); \
173 #if HAVE_MMXEXT_EXTERNAL
175 c->put_pixels_tab[0][2] = put_pixels16_y2_mmxext;
177 c->avg_pixels_tab[0][0] = avg_pixels16_mmxext;
178 c->avg_pixels_tab[0][1] = avg_pixels16_x2_mmxext;
179 c->avg_pixels_tab[0][2] = avg_pixels16_y2_mmxext;
180 c->avg_pixels_tab[0][3] = avg_pixels16_xy2_mmxext;
194 c->put_no_rnd_pixels_tab[0][1] = put_no_rnd_pixels16_x2_mmxext;
195 c->put_no_rnd_pixels_tab[0][2] = put_no_rnd_pixels16_y2_mmxext;
199 c->avg_pixels_tab[0][3] = avg_approx_pixels16_xy2_mmxext;
207 #if HAVE_SSE2_EXTERNAL
222 #if HAVE_SSSE3_EXTERNAL
#define INLINE_MMX(flags)
#define EXTERNAL_SSE2_FAST(flags)
void ff_put_pixels16_y2_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_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.
static atomic_int cpu_flags
void ff_avg_pixels8_xy2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
static void hpeldsp_init_ssse3(HpelDSPContext *c, int flags)
void ff_put_no_rnd_pixels8_y2_exact_mmxext(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_avg_pixels8_y2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels8_xy2_mmx(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels8_x2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
static void hpeldsp_init_mmxext(HpelDSPContext *c, int flags)
void ff_avg_pixels8_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define SET_HPEL_FUNCS03(PFX, IDX, SIZE, CPU)
void ff_put_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_avg_pixels16_y2_sse2(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)
static void hpeldsp_init_sse2_fast(HpelDSPContext *c, int flags)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
void ff_avg_approx_pixels8_xy2_mmxext(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)
void ff_put_pixels16_x2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
static void hpeldsp_init_mmx(HpelDSPContext *c, int flags)
void ff_avg_pixels16_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels16_x2_mmxext(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_pixels8_x2_mmxext(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)
#define SET_HPEL_FUNCS(PFX, IDX, SIZE, CPU)
#define CALL_2X_PIXELS(a, b, n)
void ff_avg_pixels16_x2_sse2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
void ff_put_pixels8_y2_mmxext(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).
void ff_put_no_rnd_pixels8_y2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define flags(name, subs,...)
The exact code depends on how similar the blocks are and how related they are to the block
void ff_avg_pixels8_xy2_ssse3(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define EXTERNAL_SSSE3(flags)
void ff_put_no_rnd_pixels8_x2_mmxext(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
#define EXTERNAL_MMXEXT(flags)