shithub: libvpx

Download patch

ref: 70240a77b8decede28132fd4dbf1fa48713edea4
parent: b165451ad5def2caa84a8e002b3410439c3ac4d0
parent: d9fc28c0a15f6731b93796c5686af339c91c7401
author: Marco Paniconi <[email protected]>
date: Mon Sep 26 18:05:43 EDT 2016

Merge "vp9: Reduce frame loopfilter-level for 1 pass cbr."

--- a/vp9/encoder/vp9_picklpf.c
+++ b/vp9/encoder/vp9_picklpf.c
@@ -180,6 +180,10 @@
     }
 #else
     int filt_guess = ROUND_POWER_OF_TWO(q * 20723 + 1015158, 18);
+    if (cpi->oxcf.pass == 0 && cpi->oxcf.rc_mode == VPX_CBR &&
+        cpi->oxcf.content != VP9E_CONTENT_SCREEN && cm->frame_type != KEY_FRAME)
+      filt_guess = 5 * filt_guess >> 3;
+
 #endif  // CONFIG_VP9_HIGHBITDEPTH
     if (cm->frame_type == KEY_FRAME) filt_guess -= 4;
     lf->filter_level = clamp(filt_guess, min_filter_level, max_filter_level);