Mercurial > libavcodec.hg
changeset 4123:5c86acb39889 libavcodec
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
author | gpoirier |
---|---|
date | Thu, 02 Nov 2006 19:11:20 +0000 |
parents | daae66c03857 |
children | 22de53ac033a |
files | snow.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/snow.c Wed Nov 01 22:39:58 2006 +0000 +++ b/snow.c Thu Nov 02 19:11:20 2006 +0000 @@ -4279,6 +4279,10 @@ 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();