Revision ed040f35 libavcodec/ppc/vc1dsp_altivec.c
libavcodec/ppc/vc1dsp_altivec.c | ||
---|---|---|
20 | 20 |
*/ |
21 | 21 |
|
22 | 22 |
#include "libavcodec/dsputil.h" |
23 |
#include "libavcodec/vc1dsp.h" |
|
23 | 24 |
|
24 | 25 |
#include "util_altivec.h" |
25 | 26 |
#include "dsputil_altivec.h" |
... | ... | |
321 | 322 |
ADD (dest, src3, perm1) |
322 | 323 |
} |
323 | 324 |
|
325 |
#define PUT_OP_U8_ALTIVEC(d, s, dst) d = s |
|
326 |
#define AVG_OP_U8_ALTIVEC(d, s, dst) d = vec_avg(dst, s) |
|
327 |
|
|
328 |
#define OP_U8_ALTIVEC PUT_OP_U8_ALTIVEC |
|
329 |
#define PREFIX_no_rnd_vc1_chroma_mc8_altivec put_no_rnd_vc1_chroma_mc8_altivec |
|
330 |
#include "h264_template_altivec.c" |
|
331 |
#undef OP_U8_ALTIVEC |
|
332 |
#undef PREFIX_no_rnd_vc1_chroma_mc8_altivec |
|
333 |
|
|
334 |
#define OP_U8_ALTIVEC AVG_OP_U8_ALTIVEC |
|
335 |
#define PREFIX_no_rnd_vc1_chroma_mc8_altivec avg_no_rnd_vc1_chroma_mc8_altivec |
|
336 |
#include "h264_template_altivec.c" |
|
337 |
#undef OP_U8_ALTIVEC |
|
338 |
#undef PREFIX_no_rnd_vc1_chroma_mc8_altivec |
|
324 | 339 |
|
325 | 340 |
void ff_vc1dsp_init_altivec(VC1DSPContext* dsp) |
326 | 341 |
{ |
... | ... | |
329 | 344 |
|
330 | 345 |
dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec; |
331 | 346 |
dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec; |
347 |
dsp->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec; |
|
348 |
dsp->avg_no_rnd_vc1_chroma_pixels_tab[0] = avg_no_rnd_vc1_chroma_mc8_altivec; |
|
332 | 349 |
} |
Also available in: Unified diff