shithub: libvpx

Download patch

ref: e50f4e4112a0e031dfc9df7a115fb0f8931bd4e1
parent: f836d8ba87dcba437228580fe65afe151ccf7659
author: Marco Paniconi <marpan@google.com>
date: Thu Apr 25 12:12:19 EDT 2019

vp9-rtc: Adjust thresh for 4x4 tx selection

For screen content nonrd_pickmode: reduce
threshold to select 4x4 tx_size, under certain
conditions.

Change-Id: If68c30172272868033f0e3011e53c76b4e7c48b6

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -370,7 +370,7 @@
       tx_size = TX_16X16;
     // For screen-content force 4X4 tx_size over 8X8, for large variance.
     if (cpi->oxcf.content == VP9E_CONTENT_SCREEN && tx_size == TX_8X8 &&
-        bsize <= BLOCK_16X16 && var > (ac_thr << 6))
+        bsize <= BLOCK_16X16 && ((var >> 5) > (unsigned int)ac_thr))
       tx_size = TX_4X4;
   } else {
     tx_size = VPXMIN(max_txsize_lookup[bsize],