Mercurial > libavcodec.hg
comparison h263dec.c @ 931:5bc072934017 libavcodec
support dumping the qscale stuff to the screen
author | michaelni |
---|---|
date | Wed, 18 Dec 2002 09:23:24 +0000 |
parents | 5627a7b7ce83 |
children | caa77cd960c0 |
comparison
equal
deleted
inserted
replaced
930:6bcb214d6a17 | 931:5bc072934017 |
---|---|
673 } | 673 } |
674 } | 674 } |
675 | 675 |
676 } | 676 } |
677 #endif | 677 #endif |
678 | |
678 if(s->pict_type==B_TYPE || s->low_delay){ | 679 if(s->pict_type==B_TYPE || s->low_delay){ |
679 *pict= *(AVFrame*)&s->current_picture; | 680 *pict= *(AVFrame*)&s->current_picture; |
680 } else { | 681 } else { |
681 *pict= *(AVFrame*)&s->last_picture; | 682 *pict= *(AVFrame*)&s->last_picture; |
683 } | |
684 | |
685 if(avctx->debug&FF_DEBUG_QP){ | |
686 int8_t *qtab= pict->qscale_table; | |
687 int x,y; | |
688 | |
689 for(y=0; y<s->mb_height; y++){ | |
690 for(x=0; x<s->mb_width; x++){ | |
691 printf("%2d ", qtab[x + y*s->mb_width]); | |
692 } | |
693 printf("\n"); | |
694 } | |
695 printf("\n"); | |
682 } | 696 } |
683 | 697 |
684 /* Return the Picture timestamp as the frame number */ | 698 /* Return the Picture timestamp as the frame number */ |
685 /* we substract 1 because it is added on utils.c */ | 699 /* we substract 1 because it is added on utils.c */ |
686 avctx->frame_number = s->picture_number - 1; | 700 avctx->frame_number = s->picture_number - 1; |