Revision ed040f35 libavcodec/ppc/h264_altivec.c
libavcodec/ppc/h264_altivec.c | ||
---|---|---|
32 | 32 |
|
33 | 33 |
#define OP_U8_ALTIVEC PUT_OP_U8_ALTIVEC |
34 | 34 |
#define PREFIX_h264_chroma_mc8_altivec put_h264_chroma_mc8_altivec |
35 |
#define PREFIX_no_rnd_vc1_chroma_mc8_altivec put_no_rnd_vc1_chroma_mc8_altivec |
|
36 | 35 |
#define PREFIX_h264_chroma_mc8_num altivec_put_h264_chroma_mc8_num |
37 | 36 |
#define PREFIX_h264_qpel16_h_lowpass_altivec put_h264_qpel16_h_lowpass_altivec |
38 | 37 |
#define PREFIX_h264_qpel16_h_lowpass_num altivec_put_h264_qpel16_h_lowpass_num |
... | ... | |
43 | 42 |
#include "h264_template_altivec.c" |
44 | 43 |
#undef OP_U8_ALTIVEC |
45 | 44 |
#undef PREFIX_h264_chroma_mc8_altivec |
46 |
#undef PREFIX_no_rnd_vc1_chroma_mc8_altivec |
|
47 | 45 |
#undef PREFIX_h264_chroma_mc8_num |
48 | 46 |
#undef PREFIX_h264_qpel16_h_lowpass_altivec |
49 | 47 |
#undef PREFIX_h264_qpel16_h_lowpass_num |
... | ... | |
54 | 52 |
|
55 | 53 |
#define OP_U8_ALTIVEC AVG_OP_U8_ALTIVEC |
56 | 54 |
#define PREFIX_h264_chroma_mc8_altivec avg_h264_chroma_mc8_altivec |
57 |
#define PREFIX_no_rnd_vc1_chroma_mc8_altivec avg_no_rnd_vc1_chroma_mc8_altivec |
|
58 | 55 |
#define PREFIX_h264_chroma_mc8_num altivec_avg_h264_chroma_mc8_num |
59 | 56 |
#define PREFIX_h264_qpel16_h_lowpass_altivec avg_h264_qpel16_h_lowpass_altivec |
60 | 57 |
#define PREFIX_h264_qpel16_h_lowpass_num altivec_avg_h264_qpel16_h_lowpass_num |
... | ... | |
65 | 62 |
#include "h264_template_altivec.c" |
66 | 63 |
#undef OP_U8_ALTIVEC |
67 | 64 |
#undef PREFIX_h264_chroma_mc8_altivec |
68 |
#undef PREFIX_no_rnd_vc1_chroma_mc8_altivec |
|
69 | 65 |
#undef PREFIX_h264_chroma_mc8_num |
70 | 66 |
#undef PREFIX_h264_qpel16_h_lowpass_altivec |
71 | 67 |
#undef PREFIX_h264_qpel16_h_lowpass_num |
... | ... | |
973 | 969 |
if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { |
974 | 970 |
c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec; |
975 | 971 |
c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec; |
976 |
c->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec; |
|
977 |
c->avg_no_rnd_vc1_chroma_pixels_tab[0] = avg_no_rnd_vc1_chroma_mc8_altivec; |
|
978 | 972 |
|
979 | 973 |
#define dspfunc(PFX, IDX, NUM) \ |
980 | 974 |
c->PFX ## _pixels_tab[IDX][ 0] = PFX ## NUM ## _mc00_altivec; \ |
Also available in: Unified diff