shithub: libvpx

Download patch

ref: e6ad1e4681fece1229e7f7a41982246488542ebf
parent: 6fd9a17c92c676d0406ac82729c4a6aaeb8b67de
parent: 4d1637ff67a8912504e27d31ff445b0be4531451
author: Paul Wilkins <paulwilkins@google.com>
date: Tue Apr 9 09:37:09 EDT 2019

Merge "Film mode: Raise threshold for intra modes"

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -3171,6 +3171,11 @@
       double noise_factor =
           (double)cpi->twopass.gf_group.group_noise_energy / SECTION_NOISE_DEF;
       low_var_thresh = (unsigned int)(low_var_thresh * noise_factor);
+
+      if (ref_frame == INTRA_FRAME) {
+        low_var_thresh *= 2;
+        if (this_mode == DC_PRED) low_var_thresh *= 5;
+      }
     }
   } else {
     low_var_thresh = LOW_VAR_THRESH / 2;