]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264idct_template.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / h264idct_template.c
index 64bc70dd47f57327307a99a745680fcedd9f6761..c59976a1d9fc3e0cd43cac2f48b204681b131054 100644 (file)
@@ -228,16 +228,6 @@ void FUNCC(ff_h264_idct_add8)(uint8_t **dest, const int *block_offset, DCTELEM *
 void FUNCC(ff_h264_idct_add8_422)(uint8_t **dest, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[15*8]){
     int i, j;
 
-#if 0
-    av_log(NULL, AV_LOG_INFO, "idct\n");
-    int32_t *b = block;
-    for (int i = 0; i < 256; i++) {
-        av_log(NULL, AV_LOG_INFO, "%5d ", b[i+256]);
-        if (!((i+1) % 16))
-            av_log(NULL, AV_LOG_INFO, "\n");
-    }
-#endif
-
     for(j=1; j<3; j++){
         for(i=j*16; i<j*16+4; i++){
             if(nnzc[ scan8[i] ])
@@ -296,13 +286,13 @@ void FUNCC(ff_h264_luma_dc_dequant_idct)(DCTELEM *p_output, DCTELEM *p_input, in
 #undef stride
 }
 
-void FUNCC(ff_h264_chroma422_dc_dequant_idct)(DCTELEM *p_block, int qmul){
+void FUNCC(ff_h264_chroma422_dc_dequant_idct)(DCTELEM *_block, int qmul){
     const int stride= 16*2;
     const int xStride= 16;
     int i;
     int temp[8];
     static const uint8_t x_offset[2]={0, 16};
-    dctcoef *block = (dctcoef*)p_block;
+    dctcoef *block = (dctcoef*)_block;
 
     for(i=0; i<4; i++){
         temp[2*i+0] = block[stride*i + xStride*0] + block[stride*i + xStride*1];
@@ -321,22 +311,13 @@ void FUNCC(ff_h264_chroma422_dc_dequant_idct)(DCTELEM *p_block, int qmul){
         block[stride*2+offset]= ((z1 - z2)*qmul + 128) >> 8;
         block[stride*3+offset]= ((z0 - z3)*qmul + 128) >> 8;
     }
-
-#if 0
-    av_log(NULL, AV_LOG_INFO, "after chroma dc\n");
-    for (int i = 0; i < 256; i++) {
-        av_log(NULL, AV_LOG_INFO, "%5d ", block[i]);
-        if (!((i+1) % 16))
-            av_log(NULL, AV_LOG_INFO, "\n");
-    }
-#endif
 }
 
-void FUNCC(ff_h264_chroma_dc_dequant_idct)(DCTELEM *p_block, int qmul){
+void FUNCC(ff_h264_chroma_dc_dequant_idct)(DCTELEM *_block, int qmul){
     const int stride= 16*2;
     const int xStride= 16;
     int a,b,c,d,e;
-    dctcoef *block = (dctcoef*)p_block;
+    dctcoef *block = (dctcoef*)_block;
 
     a= block[stride*0 + xStride*0];
     b= block[stride*0 + xStride*1];