]> granicus.if.org Git - libvpx/commitdiff
vp9: Adjust reset segment for real-time screen-content
authorMarco Paniconi <marpan@google.com>
Mon, 23 Jul 2018 23:24:15 +0000 (16:24 -0700)
committerMarco Paniconi <marpan@google.com>
Tue, 24 Jul 2018 05:27:17 +0000 (22:27 -0700)
For real-time screen content mode when the short_circuit
flat_blocks feauture is enabled: reset segment to 0 for
coding block if its flat, regardless of temporal source_sad.
Reduces some artifacts on flat areas.

Change-Id: I9620e424bedc5a13f87cc4f66af7c0e86043c89c

vp9/encoder/vp9_pickmode.c

index bbbd3e83787922ac64a43bcd6435a262b056ae95..8248d12e66c705f7e9b93487f4b9641938f862ae 100644 (file)
@@ -1615,7 +1615,7 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, TileDataEnc *tile_data,
           vp9_get_sby_perpixel_variance(cpi, &x->plane[0].src, bsize);
 
     if (cpi->oxcf.content == VP9E_CONTENT_SCREEN && mi->segment_id > 0 &&
-        x->zero_temp_sad_source && x->source_variance == 0) {
+        x->source_variance == 0) {
       mi->segment_id = 0;
       vp9_init_plane_quantizers(cpi, x);
     }