ref: ac211fe23efac5fcba6d3f26953c4fa737d053ec
parent: 3c73e587d118b8cca2de1e5436273e8b039195f7
author: Jerome Jiang <jianj@google.com>
date: Fri Jul 28 12:34:04 EDT 2017
vp9: Adjust logic in source sad for screen content. Change-Id: I917d106f4c95ea44e413e23881f6303982e1a6a3
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -1011,7 +1011,8 @@
: kHighSadHighSumdiff;
// Detect large lighting change.
- if (tmp_variance < (tmp_sse >> 3) && (tmp_sse - tmp_variance) > 10000)
+ if (cpi->oxcf.content != VP9E_CONTENT_SCREEN &&
+ tmp_variance < (tmp_sse >> 3) && (tmp_sse - tmp_variance) > 10000)
x->content_state_sb = kLowVarHighSumdiff;
else if (tmp_sad > (avg_source_sad_threshold << 1))
x->content_state_sb = kVeryHighSad;