mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
LibVideo: Allow bit stream reads to throw errors
Errors are propagated to the user of the decoder so that they can be aware of specific places where a read failed.
This commit is contained in:
parent
af0584ea53
commit
b37ea6b414
10 changed files with 529 additions and 509 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Hunter Salyer <thefalsehonesty@gmail.com>
|
||||
* Copyright (c) 2022, Gregory Bertilson <zaggy1024@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -10,14 +11,6 @@
|
|||
|
||||
namespace Video::VP9 {
|
||||
|
||||
#define SAFE_CALL(call) \
|
||||
do { \
|
||||
if (!(call)) [[unlikely]] { \
|
||||
dbgln("FAILED " #call); \
|
||||
return false; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
u8 clip_3(u8 x, u8 y, u8 z);
|
||||
u8 round_2(u8 x, u8 n);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue