blob: 26ac862c8f446bcd78dd0fad7b151c0b23f7c07b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright (c) 2021, Hunter Salyer <thefalsehonesty@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
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);
}
|