summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaulwilkins <paulwilkins@google.com>2016-09-30 14:51:39 +0100
committerpaulwilkins <paulwilkins@google.com>2016-10-26 17:52:37 +0100
commitccd6a8e2fa0b5ac340a4dd63533ff916200bcd6e (patch)
tree7367f9105b8c288993ce4dd338e38eb89a0cfd4c
parent9720b58aacaaec301404b4fafa2e46f94c60c5f1 (diff)
downloadlibvpx-ccd6a8e2fa0b5ac340a4dd63533ff916200bcd6e.tar
libvpx-ccd6a8e2fa0b5ac340a4dd63533ff916200bcd6e.tar.gz
libvpx-ccd6a8e2fa0b5ac340a4dd63533ff916200bcd6e.tar.bz2
libvpx-ccd6a8e2fa0b5ac340a4dd63533ff916200bcd6e.zip
Removal of a couple of two pass adjustments.
Removed a couple of adjustments that no longer move the needle much but complicate the process of tuning. Change-Id: Ie320f5cf155e6aac14a4757ea9ada2cd59f27590
-rw-r--r--vp9/encoder/vp9_firstpass.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c
index 2f1fe360d..fc0748f60 100644
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -1578,7 +1578,7 @@ static double get_sr_decay_rate(const VP9_COMP *cpi,
sr_decay = 1.0 - (SR_DIFF_PART * sr_diff) - motion_amplitude_part -
(INTRA_PART * modified_pcnt_intra);
}
- return VPXMAX(sr_decay, VPXMIN(DEFAULT_DECAY_LIMIT, modified_pct_inter));
+ return VPXMAX(sr_decay, DEFAULT_DECAY_LIMIT);
}
// This function gives an estimate of how badly we believe the prediction
@@ -1695,16 +1695,13 @@ static double calc_frame_boost(VP9_COMP *cpi, const FIRSTPASS_STATS *this_frame,
// Underlying boost factor is based on inter error ratio.
frame_boost = (BASELINE_ERR_PER_MB * num_mbs) /
DOUBLE_DIVIDE_CHECK(this_frame->coded_error);
- frame_boost = frame_boost * BOOST_FACTOR * boost_q_correction;
- // Increase boost for frames where new data coming into frame (e.g. zoom out).
- // Slightly reduce boost if there is a net balance of motion out of the frame
- // (zoom in). The range for this_frame_mv_in_out is -1.0 to +1.0.
+ // Small adjustment for cases where there is a zoom out
if (this_frame_mv_in_out > 0.0)
frame_boost += frame_boost * (this_frame_mv_in_out * 2.0);
- // In the extreme case the boost is halved.
- else
- frame_boost += frame_boost * (this_frame_mv_in_out / 2.0);
+
+ // Q correction and scalling
+ frame_boost = frame_boost * BOOST_FACTOR * boost_q_correction;
return VPXMIN(frame_boost, max_boost * boost_q_correction);
}