vp9-rtc: Avoid TM intra on big blocks for screen
authorMarco Paniconi <marpan@google.com>
Wed, 13 Mar 2019 22:55:18 +0000 (15:55 -0700)
committerMarco Paniconi <marpan@google.com>
Wed, 13 Mar 2019 22:59:20 +0000 (15:59 -0700)
For screen content real-time mode: don't check TM
intra for bsize >= BLOCK_32X32.

Small speedup and avoid some artifacts seen
in scrolling screen content.

Change-Id: I72d7731eeb6ac9ee96e65af522c1a9aabb6dc4ef

vp9/encoder/vp9_speed_features.c

index 8c59662..253aae5 100644 (file)
@@ -588,7 +588,10 @@ static void set_rt_speed_feature_framesize_independent(
       int i;
       if (content == VP9E_CONTENT_SCREEN) {
         for (i = 0; i < BLOCK_SIZES; ++i)
-          sf->intra_y_mode_bsize_mask[i] = INTRA_DC_TM_H_V;
+          if (i >= BLOCK_32X32)
+            sf->intra_y_mode_bsize_mask[i] = INTRA_DC_H_V;
+          else
+            sf->intra_y_mode_bsize_mask[i] = INTRA_DC_TM_H_V;
       } else {
         for (i = 0; i < BLOCK_SIZES; ++i)
           if (i > BLOCK_16X16)