Commit 5d0bef47 authored by Marco Paniconi's avatar Marco Paniconi Committed by Gerrit Code Review

Merge "vp9: Adjust logic in source sad for screen content."

parents e48dfcea ac211fe2
......@@ -1011,7 +1011,8 @@ static uint64_t 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