Commit 49a73a03 authored by Yushin Cho's avatar Yushin Cho Committed by Thomas Daede

Fix the part of fixes in ecb01d41

parent 8d8fcdf3
......@@ -508,11 +508,12 @@ pub fn has_chroma(
pub fn get_tx_set(
tx_size: TxSize, is_inter: bool, use_reduced_set: bool
) -> TxSet {
let tx_size_sqr_up = tx_size.sqr_up();
let tx_size_sqr = tx_size.sqr();
if tx_size.width() >= 64 || tx_size.height() >= 64 {
TxSet::TX_SET_DCTONLY
} else if tx_size_sqr == TxSize::TX_32X32 {
} else if tx_size_sqr_up == TxSize::TX_32X32 {
if is_inter {
TxSet::TX_SET_DCT_IDTX
} else {
......
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