Adding a speed feature for tx_size search
This patch factors out a function that computes the rd cost for
a given transform type given the transform partition already
computed. This is then used to develop a speed feature where the
transform size search disables trellis optimization but once the
transform sizes are decided, a final search is conducted with
optimization turned back on.
This patch does not change anything in speed 0 yet.
Change-Id: I30acfc5e2dd353d711e5f4260d5b344847b03ade
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index 2381c77..defdff8 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -3450,7 +3450,7 @@
if (cpi->sf.tx_size_search_method == USE_LARGESTALL)
return ALLOW_32X32 + CONFIG_TX64X64;
else if (cpi->sf.tx_size_search_method == USE_FULL_RD ||
- cpi->sf.tx_size_search_method == USE_TX_8X8)
+ cpi->sf.tx_size_search_method == USE_FAST_RD)
return TX_MODE_SELECT;
else
return cpi->common.tx_mode;