mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
LibVideo/VP9: Move partitioning contexts to TileContext
Like the non-zero tokens and segmentation IDs, these can be moved into the tile decoding loop for above context and allocated by TileContext for left context.
This commit is contained in:
parent
720fc5a853
commit
71aac25635
7 changed files with 38 additions and 25 deletions
|
@ -72,6 +72,12 @@ inline T superblocks_to_blocks(T superblocks)
|
|||
return superblocks << 3;
|
||||
}
|
||||
|
||||
template<Integral T>
|
||||
inline T blocks_ceiled_to_superblocks(T blocks)
|
||||
{
|
||||
return blocks_to_superblocks(blocks + 7);
|
||||
}
|
||||
|
||||
template<Integral T>
|
||||
inline T blocks_to_sub_blocks(T blocks)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue