Revision ccf22d3e libavcodec/ppc/h264_altivec.c
libavcodec/ppc/h264_altivec.c | ||
---|---|---|
969 | 969 |
|
970 | 970 |
void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) { |
971 | 971 |
|
972 |
if (has_altivec()) {
|
|
972 |
if (mm_support() & AV_CPU_FLAG_ALTIVEC) {
|
|
973 | 973 |
c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec; |
974 | 974 |
c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec; |
975 | 975 |
c->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec; |
... | ... | |
1001 | 1001 |
|
1002 | 1002 |
void ff_h264dsp_init_ppc(H264DSPContext *c) |
1003 | 1003 |
{ |
1004 |
if (has_altivec()) {
|
|
1004 |
if (mm_support() & AV_CPU_FLAG_ALTIVEC) {
|
|
1005 | 1005 |
c->h264_idct_add = ff_h264_idct_add_altivec; |
1006 | 1006 |
c->h264_idct_add8 = ff_h264_idct_add8_altivec; |
1007 | 1007 |
c->h264_idct_add16 = ff_h264_idct_add16_altivec; |
Also available in: Unified diff