# HG changeset patch # User michaelni # Date 1040203404 0 # Node ID 5bc07293401705b635c4d9d5bf060218b3d8ca1f # Parent 6bcb214d6a17b2df1156b54869076ee9a5fd8901 support dumping the qscale stuff to the screen diff -r 6bcb214d6a17 -r 5bc072934017 h263dec.c --- 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; ymb_height; y++){ + for(x=0; xmb_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;