diff options
Diffstat (limited to 'src/tile/bitstream/transform_size.cc')
-rw-r--r-- | src/tile/bitstream/transform_size.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tile/bitstream/transform_size.cc b/src/tile/bitstream/transform_size.cc index b79851d..7197400 100644 --- a/src/tile/bitstream/transform_size.cc +++ b/src/tile/bitstream/transform_size.cc @@ -95,7 +95,8 @@ int Tile::GetLeftTransformHeight(const Block& block, int row4x4, int column4x4, TransformSize Tile::ReadFixedTransformSize(const Block& block) { BlockParameters& bp = *block.bp; - if (frame_header_.segmentation.lossless[bp.segment_id]) { + if (frame_header_.segmentation + .lossless[bp.prediction_parameters->segment_id]) { return kTransformSize4x4; } const TransformSize max_rect_tx_size = kMaxTransformSizeRectangle[block.size]; @@ -189,8 +190,6 @@ void Tile::ReadVariableTransformTree(const Block& block, int row4x4, memset(&inter_transform_sizes_[node.y + i][node.x], node.tx_size, tx_width4x4); } - block_parameters_holder_.Find(node.y, node.x)->transform_size = - node.tx_size; } while (!stack.Empty()); } @@ -198,7 +197,8 @@ void Tile::DecodeTransformSize(const Block& block) { BlockParameters& bp = *block.bp; if (frame_header_.tx_mode == kTxModeSelect && block.size > kBlock4x4 && bp.is_inter && !bp.skip && - !frame_header_.segmentation.lossless[bp.segment_id]) { + !frame_header_.segmentation + .lossless[bp.prediction_parameters->segment_id]) { const TransformSize max_tx_size = kMaxTransformSizeRectangle[block.size]; const int tx_width4x4 = kTransformWidth4x4[max_tx_size]; const int tx_height4x4 = kTransformHeight4x4[max_tx_size]; @@ -210,10 +210,10 @@ void Tile::DecodeTransformSize(const Block& block) { } } } else { - bp.transform_size = ReadFixedTransformSize(block); + const TransformSize transform_size = ReadFixedTransformSize(block); for (int row = block.row4x4; row < block.row4x4 + block.height4x4; ++row) { static_assert(sizeof(TransformSize) == 1, ""); - memset(&inter_transform_sizes_[row][block.column4x4], bp.transform_size, + memset(&inter_transform_sizes_[row][block.column4x4], transform_size, block.width4x4); } } |