]> granicus.if.org Git - libvpx/commitdiff
vp8: Increase rate threshold for overshoot-drop
authorMarco Paniconi <marpan@google.com>
Wed, 3 Oct 2018 22:25:32 +0000 (15:25 -0700)
committerMarco Paniconi <marpan@google.com>
Wed, 3 Oct 2018 22:29:17 +0000 (15:29 -0700)
Increase the rate threshold for the dropping when
overshoot is detected during encoding. This helps
to prevent some unneccessary drops for hard content.

Change-Id: I258bf33883d46347efd44e1e192cb25c444d05fe

vp8/encoder/ratectrl.c

index fc833bccc9445ef08eb12caeb7f6fc8669e0860a..e89f71ed8fb4e49e5778bb951f165d5ed9561378 100644 (file)
@@ -1474,7 +1474,7 @@ int vp8_drop_encodedframe_overshoot(VP8_COMP *cpi, int Q) {
     // QP threshold: only allow dropping if we are not close to qp_max.
     int thresh_qp = 3 * cpi->worst_quality >> 2;
     // Rate threshold, in bytes.
-    int thresh_rate = 2 * (cpi->av_per_frame_bandwidth >> 3);
+    int thresh_rate = 3 * (cpi->av_per_frame_bandwidth >> 3);
     // Threshold for the average (over all macroblocks) of the pixel-sum
     // residual error over 16x16 block.
     int thresh_pred_err_mb = (200 << 4);