support dumping the qscale stuff to the screen
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Dec 2002 09:23:24 +0000 (09:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Dec 2002 09:23:24 +0000 (09:23 +0000)
Originally committed as revision 1339 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263dec.c

index 4607dc12fe295f023e476b768906fb4285c77e6d..e7c49237e9a1bd7b4b4bb77efae6c60217e49aa5 100644 (file)
@@ -675,12 +675,26 @@ retry:
 
 }
 #endif
+
     if(s->pict_type==B_TYPE || s->low_delay){
         *pict= *(AVFrame*)&s->current_picture;
     } else {
         *pict= *(AVFrame*)&s->last_picture;
     }
 
+    if(avctx->debug&FF_DEBUG_QP){
+        int8_t *qtab= pict->qscale_table;
+        int x,y;
+        
+        for(y=0; y<s->mb_height; y++){
+            for(x=0; x<s->mb_width; x++){
+                printf("%2d ", qtab[x + y*s->mb_width]);
+            }
+            printf("\n");
+        }
+        printf("\n");
+    }
+
     /* Return the Picture timestamp as the frame number */
     /* we substract 1 because it is added on utils.c    */
     avctx->frame_number = s->picture_number - 1;