LibVideo: Use the BlockSubsize enum where appropriate in the VP9 parser

This commit is contained in:
Zaggy1024 2022-11-06 15:00:26 -06:00 committed by Andrew Kaster
parent 981997c039
commit 17e1b205a4
Notes: sideshowbarker 2024-07-17 05:21:12 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -905,7 +905,7 @@ void Parser::clear_left_context()
clear_context(m_left_partition_context, m_sb64_rows * 8);
}
DecoderErrorOr<void> Parser::decode_partition(u32 row, u32 col, u8 block_subsize)
DecoderErrorOr<void> Parser::decode_partition(u32 row, u32 col, BlockSubsize block_subsize)
{
if (row >= m_mi_rows || col >= m_mi_cols)
return {};

View file

@ -103,7 +103,7 @@ private:
u32 get_tile_offset(u32 tile_num, u32 mis, u32 tile_size_log2);
DecoderErrorOr<void> decode_tile();
void clear_left_context();
DecoderErrorOr<void> decode_partition(u32 row, u32 col, u8 block_subsize);
DecoderErrorOr<void> decode_partition(u32 row, u32 col, BlockSubsize block_subsize);
DecoderErrorOr<void> decode_block(u32 row, u32 col, BlockSubsize subsize);
DecoderErrorOr<void> mode_info();
DecoderErrorOr<void> intra_frame_mode_info();
@ -227,7 +227,7 @@ private:
bool m_has_rows { false };
bool m_has_cols { false };
TXSize m_max_tx_size { TX_4x4 };
u8 m_block_subsize { 0 };
BlockSubsize m_block_subsize { BlockSubsize::Block_4x4 };
// The row to use for getting partition tree probability lookups.
u32 m_row { 0 };
// The column to use for getting partition tree probability lookups.