shithub: libvpx

Download patch

ref: 59b17593cd38512aa2271a0429249d0753f9f926
parent: dfcf95162b6a1be91c771fb39f22a0116c802f41
author: Paul Wilkins <paulwilkins@google.com>
date: Fri Dec 7 12:46:34 EST 2018

Strengthened film grain setting.

This patch increases the preference for maintaining similar variance
between source and reconstruction and thus helps improve film grain
retention.

The changes are only active when film mode is selected

Change-Id: I3bc082dca678a0f32ec00f30f5d90d0f95ca2381

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -2999,8 +2999,8 @@
 // on the relative variance of the source and reconstruction.
 #define VERY_LOW_VAR_THRESH 2
 #define LOW_VAR_THRESH 5
-#define VAR_MULT 100
-static unsigned int max_var_adjust[VP9E_CONTENT_INVALID] = { 16, 16, 100 };
+#define VAR_MULT 250
+static unsigned int max_var_adjust[VP9E_CONTENT_INVALID] = { 16, 16, 250 };
 
 static void rd_variance_adjustment(VP9_COMP *cpi, MACROBLOCK *x,
                                    BLOCK_SIZE bsize, int64_t *this_rd,