mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:37:45 +00:00
LibVideo/VP9: Define all VP9 symbols and enum constants
This commit is contained in:
parent
612b183703
commit
ff3a2a703f
3 changed files with 165 additions and 0 deletions
84
Userland/Libraries/LibVideo/VP9/Enums.h
Normal file
84
Userland/Libraries/LibVideo/VP9/Enums.h
Normal file
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Hunter Salyer <thefalsehonesty@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Video::VP9 {
|
||||
|
||||
enum FrameType {
|
||||
KeyFrame,
|
||||
NonKeyFrame
|
||||
};
|
||||
|
||||
enum ColorSpace : u8 {
|
||||
Unknown = 0,
|
||||
Bt601 = 1,
|
||||
Bt709 = 2,
|
||||
Smpte170 = 3,
|
||||
Smpte240 = 4,
|
||||
Bt2020 = 5,
|
||||
Reserved = 6,
|
||||
RGB = 7
|
||||
};
|
||||
|
||||
enum ColorRange {
|
||||
StudioSwing,
|
||||
FullSwing
|
||||
};
|
||||
|
||||
enum InterpolationFilter {
|
||||
EightTap = 0,
|
||||
EightTapSmooth = 1,
|
||||
EightTapSharp = 2,
|
||||
Bilinear = 3,
|
||||
Switchable = 4
|
||||
};
|
||||
|
||||
enum ReferenceFrame {
|
||||
IntraFrame = 0,
|
||||
LastFrame = 1,
|
||||
GoldenFrame = 2,
|
||||
AltRefFrame = 3,
|
||||
};
|
||||
|
||||
enum TXMode {
|
||||
Only4x4 = 0,
|
||||
Allow8x8 = 1,
|
||||
Allow16x16 = 2,
|
||||
Allow32x32 = 3,
|
||||
TXModeSelect = 4,
|
||||
};
|
||||
|
||||
enum TXSize {
|
||||
TX4x4 = 0,
|
||||
TX8x8 = 1,
|
||||
TX16x16 = 2,
|
||||
TX32x32 = 3,
|
||||
};
|
||||
|
||||
enum ReferenceMode {
|
||||
SingleReference = 0,
|
||||
CompoundReference = 1,
|
||||
ReferenceModeSelect = 2,
|
||||
};
|
||||
|
||||
enum BlockSubsize : u8 {
|
||||
Block_4x4 = 0,
|
||||
Block_4x8 = 1,
|
||||
Block_8x4 = 2,
|
||||
Block_8x8 = 3,
|
||||
Block_8x16 = 4,
|
||||
Block_16x8 = 5,
|
||||
Block_16x16 = 6,
|
||||
Block_16x32 = 7,
|
||||
Block_32x16 = 8,
|
||||
Block_32x32 = 9,
|
||||
Block_32x64 = 10,
|
||||
Block_64x32 = 11,
|
||||
Block_64x64 = 12,
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue