mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
LibVideo/VP9: Begin reference frame update process (8.10)
This was required for correctly parsing more than one frame's height/width data properly. Additionally, start handling failure a little more gracefully. Since we don't fully parse a tile before starting to parse the next tile, we will now no longer make it past the first tile mark, meaning we should not handle that scenario well.
This commit is contained in:
parent
514559f074
commit
cf6b3d0ce9
6 changed files with 54 additions and 10 deletions
19
Userland/Libraries/LibVideo/VP9/Utilities.h
Normal file
19
Userland/Libraries/LibVideo/VP9/Utilities.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Hunter Salyer <thefalsehonesty@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Video::VP9 {
|
||||
|
||||
#define SAFE_CALL(call) \
|
||||
do { \
|
||||
if (!(call)) [[unlikely]] { \
|
||||
dbgln("FAILED " #call); \
|
||||
return false; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue