Commit 3a86ba8b authored by Yushin Cho's avatar Yushin Cho Committed by Yushin Cho
Browse files

Fix block size comparison to check tx blk is smaller than a partition

parent 3b08db6d
......@@ -608,7 +608,7 @@ pub fn rdo_mode_decision<T: Pixel>(
}
// TODO(yushin): luma and chroma would have different decision based on chroma format
let need_recon_pixel = luma_mode_is_intra && tx_size.block_size() < bsize;
let need_recon_pixel = luma_mode_is_intra && tx_size.block_size() != bsize;
encode_block_a(&fi.sequence, ts, cw, wr, bsize, tile_bo, skip);
let tx_dist =
......@@ -974,7 +974,7 @@ pub fn rdo_tx_type_decision<T: Pixel>(
} else {
RDOType::PixelDistRealRate
};
let need_recon_pixel = tx_size.block_size() < bsize;
let need_recon_pixel = tx_size.block_size() != bsize;
for &tx_type in tx_types {
// Skip unsupported transform types
......
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