Commit dc814420 authored by gpoirier's avatar gpoirier

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6872 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d14109fe
...@@ -4279,6 +4279,10 @@ STOP_TIMER("pred-conv")} ...@@ -4279,6 +4279,10 @@ STOP_TIMER("pred-conv")}
if(avctx->flags&CODEC_FLAG_PASS1) if(avctx->flags&CODEC_FLAG_PASS1)
ff_write_pass1_stats(&s->m); ff_write_pass1_stats(&s->m);
s->m.last_pict_type = s->m.pict_type; 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(); emms_c();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment