mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:27:36 +00:00
LibVideo/VP9: Put reference frames into a struct
This commit is contained in:
parent
e6b696fe24
commit
f5ea6c89df
4 changed files with 32 additions and 24 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include <AK/Array.h>
|
||||
#include <AK/Error.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGfx/Size.h>
|
||||
#include <LibVideo/Color/CodingIndependentCodePoints.h>
|
||||
|
||||
|
@ -257,4 +258,14 @@ using SegmentationPredictionContextView = Span<u8>;
|
|||
using PartitionContext = FixedArray<u8>;
|
||||
using PartitionContextView = Span<u8>;
|
||||
|
||||
struct ReferenceFrame {
|
||||
Gfx::Size<u32> size { 0, 0 };
|
||||
bool subsampling_x { false };
|
||||
bool subsampling_y { false };
|
||||
u8 bit_depth { 0 };
|
||||
Array<Vector<u16>, 3> frame_planes {};
|
||||
|
||||
bool is_valid() { return bit_depth > 0; }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue