-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathencoder_info.h
More file actions
40 lines (34 loc) · 934 Bytes
/
Copy pathencoder_info.h
File metadata and controls
40 lines (34 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include <map>
#include <string>
#include <vector>
#include "pixel_format_repacker.h"
namespace IOPlugin {
enum HardwareAcceleration { None, Vaapi, Nvenc, Vulkan };
struct EncoderFormat {
const char* codecName{};
int bitDepth{8};
uint32_t colorModel{};
uint8_t hSubsampling{};
uint8_t vSubsampling{};
AVPixelFormat pixelFormat{};
AVPixelFormat srcPixelFormat{AV_PIX_FMT_NONE};
PixelFormatRepacker* pixelFormatRepacker{};
};
struct EncoderInfo {
uint8_t UUID[16]{};
const char* codecGroup{};
uint32_t fourCC{};
const char* encoder{};
HardwareAcceleration hwAcceleration{};
int32_t qualityModes{};
uint8_t qp[3]{};
std::map<int, std::string> presets{};
int defaultPreset{};
std::map<int, std::string> tunes{};
int defaultTune{-1};
const char* customParamsKey{};
std::vector<EncoderFormat> formats{};
bool isVaapiRadeonSi{};
};
}