aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-18 09:23:24 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-18 09:23:24 +0000
commit8fc698950b5fdbb947ae8718e10adca6bd1560fa (patch)
treec16dc693cb6e3069bb778f18ea3a05ac0b087677
parent59b571c1e45f6ed3bef7589ae026a1526a07be88 (diff)
downloadffmpeg-8fc698950b5fdbb947ae8718e10adca6bd1560fa.tar.gz
support dumping the qscale stuff to the screen
Originally committed as revision 1339 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h263dec.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 4607dc12fe..e7c49237e9 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -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;