shithub: libvpx

Download patch

ref: 55f2e4a0a80db143e1b6fd81c918c8920ec94fc0
parent: a3389823576724a29226b3aee45f48e154735003
parent: f9eee0cfbe67bbe20cfa5b3c5627b1eec18eaed9
author: Marco Paniconi <marpan@google.com>
date: Tue Feb 18 21:24:39 EST 2020

Merge "vp9-rtc: Increase partition threshold to 8x8 for high Q"

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -649,6 +649,10 @@
       thresholds[0] = threshold_base >> 3;
       thresholds[1] = threshold_base >> 1;
       thresholds[2] = threshold_base << 3;
+      if (cpi->rc.avg_frame_qindex[INTER_FRAME] > 220)
+        thresholds[2] = thresholds[2] << 2;
+      else if (cpi->rc.avg_frame_qindex[INTER_FRAME] > 200)
+        thresholds[2] = thresholds[2] << 1;
     } else if (cm->width < 1280 && cm->height < 720) {
       thresholds[1] = (5 * threshold_base) >> 2;
     } else if (cm->width < 1920 && cm->height < 1080) {