shithub: libvpx

Download patch

ref: d72cd51d83947064ef6354f02b1df59d2d3f1317
parent: 9e6fa9bfb8296ce9fe0ad94bf63c5335f8ca35dc
author: Marco Paniconi <marpan@google.com>
date: Mon Jul 23 12:24:15 EDT 2018

vp9: Adjust reset segment for real-time screen-content

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

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1615,7 +1615,7 @@
           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);
     }