ref: 2b369bf63ccb709ce0607ffa4eedcfea1c235b31
parent: 581b6b826e1b157fc38606e4755d5fb56a51bbdb
parent: 8a22a21cc0c5705cb23995013049b0bd80cceff5
author: Marco Paniconi <[email protected]>
date: Wed Apr 18 21:39:52 EDT 2018
Merge "vp9: Remove limit on QP on key frame for CBR."
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -832,19 +832,6 @@
*top_index = active_worst_quality;
*bottom_index = active_best_quality;
-#if LIMIT_QRANGE_FOR_ALTREF_AND_KEY
- // Limit Q range for the adaptive loop.
- if (cm->frame_type == KEY_FRAME && !rc->this_key_frame_forced &&
- !(cm->current_video_frame == 0)) {
- int qdelta = 0;
- vpx_clear_system_state();
- qdelta = vp9_compute_qdelta_by_rate(
- &cpi->rc, cm->frame_type, active_worst_quality, 2.0, cm->bit_depth);
- *top_index = active_worst_quality + qdelta;
- *top_index = (*top_index > *bottom_index) ? *top_index : *bottom_index;
- }
-#endif
-
// Special case code to try and match quality with forced key frames
if (cm->frame_type == KEY_FRAME && rc->this_key_frame_forced) {
q = rc->last_boosted_qindex;