diff options
author | Paul Wilkins <paulwilkins@google.com> | 2017-02-16 10:02:09 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-16 10:02:09 +0000 |
commit | 60a10116d13c4394bed943e0213631735d03bb74 (patch) | |
tree | 1d6f56139f5a00a7787111f457c5b03ee0a81f3d /vp9/encoder | |
parent | 543ebc900f685d85c8c638c277666e1608c937e7 (diff) | |
parent | cfc79a357a4a6c954781d755b786fadf65f46b60 (diff) | |
download | libvpx-60a10116d13c4394bed943e0213631735d03bb74.tar libvpx-60a10116d13c4394bed943e0213631735d03bb74.tar.gz libvpx-60a10116d13c4394bed943e0213631735d03bb74.tar.bz2 libvpx-60a10116d13c4394bed943e0213631735d03bb74.zip |
Merge "Disconnect ARF breakout from frame boost."
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_firstpass.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 4815792ab..ed9447cc8 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -42,7 +42,6 @@ #define OUTPUT_FPF 0 #define ARF_STATS_OUTPUT 0 -#define BOOST_BREAKOUT 12.5 #define FACTOR_PT_LOW 0.70 #define FACTOR_PT_HIGH 0.90 #define FIRST_PASS_Q 10.0 @@ -2269,6 +2268,7 @@ static void adjust_group_arnr_filter(VP9_COMP *cpi, double section_noise, } // Analyse and define a gf/arf group. +#define ARF_DECAY_BREAKOUT 0.10 static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) { VP9_COMMON *const cm = &cpi->common; RATE_CONTROL *const rc = &cpi->rc; @@ -2447,7 +2447,7 @@ static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) { ((mv_ratio_accumulator > mv_ratio_accumulator_thresh) || (abs_mv_in_out_accumulator > abs_mv_in_out_thresh) || (mv_in_out_accumulator < -mv_in_out_thresh) || - ((boost_score - old_boost_score) < BOOST_BREAKOUT)))) { + (decay_accumulator < ARF_DECAY_BREAKOUT)))) { boost_score = old_boost_score; break; } @@ -2601,7 +2601,7 @@ static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) { // ratio in the next frame. #define II_IMPROVEMENT_THRESHOLD 3.5 #define KF_II_MAX 128.0 -#define BOOST_FACTOR 12.5 +#define II_FACTOR 12.5 static int test_candidate_kf(TWO_PASS *twopass, const FIRSTPASS_STATS *last_frame, const FIRSTPASS_STATS *this_frame, @@ -2640,7 +2640,7 @@ static int test_candidate_kf(TWO_PASS *twopass, // Examine how well the key frame predicts subsequent frames. for (i = 0; i < 16; ++i) { - double next_iiratio = (BOOST_FACTOR * local_next_frame.intra_error / + double next_iiratio = (II_FACTOR * local_next_frame.intra_error / DOUBLE_DIVIDE_CHECK(local_next_frame.coded_error)); if (next_iiratio > KF_II_MAX) next_iiratio = KF_II_MAX; |