diff options
author | Tom Harper <d.thomas.harper@gmail.com> | 2006-11-02 19:11:20 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2006-11-02 19:11:20 +0000 |
commit | a9dc190f17a063f39f08040fc8047891ac6c3cc8 (patch) | |
tree | e0af6483a9cb0c5ad4c6eb25fe42e142a61106f8 /libavcodec/snow.c | |
parent | 786b30af267d69b7cf7d06c72b1d5f80d16f9a88 (diff) | |
download | ffmpeg-a9dc190f17a063f39f08040fc8047891ac6c3cc8.tar.gz |
outputs bit spent on various encoding functions (motion vectors, overhead, etc)
back into AVCodecContext for external consumption
patch by Tom Harper % d P thomas P harper A gmail P com %
Original thread:
Date: Nov 2, 2006 1:30 AM
Subject: [Ffmpeg-devel] [patch] snow stats
Originally committed as revision 6872 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 9d1eec1e81..dbff5d4a59 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -4279,6 +4279,10 @@ STOP_TIMER("pred-conv")} if(avctx->flags&CODEC_FLAG_PASS1) ff_write_pass1_stats(&s->m); s->m.last_pict_type = s->m.pict_type; + avctx->frame_bits = s->m.frame_bits; + avctx->mv_bits = s->m.mv_bits; + avctx->misc_bits = s->m.misc_bits; + avctx->p_tex_bits = s->m.p_tex_bits; emms_c(); |