obs-StreamFX/source/encoders/codecs/hevc.hpp

48 lines
987 B
C++
Raw Normal View History

// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2020-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// AUTOGENERATED COPYRIGHT HEADER END
2020-01-13 00:52:30 +00:00
#pragma once
2020-08-10 01:32:11 +00:00
#include "common.hpp"
2020-01-13 00:52:30 +00:00
// Codec: HEVC
#define S_CODEC_HEVC "Codec.HEVC"
#define S_CODEC_HEVC_PROFILE "Codec.HEVC.Profile"
#define S_CODEC_HEVC_TIER "Codec.HEVC.Tier"
#define S_CODEC_HEVC_LEVEL "Codec.HEVC.Level"
2020-01-13 00:52:30 +00:00
namespace streamfx::encoder::codec::hevc {
2020-01-13 21:40:15 +00:00
enum class profile {
MAIN,
MAIN10,
RANGE_EXTENDED,
UNKNOWN = -1,
};
2020-01-13 00:52:30 +00:00
2020-01-13 21:40:15 +00:00
enum class tier {
MAIN,
HIGH,
UNKNOWN = -1,
};
2020-01-13 00:52:30 +00:00
2020-01-13 21:40:15 +00:00
enum class level {
L1_0 = 30,
L2_0 = 60,
L2_1 = 63,
L3_0 = 90,
L3_1 = 93,
L4_0 = 120,
L4_1 = 123,
L5_0 = 150,
L5_1 = 153,
L5_2 = 156,
L6_0 = 180,
L6_1 = 183,
L6_2 = 186,
UNKNOWN = -1,
};
2020-01-13 00:52:30 +00:00
void extract_header_sei(uint8_t* data, std::size_t sz_data, std::vector<uint8_t>& header,
std::vector<uint8_t>& sei);
} // namespace streamfx::encoder::codec::hevc