Commit 7ed7e1fa authored by Hui Su's avatar Hui Su

one level less of tx size search for blocks larger than 64

3~5% encoding speedup for speed 0; no quality loss.

Change-Id: I0e31755f45253e5e99d8d9eed0d7a6fe6050f49f
parent 00c6e6f7
......@@ -2493,8 +2493,12 @@ static INLINE int bsize_to_num_blk(BLOCK_SIZE bsize) {
static int get_search_init_depth(int mi_width, int mi_height,
const SPEED_FEATURES *sf) {
if (sf->tx_size_search_method == USE_LARGESTALL) return MAX_VARTX_DEPTH;
return (mi_height != mi_width) ? sf->tx_size_search_init_depth_rect
: sf->tx_size_search_init_depth_sqr;
int init_depth = (mi_height != mi_width) ? sf->tx_size_search_init_depth_rect
: sf->tx_size_search_init_depth_sqr;
// If either dimension is 128, search one level less.
if (mi_width == 32 || mi_height == 32)
init_depth = AOMMIN(init_depth + 1, MAX_TX_DEPTH);
return init_depth;
}
static void choose_tx_size_type_from_rd(const AV1_COMP *const cpi,
......
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