Commit ac211fe2 authored by Jerome Jiang's avatar Jerome Jiang

vp9: Adjust logic in source sad for screen content.

Change-Id: I917d106f4c95ea44e413e23881f6303982e1a6a3
parent 3c73e587
......@@ -1011,7 +1011,8 @@ static void avg_source_sad(VP9_COMP *cpi, MACROBLOCK *x, int shift,
: 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment