Revision 8dbe5856 libavcodec/ppc/h264_altivec.c

View differences:

libavcodec/ppc/h264_altivec.c
965 965
H264_WEIGHT( 8, 4)
966 966

  
967 967
void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) {
968
    const int h264_high_depth = avctx->codec_id == CODEC_ID_H264 && avctx->bits_per_raw_sample > 8;
968 969

  
969 970
    if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
971
    if (!h264_high_depth) {
970 972
        c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec;
971 973
        c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec;
972 974

  
......
992 994
        dspfunc(avg_h264_qpel, 0, 16);
993 995
#undef dspfunc
994 996
    }
997
    }
995 998
}
996 999

  
997
void ff_h264dsp_init_ppc(H264DSPContext *c)
1000
void ff_h264dsp_init_ppc(H264DSPContext *c, const int bit_depth)
998 1001
{
999 1002
    if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) {
1003
    if (bit_depth == 8) {
1000 1004
        c->h264_idct_add = ff_h264_idct_add_altivec;
1001 1005
        c->h264_idct_add8 = ff_h264_idct_add8_altivec;
1002 1006
        c->h264_idct_add16 = ff_h264_idct_add16_altivec;
......
1019 1023
        c->biweight_h264_pixels_tab[3] = ff_biweight_h264_pixels8x8_altivec;
1020 1024
        c->biweight_h264_pixels_tab[4] = ff_biweight_h264_pixels8x4_altivec;
1021 1025
    }
1026
    }
1022 1027
}

Also available in: Unified diff