changeset 931:5bc072934017 libavcodec

support dumping the qscale stuff to the screen
author michaelni
date Wed, 18 Dec 2002 09:23:24 +0000
parents 6bcb214d6a17
children 176fd8c8e8a8
files h263dec.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Tue Dec 17 11:25:29 2002 +0000
+++ b/h263dec.c	Wed Dec 18 09:23:24 2002 +0000
@@ -675,12 +675,26 @@
 
 }
 #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;