nvidia_video_codec_sdk/sys/guid.rs
1//! Static GUIDs that bindgen generates incorrectly.
2//! See [relevant issue](https://github.com/rust-lang/rust-bindgen/issues/1888).
3
4use super::nvEncodeAPI::GUID;
5
6// Search for `//.*\nstatic const\s+GUID\s+NV_ENC_\w+_GUID\s+=\n\{.*\};`
7
8// =========================================================================================
9// Encode Codec GUIDS supported by the NvEncodeAPI interface.
10// =========================================================================================
11
12/// GUID for the H.264 encoding.
13/// {6BC82762-4E63-4ca4-AA85-1E50F321F6BF}
14pub const NV_ENC_CODEC_H264_GUID: GUID = GUID {
15 Data1: 0x6bc8_2762,
16 Data2: 0x4e63,
17 Data3: 0x4ca4,
18 Data4: [0xaa, 0x85, 0x1e, 0x50, 0xf3, 0x21, 0xf6, 0xbf],
19};
20
21/// GUID for the H.265 encoding.
22/// {790CDC88-4522-4d7b-9425-BDA9975F7603}
23pub const NV_ENC_CODEC_HEVC_GUID: GUID = GUID {
24 Data1: 0x790c_dc88,
25 Data2: 0x4522,
26 Data3: 0x4d7b,
27 Data4: [0x94, 0x25, 0xbd, 0xa9, 0x97, 0x5f, 0x76, 0x3],
28};
29
30/// GUID for the AV1 encoding.
31/// {0A352289-0AA7-4759-862D-5D15CD16D254}
32pub const NV_ENC_CODEC_AV1_GUID: GUID = GUID {
33 Data1: 0x0a35_2289,
34 Data2: 0x0aa7,
35 Data3: 0x4759,
36 Data4: [0x86, 0x2d, 0x5d, 0x15, 0xcd, 0x16, 0xd2, 0x54],
37};
38
39// =========================================================================================
40// * Encode Profile GUIDS supported by the NvEncodeAPI interface.
41// =========================================================================================
42
43/// GUID for the autoselect profile.
44// {BFD6F8E7-233C-4341-8B3E-4818523803F4}
45pub const NV_ENC_CODEC_PROFILE_AUTOSELECT_GUID: GUID = GUID {
46 Data1: 0xbfd6_f8e7,
47 Data2: 0x233c,
48 Data3: 0x4341,
49 Data4: [0x8b, 0x3e, 0x48, 0x18, 0x52, 0x38, 0x3, 0xf4],
50};
51
52/// GUID for the H.264 encoding baseline profile.
53/// {0727BCAA-78C4-4c83-8C2F-EF3DFF267C6A}
54pub const NV_ENC_H264_PROFILE_BASELINE_GUID: GUID = GUID {
55 Data1: 0x0727_bcaa,
56 Data2: 0x78c4,
57 Data3: 0x4c83,
58 Data4: [0x8c, 0x2f, 0xef, 0x3d, 0xff, 0x26, 0x7c, 0x6a],
59};
60
61/// GUID for the H.264 encoding main profile.
62/// {60B5C1D4-67FE-4790-94D5-C4726D7B6E6D}
63pub const NV_ENC_H264_PROFILE_MAIN_GUID: GUID = GUID {
64 Data1: 0x60b5_c1d4,
65 Data2: 0x67fe,
66 Data3: 0x4790,
67 Data4: [0x94, 0xd5, 0xc4, 0x72, 0x6d, 0x7b, 0x6e, 0x6d],
68};
69
70/// GUID for the H.264 encoding, high quality profile.
71/// {E7CBC309-4F7A-4b89-AF2A-D537C92BE310}
72pub const NV_ENC_H264_PROFILE_HIGH_GUID: GUID = GUID {
73 Data1: 0xe7cb_c309,
74 Data2: 0x4f7a,
75 Data3: 0x4b89,
76 Data4: [0xaf, 0x2a, 0xd5, 0x37, 0xc9, 0x2b, 0xe3, 0x10],
77};
78
79/// GUID for the H.264 high quality, `YCbCR444` digital color format profile.
80/// {7AC663CB-A598-4960-B844-339B261A7D52}
81pub const NV_ENC_H264_PROFILE_HIGH_444_GUID: GUID = GUID {
82 Data1: 0x7ac6_63cb,
83 Data2: 0xa598,
84 Data3: 0x4960,
85 Data4: [0xb8, 0x44, 0x33, 0x9b, 0x26, 0x1a, 0x7d, 0x52],
86};
87
88/// GUID for the H.264, stereo encoding profile.
89/// {40847BF5-33F7-4601-9084-E8FE3C1DB8B7}
90pub const NV_ENC_H264_PROFILE_STEREO_GUID: GUID = GUID {
91 Data1: 0x4084_7bf5,
92 Data2: 0x33f7,
93 Data3: 0x4601,
94 Data4: [0x90, 0x84, 0xe8, 0xfe, 0x3c, 0x1d, 0xb8, 0xb7],
95};
96
97/// GUID for the H.264, progressive encoding profile.
98/// {B405AFAC-F32B-417B-89C4-9ABEED3E5978}
99pub const NV_ENC_H264_PROFILE_PROGRESSIVE_HIGH_GUID: GUID = GUID {
100 Data1: 0xb405_afac,
101 Data2: 0xf32b,
102 Data3: 0x417b,
103 Data4: [0x89, 0xc4, 0x9a, 0xbe, 0xed, 0x3e, 0x59, 0x78],
104};
105
106/// GUID for the H.264, constrained encoding profile.
107/// {AEC1BD87-E85B-48f2-84C3-98BCA6285072}
108pub const NV_ENC_H264_PROFILE_CONSTRAINED_HIGH_GUID: GUID = GUID {
109 Data1: 0xaec1_bd87,
110 Data2: 0xe85b,
111 Data3: 0x48f2,
112 Data4: [0x84, 0xc3, 0x98, 0xbc, 0xa6, 0x28, 0x50, 0x72],
113};
114
115/// GUID for the H.265 main (8-bit) encoding profile.
116/// {B514C39A-B55B-40fa-878F-F1253B4DFDEC}
117pub const NV_ENC_HEVC_PROFILE_MAIN_GUID: GUID = GUID {
118 Data1: 0xb514_c39a,
119 Data2: 0xb55b,
120 Data3: 0x40fa,
121 Data4: [0x87, 0x8f, 0xf1, 0x25, 0x3b, 0x4d, 0xfd, 0xec],
122};
123
124/// GUID for H.265 Main10 (10-bit) encoding profile.
125/// {fa4d2b6c-3a5b-411a-8018-0a3f5e3c9be5}
126pub const NV_ENC_HEVC_PROFILE_MAIN10_GUID: GUID = GUID {
127 Data1: 0xfa4d_2b6c,
128 Data2: 0x3a5b,
129 Data3: 0x411a,
130 Data4: [0x80, 0x18, 0x0a, 0x3f, 0x5e, 0x3c, 0x9b, 0xe5],
131};
132
133/// GUID for H.265, JM 16 (`FRExt`) encoding profile.
134/// {51ec32b5-1b4c-453c-9cbd-b616bd621341}
135pub const NV_ENC_HEVC_PROFILE_FREXT_GUID: GUID = GUID {
136 Data1: 0x51ec_32b5,
137 Data2: 0x1b4c,
138 Data3: 0x453c,
139 Data4: [0x9c, 0xbd, 0xb6, 0x16, 0xbd, 0x62, 0x13, 0x41],
140};
141
142/// GUID for the AV1 main encoding preset.
143/// {5f2a39f5-f14e-4f95-9a9e-b76d568fcf97}
144pub const NV_ENC_AV1_PROFILE_MAIN_GUID: GUID = GUID {
145 Data1: 0x5f2a_39f5,
146 Data2: 0xf14e,
147 Data3: 0x4f95,
148 Data4: [0x9a, 0x9e, 0xb7, 0x6d, 0x56, 0x8f, 0xcf, 0x97],
149};
150
151// =========================================================================================
152// * Preset GUIDS supported by the NvEncodeAPI interface.
153// =========================================================================================
154
155// Performance degrades and quality improves as we move from P1 to P7. Presets
156// P3 to P7 for H264 and Presets P2 to P7 for HEVC have B frames enabled by
157// default for HIGH_QUALITY and LOSSLESS tuning info, and will not work with
158// Weighted Prediction enabled. In case Weighted Prediction is required, disable
159// B frames by setting frameIntervalP = 1
160
161/// GUID for the P1 (highest performance) encoding preset.
162/// {FC0A8D3E-45F8-4CF8-80C7-298871590EBF}
163pub const NV_ENC_PRESET_P1_GUID: GUID = GUID {
164 Data1: 0xfc0a_8d3e,
165 Data2: 0x45f8,
166 Data3: 0x4cf8,
167 Data4: [0x80, 0xc7, 0x29, 0x88, 0x71, 0x59, 0xe, 0xbf],
168};
169
170/// GUID for the P2 (higher performance) encoding preset.
171/// Has B-frames enabled by default for H.265 `HIGH_QUALITY` and `LOSSLESS`
172/// tuning info, and will not work with Weighted Prediction enabled.
173/// {F581CFB8-88D6-4381-93F0-DF13F9C27DAB}
174pub const NV_ENC_PRESET_P2_GUID: GUID = GUID {
175 Data1: 0xf581_cfb8,
176 Data2: 0x88d6,
177 Data3: 0x4381,
178 Data4: [0x93, 0xf0, 0xdf, 0x13, 0xf9, 0xc2, 0x7d, 0xab],
179};
180
181/// GUID for the P3 (high performance) encoding preset.
182/// Has B-frames enabled by default for H.264 and H.265: `HIGH_QUALITY` and
183/// `LOSSLESS` tuning info, and will not work with Weighted Prediction enabled.
184/// {36850110-3A07-441F-94D5-3670631F91F6}
185pub const NV_ENC_PRESET_P3_GUID: GUID = GUID {
186 Data1: 0x3685_0110,
187 Data2: 0x3a07,
188 Data3: 0x441f,
189 Data4: [0x94, 0xd5, 0x36, 0x70, 0x63, 0x1f, 0x91, 0xf6],
190};
191
192/// GUID for the P4 (balanced) encoding preset.
193/// Has B-frames enabled by default for H.264 and H.265: `HIGH_QUALITY` and
194/// `LOSSLESS` tuning info, and will not work with Weighted Prediction enabled.
195/// {90A7B826-DF06-4862-B9D2-CD6D73A08681}
196pub const NV_ENC_PRESET_P4_GUID: GUID = GUID {
197 Data1: 0x90a7_b826,
198 Data2: 0xdf06,
199 Data3: 0x4862,
200 Data4: [0xb9, 0xd2, 0xcd, 0x6d, 0x73, 0xa0, 0x86, 0x81],
201};
202
203/// GUID for the P5 (high quality) encoding preset.
204/// Has B-frames enabled by default for H.264 and H.265: `HIGH_QUALITY` and
205/// `LOSSLESS` tuning info, and will not work with Weighted Prediction enabled.
206/// {21C6E6B4-297A-4CBA-998F-B6CBDE72ADE3}
207pub const NV_ENC_PRESET_P5_GUID: GUID = GUID {
208 Data1: 0x21c6_e6b4,
209 Data2: 0x297a,
210 Data3: 0x4cba,
211 Data4: [0x99, 0x8f, 0xb6, 0xcb, 0xde, 0x72, 0xad, 0xe3],
212};
213
214/// GUID for the P6 (higher quality) encoding preset.
215/// Has B-frames enabled by default for H.264 and H.265: `HIGH_QUALITY` and
216/// `LOSSLESS` tuning info, and will not work with Weighted Prediction enabled.
217/// {8E75C279-6299-4AB6-8302-0B215A335CF5}
218pub const NV_ENC_PRESET_P6_GUID: GUID = GUID {
219 Data1: 0x8e75_c279,
220 Data2: 0x6299,
221 Data3: 0x4ab6,
222 Data4: [0x83, 0x2, 0xb, 0x21, 0x5a, 0x33, 0x5c, 0xf5],
223};
224
225/// GUID for the P6 (highest quality) encoding preset.
226/// Has B-frames enabled by default for H.264 and H.265: `HIGH_QUALITY` and
227/// `LOSSLESS` tuning info, and will not work with Weighted Prediction enabled.
228/// {84848C12-6F71-4C13-931B-53E283F57974}
229pub const NV_ENC_PRESET_P7_GUID: GUID = GUID {
230 Data1: 0x8484_8c12,
231 Data2: 0x6f71,
232 Data3: 0x4c13,
233 Data4: [0x93, 0x1b, 0x53, 0xe2, 0x83, 0xf5, 0x79, 0x74],
234};