mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:37:45 +00:00
LibVideo/VP9: Retain adjacent block contexts storage between frames
Re-allocating the storage is unnecessary, since the size will rarely change during playback.
This commit is contained in:
parent
ea7a6f343b
commit
396972bb69
3 changed files with 11 additions and 2 deletions
|
@ -253,6 +253,11 @@ struct ColorConfig {
|
|||
|
||||
struct FrameContext {
|
||||
public:
|
||||
FrameContext(Vector2D<FrameBlockContext>& contexts)
|
||||
: m_block_contexts(contexts)
|
||||
{
|
||||
}
|
||||
|
||||
u8 profile { 0 };
|
||||
|
||||
FrameType type { FrameType::KeyFrame };
|
||||
|
@ -338,7 +343,7 @@ private:
|
|||
// arrays instead.
|
||||
// I think should also apply to other fields that are only accessed relative to the current block. Worth looking
|
||||
// into how much of this context needs to be stored for the whole frame vs a row or column from the current tile.
|
||||
Vector2D<FrameBlockContext> m_block_contexts;
|
||||
Vector2D<FrameBlockContext>& m_block_contexts;
|
||||
};
|
||||
|
||||
struct TileContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue