ref: a2769bb73d005c9f94c07fef808fd2aee7d9b5a4
parent: 997e19092ece9026b68fba916df2da5c3c489e03
author: Paul Wilkins <[email protected]>
date: Sat Oct 19 08:24:59 EDT 2013
Reduced delta for kf/gf/arf when at maxq. Delta reduced because of concern about popping on some very hard clips. Also allow some frame recode at speed 2 for kf/gf/arf. Change-Id: Ib47dff42da41aa6eec83b7285fcaaca24abb851e
--- a/vp9/encoder/vp9_onyx_if.c
+++ b/vp9/encoder/vp9_onyx_if.c
@@ -826,6 +826,7 @@
sf->last_partitioning_redo_frequency = 3;
sf->adaptive_rd_thresh = 2;
+ sf->recode_loop = 2;
sf->mode_skip_start = 11;
sf->intra_y_mode_mask[TX_32X32] = INTRA_DC_H_V;
sf->intra_y_mode_mask[TX_16X16] = INTRA_DC_H_V;
@@ -2782,11 +2783,12 @@
// Limit Q range for the adaptive loop.
if (cm->frame_type == KEY_FRAME && !cpi->this_key_frame_forced) {
- *top_index = cpi->active_best_quality;
+ *top_index =
+ (cpi->active_worst_quality + cpi->active_best_quality * 3) / 4;
} else if (!cpi->is_src_frame_alt_ref &&
(cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame)) {
*top_index =
- (cpi->active_worst_quality + cpi->active_best_quality * 3) / 4;
+ (cpi->active_worst_quality + cpi->active_best_quality) / 2;
} else {
*top_index = cpi->active_worst_quality;
}