]> granicus.if.org Git - libvpx/commitdiff
vp9: Remove limit on QP on key frame for CBR.
authorMarco Paniconi <marpan@google.com>
Wed, 18 Apr 2018 22:54:03 +0000 (15:54 -0700)
committerMarco Paniconi <marpan@google.com>
Wed, 18 Apr 2018 22:57:42 +0000 (15:57 -0700)
This piece was carried over the VBR routine, for CBR
mode we don't want to apply this limit.

Change-Id: Ib9e9937eabeff8cfd30e11c9bd17444cc2b591aa

vp9/encoder/vp9_ratectrl.c

index 748a0ddd82d93f0399e2825c69a7fccde8e386c3..b017a39d994c63561795cb5eda179889a0634d83 100644 (file)
@@ -832,19 +832,6 @@ static int rc_pick_q_and_bounds_one_pass_cbr(const VP9_COMP *cpi,
   *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;