Commit eafb2e62 authored by Hui Su's avatar Hui Su Committed by Yaowu Xu
Browse files

Skip 4x4 transform if maximum possible transform is 32x32

On average no compression performance changes. Encoding speed is
increased by 10~20% on some test clips in the derf set.

Change-Id: I9856caaa260303f6f6259686671bed7d51012277
parent 3f16725f
......@@ -1401,7 +1401,7 @@ static int64_t choose_tx_size_fix_type(AV1_COMP *cpi, BLOCK_SIZE bs,
evaluate_rect_tx = is_rect_tx_allowed(xd, mbmi);
start_tx = max_tx_size;
end_tx = 0;
end_tx = (max_tx_size == TX_32X32) ? TX_8X8 : TX_4X4;
} else {
const TX_SIZE chosen_tx_size =
tx_size_from_tx_mode(bs, cm->tx_mode, is_inter);
Supports Markdown
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