mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 11:00:29 +00:00
LibVideo: Use the BlockSubsize enum where appropriate in the VP9 parser
This commit is contained in:
parent
981997c039
commit
17e1b205a4
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/SerenityOS/serenity/commit/17e1b205a4 Pull-request: https://github.com/SerenityOS/serenity/pull/15972 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/awesomekling ✅
2 changed files with 3 additions and 3 deletions
|
@ -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 {};
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue