]> granicus.if.org Git - libvpx/commitdiff
vp8: Adjust the pred_err threhsold for drop on overshoot.
authorMarco <marpan@google.com>
Mon, 12 Jun 2017 16:51:47 +0000 (09:51 -0700)
committerMarco <marpan@google.com>
Mon, 12 Jun 2017 16:54:16 +0000 (09:54 -0700)
Change-Id: Ica2a09ac87160936b6f7bd01f167f464ea3ac41c

vp8/encoder/ratectrl.c

index 8e094c4a4dfe7bb8d9e7b0a5b8cd1c12ebe24a1b..422eee0317b32a2f74d9281201e857ea1593183b 100644 (file)
@@ -1459,7 +1459,7 @@ int vp8_drop_encodedframe_overshoot(VP8_COMP *cpi, int Q) {
     int thresh_rate = 2 * (cpi->av_per_frame_bandwidth >> 3);
     // Threshold for the average (over all macroblocks) of the pixel-sum
     // residual error over 16x16 block. Should add QP dependence on threshold?
-    int thresh_pred_err_mb = (256 << 4);
+    int thresh_pred_err_mb = (200 << 4);
     int pred_err_mb = (int)(cpi->mb.prediction_error / cpi->common.MBs);
     if (Q < thresh_qp && cpi->projected_frame_size > thresh_rate &&
         pred_err_mb > thresh_pred_err_mb) {