Commit ade43d91 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

change to allow 8x8 transform always

This commit changed to enable the usage 8x8 transform for all frame
type, all resolution and all quantizer range. This has an overall
benefit .2% to .3% in term of compression, but more importantly,
the difficult clips benefits much more, up to 2% to 3% on clips
like football, harbour and so on.

We observed some weird humps on very high end on a couple of youtube
clips, but have determined the underly cause was the aggressive zbin
having an effect of lowering rate with lower quality, which have
an impact on slide show clips around 60DB.

The commit does not change the association between prediction mode
and transform size.

Change-Id: I33043bdce6207528ae00b4a4b26d8ff63cfea1f4
parent ecc28cda
......@@ -254,14 +254,9 @@ void vp8_setup_key_frame(VP8_COMP *cpi)
}
#endif
cpi->common.txfm_mode = ONLY_4X4;
if( cpi->common.Width * cpi->common.Height > 640*360
&& vp8_ac_yquant(cpi->common.base_qindex) > 171)
cpi->common.txfm_mode = ALLOW_8X8;
else
cpi->common.txfm_mode = ONLY_4X4;
cpi->common.txfm_mode = ALLOW_8X8;
//cpi->common.filter_level = 0; // Reset every key frame.
cpi->common.filter_level = cpi->common.base_qindex * 3 / 8 ;
......@@ -287,10 +282,7 @@ void vp8_setup_key_frame(VP8_COMP *cpi)
void vp8_setup_inter_frame(VP8_COMP *cpi)
{
if(cpi->common.Width * cpi->common.Height > 640*360)
cpi->common.txfm_mode = ALLOW_8X8;
else
cpi->common.txfm_mode = ONLY_4X4;
cpi->common.txfm_mode = ALLOW_8X8;
if(cpi->common.refresh_alt_ref_frame)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment