ref: 4d1637ff67a8912504e27d31ff445b0be4531451
parent: 1c0857d648c1e2eb13de3d2e717b1848bbc602d9
author: Paul Wilkins <paulwilkins@google.com>
date: Tue Apr 2 12:31:33 EDT 2019
Film mode: Raise threshold for intra modes Substantially increase the threshold for applying variance adjustment in rd_variance_adjustment() for intra modes only, especially for DC_PRED. Change-Id: Idb3f0c5aca5ab58c9b79c3e993247719054d79c9
--- 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;