Revision ed040f35 libavcodec/ppc/h264_template_altivec.c
libavcodec/ppc/h264_template_altivec.c | ||
---|---|---|
75 | 75 |
#define noop(a) a |
76 | 76 |
#define add28(a) vec_add(v28ss, a) |
77 | 77 |
|
78 |
#ifdef PREFIX_h264_chroma_mc8_altivec |
|
78 | 79 |
static void PREFIX_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, |
79 | 80 |
int stride, int h, int x, int y) { |
80 | 81 |
DECLARE_ALIGNED(16, signed int, ABCD)[4] = |
... | ... | |
201 | 202 |
} |
202 | 203 |
} |
203 | 204 |
} |
205 |
#endif |
|
204 | 206 |
|
205 | 207 |
/* this code assume that stride % 16 == 0 */ |
208 |
#ifdef PREFIX_no_rnd_vc1_chroma_mc8_altivec |
|
206 | 209 |
static void PREFIX_no_rnd_vc1_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) { |
207 | 210 |
DECLARE_ALIGNED(16, signed int, ABCD)[4] = |
208 | 211 |
{((8 - x) * (8 - y)), |
... | ... | |
284 | 287 |
} |
285 | 288 |
} |
286 | 289 |
} |
290 |
#endif |
|
287 | 291 |
|
288 | 292 |
#undef noop |
289 | 293 |
#undef add28 |
290 | 294 |
#undef CHROMA_MC8_ALTIVEC_CORE |
291 | 295 |
|
292 | 296 |
/* this code assume stride % 16 == 0 */ |
297 |
#ifdef PREFIX_h264_qpel16_h_lowpass_altivec |
|
293 | 298 |
static void PREFIX_h264_qpel16_h_lowpass_altivec(uint8_t * dst, uint8_t * src, int dstStride, int srcStride) { |
294 | 299 |
register int i; |
295 | 300 |
|
... | ... | |
427 | 432 |
dst += dstStride; |
428 | 433 |
} |
429 | 434 |
} |
435 |
#endif |
|
430 | 436 |
|
431 | 437 |
/* this code assume stride % 16 == 0 */ |
438 |
#ifdef PREFIX_h264_qpel16_v_lowpass_altivec |
|
432 | 439 |
static void PREFIX_h264_qpel16_v_lowpass_altivec(uint8_t * dst, uint8_t * src, int dstStride, int srcStride) { |
433 | 440 |
register int i; |
434 | 441 |
|
... | ... | |
533 | 540 |
dst += dstStride; |
534 | 541 |
} |
535 | 542 |
} |
543 |
#endif |
|
536 | 544 |
|
537 | 545 |
/* this code assume stride % 16 == 0 *and* tmp is properly aligned */ |
546 |
#ifdef PREFIX_h264_qpel16_hv_lowpass_altivec |
|
538 | 547 |
static void PREFIX_h264_qpel16_hv_lowpass_altivec(uint8_t * dst, int16_t * tmp, uint8_t * src, int dstStride, int tmpStride, int srcStride) { |
539 | 548 |
register int i; |
540 | 549 |
LOAD_ZERO; |
... | ... | |
765 | 774 |
dst += dstStride; |
766 | 775 |
} |
767 | 776 |
} |
777 |
#endif |
Also available in: Unified diff