Commit 4ca8b1c2 authored by Jingning Han's avatar Jingning Han
Browse files

Use tx_size_from_tx_mode() to set tx_size for skip blocks

Unify the use case of largest transform block size fetch for skip
blocks.

Change-Id: I5dd60eb74b266fa7cd7944d8f823dbdae75e90af
parent 1e4e29f7
......@@ -5487,8 +5487,7 @@ static void encode_superblock(const AV1_COMP *const cpi, ThreadData *td,
if (xd->lossless[mbmi->segment_id]) tx_size = TX_4X4;
}
#else
tx_size = AOMMIN(tx_mode_to_biggest_tx_size[cm->tx_mode],
max_txsize_lookup[bsize]);
tx_size = tx_size_from_tx_mode(bsize, cm->tx_mode, is_inter);
#endif
else
tx_size = (bsize >= BLOCK_8X8) ? tx_size : TX_4X4;
......
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