]> git.sesse.net Git - x264/blobdiff - common/ppc/predict.c
Support for 9 and 10-bit encoding
[x264] / common / ppc / predict.c
index 3fb1a2b77bab105ee3c09927d97ff061a0beebf2..c71dbb56f9a32982bbe9b7ccf6a8e59120de43f8 100644 (file)
@@ -23,6 +23,7 @@
 #include "pixel.h"
 #include "ppccommon.h"
 
+#if !X264_HIGH_BIT_DEPTH
 static void predict_8x8c_p_altivec( uint8_t *src )
 {
     int H = 0, V = 0;
@@ -194,6 +195,7 @@ static void predict_16x16_v_altivec( uint8_t *src )
         src += FDEC_STRIDE;
     }
 }
+#endif // !X264_HIGH_BIT_DEPTH
 
 
 /****************************************************************************
@@ -201,6 +203,7 @@ static void predict_16x16_v_altivec( uint8_t *src )
  ****************************************************************************/
 void x264_predict_16x16_init_altivec( x264_predict_t pf[7] )
 {
+#if !X264_HIGH_BIT_DEPTH
     pf[I_PRED_16x16_V ]      = predict_16x16_v_altivec;
     pf[I_PRED_16x16_H ]      = predict_16x16_h_altivec;
     pf[I_PRED_16x16_DC]      = predict_16x16_dc_altivec;
@@ -208,9 +211,12 @@ void x264_predict_16x16_init_altivec( x264_predict_t pf[7] )
     pf[I_PRED_16x16_DC_LEFT] = predict_16x16_dc_left_altivec;
     pf[I_PRED_16x16_DC_TOP ] = predict_16x16_dc_top_altivec;
     pf[I_PRED_16x16_DC_128 ] = predict_16x16_dc_128_altivec;
+#endif // !X264_HIGH_BIT_DEPTH
 }
 
 void x264_predict_8x8c_init_altivec( x264_predict_t pf[7] )
 {
+#if !X264_HIGH_BIT_DEPTH
     pf[I_PRED_CHROMA_P]       = predict_8x8c_p_altivec;
+#endif // !X264_HIGH_BIT_DEPTH
 }