mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:57:34 +00:00
LibVideo: Implement VP9 intra-predicted frame decoding
The first keyframe of the test video can be decoded with these changes. Raw memory allocations in the Parser have been replaced with Vector or Array to avoid memory leaks and OOBs.
This commit is contained in:
parent
da9ff31166
commit
1514004cd5
10 changed files with 1445 additions and 146 deletions
|
@ -22,6 +22,7 @@ using DecoderErrorOr = ErrorOr<T, DecoderError>;
|
|||
enum class DecoderErrorCategory : u32 {
|
||||
Unknown,
|
||||
IO,
|
||||
Memory,
|
||||
// The input is corrupted.
|
||||
Corrupted,
|
||||
// The input uses features that are not yet implemented.
|
||||
|
@ -79,4 +80,6 @@ private:
|
|||
_result.release_value(); \
|
||||
})
|
||||
|
||||
#define DECODER_TRY_ALLOC(expression) DECODER_TRY(DecoderErrorCategory::Memory, expression)
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue