1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:07:44 +00:00

LibVideo/VP9: Put reference frames into a struct

This commit is contained in:
Zaggy1024 2022-11-28 06:50:06 -06:00 committed by Andreas Kling
parent e6b696fe24
commit f5ea6c89df
4 changed files with 32 additions and 24 deletions

View file

@ -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; }
};
}