From 6fd9d0244c7d8941ce0004bcd2efce5d6676bef5 Mon Sep 17 00:00:00 2001 From: Marco Paniconi Date: Fri, 3 Aug 2018 10:45:41 -0700 Subject: [PATCH] vp9: Add screen-content mode to overshoot detection. For real-time 1 pass mode: overshoot detection and max_Q reset should only be for screen-content mode. This fixes some failures in the 1 pass VBR tests, from the commit: 2fae9991 Change-Id: I70cbe4e6fd83cfe0c7662f13b779551bf4f319cb --- vp9/encoder/vp9_encoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index fa4571cea..3db11fcb0 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -4053,6 +4053,7 @@ static int encode_without_recode_loop(VP9_COMP *cpi, size_t *size, } if (!cpi->sf.re_encode_overshoot_rt && + cpi->oxcf.content == VP9E_CONTENT_SCREEN && (cpi->rc.high_source_sad || (cpi->use_svc && cpi->svc.high_source_sad_superframe))) { // Check if this high_source_sad (scene/slide change) frame should be -- 2.40.0