libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
v4l2codecparams.h
Go to the documentation of this file.
1
8#pragma once
9
10
11#include <promeki/config.h>
12#if PROMEKI_ENABLE_V4L2
13#include <cstdint>
14#include <linux/v4l2-controls.h>
15#include <promeki/namespace.h>
16#include <promeki/string.h>
19
20PROMEKI_NAMESPACE_BEGIN
21
33struct V4l2Colorimetry {
34 uint32_t colorspace = 0;
35 uint32_t ycbcrEnc = 0;
36 uint32_t xferFunc = 0;
37 uint32_t quantization = 0;
38};
39
51V4l2Colorimetry v4l2ColorimetryFromH273(uint32_t primaries, uint32_t transfer, uint32_t matrix, bool fullRange);
52
58int v4l2H264Profile(int h264ProfileValue);
59
64int v4l2H264Level(int levelIdc);
65
71int v4l2HevcProfile(const String &wire);
72
77int v4l2HevcLevel(int levelIdc);
78
86struct v4l2_ctrl_hdr10_mastering_display v4l2MakeMasteringDisplay(const MasteringDisplay &md);
87
93struct v4l2_ctrl_hdr10_cll_info v4l2MakeCllInfo(const ContentLightLevel &cll);
94
95PROMEKI_NAMESPACE_END
96
97#endif // PROMEKI_ENABLE_V4L2