]> granicus.if.org Git - libvpx/commitdiff
vp9: Add screen-content mode to overshoot detection.
authorMarco Paniconi <marpan@google.com>
Fri, 3 Aug 2018 17:45:41 +0000 (10:45 -0700)
committerMarco Paniconi <marpan@google.com>
Fri, 3 Aug 2018 18:00:08 +0000 (11:00 -0700)
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

index fa4571ceabfd4ce1a97f2d86d54da06c7d26f95c..3db11fcb0269e945304f71e4d233b49ed2db7bb2 100644 (file)
@@ -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