From 42891098f36ecbc2aea611ecea778fdf38d834ac Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Tue, 28 Feb 2012 11:49:12 -0800 Subject: [PATCH] Try to enable 8x8 tranform for smaller resolution The commit overall on derf test is break even to very slightly positive comparing to all 4x4 transform. Change-Id: I2a7c19599aa54c2d3a5b35db0dc891ba8a6a2b26 --- vp8/encoder/ratectrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vp8/encoder/ratectrl.c b/vp8/encoder/ratectrl.c index 05dc09e..a501c3e 100644 --- a/vp8/encoder/ratectrl.c +++ b/vp8/encoder/ratectrl.c @@ -252,7 +252,8 @@ void vp8_setup_key_frame(VP8_COMP *cpi) void vp8_setup_inter_frame(VP8_COMP *cpi) { #if CONFIG_T8X8 - if(cpi->common.Width * cpi->common.Height > 640*360) + if(cpi->common.Width * cpi->common.Height > 640*360 + ||cpi->this_frame_target < 7 * cpi->common.MBs) cpi->common.txfm_mode = ALLOW_8X8; else cpi->common.txfm_mode = ONLY_4X4; -- 2.7.4