mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:07:35 +00:00
LibVideo/VP9: Start parsing residuals (6.4.21-6.4.23)
Additionally, this uncovered a couple bugs with existing code, so those have been fixed. Currently, parsing a whole video does fail because we are now using a new calculation for frame width, but it hasn't been fully implemented yet.
This commit is contained in:
parent
cbff7c386a
commit
66628053d4
4 changed files with 131 additions and 8 deletions
|
@ -200,4 +200,20 @@ static constexpr TXSize max_txsize_lookup[BLOCK_SIZES] = {
|
|||
TX_32x32,
|
||||
};
|
||||
|
||||
static constexpr BlockSubsize ss_size_lookup[BLOCK_SIZES][2][2] = {
|
||||
{ { Block_4x4, Block_Invalid }, { Block_Invalid, Block_Invalid } },
|
||||
{ { Block_4x8, Block_4x4 }, { Block_Invalid, Block_Invalid } },
|
||||
{ { Block_8x4, Block_Invalid }, { Block_4x4, Block_Invalid } },
|
||||
{ { Block_8x8, Block_8x4 }, { Block_4x8, Block_4x4 } },
|
||||
{ { Block_8x16, Block_8x8 }, { Block_Invalid, Block_4x8 } },
|
||||
{ { Block_16x8, Block_Invalid }, { Block_8x8, Block_8x4 } },
|
||||
{ { Block_16x16, Block_16x8 }, { Block_8x16, Block_8x8 } },
|
||||
{ { Block_16x32, Block_16x16 }, { Block_Invalid, Block_8x16 } },
|
||||
{ { Block_32x16, Block_Invalid }, { Block_16x16, Block_16x8 } },
|
||||
{ { Block_32x32, Block_32x16 }, { Block_16x32, Block_16x16 } },
|
||||
{ { Block_32x64, Block_32x32 }, { Block_Invalid, Block_16x32 } },
|
||||
{ { Block_64x32, Block_Invalid }, { Block_32x32, Block_32x16 } },
|
||||
{ { Block_64x64, Block_64x32 }, { Block_32x64, Block_32x32 } },
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue