]> granicus.if.org Git - libvpx/commitdiff
Allow more Intra choices in film mode.
authorPaul Wilkins <paulwilkins@google.com>
Wed, 27 Mar 2019 17:57:00 +0000 (17:57 +0000)
committerPaul Wilkins <paulwilkins@google.com>
Wed, 27 Mar 2019 18:21:29 +0000 (18:21 +0000)
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

index 2c54bf5d3f4fd884ef3d9ebf8cdc548656d64a03..edba324d4b0f1d128fbf1d107ad8075f385c640c 100644 (file)
@@ -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;