32 int dstStride,
int src1Stride,
int h);
35 int src1Stride,
int h);
37 int dstStride,
int src1Stride,
int h);
39 int dstStride,
int src1Stride,
int h);
41 int dstStride,
int src1Stride,
int h);
43 int dstStride,
int src1Stride,
int h);
45 int dstStride,
int srcStride,
int h);
47 int dstStride,
int srcStride,
int h);
49 int dstStride,
int srcStride,
52 int dstStride,
int srcStride,
int h);
54 int dstStride,
int srcStride,
int h);
56 int dstStride,
int srcStride,
59 int dstStride,
int srcStride);
61 int dstStride,
int srcStride);
63 int dstStride,
int srcStride);
65 int dstStride,
int srcStride);
67 int dstStride,
int srcStride);
69 int dstStride,
int srcStride);
70 #define ff_put_no_rnd_pixels16_mmxext ff_put_pixels16_mmxext
71 #define ff_put_no_rnd_pixels8_mmxext ff_put_pixels8_mmxext
91 const int16_t *window,
unsigned int len);
93 const int16_t *window,
unsigned int len);
95 const int16_t *window,
unsigned int len);
97 const int16_t *window,
unsigned int len);
99 const int16_t *window,
unsigned int len);
101 const int16_t *window,
unsigned int len);
108 int *left,
int *left_top);
125 PIXELS16(
static, ff_avg, , , _mmxext)
126 PIXELS16(static, ff_put, , , _mmxext)
128 #define QPEL_OP(OPNAME, RND, MMX) \
129 static void OPNAME ## qpel8_mc00_ ## MMX (uint8_t *dst, uint8_t *src, \
132 ff_ ## OPNAME ## pixels8_ ## MMX(dst, src, stride, 8); \
135 static void OPNAME ## qpel8_mc10_ ## MMX(uint8_t *dst, uint8_t *src, \
139 uint8_t * const half = (uint8_t*)temp; \
140 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(half, src, 8, \
142 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, src, half, \
143 stride, stride, 8); \
146 static void OPNAME ## qpel8_mc20_ ## MMX(uint8_t *dst, uint8_t *src, \
149 ff_ ## OPNAME ## mpeg4_qpel8_h_lowpass_ ## MMX(dst, src, stride, \
153 static void OPNAME ## qpel8_mc30_ ## MMX(uint8_t *dst, uint8_t *src, \
157 uint8_t * const half = (uint8_t*)temp; \
158 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(half, src, 8, \
160 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, src + 1, half, stride, \
164 static void OPNAME ## qpel8_mc01_ ## MMX(uint8_t *dst, uint8_t *src, \
168 uint8_t * const half = (uint8_t*)temp; \
169 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(half, src, \
171 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, src, half, \
172 stride, stride, 8); \
175 static void OPNAME ## qpel8_mc02_ ## MMX(uint8_t *dst, uint8_t *src, \
178 ff_ ## OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(dst, src, \
182 static void OPNAME ## qpel8_mc03_ ## MMX(uint8_t *dst, uint8_t *src, \
186 uint8_t * const half = (uint8_t*)temp; \
187 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(half, src, \
189 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, src + stride, half, stride,\
193 static void OPNAME ## qpel8_mc11_ ## MMX(uint8_t *dst, uint8_t *src, \
196 uint64_t half[8 + 9]; \
197 uint8_t * const halfH = ((uint8_t*)half) + 64; \
198 uint8_t * const halfHV = ((uint8_t*)half); \
199 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
201 ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, 8, \
203 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
204 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, halfH, halfHV, \
208 static void OPNAME ## qpel8_mc31_ ## MMX(uint8_t *dst, uint8_t *src, \
211 uint64_t half[8 + 9]; \
212 uint8_t * const halfH = ((uint8_t*)half) + 64; \
213 uint8_t * const halfHV = ((uint8_t*)half); \
214 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
216 ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
218 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
219 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, halfH, halfHV, \
223 static void OPNAME ## qpel8_mc13_ ## MMX(uint8_t *dst, uint8_t *src, \
226 uint64_t half[8 + 9]; \
227 uint8_t * const halfH = ((uint8_t*)half) + 64; \
228 uint8_t * const halfHV = ((uint8_t*)half); \
229 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
231 ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, 8, \
233 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
234 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, halfH + 8, halfHV, \
238 static void OPNAME ## qpel8_mc33_ ## MMX(uint8_t *dst, uint8_t *src, \
241 uint64_t half[8 + 9]; \
242 uint8_t * const halfH = ((uint8_t*)half) + 64; \
243 uint8_t * const halfHV = ((uint8_t*)half); \
244 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
246 ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
248 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
249 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, halfH + 8, halfHV, \
253 static void OPNAME ## qpel8_mc21_ ## MMX(uint8_t *dst, uint8_t *src, \
256 uint64_t half[8 + 9]; \
257 uint8_t * const halfH = ((uint8_t*)half) + 64; \
258 uint8_t * const halfHV = ((uint8_t*)half); \
259 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
261 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
262 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, halfH, halfHV, \
266 static void OPNAME ## qpel8_mc23_ ## MMX(uint8_t *dst, uint8_t *src, \
269 uint64_t half[8 + 9]; \
270 uint8_t * const halfH = ((uint8_t*)half) + 64; \
271 uint8_t * const halfHV = ((uint8_t*)half); \
272 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
274 ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
275 ff_ ## OPNAME ## pixels8_l2_ ## MMX(dst, halfH + 8, halfHV, \
279 static void OPNAME ## qpel8_mc12_ ## MMX(uint8_t *dst, uint8_t *src, \
282 uint64_t half[8 + 9]; \
283 uint8_t * const halfH = ((uint8_t*)half); \
284 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
286 ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, \
288 ff_ ## OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(dst, halfH, \
292 static void OPNAME ## qpel8_mc32_ ## MMX(uint8_t *dst, uint8_t *src, \
295 uint64_t half[8 + 9]; \
296 uint8_t * const halfH = ((uint8_t*)half); \
297 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
299 ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
301 ff_ ## OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(dst, halfH, \
305 static void OPNAME ## qpel8_mc22_ ## MMX(uint8_t *dst, uint8_t *src, \
309 uint8_t * const halfH = ((uint8_t*)half); \
310 ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
312 ff_ ## OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(dst, halfH, \
316 static void OPNAME ## qpel16_mc00_ ## MMX (uint8_t *dst, uint8_t *src, \
319 ff_ ## OPNAME ## pixels16_ ## MMX(dst, src, stride, 16); \
322 static void OPNAME ## qpel16_mc10_ ## MMX(uint8_t *dst, uint8_t *src, \
326 uint8_t * const half = (uint8_t*)temp; \
327 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(half, src, 16, \
329 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, src, half, stride, \
333 static void OPNAME ## qpel16_mc20_ ## MMX(uint8_t *dst, uint8_t *src, \
336 ff_ ## OPNAME ## mpeg4_qpel16_h_lowpass_ ## MMX(dst, src, \
337 stride, stride, 16);\
340 static void OPNAME ## qpel16_mc30_ ## MMX(uint8_t *dst, uint8_t *src, \
344 uint8_t * const half = (uint8_t*)temp; \
345 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(half, src, 16, \
347 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, src + 1, half, \
348 stride, stride, 16); \
351 static void OPNAME ## qpel16_mc01_ ## MMX(uint8_t *dst, uint8_t *src, \
355 uint8_t * const half = (uint8_t*)temp; \
356 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(half, src, 16, \
358 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, src, half, stride, \
362 static void OPNAME ## qpel16_mc02_ ## MMX(uint8_t *dst, uint8_t *src, \
365 ff_ ## OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(dst, src, \
369 static void OPNAME ## qpel16_mc03_ ## MMX(uint8_t *dst, uint8_t *src, \
373 uint8_t * const half = (uint8_t*)temp; \
374 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(half, src, 16, \
376 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, src+stride, half, \
377 stride, stride, 16); \
380 static void OPNAME ## qpel16_mc11_ ## MMX(uint8_t *dst, uint8_t *src, \
383 uint64_t half[16 * 2 + 17 * 2]; \
384 uint8_t * const halfH = ((uint8_t*)half) + 256; \
385 uint8_t * const halfHV = ((uint8_t*)half); \
386 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
388 ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
390 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
392 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, halfH, halfHV, \
396 static void OPNAME ## qpel16_mc31_ ## MMX(uint8_t *dst, uint8_t *src, \
399 uint64_t half[16 * 2 + 17 * 2]; \
400 uint8_t * const halfH = ((uint8_t*)half) + 256; \
401 uint8_t * const halfHV = ((uint8_t*)half); \
402 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
404 ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
406 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
408 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, halfH, halfHV, \
412 static void OPNAME ## qpel16_mc13_ ## MMX(uint8_t *dst, uint8_t *src, \
415 uint64_t half[16 * 2 + 17 * 2]; \
416 uint8_t * const halfH = ((uint8_t*)half) + 256; \
417 uint8_t * const halfHV = ((uint8_t*)half); \
418 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
420 ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
422 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
424 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, halfH + 16, halfHV, \
428 static void OPNAME ## qpel16_mc33_ ## MMX(uint8_t *dst, uint8_t *src, \
431 uint64_t half[16 * 2 + 17 * 2]; \
432 uint8_t * const halfH = ((uint8_t*)half) + 256; \
433 uint8_t * const halfHV = ((uint8_t*)half); \
434 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
436 ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
438 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
440 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, halfH + 16, halfHV, \
444 static void OPNAME ## qpel16_mc21_ ## MMX(uint8_t *dst, uint8_t *src, \
447 uint64_t half[16 * 2 + 17 * 2]; \
448 uint8_t * const halfH = ((uint8_t*)half) + 256; \
449 uint8_t * const halfHV = ((uint8_t*)half); \
450 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
452 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
454 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, halfH, halfHV, \
458 static void OPNAME ## qpel16_mc23_ ## MMX(uint8_t *dst, uint8_t *src, \
461 uint64_t half[16 * 2 + 17 * 2]; \
462 uint8_t * const halfH = ((uint8_t*)half) + 256; \
463 uint8_t * const halfHV = ((uint8_t*)half); \
464 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
466 ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
468 ff_ ## OPNAME ## pixels16_l2_ ## MMX(dst, halfH + 16, halfHV, \
472 static void OPNAME ## qpel16_mc12_ ## MMX(uint8_t *dst, uint8_t *src, \
475 uint64_t half[17 * 2]; \
476 uint8_t * const halfH = ((uint8_t*)half); \
477 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
479 ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
481 ff_ ## OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(dst, halfH, \
485 static void OPNAME ## qpel16_mc32_ ## MMX(uint8_t *dst, uint8_t *src, \
488 uint64_t half[17 * 2]; \
489 uint8_t * const halfH = ((uint8_t*)half); \
490 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
492 ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
494 ff_ ## OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(dst, halfH, \
498 static void OPNAME ## qpel16_mc22_ ## MMX(uint8_t *dst, uint8_t *src, \
501 uint64_t half[17 * 2]; \
502 uint8_t * const halfH = ((uint8_t*)half); \
503 ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
505 ff_ ## OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(dst, halfH, \
509 QPEL_OP(put_, _, mmxext)
510 QPEL_OP(avg_, _, mmxext)
511 QPEL_OP(put_no_rnd_, _no_rnd_, mmxext)
514 #define SET_QPEL_FUNCS(PFX, IDX, SIZE, CPU, PREFIX) \
516 c->PFX ## _pixels_tab[IDX][ 0] = PREFIX ## PFX ## SIZE ## _mc00_ ## CPU; \
517 c->PFX ## _pixels_tab[IDX][ 1] = PREFIX ## PFX ## SIZE ## _mc10_ ## CPU; \
518 c->PFX ## _pixels_tab[IDX][ 2] = PREFIX ## PFX ## SIZE ## _mc20_ ## CPU; \
519 c->PFX ## _pixels_tab[IDX][ 3] = PREFIX ## PFX ## SIZE ## _mc30_ ## CPU; \
520 c->PFX ## _pixels_tab[IDX][ 4] = PREFIX ## PFX ## SIZE ## _mc01_ ## CPU; \
521 c->PFX ## _pixels_tab[IDX][ 5] = PREFIX ## PFX ## SIZE ## _mc11_ ## CPU; \
522 c->PFX ## _pixels_tab[IDX][ 6] = PREFIX ## PFX ## SIZE ## _mc21_ ## CPU; \
523 c->PFX ## _pixels_tab[IDX][ 7] = PREFIX ## PFX ## SIZE ## _mc31_ ## CPU; \
524 c->PFX ## _pixels_tab[IDX][ 8] = PREFIX ## PFX ## SIZE ## _mc02_ ## CPU; \
525 c->PFX ## _pixels_tab[IDX][ 9] = PREFIX ## PFX ## SIZE ## _mc12_ ## CPU; \
526 c->PFX ## _pixels_tab[IDX][10] = PREFIX ## PFX ## SIZE ## _mc22_ ## CPU; \
527 c->PFX ## _pixels_tab[IDX][11] = PREFIX ## PFX ## SIZE ## _mc32_ ## CPU; \
528 c->PFX ## _pixels_tab[IDX][12] = PREFIX ## PFX ## SIZE ## _mc03_ ## CPU; \
529 c->PFX ## _pixels_tab[IDX][13] = PREFIX ## PFX ## SIZE ## _mc13_ ## CPU; \
530 c->PFX ## _pixels_tab[IDX][14] = PREFIX ## PFX ## SIZE ## _mc23_ ## CPU; \
531 c->PFX ## _pixels_tab[IDX][15] = PREFIX ## PFX ## SIZE ## _mc33_ ## CPU; \
544 if (!high_bit_depth) {
550 #if CONFIG_VIDEODSP && (ARCH_X86_32 || !HAVE_YASM)
557 #if HAVE_MMX_EXTERNAL
558 if (CONFIG_H263_DECODER || CONFIG_H263_ENCODER) {
570 #if HAVE_MMXEXT_EXTERNAL
600 if (!high_bit_depth) {
612 #if HAVE_INLINE_ASM && CONFIG_VIDEODSP
632 #if HAVE_SSE2_EXTERNAL
652 #if HAVE_SSSE3_EXTERNAL
670 #if HAVE_SSE4_EXTERNAL
679 #if HAVE_7REGS && HAVE_INLINE_ASM