diff options
author | John Koleszar <jkoleszar@google.com> | 2013-01-08 10:11:26 -0800 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2013-01-08 10:19:59 -0800 |
commit | 879cb7d96259a71eea0038452a00241650589084 (patch) | |
tree | 4d8c0a86fcdb6655d10647837e6c3adfb38639c4 /vp9/encoder/vp9_onyx_if.c | |
parent | c14439c3d3db8dfa44a30c4edc50f56250ce4cd3 (diff) | |
parent | bdca030cafc31446afc1685906f7c44e1850ed84 (diff) | |
download | libvpx-879cb7d96259a71eea0038452a00241650589084.tar libvpx-879cb7d96259a71eea0038452a00241650589084.tar.gz libvpx-879cb7d96259a71eea0038452a00241650589084.tar.bz2 libvpx-879cb7d96259a71eea0038452a00241650589084.zip |
Merge vp9-preview changes into experimental branch
Incorportate vp9-preview changes by merging master branch into experimental.
Conflicts:
test/test.mk
vp9/common/vp9_filter.c
vp9/common/vp9_idctllm.c
vp9/common/vp9_invtrans.h
vp9/common/vp9_mbpitch.c
vp9/common/vp9_rtcd_defs.sh
vp9/common/vp9_systemdependent.h
vp9/common/vp9_type_aliases.h
vp9/common/x86/vp9_asm_stubs.c
vp9/common/x86/vp9_subpixel_mmx.asm
vp9/decoder/vp9_decodframe.c
vp9/decoder/vp9_dequantize.c
vp9/decoder/vp9_dequantize.h
vp9/decoder/vp9_onyxd_int.h
vp9/encoder/vp9_bitstream.c
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_rdopt.c
Change-Id: I17f51c3666d1b59cf1a699f87607cbc5d30a87c5
Diffstat (limited to 'vp9/encoder/vp9_onyx_if.c')
-rw-r--r-- | vp9/encoder/vp9_onyx_if.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c index 14948a0de..0e4b47ddf 100644 --- a/vp9/encoder/vp9_onyx_if.c +++ b/vp9/encoder/vp9_onyx_if.c @@ -148,7 +148,6 @@ static int calculate_minq_index(double maxq, double x3, double x2, double x, double c) { int i; double minqtarget; - double thisq; minqtarget = ((x3 * maxq * maxq * maxq) + (x2 * maxq * maxq) + @@ -159,7 +158,6 @@ static int calculate_minq_index(double maxq, minqtarget = maxq; for (i = 0; i < QINDEX_RANGE; i++) { - thisq = vp9_convert_qindex_to_q(i); if (minqtarget <= vp9_convert_qindex_to_q(i)) return i; } @@ -2925,8 +2923,6 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, int Loop = FALSE; int loop_count; - int this_q; - int last_zbin_oq; int q_low; int q_high; @@ -2940,8 +2936,6 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, int overshoot_seen = FALSE; int undershoot_seen = FALSE; - int loop_size_estimate = 0; - SPEED_FEATURES *sf = &cpi->sf; #if RESET_FOREACH_FILTER int q_low0; @@ -2949,6 +2943,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, int zbin_oq_high0; int zbin_oq_low0 = 0; int Q0; + int last_zbin_oq; int last_zbin_oq0; int active_best_quality0; int active_worst_quality0; @@ -3163,7 +3158,9 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, // Determine initial Q to try Q = vp9_regulate_q(cpi, cpi->this_frame_target); } +#if RESET_FOREACH_FILTER last_zbin_oq = cpi->zbin_over_quant; +#endif // Set highest allowed value for Zbin over quant if (cm->frame_type == KEY_FRAME) @@ -3267,7 +3264,6 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, vp9_clear_system_state(); // __asm emms; vp9_set_quantizer(cpi, Q); - this_q = Q; if (loop_count == 0) { @@ -3503,7 +3499,9 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, // Loop = ((Q != last_q) || (last_zbin_oq != cpi->zbin_over_quant)) ? TRUE : FALSE; Loop = ((Q != last_q)) ? TRUE : FALSE; +#if RESET_FOREACH_FILTER last_zbin_oq = cpi->zbin_over_quant; +#endif } else Loop = FALSE; @@ -3692,9 +3690,6 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, * needed in motion search besides loopfilter */ cm->last_frame_type = cm->frame_type; - // Keep a copy of the size estimate used in the loop - loop_size_estimate = cpi->projected_frame_size; - // Update rate control heuristics cpi->total_byte_count += (*size); cpi->projected_frame_size = (*size) << 3; @@ -3795,7 +3790,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, "%6d %5d %5d %5d %8d %8.2f %10d %10.3f" "%10.3f %8d %10d %10d %10d\n", cpi->common.current_video_frame, cpi->this_frame_target, - cpi->projected_frame_size, loop_size_estimate, + cpi->projected_frame_size, 0, //loop_size_estimate, (cpi->projected_frame_size - cpi->this_frame_target), (int)cpi->total_target_vs_actual, (cpi->oxcf.starting_buffer_level - cpi->bits_off_target), @@ -3825,7 +3820,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, "%8d %10d %10d %10d\n", cpi->common.current_video_frame, cpi->this_frame_target, cpi->projected_frame_size, - loop_size_estimate, + 0, //loop_size_estimate, (cpi->projected_frame_size - cpi->this_frame_target), (int)cpi->total_target_vs_actual, (cpi->oxcf.starting_buffer_level - cpi->bits_off_target), |