From b09f628df8ba80212c4dc8bab82d23ef97da7b42 Mon Sep 17 00:00:00 2001 From: Paul Wilkins Date: Wed, 27 Mar 2019 17:57:00 +0000 Subject: [PATCH] Allow more Intra choices in film mode. Disable part of a speed feature that blocks all intra modes except DC_PRED when the source variance is low. Change-Id: I2956951fd05933a39f7225d4dfe14e019410fee3 --- vp9/encoder/vp9_rdopt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index 2c54bf5..edba324 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -3459,7 +3459,8 @@ void vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, TileDataEnc *tile_data, // Disable intra modes other than DC_PRED for blocks with low variance // Threshold for intra skipping based on source variance // TODO(debargha): Specialize the threshold for super block sizes - const unsigned int skip_intra_var_thresh = 64; + const unsigned int skip_intra_var_thresh = + (cpi->oxcf.content == VP9E_CONTENT_FILM) ? 0 : 64; if ((mode_search_skip_flags & FLAG_SKIP_INTRA_LOWVAR) && x->source_variance < skip_intra_var_thresh) continue; -- 2.7.4