ref: 8e029fcfa9dbb017b190645b04a3cd5838abaf71
parent: 1395b56a1d4fcf7fe09e1611637d1519436c9671
parent: debe4e920f39fa5eccdcf608f416903b9e4b38d7
author: Marco <[email protected]>
date: Mon Jun 22 12:59:47 EDT 2015
Merge "Reduce max_partition_size for low resolutions at speed 5."
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3572,7 +3572,11 @@
set_offsets(cpi, tile_info, x, mi_row, mi_col, BLOCK_64X64);
if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cm->seg.enabled &&
xd->mi[0]->mbmi.segment_id) {
- x->max_partition_size = BLOCK_64X64;
+ // Use lower max_partition_size for low resoultions.
+ if (cm->width <= 352 && cm->height <= 288)
+ x->max_partition_size = BLOCK_32X32;
+ else
+ x->max_partition_size = BLOCK_64X64;
x->min_partition_size = BLOCK_8X8;
nonrd_pick_partition(cpi, td, tile_data, tp, mi_row, mi_col,
BLOCK_64X64, &dummy_rdc, 1,