diff options
author | Mashiat Sarker Shakkhar <shahriman_ams@yahoo.com> | 2011-11-08 18:42:01 +0600 |
---|---|---|
committer | Mashiat Sarker Shakkhar <shahriman_ams@yahoo.com> | 2011-11-20 14:51:39 +0600 |
commit | d5aef477e65fef5af885ed9129baf33553307bbd (patch) | |
tree | 1b4536f8ab3e90da53f4684f485b2b0e2fde3ccf | |
parent | f3d349f697bc91c89d8300032f7f19b8f066704f (diff) | |
download | ffmpeg-d5aef477e65fef5af885ed9129baf33553307bbd.tar.gz |
Output decoded residues
-rw-r--r-- | libavcodec/wmalosslessdec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index aec042b393..42ff19ffc9 100644 --- a/libavcodec/wmalosslessdec.c +++ b/libavcodec/wmalosslessdec.c @@ -287,6 +287,8 @@ typedef struct WmallDecodeCtx { #define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) +//static int num_logged_tiles; + /** *@brief helper function to print the most important members of the context *@param s context @@ -335,6 +337,7 @@ static av_cold int decode_init(AVCodecContext *avctx) int log2_max_num_subframes; int num_possible_block_sizes; + //num_logged_tiles = 0; s->avctx = avctx; dsputil_init(&s->dsp, avctx); init_put_bits(&s->pb, s->frame_data, MAX_FRAMESIZE); @@ -694,8 +697,12 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size) residue = residue >> 1; s->channel_residues[ch][i] = residue; + //if (num_logged_tiles < 1) + av_log(0, 0, "%4d ", residue); // dprintf(s->avctx, "%5d: %5d %10d %12d %12d %5d %-16d %04x\n",i, quo, ave_mean, s->ave_sum[ch], rem, rem_bits, s->channel_residues[ch][i], show_bits(&s->gb, 16)); } + av_log(0, 0, "\n"); + //num_logged_tiles++; return 0; |