From: Adrian Grange Date: Fri, 9 May 2014 16:44:47 +0000 (-0700) Subject: Move frame stats output to after update X-Git-Tag: v1.4.0~1607^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d2fff7cb45b141b341d9430618b444892d59066;p=libvpx Move frame stats output to after update Frame-level stats were being output before the post-encode update had been carried out. Change-Id: I67405c67c020cde4468f5db3cee76f7de5b624eb --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index cc2c552a7..ecdcaddaf 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -2236,9 +2236,6 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, } } -#if 0 - output_frame_level_debug_stats(cpi); -#endif if (cpi->refresh_golden_frame == 1) cpi->frame_flags |= FRAMEFLAGS_GOLDEN; else @@ -2254,6 +2251,10 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, cm->last_frame_type = cm->frame_type; vp9_rc_postencode_update(cpi, *size); +#if 0 + output_frame_level_debug_stats(cpi); +#endif + if (cm->frame_type == KEY_FRAME) { // Tell the caller that the frame was coded as a key frame *frame_flags = cpi->frame_flags | FRAMEFLAGS_KEY;