summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-02-23 23:38:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-23 23:42:35 +0100
commit83111506201ef30bc65bbbf6780aaecfad608f7e (patch)
treeec4c584c1a8e22be33c27fac40637f904078668f /libavcodec
parent374eb2bab6c2e84c140771bdd9746672506a7590 (diff)
Make FF_DEBUG_DCT_COEFF output coeffs via av_log() instead of just via AVFrame.
This allows the values to be used without changing C code and is closer to how the other DEBUG flags work. If this causes a problem for any user of this flag, please tell me and ill split the flag in 2.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index efb0365905..6ba7142763 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1852,9 +1852,14 @@ void MPV_decode_mb_internal(MpegEncContext *s, DCTELEM block[12][64],
/* save DCT coefficients */
int i,j;
DCTELEM *dct = &s->current_picture.dct_coeff[mb_xy*64*6];
- for(i=0; i<6; i++)
- for(j=0; j<64; j++)
+ av_log(s->avctx, AV_LOG_DEBUG, "DCT coeffs of MB at %dx%d:\n", s->mb_x, s->mb_y);
+ for(i=0; i<6; i++){
+ for(j=0; j<64; j++){
*dct++ = block[i][s->dsp.idct_permutation[j]];
+ av_log(s->avctx, AV_LOG_DEBUG, "%5d", dct[-1]);
+ }
+ av_log(s->avctx, AV_LOG_DEBUG, "\n");
+ }
}
s->current_picture.qscale_table[mb_xy]= s->qscale;