Skip to main content

kodecs_vaapi/bindings/
libva.rs

1/* automatically generated by rust-bindgen 0.72.1 */
2
3#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage> {
6	storage: Storage,
7}
8impl<Storage> __BindgenBitfieldUnit<Storage> {
9	#[inline]
10	pub const fn new(storage: Storage) -> Self {
11		Self { storage }
12	}
13}
14impl<Storage> __BindgenBitfieldUnit<Storage>
15where
16	Storage: AsRef<[u8]> + AsMut<[u8]>,
17{
18	#[inline]
19	fn extract_bit(byte: u8, index: usize) -> bool {
20		let bit_index = if cfg!(target_endian = "big") {
21			7 - (index % 8)
22		} else {
23			index % 8
24		};
25		let mask = 1 << bit_index;
26		byte & mask == mask
27	}
28	#[inline]
29	pub fn get_bit(&self, index: usize) -> bool {
30		debug_assert!(index / 8 < self.storage.as_ref().len());
31		let byte_index = index / 8;
32		let byte = self.storage.as_ref()[byte_index];
33		Self::extract_bit(byte, index)
34	}
35	#[inline]
36	pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
37		debug_assert!(index / 8 < core::mem::size_of::<Storage>());
38		let byte_index = index / 8;
39		let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) };
40		Self::extract_bit(byte, index)
41	}
42	#[inline]
43	fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
44		let bit_index = if cfg!(target_endian = "big") {
45			7 - (index % 8)
46		} else {
47			index % 8
48		};
49		let mask = 1 << bit_index;
50		if val {
51			byte | mask
52		} else {
53			byte & !mask
54		}
55	}
56	#[inline]
57	pub fn set_bit(&mut self, index: usize, val: bool) {
58		debug_assert!(index / 8 < self.storage.as_ref().len());
59		let byte_index = index / 8;
60		let byte = &mut self.storage.as_mut()[byte_index];
61		*byte = Self::change_bit(*byte, index, val);
62	}
63	#[inline]
64	pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
65		debug_assert!(index / 8 < core::mem::size_of::<Storage>());
66		let byte_index = index / 8;
67		let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) };
68		unsafe { *byte = Self::change_bit(*byte, index, val) };
69	}
70	#[inline]
71	pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
72		debug_assert!(bit_width <= 64);
73		debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
74		debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
75		let mut val = 0;
76		for i in 0..(bit_width as usize) {
77			if self.get_bit(i + bit_offset) {
78				let index = if cfg!(target_endian = "big") {
79					bit_width as usize - 1 - i
80				} else {
81					i
82				};
83				val |= 1 << index;
84			}
85		}
86		val
87	}
88	#[inline]
89	pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
90		debug_assert!(bit_width <= 64);
91		debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
92		debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
93		let mut val = 0;
94		for i in 0..(bit_width as usize) {
95			if unsafe { Self::raw_get_bit(this, i + bit_offset) } {
96				let index = if cfg!(target_endian = "big") {
97					bit_width as usize - 1 - i
98				} else {
99					i
100				};
101				val |= 1 << index;
102			}
103		}
104		val
105	}
106	#[inline]
107	pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
108		debug_assert!(bit_width <= 64);
109		debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
110		debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
111		for i in 0..(bit_width as usize) {
112			let mask = 1 << i;
113			let val_bit_is_set = val & mask == mask;
114			let index = if cfg!(target_endian = "big") {
115				bit_width as usize - 1 - i
116			} else {
117				i
118			};
119			self.set_bit(index + bit_offset, val_bit_is_set);
120		}
121	}
122	#[inline]
123	pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
124		debug_assert!(bit_width <= 64);
125		debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
126		debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
127		for i in 0..(bit_width as usize) {
128			let mask = 1 << i;
129			let val_bit_is_set = val & mask == mask;
130			let index = if cfg!(target_endian = "big") {
131				bit_width as usize - 1 - i
132			} else {
133				i
134			};
135			unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) };
136		}
137	}
138}
139#[repr(C)]
140#[derive(Default)]
141pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
142impl<T> __IncompleteArrayField<T> {
143	#[inline]
144	pub const fn new() -> Self {
145		__IncompleteArrayField(::std::marker::PhantomData, [])
146	}
147	#[inline]
148	pub fn as_ptr(&self) -> *const T {
149		self as *const _ as *const T
150	}
151	#[inline]
152	pub fn as_mut_ptr(&mut self) -> *mut T {
153		self as *mut _ as *mut T
154	}
155	#[inline]
156	pub unsafe fn as_slice(&self, len: usize) -> &[T] {
157		::std::slice::from_raw_parts(self.as_ptr(), len)
158	}
159	#[inline]
160	pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
161		::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
162	}
163}
164impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
165	fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
166		fmt.write_str("__IncompleteArrayField")
167	}
168}
169#[doc = " Return status type from functions */\n/** Values for the return status"]
170pub const VA_STATUS_SUCCESS: u32 = 0;
171pub const VA_STATUS_ERROR_OPERATION_FAILED: u32 = 1;
172pub const VA_STATUS_ERROR_INVALID_BUFFER: u32 = 7;
173pub const VA_STATUS_ERROR_INVALID_IMAGE: u32 = 8;
174pub const VA_STATUS_ERROR_DECODING_ERROR: u32 = 23;
175#[doc = "< YUV 4:2:0 8-bit."]
176pub const VA_RT_FORMAT_YUV420: u32 = 1;
177#[doc = "< YUV 4:2:2 8-bit."]
178pub const VA_RT_FORMAT_YUV422: u32 = 2;
179#[doc = "< YUV 4:2:0 10-bit."]
180pub const VA_RT_FORMAT_YUV420_10: u32 = 256;
181#[doc = "< Packed RGB, 32 bits per pixel, 8 bits per colour sample."]
182pub const VA_RT_FORMAT_RGB32: u32 = 131072;
183#[doc = " \\brief Constant bitrate."]
184pub const VA_RC_CBR: u32 = 2;
185#[doc = " \\brief Variable bitrate."]
186pub const VA_RC_VBR: u32 = 4;
187#[doc = " \\brief Driver supports packed sequence headers. e.g. SPS for H.264.\n\n Application must provide it to driver once this flag is returned through\n vaGetConfigAttributes()"]
188pub const VA_ENC_PACKED_HEADER_SEQUENCE: u32 = 1;
189#[doc = " \\brief Driver supports packed picture headers. e.g. PPS for H.264.\n\n Application must provide it to driver once this falg is returned through\n vaGetConfigAttributes()"]
190pub const VA_ENC_PACKED_HEADER_PICTURE: u32 = 2;
191#[doc = " \\brief Driver supports packed slice headers. e.g. slice_header() for H.264.\n\n Application must provide it to driver once this flag is returned through\n vaGetConfigAttributes()"]
192pub const VA_ENC_PACKED_HEADER_SLICE: u32 = 4;
193#[doc = " \\brief Dirver require both reference list must be not empty for inter frame"]
194pub const VA_PREDICTION_DIRECTION_BI_NOT_EMPTY: u32 = 4;
195#[doc = " if an attribute is not applicable for a given\n profile/entrypoint pair, then set the value to the following"]
196pub const VA_ATTRIB_NOT_SUPPORTED: u32 = 2147483648;
197pub const VA_INVALID_ID: u32 = 4294967295;
198#[doc = " \\brief Surface attribute can be set through vaCreateSurfaces()."]
199pub const VA_SURFACE_ATTRIB_SETTABLE: u32 = 2;
200#[doc = " @name VASurfaceAttribMemoryType values in bit fields.\n Bits 0:7 are reserved for generic types. Bits 31:28 are reserved for\n Linux DRM. Bits 23:20 are reserved for Android. Bits 19:16 are reserved for Win32.\n DRM, Android and Win32 specific types are defined in respective va_*.h header files.\n/\n/**@{*/\n/** \\brief VA memory type (default) is supported."]
201pub const VA_SURFACE_ATTRIB_MEM_TYPE_VA: u32 = 1;
202#[doc = " \\brief V4L2 buffer memory type is supported."]
203pub const VA_SURFACE_ATTRIB_MEM_TYPE_V4L2: u32 = 2;
204#[doc = " \\brief User pointer memory type is supported."]
205pub const VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR: u32 = 4;
206#[doc = " \\brief Surface used by video decoder."]
207pub const VA_SURFACE_ATTRIB_USAGE_HINT_DECODER: u32 = 1;
208#[doc = " \\brief Surface used by video encoder."]
209pub const VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER: u32 = 2;
210#[doc = " \\brief Surface read by video post-processing."]
211pub const VA_SURFACE_ATTRIB_USAGE_HINT_VPP_READ: u32 = 4;
212#[doc = " \\brief Surface written by video post-processing."]
213pub const VA_SURFACE_ATTRIB_USAGE_HINT_VPP_WRITE: u32 = 8;
214#[doc = " \\brief Surface used for display."]
215pub const VA_SURFACE_ATTRIB_USAGE_HINT_DISPLAY: u32 = 16;
216#[doc = " \\brief Surface used for export to third-party APIs, e.g. via\n  vaExportSurfaceHandle()."]
217pub const VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT: u32 = 32;
218pub const VA_PROGRESSIVE: u32 = 1;
219#[doc = " There will be cases where the bitstream buffer will not have enough room to hold\n the data for the entire slice, and the following flags will be used in the slice\n parameter to signal to the server for the possible cases.\n If a slice parameter buffer and slice data buffer pair is sent to the server with\n the slice data partially in the slice data buffer (BEGIN and MIDDLE cases below),\n then a slice parameter and data buffer needs to be sent again to complete this slice."]
220pub const VA_SLICE_DATA_FLAG_ALL: u32 = 0;
221pub const VA_PICTURE_H264_INVALID: u32 = 1;
222pub const VA_PICTURE_H264_SHORT_TERM_REFERENCE: u32 = 8;
223pub const VA_PICTURE_H264_LONG_TERM_REFERENCE: u32 = 16;
224pub const VA_CODED_BUF_STATUS_SLICE_OVERFLOW_MASK: u32 = 512;
225#[doc = " @name vaExportSurfaceHandle() flags\n\n @{\n/\n/** Export surface to be read by external API."]
226pub const VA_EXPORT_SURFACE_READ_ONLY: u32 = 1;
227#[doc = " Export surface with composed layers.\n\n For example, NV12 surfaces should be exported as a single NV12\n composed object."]
228pub const VA_EXPORT_SURFACE_COMPOSED_LAYERS: u32 = 8;
229#[doc = " NV12: two-plane 8-bit YUV 4:2:0.\n The first plane contains Y, the second plane contains U and V in pairs of bytes."]
230pub const VA_FOURCC_NV12: u32 = 842094158;
231#[doc = " RGBA: packed 8-bit RGBA.\n\n Four bytes per pixel: red, green, blue, alpha."]
232pub const VA_FOURCC_RGBA: u32 = 1094862674;
233#[doc = " RGBX: packed 8-bit RGB.\n\n Four bytes per pixel: red, green, blue, unspecified."]
234pub const VA_FOURCC_RGBX: u32 = 1480738642;
235#[doc = " BGRA: packed 8-bit RGBA.\n\n Four bytes per pixel: blue, green, red, alpha."]
236pub const VA_FOURCC_BGRA: u32 = 1095911234;
237#[doc = " BGRX: packed 8-bit RGB.\n\n Four bytes per pixel: blue, green, red, unspecified."]
238pub const VA_FOURCC_BGRX: u32 = 1481787202;
239#[doc = " ARGB: packed 8-bit RGBA.\n\n Four bytes per pixel: alpha, red, green, blue."]
240pub const VA_FOURCC_ARGB: u32 = 1111970369;
241#[doc = " XRGB: packed 8-bit RGB.\n\n Four bytes per pixel: unspecified, red, green, blue."]
242pub const VA_FOURCC_XRGB: u32 = 1111970392;
243#[doc = " YUY2: packed 8-bit YUV 4:2:2.\n\n Four bytes per pair of pixels: Y, U, Y, V."]
244pub const VA_FOURCC_YUY2: u32 = 844715353;
245#[doc = " YV12: three-plane 8-bit YUV 4:2:0.\n\n The three planes contain Y, V and U respectively."]
246pub const VA_FOURCC_YV12: u32 = 842094169;
247#[doc = " I420: three-plane 8-bit YUV 4:2:0.\n\n The three planes contain Y, U and V respectively."]
248pub const VA_FOURCC_I420: u32 = 808596553;
249#[doc = " P010: two-plane 10-bit YUV 4:2:0.\n\n Each sample is a two-byte little-endian value with the bottom six bits ignored.\n The first plane contains Y, the second plane contains U and V in pairs of samples."]
250pub const VA_FOURCC_P010: u32 = 808530000;
251pub const VA_PICTURE_HEVC_INVALID: u32 = 1;
252#[doc = " \\brief Long term reference picture"]
253pub const VA_PICTURE_HEVC_LONG_TERM_REFERENCE: u32 = 8;
254#[doc = " VA_PICTURE_HEVC_RPS_ST_CURR_BEFORE, VA_PICTURE_HEVC_RPS_ST_CURR_AFTER\n and VA_PICTURE_HEVC_RPS_LT_CURR of any picture in ReferenceFrames[] should\n be exclusive. No more than one of them can be set for any picture.\n Sum of NumPocStCurrBefore, NumPocStCurrAfter and NumPocLtCurr\n equals NumPocTotalCurr, which should be equal to or smaller than 8.\n Application should provide valid values for both short format and long format.\n The pictures in DPB with any of these three flags turned on are referred by\n the current picture.\n/\n/** \\brief RefPicSetStCurrBefore of HEVC spec variable\n Number of ReferenceFrames[] entries with this bit set equals\n NumPocStCurrBefore."]
255pub const VA_PICTURE_HEVC_RPS_ST_CURR_BEFORE: u32 = 16;
256#[doc = " \\brief RefPicSetStCurrAfter of HEVC spec variable\n Number of ReferenceFrames[] entries with this bit set equals\n NumPocStCurrAfter."]
257pub const VA_PICTURE_HEVC_RPS_ST_CURR_AFTER: u32 = 32;
258#[doc = " \\brief RefPicSetLtCurr of HEVC spec variable\n Number of ReferenceFrames[] entries with this bit set equals\n NumPocLtCurr."]
259pub const VA_PICTURE_HEVC_RPS_LT_CURR: u32 = 64;
260pub const VA_SOURCE_RANGE_REDUCED: u32 = 1;
261pub const VA_SOURCE_RANGE_FULL: u32 = 2;
262#[doc = " \\brief DRM PRIME memory type\n\n Used with VADRMPRIMESurfaceDescriptor."]
263pub const VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2: u32 = 1073741824;
264#[doc = "Overview\n\nThe VA API is intended to provide an interface between a video decode/encode/processing\napplication (client) and a hardware accelerator (server), to off-load\nvideo decode/encode/processing operations from the host to the hardware accelerator at various\nentry-points.\n\nThe basic operation steps are:\n\n- Negotiate a mutually acceptable configuration with the server to lock\ndown profile, entrypoints, and other attributes that will not change on\na frame-by-frame basis.\n- Create a video decode, encode or processing context which represents a\n\"virtualized\" hardware device\n- Get and fill the render buffers with the corresponding data (depending on\nprofiles and entrypoints)\n- Pass the render buffers to the server to handle the current frame\n\nInitialization & Configuration Management\n\n- Find out supported profiles\n- Find out entrypoints for a given profile\n- Find out configuration attributes for a given profile/entrypoint pair\n- Create a configuration for use by the application"]
265pub type VADisplay = *mut ::std::os::raw::c_void;
266pub type VAStatus = ::std::os::raw::c_int;
267#[doc = " \\brief Structure to describe rectangle."]
268#[repr(C)]
269#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
270pub struct _VARectangle {
271	pub x: i16,
272	pub y: i16,
273	pub width: u16,
274	pub height: u16,
275}
276#[doc = " \\brief Structure to describe rectangle."]
277pub type VARectangle = _VARectangle;
278pub mod VAProfile {
279	#[doc = " Currently defined profiles"]
280	pub type Type = ::std::os::raw::c_int;
281	#[doc = " \\brief Profile ID used for video processing."]
282	pub const VAProfileNone: Type = -1;
283	#[doc = " \\brief Profile ID used for video processing."]
284	pub const VAProfileMPEG2Simple: Type = 0;
285	#[doc = " \\brief Profile ID used for video processing."]
286	pub const VAProfileMPEG2Main: Type = 1;
287	#[doc = " \\brief Profile ID used for video processing."]
288	pub const VAProfileMPEG4Simple: Type = 2;
289	#[doc = " \\brief Profile ID used for video processing."]
290	pub const VAProfileMPEG4AdvancedSimple: Type = 3;
291	#[doc = " \\brief Profile ID used for video processing."]
292	pub const VAProfileMPEG4Main: Type = 4;
293	#[doc = " \\brief Profile ID used for video processing."]
294	pub const VAProfileH264Baseline: Type = 5;
295	#[doc = " \\brief Profile ID used for video processing."]
296	pub const VAProfileH264Main: Type = 6;
297	#[doc = " \\brief Profile ID used for video processing."]
298	pub const VAProfileH264High: Type = 7;
299	#[doc = " \\brief Profile ID used for video processing."]
300	pub const VAProfileVC1Simple: Type = 8;
301	#[doc = " \\brief Profile ID used for video processing."]
302	pub const VAProfileVC1Main: Type = 9;
303	#[doc = " \\brief Profile ID used for video processing."]
304	pub const VAProfileVC1Advanced: Type = 10;
305	#[doc = " \\brief Profile ID used for video processing."]
306	pub const VAProfileH263Baseline: Type = 11;
307	#[doc = " \\brief Profile ID used for video processing."]
308	pub const VAProfileJPEGBaseline: Type = 12;
309	#[doc = " \\brief Profile ID used for video processing."]
310	pub const VAProfileH264ConstrainedBaseline: Type = 13;
311	#[doc = " \\brief Profile ID used for video processing."]
312	pub const VAProfileVP8Version0_3: Type = 14;
313	#[doc = " \\brief Profile ID used for video processing."]
314	pub const VAProfileH264MultiviewHigh: Type = 15;
315	#[doc = " \\brief Profile ID used for video processing."]
316	pub const VAProfileH264StereoHigh: Type = 16;
317	#[doc = " \\brief Profile ID used for video processing."]
318	pub const VAProfileHEVCMain: Type = 17;
319	#[doc = " \\brief Profile ID used for video processing."]
320	pub const VAProfileHEVCMain10: Type = 18;
321	#[doc = " \\brief Profile ID used for video processing."]
322	pub const VAProfileVP9Profile0: Type = 19;
323	#[doc = " \\brief Profile ID used for video processing."]
324	pub const VAProfileVP9Profile1: Type = 20;
325	#[doc = " \\brief Profile ID used for video processing."]
326	pub const VAProfileVP9Profile2: Type = 21;
327	#[doc = " \\brief Profile ID used for video processing."]
328	pub const VAProfileVP9Profile3: Type = 22;
329	#[doc = " \\brief Profile ID used for video processing."]
330	pub const VAProfileHEVCMain12: Type = 23;
331	#[doc = " \\brief Profile ID used for video processing."]
332	pub const VAProfileHEVCMain422_10: Type = 24;
333	#[doc = " \\brief Profile ID used for video processing."]
334	pub const VAProfileHEVCMain422_12: Type = 25;
335	#[doc = " \\brief Profile ID used for video processing."]
336	pub const VAProfileHEVCMain444: Type = 26;
337	#[doc = " \\brief Profile ID used for video processing."]
338	pub const VAProfileHEVCMain444_10: Type = 27;
339	#[doc = " \\brief Profile ID used for video processing."]
340	pub const VAProfileHEVCMain444_12: Type = 28;
341	#[doc = " \\brief Profile ID used for video processing."]
342	pub const VAProfileHEVCSccMain: Type = 29;
343	#[doc = " \\brief Profile ID used for video processing."]
344	pub const VAProfileHEVCSccMain10: Type = 30;
345	#[doc = " \\brief Profile ID used for video processing."]
346	pub const VAProfileHEVCSccMain444: Type = 31;
347	#[doc = " \\brief Profile ID used for video processing."]
348	pub const VAProfileAV1Profile0: Type = 32;
349	#[doc = " \\brief Profile ID used for video processing."]
350	pub const VAProfileAV1Profile1: Type = 33;
351	#[doc = " \\brief Profile ID used for video processing."]
352	pub const VAProfileHEVCSccMain444_10: Type = 34;
353	#[doc = " \\brief Profile ID used for protected video playback."]
354	pub const VAProfileProtected: Type = 35;
355	#[doc = " \\brief Profile ID used for protected video playback."]
356	pub const VAProfileH264High10: Type = 36;
357	#[doc = " \\brief Profile ID used for protected video playback."]
358	pub const VAProfileVVCMain10: Type = 37;
359	#[doc = " \\brief Profile ID used for protected video playback."]
360	pub const VAProfileVVCMultilayerMain10: Type = 38;
361	#[doc = " \\brief Profile ID used for protected video playback."]
362	pub const VAProfileAV1Profile2: Type = 39;
363	#[doc = " \\brief Profile ID used for protected video playback."]
364	pub const VAProfileH264High422: Type = 40;
365}
366pub mod VAEntrypoint {
367	#[doc = "  Currently defined entrypoints"]
368	pub type Type = ::std::os::raw::c_uint;
369	pub const VAEntrypointVLD: Type = 1;
370	pub const VAEntrypointIZZ: Type = 2;
371	pub const VAEntrypointIDCT: Type = 3;
372	pub const VAEntrypointMoComp: Type = 4;
373	pub const VAEntrypointDeblocking: Type = 5;
374	pub const VAEntrypointEncSlice: Type = 6;
375	pub const VAEntrypointEncPicture: Type = 7;
376	pub const VAEntrypointEncSliceLP: Type = 8;
377	#[doc = "< Video pre/post-processing."]
378	pub const VAEntrypointVideoProc: Type = 10;
379	#[doc = " \\brief VAEntrypointFEI\n\n The purpose of FEI (Flexible Encoding Infrastructure) is to allow applications to\n have more controls and trade off quality for speed with their own IPs.\n The application can optionally provide input to ENC for extra encode control\n and get the output from ENC. Application can chose to modify the ENC\n output/PAK input during encoding, but the performance impact is significant.\n\n On top of the existing buffers for normal encode, there will be\n one extra input buffer (VAEncMiscParameterFEIFrameControl) and\n three extra output buffers (VAEncFEIMVBufferType, VAEncFEIMBModeBufferType\n and VAEncFEIDistortionBufferType) for VAEntrypointFEI entry function.\n If separate PAK is set, two extra input buffers\n (VAEncFEIMVBufferType, VAEncFEIMBModeBufferType) are needed for PAK input."]
380	pub const VAEntrypointFEI: Type = 11;
381	#[doc = " \\brief VAEntrypointStats\n\n A pre-processing function for getting some statistics and motion vectors is added,\n and some extra controls for Encode pipeline are provided. The application can\n optionally call the statistics function to get motion vectors and statistics like\n variances, distortions before calling Encode function via this entry point.\n\n Checking whether Statistics is supported can be performed with vaQueryConfigEntrypoints().\n If Statistics entry point is supported, then the list of returned entry-points will\n include #VAEntrypointStats. Supported pixel format, maximum resolution and statistics\n specific attributes can be obtained via normal attribute query. One input buffer\n (VAStatsStatisticsParameterBufferType) and one or two output buffers\n (VAStatsStatisticsBufferType, VAStatsStatisticsBottomFieldBufferType (for interlace only)\n and VAStatsMVBufferType) are needed for this entry point."]
382	pub const VAEntrypointStats: Type = 12;
383	#[doc = " \\brief VAEntrypointProtectedTEEComm\n\n A function for communicating with TEE (Trusted Execution Environment)."]
384	pub const VAEntrypointProtectedTEEComm: Type = 13;
385	#[doc = " \\brief VAEntrypointProtectedContent\n\n A function for protected content to decrypt encrypted content."]
386	pub const VAEntrypointProtectedContent: Type = 14;
387}
388pub mod VAConfigAttribType {
389	#[doc = " Currently defined configuration attribute types"]
390	pub type Type = ::std::os::raw::c_uint;
391	pub const VAConfigAttribRTFormat: Type = 0;
392	pub const VAConfigAttribSpatialResidual: Type = 1;
393	pub const VAConfigAttribSpatialClipping: Type = 2;
394	pub const VAConfigAttribIntraResidual: Type = 3;
395	pub const VAConfigAttribEncryption: Type = 4;
396	pub const VAConfigAttribRateControl: Type = 5;
397	#[doc = " @name Attributes for decoding */\n/**@{*/\n/**\n \\brief Slice Decoding mode. Read/write.\n\n This attribute determines what mode the driver supports for slice\n decoding, through vaGetConfigAttributes(); and what mode the user\n will be providing to the driver, through vaCreateConfig(), if the\n driver supports those. If this attribute is not set by the user then\n it is assumed that VA_DEC_SLICE_MODE_NORMAL mode is used.\n\n See \\c VA_DEC_SLICE_MODE_xxx for the list of slice decoding modes."]
398	pub const VAConfigAttribDecSliceMode: Type = 6;
399	#[doc = " \\brief JPEG decoding attribute. Read-only.\n\n This attribute exposes a number of capabilities of the underlying\n JPEG implementation. The attribute value is partitioned into fields as defined in the\n VAConfigAttribValDecJPEG union."]
400	pub const VAConfigAttribDecJPEG: Type = 7;
401	#[doc = " \\brief Decode processing support. Read/write.\n\n This attribute determines if the driver supports video processing\n with decoding using the decoding context in a single call, through\n vaGetConfigAttributes(); and if the user may use this feature,\n through vaCreateConfig(), if the driver supports the user scenario.\n The user will essentially create a regular decode VAContext.  Therefore,\n the parameters of vaCreateContext() such as picture_width, picture_height\n and render_targets are in relation to the decode output parameters\n (not processing output parameters) as normal.\n If this attribute is not set by the user then it is assumed that no\n extra processing is done after decoding for this decode context.\n\n Since essentially the application is creating a decoder config and context,\n all function calls that take in the config (e.g. vaQuerySurfaceAttributes())\n or context are in relation to the decoder, except those video processing\n function specified in the next paragraph.\n\n Once the decode config and context are created, the user must further\n query the supported processing filters using vaQueryVideoProcFilters(),\n vaQueryVideoProcFilterCaps(), vaQueryVideoProcPipelineCaps() by specifying\n the created decode context.  The user must provide processing information\n and extra processing output surfaces as \"additional_outputs\" to the driver\n through VAProcPipelineParameterBufferType.  The render_target specified\n at vaBeginPicture() time refers to the decode output surface.  The\n target surface for the output of processing needs to be a different\n surface since the decode process requires the original reconstructed buffer.\n The \"surface\" member of VAProcPipelineParameterBuffer should be set to the\n same as \"render_target\" set in vaBeginPicture(), but the driver may choose\n to ignore this parameter."]
402	pub const VAConfigAttribDecProcessing: Type = 8;
403	#[doc = " @name Attributes for encoding */\n/**@{*/\n/**\n \\brief Packed headers mode. Read/write.\n\n This attribute determines what packed headers the driver supports,\n through vaGetConfigAttributes(); and what packed headers the user\n will be providing to the driver, through vaCreateConfig(), if the\n driver supports those.\n\n See \\c VA_ENC_PACKED_HEADER_xxx for the list of packed headers."]
404	pub const VAConfigAttribEncPackedHeaders: Type = 10;
405	#[doc = " \\brief Interlaced mode. Read/write.\n\n This attribute determines what kind of interlaced encoding mode\n the driver supports.\n\n See \\c VA_ENC_INTERLACED_xxx for the list of interlaced modes."]
406	pub const VAConfigAttribEncInterlaced: Type = 11;
407	#[doc = " \\brief Maximum number of reference frames. Read-only.\n\n This attribute determines the maximum number of reference\n frames supported for encoding.\n\n Note: for H.264 encoding, the value represents the maximum number\n of reference frames for both the reference picture list 0 (bottom\n 16 bits) and the reference picture list 1 (top 16 bits)."]
408	pub const VAConfigAttribEncMaxRefFrames: Type = 13;
409	#[doc = " \\brief Maximum number of slices per frame. Read-only.\n\n This attribute determines the maximum number of slices the\n driver can support to encode a single frame."]
410	pub const VAConfigAttribEncMaxSlices: Type = 14;
411	#[doc = " \\brief Slice structure. Read-only.\n\n This attribute determines slice structures supported by the\n driver for encoding. This attribute is a hint to the user so\n that he can choose a suitable surface size and how to arrange\n the encoding process of multiple slices per frame.\n\n More specifically, for H.264 encoding, this attribute\n determines the range of accepted values to\n VAEncSliceParameterBufferH264::macroblock_address and\n VAEncSliceParameterBufferH264::num_macroblocks.\n\n See \\c VA_ENC_SLICE_STRUCTURE_xxx for the supported slice\n structure types."]
412	pub const VAConfigAttribEncSliceStructure: Type = 15;
413	#[doc = " \\brief Macroblock information. Read-only.\n\n This attribute determines whether the driver supports extra\n encoding information per-macroblock. e.g. QP.\n\n More specifically, for H.264 encoding, if the driver returns a non-zero\n value for this attribute, this means the application can create\n additional #VAEncMacroblockParameterBufferH264 buffers referenced\n through VAEncSliceParameterBufferH264::macroblock_info."]
414	pub const VAConfigAttribEncMacroblockInfo: Type = 16;
415	#[doc = " \\brief Maximum picture width. Read-only.\n\n This attribute determines the maximum picture width the driver supports\n for a given configuration."]
416	pub const VAConfigAttribMaxPictureWidth: Type = 18;
417	#[doc = " \\brief Maximum picture height. Read-only.\n\n This attribute determines the maximum picture height the driver supports\n for a given configuration."]
418	pub const VAConfigAttribMaxPictureHeight: Type = 19;
419	#[doc = " \\brief JPEG encoding attribute. Read-only.\n\n This attribute exposes a number of capabilities of the underlying\n JPEG implementation. The attribute value is partitioned into fields as defined in the\n VAConfigAttribValEncJPEG union."]
420	pub const VAConfigAttribEncJPEG: Type = 20;
421	#[doc = " \\brief Encoding quality range attribute. Read-only.\n\n This attribute conveys whether the driver supports different quality level settings\n for encoding. A value less than or equal to 1 means that the encoder only has a single\n quality setting, and a value greater than 1 represents the number of quality levels\n that can be configured. e.g. a value of 2 means there are two distinct quality levels."]
422	pub const VAConfigAttribEncQualityRange: Type = 21;
423	#[doc = " \\brief Encoding quantization attribute. Read-only.\n\n This attribute conveys whether the driver supports certain types of quantization methods\n for encoding (e.g. trellis). See \\c VA_ENC_QUANTIZATION_xxx for the list of quantization methods"]
424	pub const VAConfigAttribEncQuantization: Type = 22;
425	#[doc = " \\brief Encoding intra refresh attribute. Read-only.\n\n This attribute conveys whether the driver supports certain types of intra refresh methods\n for encoding (e.g. adaptive intra refresh or rolling intra refresh).\n See \\c VA_ENC_INTRA_REFRESH_xxx for intra refresh methods"]
426	pub const VAConfigAttribEncIntraRefresh: Type = 23;
427	#[doc = " \\brief Encoding skip frame attribute. Read-only.\n\n This attribute conveys whether the driver supports sending skip frame parameters\n (VAEncMiscParameterTypeSkipFrame) to the encoder's rate control, when the user has\n externally skipped frames."]
428	pub const VAConfigAttribEncSkipFrame: Type = 24;
429	#[doc = " \\brief Encoding region-of-interest (ROI) attribute. Read-only.\n\n This attribute conveys whether the driver supports region-of-interest (ROI) encoding,\n based on user provided ROI rectangles.  The attribute value is partitioned into fields\n as defined in the VAConfigAttribValEncROI union.\n\n If ROI encoding is supported, the ROI information is passed to the driver using\n VAEncMiscParameterTypeROI."]
430	pub const VAConfigAttribEncROI: Type = 25;
431	#[doc = " \\brief Encoding extended rate control attribute. Read-only.\n\n This attribute conveys whether the driver supports any extended rate control features\n The attribute value is partitioned into fields as defined in the\n VAConfigAttribValEncRateControlExt union."]
432	pub const VAConfigAttribEncRateControlExt: Type = 26;
433	#[doc = " \\brief Processing rate reporting attribute. Read-only.\n\n This attribute conveys whether the driver supports reporting of\n encode/decode processing rate based on certain set of parameters\n (i.e. levels, I frame internvals) for a given configuration.\n If this is supported, vaQueryProcessingRate() can be used to get\n encode or decode processing rate.\n See \\c VA_PROCESSING_RATE_xxx for encode/decode processing rate"]
434	pub const VAConfigAttribProcessingRate: Type = 27;
435	#[doc = " \\brief Encoding dirty rectangle. Read-only.\n\n This attribute conveys whether the driver supports dirty rectangle.\n encoding, based on user provided ROI rectangles which indicate the rectangular areas\n where the content has changed as compared to the previous picture.  The regions of the\n picture that are not covered by dirty rect rectangles are assumed to have not changed\n compared to the previous picture.  The encoder may do some optimizations based on\n this information.  The attribute value returned indicates the number of regions that\n are supported.  e.g. A value of 0 means dirty rect encoding is not supported.  If dirty\n rect encoding is supported, the ROI information is passed to the driver using\n VAEncMiscParameterTypeDirtyRect."]
436	pub const VAConfigAttribEncDirtyRect: Type = 28;
437	#[doc = " \\brief Parallel Rate Control (hierachical B) attribute. Read-only.\n\n This attribute conveys whether the encoder supports parallel rate control.\n It is a integer value 0 - unsupported, > 0 - maximum layer supported.\n This is the way when hireachical B frames are encoded, multiple independent B frames\n on the same layer may be processed at same time. If supported, app may enable it by\n setting enable_parallel_brc in VAEncMiscParameterRateControl,and the number of B frames\n per layer per GOP will be passed to driver through VAEncMiscParameterParallelRateControl\n structure.Currently three layers are defined."]
438	pub const VAConfigAttribEncParallelRateControl: Type = 29;
439	#[doc = " \\brief Dynamic Scaling Attribute. Read-only.\n\n This attribute conveys whether encoder is capable to determine dynamic frame\n resolutions adaptive to bandwidth utilization and processing power, etc.\n It is a boolean value 0 - unsupported, 1 - supported.\n If it is supported,for VP9, suggested frame resolution can be retrieved from VACodedBufferVP9Status."]
440	pub const VAConfigAttribEncDynamicScaling: Type = 30;
441	#[doc = " \\brief frame size tolerance support\n it indicates the tolerance of frame size"]
442	pub const VAConfigAttribFrameSizeToleranceSupport: Type = 31;
443	#[doc = " \\brief Encode function type for FEI.\n\n This attribute conveys whether the driver supports different function types for encode.\n It can be VA_FEI_FUNCTION_ENC, VA_FEI_FUNCTION_PAK, or VA_FEI_FUNCTION_ENC_PAK. Currently\n it is for FEI entry point only.\n Default is VA_FEI_FUNCTION_ENC_PAK."]
444	pub const VAConfigAttribFEIFunctionType: Type = 32;
445	#[doc = " \\brief Maximum number of FEI MV predictors. Read-only.\n\n This attribute determines the maximum number of MV predictors the driver\n can support to encode a single frame. 0 means no MV predictor is supported.\n Currently it is for FEI entry point only."]
446	pub const VAConfigAttribFEIMVPredictors: Type = 33;
447	#[doc = " \\brief Statistics attribute. Read-only.\n\n This attribute exposes a number of capabilities of the VAEntrypointStats entry\n point. The attribute value is partitioned into fields as defined in the\n VAConfigAttribValStats union. Currently it is for VAEntrypointStats only."]
448	pub const VAConfigAttribStats: Type = 34;
449	#[doc = " \\brief Tile Support Attribute. Read-only.\n\n This attribute conveys whether encoder is capable to support tiles.\n If not supported, the tile related parameters sent to encoder, such as\n tiling structure, should be ignored. 0 - unsupported, 1 - supported."]
450	pub const VAConfigAttribEncTileSupport: Type = 35;
451	#[doc = " \\brief whether accept rouding setting from application. Read-only.\n This attribute is for encode quality, if it is report,\n application can change the rounding setting by VAEncMiscParameterTypeCustomRoundingControl"]
452	pub const VAConfigAttribCustomRoundingControl: Type = 36;
453	#[doc = " \\brief Encoding QP info block size attribute. Read-only.\n This attribute conveys the block sizes that underlying driver\n support for QP info for buffer #VAEncQpBuffer."]
454	pub const VAConfigAttribQPBlockSize: Type = 37;
455	#[doc = " \\brief encode max frame size attribute. Read-only\n attribute value \\c VAConfigAttribValMaxFrameSize represent max frame size support"]
456	pub const VAConfigAttribMaxFrameSize: Type = 38;
457	#[doc = " \\brief inter frame prediction directrion attribute. Read-only.\n this attribute conveys the prediction direction (backward or forword) for specific config\n the value could be  VA_PREDICTION_DIRECTION_XXXX. it can be combined with VAConfigAttribEncMaxRefFrames\n to describe reference list , and the prediction direction. if this attrib is not present,both direction\n should be supported, no restriction.\n for example: normal HEVC encoding , maximum reference frame number in reflist 0 and reflist 1 is deduced\n by  VAConfigAttribEncMaxRefFrames. so there are typical P frame, B frame,\n if VAConfigAttribPredictionDirection is also present. it will stipulate prediction direction in both\n reference list. if only one prediction direction present(such as PREVIOUS),all reference frame should be\n  previous frame (PoC < current)."]
458	pub const VAConfigAttribPredictionDirection: Type = 39;
459	#[doc = " \\brief combined submission of multiple frames from different streams, it is optimization for different HW\n implementation, multiple frames encode/decode can improve HW concurrency"]
460	pub const VAConfigAttribMultipleFrame: Type = 40;
461	#[doc = " \\brief priority setting for the context. Read-Write\n  attribute value is \\c VAConfigAttribValContextPriority\n  this setting also could be update by \\c VAContextParameterUpdateBuffer"]
462	pub const VAConfigAttribContextPriority: Type = 41;
463	#[doc = " \\brief AV1 decoding features.  Read-only.\n\n This attribute describes the supported features of an\n AV1 decoder configuration.  The value returned uses the\n VAConfigAttribValDecAV1Features type."]
464	pub const VAConfigAttribDecAV1Features: Type = 42;
465	#[doc = " \\brief TEE could be any HW secure device. Read-only"]
466	pub const VAConfigAttribTEEType: Type = 43;
467	#[doc = " \\brief TEE type client is a specific module supporting specific functions in TEE. Read-only"]
468	pub const VAConfigAttribTEETypeClient: Type = 44;
469	#[doc = " \\brief Cipher algorithm of the protected content session.\n\n This attribute specifies the cipher algorithm of the protected content session. It\n could be \\c VA_PC_CIPHER_AES, etc...."]
470	pub const VAConfigAttribProtectedContentCipherAlgorithm: Type = 45;
471	#[doc = " \\brief Cipher block size of the protected content session.\n\n This attribute specifies the block size of the protected content session. It could be\n \\c VA_PC_BLOCK_SIZE_128, \\c VA_PC_BLOCK_SIZE_192, or \\c VA_PC_BLOCK_SIZE_256, etc...."]
472	pub const VAConfigAttribProtectedContentCipherBlockSize: Type = 46;
473	#[doc = " \\brief Cipher mode of the protected content session.\n\n This attribute specifies the cipher mode of the protected content session. It could\n be \\c VA_PC_CIPHER_MODE_ECB, \\c VA_PC_CIPHER_MODE_CBC, \\c VA_PC_CIPHER_MODE_CTR, etc..."]
474	pub const VAConfigAttribProtectedContentCipherMode: Type = 47;
475	#[doc = " \\brief Decryption sample type of the protected content session.\n\n This attribute specifies the decryption sample type of the protected content session.\n It could be \\c VA_PC_SAMPLE_TYPE_FULLSAMPLE or \\c VA_PC_SAMPLE_TYPE_SUBSAMPLE."]
476	pub const VAConfigAttribProtectedContentCipherSampleType: Type = 48;
477	#[doc = " \\brief Special usage attribute of the protected session.\n\n The attribute specifies the flow for the protected session could be used. For\n example, it could be \\c VA_PC_USAGE_DEFAULT, \\c VA_PC_USAGE_WIDEVINE, etc...."]
478	pub const VAConfigAttribProtectedContentUsage: Type = 49;
479	#[doc = " \\brief HEVC/H.265 encoding features.  Read-only.\n\n This attribute describes the supported features of an\n HEVC/H.265 encoder configuration.  The value returned uses the\n VAConfigAttribValEncHEVCFeatures type.\n\n If this attribute is supported by a driver then it must also\n support the VAConfigAttribEncHEVCBlockSizes attribute."]
480	pub const VAConfigAttribEncHEVCFeatures: Type = 50;
481	#[doc = " \\brief HEVC/H.265 encoding block sizes.  Read-only.\n\n This attribute describes the supported coding tree and transform\n block sizes of an HEVC/H.265 encoder configuration.  The value\n returned uses the VAConfigAttribValEncHEVCBlockSizes type.\n\n If this attribute is supported by a driver then it must also\n support the VAConfigAttribEncHEVCFeatures attribute."]
482	pub const VAConfigAttribEncHEVCBlockSizes: Type = 51;
483	#[doc = " \\brief AV1 encoding attribute. Read-only.\n\n This attribute exposes a number of capabilities of the underlying\n AV1 implementation. The attribute value is partitioned into fields as defined in the\n VAConfigAttribValEncAV1 union."]
484	pub const VAConfigAttribEncAV1: Type = 52;
485	#[doc = " \\brief AV1 encoding attribute extend1. Read-only.\n\n This attribute exposes a number of capabilities of the underlying\n AV1 implementation. The attribute value is partitioned into fields as defined in the\n VAConfigAttribValEncAV1Ext1 union."]
486	pub const VAConfigAttribEncAV1Ext1: Type = 53;
487	#[doc = " \\brief AV1 encoding attribute extend2. Read-only.\n\n This attribute exposes a number of capabilities of the underlying\n AV1 implementation. The attribute value is partitioned into fields as defined in the\n VAConfigAttribValEncAV1Ext2 union."]
488	pub const VAConfigAttribEncAV1Ext2: Type = 54;
489	#[doc = " \\brief Settings per block attribute for Encoding.  Read-only.\n\n This attribute describes whether to support delta qp per block,\n the supported size of delta qp block and the size of delta QP in bytes.\n The value returned uses the VAConfigAttribValEncPerBlockControl type."]
490	pub const VAConfigAttribEncPerBlockControl: Type = 55;
491	#[doc = " \\brief Maximum number of tile rows. Read-only.\n\n This attribute determines the maximum number of tile\n rows supported for encoding with tile support."]
492	pub const VAConfigAttribEncMaxTileRows: Type = 56;
493	#[doc = " \\brief Maximum number of tile cols. Read-only.\n\n This attribute determines the maximum number of tile\n columns supported for encoding with tile support."]
494	pub const VAConfigAttribEncMaxTileCols: Type = 57;
495	#[doc = " \\brief VP9 encoding attribute. Read-only.\n\n This attribute exposes a number of capabilities of the underlying\n VP9 implementation. The attribute value is partitioned into fields as defined in the\n VAConfigAttribValEncVP9 union."]
496	pub const VAConfigAttribEncVP9: Type = 58;
497	#[doc = "@}"]
498	pub const VAConfigAttribTypeMax: Type = 59;
499}
500#[doc = " Configuration attributes\n If there is more than one value for an attribute, a default\n value will be assigned to the attribute if the client does not\n specify the attribute when creating a configuration"]
501#[repr(C)]
502#[derive(Debug, Copy, Clone, PartialEq, Eq)]
503pub struct _VAConfigAttrib {
504	pub type_: VAConfigAttribType::Type,
505	pub value: u32,
506}
507impl Default for _VAConfigAttrib {
508	fn default() -> Self {
509		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
510		unsafe {
511			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
512			s.assume_init()
513		}
514	}
515}
516#[doc = " Configuration attributes\n If there is more than one value for an attribute, a default\n value will be assigned to the attribute if the client does not\n specify the attribute when creating a configuration"]
517pub type VAConfigAttrib = _VAConfigAttrib;
518#[doc = " Generic ID type, can be re-typed for specific implementation"]
519pub type VAGenericID = ::std::os::raw::c_uint;
520pub type VAConfigID = VAGenericID;
521#[doc = " Contexts and Surfaces\n\n Context represents a \"virtual\" video decode, encode or video processing\n pipeline. Surfaces are render targets for a given context. The data in the\n surfaces are not accessible to the client except if derived image is supported\n and the internal data format of the surface is implementation specific.\n\n Surfaces are provided as a hint of what surfaces will be used when the context\n is created through vaCreateContext(). A surface may be used by different contexts\n at the same time as soon as application can make sure the operations are synchronized\n between different contexts, e.g. a surface is used as the output of a decode context\n and the input of a video process context. Surfaces can only be destroyed after all\n contexts using these surfaces have been destroyed.\n\n Both contexts and surfaces are identified by unique IDs and its\n implementation specific internals are kept opaque to the clients"]
522pub type VAContextID = VAGenericID;
523pub type VASurfaceID = VAGenericID;
524pub mod VAGenericValueType {
525	#[doc = " \\brief Generic value types."]
526	pub type Type = ::std::os::raw::c_uint;
527	#[doc = "< 32-bit signed integer."]
528	pub const VAGenericValueTypeInteger: Type = 1;
529	#[doc = "< 32-bit floating-point value."]
530	pub const VAGenericValueTypeFloat: Type = 2;
531	#[doc = "< Generic pointer type"]
532	pub const VAGenericValueTypePointer: Type = 3;
533	#[doc = "< Pointer to function"]
534	pub const VAGenericValueTypeFunc: Type = 4;
535}
536#[doc = " \\brief Generic function type."]
537pub type VAGenericFunc = ::std::option::Option<unsafe extern "C" fn()>;
538#[doc = " \\brief Generic value."]
539#[repr(C)]
540#[derive(Copy, Clone)]
541pub struct _VAGenericValue {
542	#[doc = " \\brief Value type. See #VAGenericValueType."]
543	pub type_: VAGenericValueType::Type,
544	pub value: _VAGenericValue__bindgen_ty_1,
545}
546#[doc = " \\brief Value holder."]
547#[repr(C)]
548#[derive(Copy, Clone)]
549pub union _VAGenericValue__bindgen_ty_1 {
550	#[doc = " \\brief 32-bit signed integer."]
551	pub i: i32,
552	#[doc = " \\brief 32-bit float."]
553	pub f: f32,
554	#[doc = " \\brief Generic pointer."]
555	pub p: *mut ::std::os::raw::c_void,
556	#[doc = " \\brief Pointer to function."]
557	pub fn_: VAGenericFunc,
558}
559impl Default for _VAGenericValue__bindgen_ty_1 {
560	fn default() -> Self {
561		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
562		unsafe {
563			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
564			s.assume_init()
565		}
566	}
567}
568impl Default for _VAGenericValue {
569	fn default() -> Self {
570		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
571		unsafe {
572			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
573			s.assume_init()
574		}
575	}
576}
577#[doc = " \\brief Generic value."]
578pub type VAGenericValue = _VAGenericValue;
579pub mod VASurfaceAttribType {
580	#[doc = " \\brief Surface attribute types."]
581	pub type Type = ::std::os::raw::c_uint;
582	pub const VASurfaceAttribNone: Type = 0;
583	#[doc = " \\brief Pixel format as a FOURCC (int, read/write).\n\n When vaQuerySurfaceAttributes() is called, the driver will return one\n PixelFormat attribute per supported pixel format.\n\n When provided as an input to vaCreateSurfaces(), the driver will\n allocate a surface with the provided pixel format."]
584	pub const VASurfaceAttribPixelFormat: Type = 1;
585	#[doc = " \\brief Minimal width in pixels (int, read-only)."]
586	pub const VASurfaceAttribMinWidth: Type = 2;
587	#[doc = " \\brief Maximal width in pixels (int, read-only)."]
588	pub const VASurfaceAttribMaxWidth: Type = 3;
589	#[doc = " \\brief Minimal height in pixels (int, read-only)."]
590	pub const VASurfaceAttribMinHeight: Type = 4;
591	#[doc = " \\brief Maximal height in pixels (int, read-only)."]
592	pub const VASurfaceAttribMaxHeight: Type = 5;
593	#[doc = " \\brief Surface memory type expressed in bit fields (int, read/write)."]
594	pub const VASurfaceAttribMemoryType: Type = 6;
595	#[doc = " \\brief External buffer descriptor (pointer, write).\n\n Refer to the documentation for the memory type being created to\n determine what descriptor structure to pass here.  If not otherwise\n stated, the common VASurfaceAttribExternalBuffers should be used."]
596	pub const VASurfaceAttribExternalBufferDescriptor: Type = 7;
597	#[doc = " \\brief Surface usage hint, gives the driver a hint of intended usage\n  to optimize allocation (e.g. tiling) (int, read/write)."]
598	pub const VASurfaceAttribUsageHint: Type = 8;
599	#[doc = " \\brief List of possible DRM format modifiers (pointer, write).\n\n The value must be a pointer to a VADRMFormatModifierList. This can only\n be used when allocating a new buffer, it's invalid to use this attribute\n when importing an existing buffer."]
600	pub const VASurfaceAttribDRMFormatModifiers: Type = 9;
601	#[doc = " \\brief width and height log2 aligment in pixels (int, read-only)\n\n For special HW requirement used in some codecs, if\n VASurfaceAttribAlignmentSize is not implemented in the driver, then\n the surface_width and surface_height should keep the original logic\n without any modification, this is an add-on requirement to\n surface_width and surface_height."]
602	pub const VASurfaceAttribAlignmentSize: Type = 10;
603	#[doc = " \\brief Number of surface attributes."]
604	pub const VASurfaceAttribCount: Type = 11;
605}
606#[doc = " \\brief Surface attribute."]
607#[repr(C)]
608#[derive(Copy, Clone)]
609pub struct _VASurfaceAttrib {
610	#[doc = " \\brief Type."]
611	pub type_: VASurfaceAttribType::Type,
612	#[doc = " \\brief Flags. See \"Surface attribute flags\"."]
613	pub flags: u32,
614	#[doc = " \\brief Value. See \"Surface attribute types\" for the expected types."]
615	pub value: VAGenericValue,
616}
617impl Default for _VASurfaceAttrib {
618	fn default() -> Self {
619		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
620		unsafe {
621			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
622			s.assume_init()
623		}
624	}
625}
626#[doc = " \\brief Surface attribute."]
627pub type VASurfaceAttrib = _VASurfaceAttrib;
628#[doc = " \\brief VASurfaceAttribExternalBuffers structure for\n the VASurfaceAttribExternalBufferDescriptor attribute."]
629#[repr(C)]
630#[derive(Debug, Copy, Clone, PartialEq, Eq)]
631pub struct _VASurfaceAttribExternalBuffers {
632	#[doc = " \\brief pixel format in fourcc."]
633	pub pixel_format: u32,
634	#[doc = " \\brief width in pixels."]
635	pub width: u32,
636	#[doc = " \\brief height in pixels."]
637	pub height: u32,
638	#[doc = " \\brief total size of the buffer in bytes."]
639	pub data_size: u32,
640	#[doc = " \\brief number of planes for planar layout"]
641	pub num_planes: u32,
642	#[doc = " \\brief pitch for each plane in bytes"]
643	pub pitches: [u32; 4usize],
644	#[doc = " \\brief offset for each plane in bytes"]
645	pub offsets: [u32; 4usize],
646	#[doc = " \\brief buffer handles or user pointers"]
647	pub buffers: *mut usize,
648	#[doc = " \\brief number of elements in the \"buffers\" array"]
649	pub num_buffers: u32,
650	#[doc = " \\brief flags. See \"Surface external buffer descriptor flags\"."]
651	pub flags: u32,
652	#[doc = " \\brief reserved for passing private data"]
653	pub private_data: *mut ::std::os::raw::c_void,
654}
655impl Default for _VASurfaceAttribExternalBuffers {
656	fn default() -> Self {
657		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
658		unsafe {
659			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
660			s.assume_init()
661		}
662	}
663}
664#[doc = " \\brief VASurfaceAttribExternalBuffers structure for\n the VASurfaceAttribExternalBufferDescriptor attribute."]
665pub type VASurfaceAttribExternalBuffers = _VASurfaceAttribExternalBuffers;
666#[doc = " Buffers\n Buffers are used to pass various types of data from the\n client to the server. The server maintains a data store\n for each buffer created, and the client idenfies a buffer\n through a unique buffer id assigned by the server."]
667pub type VABufferID = VAGenericID;
668pub mod VABufferType {
669	pub type Type = ::std::os::raw::c_uint;
670	pub const VAPictureParameterBufferType: Type = 0;
671	pub const VAIQMatrixBufferType: Type = 1;
672	pub const VABitPlaneBufferType: Type = 2;
673	pub const VASliceGroupMapBufferType: Type = 3;
674	pub const VASliceParameterBufferType: Type = 4;
675	pub const VASliceDataBufferType: Type = 5;
676	pub const VAMacroblockParameterBufferType: Type = 6;
677	pub const VAResidualDataBufferType: Type = 7;
678	pub const VADeblockingParameterBufferType: Type = 8;
679	pub const VAImageBufferType: Type = 9;
680	pub const VAProtectedSliceDataBufferType: Type = 10;
681	pub const VAQMatrixBufferType: Type = 11;
682	pub const VAHuffmanTableBufferType: Type = 12;
683	pub const VAProbabilityBufferType: Type = 13;
684	pub const VAEncCodedBufferType: Type = 21;
685	pub const VAEncSequenceParameterBufferType: Type = 22;
686	pub const VAEncPictureParameterBufferType: Type = 23;
687	pub const VAEncSliceParameterBufferType: Type = 24;
688	pub const VAEncPackedHeaderParameterBufferType: Type = 25;
689	pub const VAEncPackedHeaderDataBufferType: Type = 26;
690	pub const VAEncMiscParameterBufferType: Type = 27;
691	pub const VAEncMacroblockParameterBufferType: Type = 28;
692	pub const VAEncMacroblockMapBufferType: Type = 29;
693	#[doc = " \\brief Encoding QP buffer\n\n This buffer contains QP per MB for encoding. Currently\n VAEncQPBufferH264 is defined for H.264 encoding, see\n #VAEncQPBufferH264 for details"]
694	pub const VAEncQPBufferType: Type = 30;
695	#[doc = " \\brief Video processing pipeline parameter buffer.\n\n This buffer describes the video processing pipeline. See\n #VAProcPipelineParameterBuffer for details."]
696	pub const VAProcPipelineParameterBufferType: Type = 41;
697	#[doc = " \\brief Video filter parameter buffer.\n\n This buffer describes the video filter parameters. All buffers\n inherit from #VAProcFilterParameterBufferBase, thus including\n a unique filter buffer type.\n\n The default buffer used by most filters is #VAProcFilterParameterBuffer.\n Filters requiring advanced parameters include, but are not limited to,\n deinterlacing (#VAProcFilterParameterBufferDeinterlacing),\n color balance (#VAProcFilterParameterBufferColorBalance), etc."]
698	pub const VAProcFilterParameterBufferType: Type = 42;
699	#[doc = " \\brief FEI specific buffer types"]
700	pub const VAEncFEIMVBufferType: Type = 43;
701	#[doc = " \\brief FEI specific buffer types"]
702	pub const VAEncFEIMBCodeBufferType: Type = 44;
703	#[doc = " \\brief FEI specific buffer types"]
704	pub const VAEncFEIDistortionBufferType: Type = 45;
705	#[doc = " \\brief FEI specific buffer types"]
706	pub const VAEncFEIMBControlBufferType: Type = 46;
707	#[doc = " \\brief FEI specific buffer types"]
708	pub const VAEncFEIMVPredictorBufferType: Type = 47;
709	#[doc = " \\brief FEI specific buffer types"]
710	pub const VAStatsStatisticsParameterBufferType: Type = 48;
711	#[doc = " \\brief Statistics output for VAEntrypointStats progressive and top field of interlaced case"]
712	pub const VAStatsStatisticsBufferType: Type = 49;
713	#[doc = " \\brief Statistics output for VAEntrypointStats bottom field of interlaced case"]
714	pub const VAStatsStatisticsBottomFieldBufferType: Type = 50;
715	#[doc = " \\brief Statistics output for VAEntrypointStats bottom field of interlaced case"]
716	pub const VAStatsMVBufferType: Type = 51;
717	#[doc = " \\brief Statistics output for VAEntrypointStats bottom field of interlaced case"]
718	pub const VAStatsMVPredictorBufferType: Type = 52;
719	#[doc = " Force MB's to be non skip for encode.it's per-mb control buffer, The width of the MB map\n Surface is (width of the Picture in MB unit) * 1 byte, multiple of 64 bytes.\n The height is (height of the picture in MB unit). The picture is either\n frame or non-interleaved top or bottom field.  If the application provides this\nsurface, it will override the \"skipCheckDisable\" setting in VAEncMiscParameterEncQuality."]
720	pub const VAEncMacroblockDisableSkipMapBufferType: Type = 53;
721	#[doc = " \\brief HEVC FEI CTB level cmd buffer\n it is CTB level information for future usage."]
722	pub const VAEncFEICTBCmdBufferType: Type = 54;
723	#[doc = " \\brief HEVC FEI CU level data buffer\n it's CTB level information for future usage"]
724	pub const VAEncFEICURecordBufferType: Type = 55;
725	#[doc = " decode stream out buffer, intermedia data of decode, it may include MV, MB mode etc.\n it can be used to detect motion and analyze the frame contain"]
726	pub const VADecodeStreamoutBufferType: Type = 56;
727	#[doc = " \\brief HEVC Decoding Subset Parameter buffer type\n\n The subsets parameter buffer is concatenation with one or multiple\n subset entry point offsets. All the offset values are layed out one\n by one according to slice order with first slice segment first, second\n slice segment second, etc... The entry number is indicated by parameter\n \\ref num_entry_point_offsets. And the first entry position of the entry\n point offsets for any slice segment is indicated by parameter\n entry_offset_to_subset_array in VAPictureParameterBufferHEVC data structure."]
728	pub const VASubsetsParameterBufferType: Type = 57;
729	#[doc = " \\brief adjust context parameters dynamically\n\n this parameter is used to update context parameters, detail parameter is in\n  \\c VAContextParameterUpdateBuffer"]
730	pub const VAContextParameterUpdateBufferType: Type = 58;
731	#[doc = " \\brief Protected session execution buffer type\n\n It's for TEE execution usage (vaProtectedSessionExecute()). The buffer structure is in\n \\c VAProtectedSessionExecuteBuffer"]
732	pub const VAProtectedSessionExecuteBufferType: Type = 59;
733	#[doc = " \\brief Encryption parameters buffer for protected content session.\n\n Refer to \\c VAEncryptionParameters"]
734	pub const VAEncryptionParameterBufferType: Type = 60;
735	#[doc = " \\brief Encoding delta QP per block buffer\n\n This buffer only could be created and accepted\n when \\c VAConfigAttribValEncPerBlockControl delta_qp_support == 1.\n This input buffer contains delta QP per block for encoding.\n The supported size of delta QP block and the size of delta QP\n must be quried from \\c VAConfigAttribValEncPerBlockControl."]
736	pub const VAEncDeltaQpPerBlockBufferType: Type = 61;
737	#[doc = " \\brief VVC ALF data buffer\n\n Refer to \\c VAAlfDataVVC"]
738	pub const VAAlfBufferType: Type = 62;
739	#[doc = " \\brief VVC LMCS data buffer\n\n Refer to \\c VALmcsDataVVC"]
740	pub const VALmcsBufferType: Type = 63;
741	#[doc = " \\brief VVC SubPic data buffer\n\n Refer to \\c VASubPicVVC"]
742	pub const VASubPicBufferType: Type = 64;
743	#[doc = " \\brief VVC Tile Dimension data buffer\n\n Data buffer of tile widths and heights, with each element formatted as uint16_t"]
744	pub const VATileBufferType: Type = 65;
745	#[doc = " \\brief VVC Slice Structure data buffer\n\n Refer to \\c VASliceStructVVC"]
746	pub const VASliceStructBufferType: Type = 66;
747	#[doc = " \\brief VVC Slice Structure data buffer\n\n Refer to \\c VASliceStructVVC"]
748	pub const VABufferTypeMax: Type = 67;
749}
750pub mod VAEncMiscParameterType {
751	pub type Type = ::std::os::raw::c_uint;
752	pub const VAEncMiscParameterTypeFrameRate: Type = 0;
753	pub const VAEncMiscParameterTypeRateControl: Type = 1;
754	pub const VAEncMiscParameterTypeMaxSliceSize: Type = 2;
755	pub const VAEncMiscParameterTypeAIR: Type = 3;
756	#[doc = " \\brief Buffer type used to express a maximum frame size (in bits)."]
757	pub const VAEncMiscParameterTypeMaxFrameSize: Type = 4;
758	#[doc = " \\brief Buffer type used for HRD parameters."]
759	pub const VAEncMiscParameterTypeHRD: Type = 5;
760	#[doc = " \\brief Buffer type used for HRD parameters."]
761	pub const VAEncMiscParameterTypeQualityLevel: Type = 6;
762	#[doc = " \\brief Buffer type used for Rolling intra refresh"]
763	pub const VAEncMiscParameterTypeRIR: Type = 7;
764	#[doc = " \\brief Buffer type used for quantization parameters, it's per-sequence parameter"]
765	pub const VAEncMiscParameterTypeQuantization: Type = 8;
766	#[doc = " \\brief Buffer type used for sending skip frame parameters to the encoder's\n rate control, when the user has externally skipped frames."]
767	pub const VAEncMiscParameterTypeSkipFrame: Type = 9;
768	#[doc = " \\brief Buffer type used for region-of-interest (ROI) parameters."]
769	pub const VAEncMiscParameterTypeROI: Type = 10;
770	#[doc = " \\brief Buffer type used to express a maximum frame size (in bytes) settings for multiple pass."]
771	pub const VAEncMiscParameterTypeMultiPassFrameSize: Type = 11;
772	#[doc = " \\brief Buffer type used for temporal layer structure"]
773	pub const VAEncMiscParameterTypeTemporalLayerStructure: Type = 12;
774	#[doc = " \\brief Buffer type used for dirty region-of-interest (ROI) parameters."]
775	pub const VAEncMiscParameterTypeDirtyRect: Type = 13;
776	#[doc = " \\brief Buffer type used for parallel BRC parameters."]
777	pub const VAEncMiscParameterTypeParallelBRC: Type = 14;
778	#[doc = " \\brief Set MB partion mode mask and Half-pel/Quant-pel motion search"]
779	pub const VAEncMiscParameterTypeSubMbPartPel: Type = 15;
780	#[doc = " \\brief set encode quality tuning"]
781	pub const VAEncMiscParameterTypeEncQuality: Type = 16;
782	#[doc = " \\brief Buffer type used for encoder rounding offset parameters."]
783	pub const VAEncMiscParameterTypeCustomRoundingControl: Type = 17;
784	#[doc = " \\brief Buffer type used for FEI input frame level parameters"]
785	pub const VAEncMiscParameterTypeFEIFrameControl: Type = 18;
786	#[doc = " \\brief encode extension buffer, ect. MPEG2 Sequence extenstion data"]
787	pub const VAEncMiscParameterTypeExtensionData: Type = 19;
788}
789pub mod VAEncPackedHeaderType {
790	#[doc = " \\brief Packed header type."]
791	pub type Type = ::std::os::raw::c_uint;
792	#[doc = " \\brief Packed sequence header."]
793	pub const VAEncPackedHeaderSequence: Type = 1;
794	#[doc = " \\brief Packed picture header."]
795	pub const VAEncPackedHeaderPicture: Type = 2;
796	#[doc = " \\brief Packed slice header."]
797	pub const VAEncPackedHeaderSlice: Type = 3;
798	#[doc = " \\brief Packed raw header.\n\n Packed raw data header can be used by the client to insert a header\n into the bitstream data buffer at the point it is passed, the driver\n will handle the raw packed header based on \"has_emulation_bytes\" field\n in the packed header parameter structure."]
799	pub const VAEncPackedHeaderRawData: Type = 4;
800	#[doc = " \\brief Misc packed header. See codec-specific definitions.\n\n @deprecated\n This is a deprecated packed header type. All applications can use\n \\c VAEncPackedHeaderRawData to insert a codec-specific packed header"]
801	pub const VAEncPackedHeaderMiscMask: Type = 2147483648;
802}
803#[doc = " \\brief Packed header parameter."]
804#[repr(C)]
805#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
806pub struct _VAEncPackedHeaderParameterBuffer {
807	#[doc = " Type of the packed header buffer. See #VAEncPackedHeaderType."]
808	pub type_: u32,
809	#[doc = " \\brief Size of the #VAEncPackedHeaderDataBuffer in bits."]
810	pub bit_length: u32,
811	#[doc = " \\brief Flag: buffer contains start code emulation prevention bytes?"]
812	pub has_emulation_bytes: u8,
813	#[doc = " \\brief Reserved bytes for future use, must be zero"]
814	pub va_reserved: [u32; 4usize],
815}
816#[doc = " \\brief Packed header parameter."]
817pub type VAEncPackedHeaderParameterBuffer = _VAEncPackedHeaderParameterBuffer;
818#[doc = "  For application, e.g. set a new bitrate\n    VABufferID buf_id;\n    VAEncMiscParameterBuffer *misc_param;\n    VAEncMiscParameterRateControl *misc_rate_ctrl;\n\n    vaCreateBuffer(dpy, context, VAEncMiscParameterBufferType,\n              sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterRateControl),\n              1, NULL, &buf_id);\n\n    vaMapBuffer(dpy,buf_id,(void **)&misc_param);\n    misc_param->type = VAEncMiscParameterTypeRateControl;\n    misc_rate_ctrl= (VAEncMiscParameterRateControl *)misc_param->data;\n    misc_rate_ctrl->bits_per_second = 6400000;\n    vaUnmapBuffer(dpy, buf_id);\n    vaRenderPicture(dpy, context, &buf_id, 1);"]
819#[repr(C)]
820#[derive(Debug)]
821pub struct _VAEncMiscParameterBuffer {
822	pub type_: VAEncMiscParameterType::Type,
823	pub data: __IncompleteArrayField<u32>,
824}
825impl Default for _VAEncMiscParameterBuffer {
826	fn default() -> Self {
827		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
828		unsafe {
829			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
830			s.assume_init()
831		}
832	}
833}
834#[doc = "  For application, e.g. set a new bitrate\n    VABufferID buf_id;\n    VAEncMiscParameterBuffer *misc_param;\n    VAEncMiscParameterRateControl *misc_rate_ctrl;\n\n    vaCreateBuffer(dpy, context, VAEncMiscParameterBufferType,\n              sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterRateControl),\n              1, NULL, &buf_id);\n\n    vaMapBuffer(dpy,buf_id,(void **)&misc_param);\n    misc_param->type = VAEncMiscParameterTypeRateControl;\n    misc_rate_ctrl= (VAEncMiscParameterRateControl *)misc_param->data;\n    misc_rate_ctrl->bits_per_second = 6400000;\n    vaUnmapBuffer(dpy, buf_id);\n    vaRenderPicture(dpy, context, &buf_id, 1);"]
835pub type VAEncMiscParameterBuffer = _VAEncMiscParameterBuffer;
836#[doc = " \\brief Rate control parameters"]
837#[repr(C)]
838#[derive(Copy, Clone)]
839pub struct _VAEncMiscParameterRateControl {
840	#[doc = " The maximum bit-rate which the the rate controller should generate."]
841	pub bits_per_second: u32,
842	#[doc = " The target bit-rate which the rate controller should generate, as a percentage of the\n maximum bit-rate.\n\n In CBR mode this value is ignored (treated as 100%)."]
843	pub target_percentage: u32,
844	#[doc = " Rate control window size in milliseconds.\n\n The rate controller will attempt to guarantee that the target and maximum bit-rates are\n correct over this window."]
845	pub window_size: u32,
846	#[doc = " Initial quantiser value used at the start of the stream.\n\n Ignored if set to zero."]
847	pub initial_qp: u32,
848	#[doc = " Minimum quantiser value to use.\n\n The quantiser will not go below the value - if this limit is hit, the output bitrate may\n be lower than the target.  Ignored if set to zero."]
849	pub min_qp: u32,
850	#[doc = " Basic unit size.\n\n Only used by some drivers - see driver documentation for details.  Set to zero if unused."]
851	pub basic_unit_size: u32,
852	pub rc_flags: _VAEncMiscParameterRateControl__bindgen_ty_1,
853	#[doc = " Initial quality factor used in ICQ mode.\n\n This value must be between 1 and 51.\n this value will be deprecated in future, to use quality_factor instead of it."]
854	pub ICQ_quality_factor: u32,
855	#[doc = " Maximum quantiser value to use.\n\n The quantiser will not go above this value - if this limit is hit, the output bitrate\n may exceed the target.  Ignored if set to zero."]
856	pub max_qp: u32,
857	#[doc = " Quality factor\n\n  the range will be different for different codec"]
858	pub quality_factor: u32,
859	#[doc = " Target frame size\n\n  Desired frame size in bytes.\n  This parameter can be used in some RC modes (like Transport Controlled BRC)\n  where feedback from the app is required.\n  Zero value means no limits.\n"]
860	pub target_frame_size: u32,
861	#[doc = " Reserved bytes for future use, must be zero."]
862	pub va_reserved: [u32; 4usize],
863}
864#[repr(C)]
865#[derive(Copy, Clone)]
866pub union _VAEncMiscParameterRateControl__bindgen_ty_1 {
867	pub bits: _VAEncMiscParameterRateControl__bindgen_ty_1__bindgen_ty_1,
868	pub value: u32,
869}
870#[repr(C)]
871#[repr(align(4))]
872#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
873pub struct _VAEncMiscParameterRateControl__bindgen_ty_1__bindgen_ty_1 {
874	pub _bitfield_align_1: [u16; 0],
875	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
876}
877impl _VAEncMiscParameterRateControl__bindgen_ty_1__bindgen_ty_1 {
878	#[inline]
879	pub fn reset(&self) -> u32 {
880		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
881	}
882	#[inline]
883	pub fn set_reset(&mut self, val: u32) {
884		unsafe {
885			let val: u32 = ::std::mem::transmute(val);
886			self._bitfield_1.set(0usize, 1u8, val as u64)
887		}
888	}
889	#[inline]
890	pub unsafe fn reset_raw(this: *const Self) -> u32 {
891		unsafe {
892			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
893				::std::ptr::addr_of!((*this)._bitfield_1),
894				0usize,
895				1u8,
896			) as u32)
897		}
898	}
899	#[inline]
900	pub unsafe fn set_reset_raw(this: *mut Self, val: u32) {
901		unsafe {
902			let val: u32 = ::std::mem::transmute(val);
903			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
904				::std::ptr::addr_of_mut!((*this)._bitfield_1),
905				0usize,
906				1u8,
907				val as u64,
908			)
909		}
910	}
911	#[inline]
912	pub fn disable_frame_skip(&self) -> u32 {
913		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
914	}
915	#[inline]
916	pub fn set_disable_frame_skip(&mut self, val: u32) {
917		unsafe {
918			let val: u32 = ::std::mem::transmute(val);
919			self._bitfield_1.set(1usize, 1u8, val as u64)
920		}
921	}
922	#[inline]
923	pub unsafe fn disable_frame_skip_raw(this: *const Self) -> u32 {
924		unsafe {
925			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
926				::std::ptr::addr_of!((*this)._bitfield_1),
927				1usize,
928				1u8,
929			) as u32)
930		}
931	}
932	#[inline]
933	pub unsafe fn set_disable_frame_skip_raw(this: *mut Self, val: u32) {
934		unsafe {
935			let val: u32 = ::std::mem::transmute(val);
936			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
937				::std::ptr::addr_of_mut!((*this)._bitfield_1),
938				1usize,
939				1u8,
940				val as u64,
941			)
942		}
943	}
944	#[inline]
945	pub fn disable_bit_stuffing(&self) -> u32 {
946		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
947	}
948	#[inline]
949	pub fn set_disable_bit_stuffing(&mut self, val: u32) {
950		unsafe {
951			let val: u32 = ::std::mem::transmute(val);
952			self._bitfield_1.set(2usize, 1u8, val as u64)
953		}
954	}
955	#[inline]
956	pub unsafe fn disable_bit_stuffing_raw(this: *const Self) -> u32 {
957		unsafe {
958			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
959				::std::ptr::addr_of!((*this)._bitfield_1),
960				2usize,
961				1u8,
962			) as u32)
963		}
964	}
965	#[inline]
966	pub unsafe fn set_disable_bit_stuffing_raw(this: *mut Self, val: u32) {
967		unsafe {
968			let val: u32 = ::std::mem::transmute(val);
969			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
970				::std::ptr::addr_of_mut!((*this)._bitfield_1),
971				2usize,
972				1u8,
973				val as u64,
974			)
975		}
976	}
977	#[inline]
978	pub fn mb_rate_control(&self) -> u32 {
979		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 4u8) as u32) }
980	}
981	#[inline]
982	pub fn set_mb_rate_control(&mut self, val: u32) {
983		unsafe {
984			let val: u32 = ::std::mem::transmute(val);
985			self._bitfield_1.set(3usize, 4u8, val as u64)
986		}
987	}
988	#[inline]
989	pub unsafe fn mb_rate_control_raw(this: *const Self) -> u32 {
990		unsafe {
991			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
992				::std::ptr::addr_of!((*this)._bitfield_1),
993				3usize,
994				4u8,
995			) as u32)
996		}
997	}
998	#[inline]
999	pub unsafe fn set_mb_rate_control_raw(this: *mut Self, val: u32) {
1000		unsafe {
1001			let val: u32 = ::std::mem::transmute(val);
1002			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1003				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1004				3usize,
1005				4u8,
1006				val as u64,
1007			)
1008		}
1009	}
1010	#[inline]
1011	pub fn temporal_id(&self) -> u32 {
1012		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 8u8) as u32) }
1013	}
1014	#[inline]
1015	pub fn set_temporal_id(&mut self, val: u32) {
1016		unsafe {
1017			let val: u32 = ::std::mem::transmute(val);
1018			self._bitfield_1.set(7usize, 8u8, val as u64)
1019		}
1020	}
1021	#[inline]
1022	pub unsafe fn temporal_id_raw(this: *const Self) -> u32 {
1023		unsafe {
1024			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1025				::std::ptr::addr_of!((*this)._bitfield_1),
1026				7usize,
1027				8u8,
1028			) as u32)
1029		}
1030	}
1031	#[inline]
1032	pub unsafe fn set_temporal_id_raw(this: *mut Self, val: u32) {
1033		unsafe {
1034			let val: u32 = ::std::mem::transmute(val);
1035			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1036				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1037				7usize,
1038				8u8,
1039				val as u64,
1040			)
1041		}
1042	}
1043	#[inline]
1044	pub fn cfs_I_frames(&self) -> u32 {
1045		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
1046	}
1047	#[inline]
1048	pub fn set_cfs_I_frames(&mut self, val: u32) {
1049		unsafe {
1050			let val: u32 = ::std::mem::transmute(val);
1051			self._bitfield_1.set(15usize, 1u8, val as u64)
1052		}
1053	}
1054	#[inline]
1055	pub unsafe fn cfs_I_frames_raw(this: *const Self) -> u32 {
1056		unsafe {
1057			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1058				::std::ptr::addr_of!((*this)._bitfield_1),
1059				15usize,
1060				1u8,
1061			) as u32)
1062		}
1063	}
1064	#[inline]
1065	pub unsafe fn set_cfs_I_frames_raw(this: *mut Self, val: u32) {
1066		unsafe {
1067			let val: u32 = ::std::mem::transmute(val);
1068			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1069				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1070				15usize,
1071				1u8,
1072				val as u64,
1073			)
1074		}
1075	}
1076	#[inline]
1077	pub fn enable_parallel_brc(&self) -> u32 {
1078		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
1079	}
1080	#[inline]
1081	pub fn set_enable_parallel_brc(&mut self, val: u32) {
1082		unsafe {
1083			let val: u32 = ::std::mem::transmute(val);
1084			self._bitfield_1.set(16usize, 1u8, val as u64)
1085		}
1086	}
1087	#[inline]
1088	pub unsafe fn enable_parallel_brc_raw(this: *const Self) -> u32 {
1089		unsafe {
1090			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1091				::std::ptr::addr_of!((*this)._bitfield_1),
1092				16usize,
1093				1u8,
1094			) as u32)
1095		}
1096	}
1097	#[inline]
1098	pub unsafe fn set_enable_parallel_brc_raw(this: *mut Self, val: u32) {
1099		unsafe {
1100			let val: u32 = ::std::mem::transmute(val);
1101			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1102				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1103				16usize,
1104				1u8,
1105				val as u64,
1106			)
1107		}
1108	}
1109	#[inline]
1110	pub fn enable_dynamic_scaling(&self) -> u32 {
1111		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
1112	}
1113	#[inline]
1114	pub fn set_enable_dynamic_scaling(&mut self, val: u32) {
1115		unsafe {
1116			let val: u32 = ::std::mem::transmute(val);
1117			self._bitfield_1.set(17usize, 1u8, val as u64)
1118		}
1119	}
1120	#[inline]
1121	pub unsafe fn enable_dynamic_scaling_raw(this: *const Self) -> u32 {
1122		unsafe {
1123			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1124				::std::ptr::addr_of!((*this)._bitfield_1),
1125				17usize,
1126				1u8,
1127			) as u32)
1128		}
1129	}
1130	#[inline]
1131	pub unsafe fn set_enable_dynamic_scaling_raw(this: *mut Self, val: u32) {
1132		unsafe {
1133			let val: u32 = ::std::mem::transmute(val);
1134			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1135				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1136				17usize,
1137				1u8,
1138				val as u64,
1139			)
1140		}
1141	}
1142	#[inline]
1143	pub fn frame_tolerance_mode(&self) -> u32 {
1144		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) }
1145	}
1146	#[inline]
1147	pub fn set_frame_tolerance_mode(&mut self, val: u32) {
1148		unsafe {
1149			let val: u32 = ::std::mem::transmute(val);
1150			self._bitfield_1.set(18usize, 2u8, val as u64)
1151		}
1152	}
1153	#[inline]
1154	pub unsafe fn frame_tolerance_mode_raw(this: *const Self) -> u32 {
1155		unsafe {
1156			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1157				::std::ptr::addr_of!((*this)._bitfield_1),
1158				18usize,
1159				2u8,
1160			) as u32)
1161		}
1162	}
1163	#[inline]
1164	pub unsafe fn set_frame_tolerance_mode_raw(this: *mut Self, val: u32) {
1165		unsafe {
1166			let val: u32 = ::std::mem::transmute(val);
1167			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1168				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1169				18usize,
1170				2u8,
1171				val as u64,
1172			)
1173		}
1174	}
1175	#[inline]
1176	pub fn reserved(&self) -> u32 {
1177		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 12u8) as u32) }
1178	}
1179	#[inline]
1180	pub fn set_reserved(&mut self, val: u32) {
1181		unsafe {
1182			let val: u32 = ::std::mem::transmute(val);
1183			self._bitfield_1.set(20usize, 12u8, val as u64)
1184		}
1185	}
1186	#[inline]
1187	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
1188		unsafe {
1189			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1190				::std::ptr::addr_of!((*this)._bitfield_1),
1191				20usize,
1192				12u8,
1193			) as u32)
1194		}
1195	}
1196	#[inline]
1197	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
1198		unsafe {
1199			let val: u32 = ::std::mem::transmute(val);
1200			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1201				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1202				20usize,
1203				12u8,
1204				val as u64,
1205			)
1206		}
1207	}
1208	#[inline]
1209	pub fn new_bitfield_1(
1210		reset: u32,
1211		disable_frame_skip: u32,
1212		disable_bit_stuffing: u32,
1213		mb_rate_control: u32,
1214		temporal_id: u32,
1215		cfs_I_frames: u32,
1216		enable_parallel_brc: u32,
1217		enable_dynamic_scaling: u32,
1218		frame_tolerance_mode: u32,
1219		reserved: u32,
1220	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
1221		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
1222		__bindgen_bitfield_unit.set(0usize, 1u8, {
1223			let reset: u32 = unsafe { ::std::mem::transmute(reset) };
1224			reset as u64
1225		});
1226		__bindgen_bitfield_unit.set(1usize, 1u8, {
1227			let disable_frame_skip: u32 = unsafe { ::std::mem::transmute(disable_frame_skip) };
1228			disable_frame_skip as u64
1229		});
1230		__bindgen_bitfield_unit.set(2usize, 1u8, {
1231			let disable_bit_stuffing: u32 = unsafe { ::std::mem::transmute(disable_bit_stuffing) };
1232			disable_bit_stuffing as u64
1233		});
1234		__bindgen_bitfield_unit.set(3usize, 4u8, {
1235			let mb_rate_control: u32 = unsafe { ::std::mem::transmute(mb_rate_control) };
1236			mb_rate_control as u64
1237		});
1238		__bindgen_bitfield_unit.set(7usize, 8u8, {
1239			let temporal_id: u32 = unsafe { ::std::mem::transmute(temporal_id) };
1240			temporal_id as u64
1241		});
1242		__bindgen_bitfield_unit.set(15usize, 1u8, {
1243			let cfs_I_frames: u32 = unsafe { ::std::mem::transmute(cfs_I_frames) };
1244			cfs_I_frames as u64
1245		});
1246		__bindgen_bitfield_unit.set(16usize, 1u8, {
1247			let enable_parallel_brc: u32 = unsafe { ::std::mem::transmute(enable_parallel_brc) };
1248			enable_parallel_brc as u64
1249		});
1250		__bindgen_bitfield_unit.set(17usize, 1u8, {
1251			let enable_dynamic_scaling: u32 = unsafe { ::std::mem::transmute(enable_dynamic_scaling) };
1252			enable_dynamic_scaling as u64
1253		});
1254		__bindgen_bitfield_unit.set(18usize, 2u8, {
1255			let frame_tolerance_mode: u32 = unsafe { ::std::mem::transmute(frame_tolerance_mode) };
1256			frame_tolerance_mode as u64
1257		});
1258		__bindgen_bitfield_unit.set(20usize, 12u8, {
1259			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
1260			reserved as u64
1261		});
1262		__bindgen_bitfield_unit
1263	}
1264}
1265impl Default for _VAEncMiscParameterRateControl__bindgen_ty_1 {
1266	fn default() -> Self {
1267		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1268		unsafe {
1269			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1270			s.assume_init()
1271		}
1272	}
1273}
1274impl Default for _VAEncMiscParameterRateControl {
1275	fn default() -> Self {
1276		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1277		unsafe {
1278			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1279			s.assume_init()
1280		}
1281	}
1282}
1283#[doc = " \\brief Rate control parameters"]
1284pub type VAEncMiscParameterRateControl = _VAEncMiscParameterRateControl;
1285#[doc = " Encode framerate parameters.\n\n Sets the encode framerate used by the rate controller.  This should be\n provided in all modes using a bitrate target (variable framerate is not\n supported)."]
1286#[repr(C)]
1287#[derive(Copy, Clone)]
1288pub struct _VAEncMiscParameterFrameRate {
1289	#[doc = " Encode framerate.\n\n The framerate is specified as a number of frames per second, as a\n fraction.  The denominator of the fraction is given in the top half\n (the high two bytes) of the framerate field, and the numerator is\n given in the bottom half (the low two bytes).\n\n That is:\n denominator = framerate >> 16 & 0xffff;\n numerator   = framerate & 0xffff;\n fps         = numerator / denominator;\n\n For example, if framerate is set to (100 << 16 | 750), this is\n 750 / 100, hence 7.5fps.\n\n If the denominator is zero (the high two bytes are both zero) then\n it takes the value one instead, so the framerate is just the integer\n in the low 2 bytes."]
1290	pub framerate: u32,
1291	pub framerate_flags: _VAEncMiscParameterFrameRate__bindgen_ty_1,
1292	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1293	pub va_reserved: [u32; 4usize],
1294}
1295#[repr(C)]
1296#[derive(Copy, Clone)]
1297pub union _VAEncMiscParameterFrameRate__bindgen_ty_1 {
1298	pub bits: _VAEncMiscParameterFrameRate__bindgen_ty_1__bindgen_ty_1,
1299	pub value: u32,
1300}
1301#[repr(C)]
1302#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1303pub struct _VAEncMiscParameterFrameRate__bindgen_ty_1__bindgen_ty_1 {
1304	pub _bitfield_align_1: [u32; 0],
1305	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
1306}
1307impl _VAEncMiscParameterFrameRate__bindgen_ty_1__bindgen_ty_1 {
1308	#[inline]
1309	pub fn temporal_id(&self) -> u32 {
1310		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
1311	}
1312	#[inline]
1313	pub fn set_temporal_id(&mut self, val: u32) {
1314		unsafe {
1315			let val: u32 = ::std::mem::transmute(val);
1316			self._bitfield_1.set(0usize, 8u8, val as u64)
1317		}
1318	}
1319	#[inline]
1320	pub unsafe fn temporal_id_raw(this: *const Self) -> u32 {
1321		unsafe {
1322			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1323				::std::ptr::addr_of!((*this)._bitfield_1),
1324				0usize,
1325				8u8,
1326			) as u32)
1327		}
1328	}
1329	#[inline]
1330	pub unsafe fn set_temporal_id_raw(this: *mut Self, val: u32) {
1331		unsafe {
1332			let val: u32 = ::std::mem::transmute(val);
1333			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1334				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1335				0usize,
1336				8u8,
1337				val as u64,
1338			)
1339		}
1340	}
1341	#[inline]
1342	pub fn reserved(&self) -> u32 {
1343		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 24u8) as u32) }
1344	}
1345	#[inline]
1346	pub fn set_reserved(&mut self, val: u32) {
1347		unsafe {
1348			let val: u32 = ::std::mem::transmute(val);
1349			self._bitfield_1.set(8usize, 24u8, val as u64)
1350		}
1351	}
1352	#[inline]
1353	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
1354		unsafe {
1355			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1356				::std::ptr::addr_of!((*this)._bitfield_1),
1357				8usize,
1358				24u8,
1359			) as u32)
1360		}
1361	}
1362	#[inline]
1363	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
1364		unsafe {
1365			let val: u32 = ::std::mem::transmute(val);
1366			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1367				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1368				8usize,
1369				24u8,
1370				val as u64,
1371			)
1372		}
1373	}
1374	#[inline]
1375	pub fn new_bitfield_1(temporal_id: u32, reserved: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
1376		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
1377		__bindgen_bitfield_unit.set(0usize, 8u8, {
1378			let temporal_id: u32 = unsafe { ::std::mem::transmute(temporal_id) };
1379			temporal_id as u64
1380		});
1381		__bindgen_bitfield_unit.set(8usize, 24u8, {
1382			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
1383			reserved as u64
1384		});
1385		__bindgen_bitfield_unit
1386	}
1387}
1388impl Default for _VAEncMiscParameterFrameRate__bindgen_ty_1 {
1389	fn default() -> Self {
1390		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1391		unsafe {
1392			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1393			s.assume_init()
1394		}
1395	}
1396}
1397impl Default for _VAEncMiscParameterFrameRate {
1398	fn default() -> Self {
1399		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1400		unsafe {
1401			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1402			s.assume_init()
1403		}
1404	}
1405}
1406#[doc = " Encode framerate parameters.\n\n Sets the encode framerate used by the rate controller.  This should be\n provided in all modes using a bitrate target (variable framerate is not\n supported)."]
1407pub type VAEncMiscParameterFrameRate = _VAEncMiscParameterFrameRate;
1408#[doc = " Allow a maximum slice size to be specified (in bits).\n The encoder will attempt to make sure that individual slices do not exceed this size\n Or to signal applicate if the slice size exceed this size, see \"status\" of VACodedBufferSegment"]
1409#[repr(C)]
1410#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1411pub struct _VAEncMiscParameterMaxSliceSize {
1412	pub max_slice_size: u32,
1413	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1414	pub va_reserved: [u32; 4usize],
1415}
1416#[doc = " Allow a maximum slice size to be specified (in bits).\n The encoder will attempt to make sure that individual slices do not exceed this size\n Or to signal applicate if the slice size exceed this size, see \"status\" of VACodedBufferSegment"]
1417pub type VAEncMiscParameterMaxSliceSize = _VAEncMiscParameterMaxSliceSize;
1418#[doc = " HRD / VBV buffering parameters for encoding.\n\n This sets the HRD / VBV parameters which will be used by the rate\n controller for encoding.  It should be specified in modes using a bitrate\n target when the buffering of the output stream needs to be constrained.\n\n If not provided, the encoder may use arbitrary amounts of buffering."]
1419#[repr(C)]
1420#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1421pub struct _VAEncMiscParameterHRD {
1422	#[doc = " The initial fullness of the HRD coded picture buffer, in bits.\n\n This sets how full the CPB is when encoding begins - that is, how much\n buffering will happen on the decoder side before the first frame.\n The CPB fullness will be reset to this value after any rate control\n reset (a change in parameters or an explicit reset).\n\n For H.264, it should match the value of initial_cpb_removal_delay in\n buffering_period SEI messages."]
1423	pub initial_buffer_fullness: u32,
1424	#[doc = " The HRD coded picture buffer size, in bits.\n\n For H.264, it should match the value of cpb_size_value_minus1 in the VUI\n parameters."]
1425	pub buffer_size: u32,
1426	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1427	pub va_reserved: [u32; 4usize],
1428}
1429#[doc = " HRD / VBV buffering parameters for encoding.\n\n This sets the HRD / VBV parameters which will be used by the rate\n controller for encoding.  It should be specified in modes using a bitrate\n target when the buffering of the output stream needs to be constrained.\n\n If not provided, the encoder may use arbitrary amounts of buffering."]
1430pub type VAEncMiscParameterHRD = _VAEncMiscParameterHRD;
1431#[doc = " \\brief Defines a maximum frame size (in bits).\n\n This misc parameter buffer defines the maximum size of a frame (in\n bits). The encoder will try to make sure that each frame does not\n exceed this size. Otherwise, if the frame size exceeds this size,\n the \\c status flag of #VACodedBufferSegment will contain\n #VA_CODED_BUF_STATUS_FRAME_SIZE_OVERFLOW."]
1432#[repr(C)]
1433#[derive(Debug, Copy, Clone, PartialEq, Eq)]
1434pub struct _VAEncMiscParameterBufferMaxFrameSize {
1435	#[doc = " \\brief Type. Shall be set to #VAEncMiscParameterTypeMaxFrameSize. */\n/** duplicated with VAEncMiscParameterBuffer, should be deprecated"]
1436	pub type_: VAEncMiscParameterType::Type,
1437	#[doc = " \\brief Maximum size of a frame (in bits)."]
1438	pub max_frame_size: u32,
1439	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1440	pub va_reserved: [u32; 4usize],
1441}
1442impl Default for _VAEncMiscParameterBufferMaxFrameSize {
1443	fn default() -> Self {
1444		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1445		unsafe {
1446			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1447			s.assume_init()
1448		}
1449	}
1450}
1451#[doc = " \\brief Defines a maximum frame size (in bits).\n\n This misc parameter buffer defines the maximum size of a frame (in\n bits). The encoder will try to make sure that each frame does not\n exceed this size. Otherwise, if the frame size exceeds this size,\n the \\c status flag of #VACodedBufferSegment will contain\n #VA_CODED_BUF_STATUS_FRAME_SIZE_OVERFLOW."]
1452pub type VAEncMiscParameterBufferMaxFrameSize = _VAEncMiscParameterBufferMaxFrameSize;
1453#[doc = " \\brief Encoding quality level.\n\n The encoding quality could be set through this structure, if the implementation\n supports multiple quality levels. The quality level set through this structure is\n persistent over the entire coded sequence, or until a new structure is being sent.\n The quality level range can be queried through the VAConfigAttribEncQualityRange\n attribute. A lower value means higher quality, and a value of 1 represents the highest\n quality. The quality level setting is used as a trade-off between quality and speed/power\n consumption, with higher quality corresponds to lower speed and higher power consumption."]
1454#[repr(C)]
1455#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1456pub struct _VAEncMiscParameterBufferQualityLevel {
1457	#[doc = " \\brief Encoding quality level setting. When set to 0, default quality\n level is used."]
1458	pub quality_level: u32,
1459	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1460	pub va_reserved: [u32; 4usize],
1461}
1462#[doc = " \\brief Encoding quality level.\n\n The encoding quality could be set through this structure, if the implementation\n supports multiple quality levels. The quality level set through this structure is\n persistent over the entire coded sequence, or until a new structure is being sent.\n The quality level range can be queried through the VAConfigAttribEncQualityRange\n attribute. A lower value means higher quality, and a value of 1 represents the highest\n quality. The quality level setting is used as a trade-off between quality and speed/power\n consumption, with higher quality corresponds to lower speed and higher power consumption."]
1463pub type VAEncMiscParameterBufferQualityLevel = _VAEncMiscParameterBufferQualityLevel;
1464#[doc = " \\brief Quantization settings for encoding.\n\n Some encoders support special types of quantization such as trellis, and this structure\n can be used by the app to control these special types of quantization by the encoder."]
1465#[repr(C)]
1466#[derive(Copy, Clone)]
1467pub struct _VAEncMiscParameterQuantization {
1468	pub quantization_flags: _VAEncMiscParameterQuantization__bindgen_ty_1,
1469	pub va_reserved: u32,
1470}
1471#[repr(C)]
1472#[derive(Copy, Clone)]
1473pub union _VAEncMiscParameterQuantization__bindgen_ty_1 {
1474	pub bits: _VAEncMiscParameterQuantization__bindgen_ty_1__bindgen_ty_1,
1475	pub value: u32,
1476}
1477#[repr(C)]
1478#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1479pub struct _VAEncMiscParameterQuantization__bindgen_ty_1__bindgen_ty_1 {
1480	pub _bitfield_align_1: [u32; 0],
1481	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
1482}
1483impl _VAEncMiscParameterQuantization__bindgen_ty_1__bindgen_ty_1 {
1484	#[inline]
1485	pub fn disable_trellis(&self) -> u32 {
1486		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1487	}
1488	#[inline]
1489	pub fn set_disable_trellis(&mut self, val: u32) {
1490		unsafe {
1491			let val: u32 = ::std::mem::transmute(val);
1492			self._bitfield_1.set(0usize, 1u8, val as u64)
1493		}
1494	}
1495	#[inline]
1496	pub unsafe fn disable_trellis_raw(this: *const Self) -> u32 {
1497		unsafe {
1498			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1499				::std::ptr::addr_of!((*this)._bitfield_1),
1500				0usize,
1501				1u8,
1502			) as u32)
1503		}
1504	}
1505	#[inline]
1506	pub unsafe fn set_disable_trellis_raw(this: *mut Self, val: u32) {
1507		unsafe {
1508			let val: u32 = ::std::mem::transmute(val);
1509			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1510				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1511				0usize,
1512				1u8,
1513				val as u64,
1514			)
1515		}
1516	}
1517	#[inline]
1518	pub fn enable_trellis_I(&self) -> u32 {
1519		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1520	}
1521	#[inline]
1522	pub fn set_enable_trellis_I(&mut self, val: u32) {
1523		unsafe {
1524			let val: u32 = ::std::mem::transmute(val);
1525			self._bitfield_1.set(1usize, 1u8, val as u64)
1526		}
1527	}
1528	#[inline]
1529	pub unsafe fn enable_trellis_I_raw(this: *const Self) -> u32 {
1530		unsafe {
1531			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1532				::std::ptr::addr_of!((*this)._bitfield_1),
1533				1usize,
1534				1u8,
1535			) as u32)
1536		}
1537	}
1538	#[inline]
1539	pub unsafe fn set_enable_trellis_I_raw(this: *mut Self, val: u32) {
1540		unsafe {
1541			let val: u32 = ::std::mem::transmute(val);
1542			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1543				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1544				1usize,
1545				1u8,
1546				val as u64,
1547			)
1548		}
1549	}
1550	#[inline]
1551	pub fn enable_trellis_P(&self) -> u32 {
1552		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1553	}
1554	#[inline]
1555	pub fn set_enable_trellis_P(&mut self, val: u32) {
1556		unsafe {
1557			let val: u32 = ::std::mem::transmute(val);
1558			self._bitfield_1.set(2usize, 1u8, val as u64)
1559		}
1560	}
1561	#[inline]
1562	pub unsafe fn enable_trellis_P_raw(this: *const Self) -> u32 {
1563		unsafe {
1564			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1565				::std::ptr::addr_of!((*this)._bitfield_1),
1566				2usize,
1567				1u8,
1568			) as u32)
1569		}
1570	}
1571	#[inline]
1572	pub unsafe fn set_enable_trellis_P_raw(this: *mut Self, val: u32) {
1573		unsafe {
1574			let val: u32 = ::std::mem::transmute(val);
1575			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1576				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1577				2usize,
1578				1u8,
1579				val as u64,
1580			)
1581		}
1582	}
1583	#[inline]
1584	pub fn enable_trellis_B(&self) -> u32 {
1585		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1586	}
1587	#[inline]
1588	pub fn set_enable_trellis_B(&mut self, val: u32) {
1589		unsafe {
1590			let val: u32 = ::std::mem::transmute(val);
1591			self._bitfield_1.set(3usize, 1u8, val as u64)
1592		}
1593	}
1594	#[inline]
1595	pub unsafe fn enable_trellis_B_raw(this: *const Self) -> u32 {
1596		unsafe {
1597			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1598				::std::ptr::addr_of!((*this)._bitfield_1),
1599				3usize,
1600				1u8,
1601			) as u32)
1602		}
1603	}
1604	#[inline]
1605	pub unsafe fn set_enable_trellis_B_raw(this: *mut Self, val: u32) {
1606		unsafe {
1607			let val: u32 = ::std::mem::transmute(val);
1608			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1609				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1610				3usize,
1611				1u8,
1612				val as u64,
1613			)
1614		}
1615	}
1616	#[inline]
1617	pub fn reserved(&self) -> u32 {
1618		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) }
1619	}
1620	#[inline]
1621	pub fn set_reserved(&mut self, val: u32) {
1622		unsafe {
1623			let val: u32 = ::std::mem::transmute(val);
1624			self._bitfield_1.set(4usize, 28u8, val as u64)
1625		}
1626	}
1627	#[inline]
1628	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
1629		unsafe {
1630			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1631				::std::ptr::addr_of!((*this)._bitfield_1),
1632				4usize,
1633				28u8,
1634			) as u32)
1635		}
1636	}
1637	#[inline]
1638	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
1639		unsafe {
1640			let val: u32 = ::std::mem::transmute(val);
1641			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1642				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1643				4usize,
1644				28u8,
1645				val as u64,
1646			)
1647		}
1648	}
1649	#[inline]
1650	pub fn new_bitfield_1(
1651		disable_trellis: u32,
1652		enable_trellis_I: u32,
1653		enable_trellis_P: u32,
1654		enable_trellis_B: u32,
1655		reserved: u32,
1656	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
1657		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
1658		__bindgen_bitfield_unit.set(0usize, 1u8, {
1659			let disable_trellis: u32 = unsafe { ::std::mem::transmute(disable_trellis) };
1660			disable_trellis as u64
1661		});
1662		__bindgen_bitfield_unit.set(1usize, 1u8, {
1663			let enable_trellis_I: u32 = unsafe { ::std::mem::transmute(enable_trellis_I) };
1664			enable_trellis_I as u64
1665		});
1666		__bindgen_bitfield_unit.set(2usize, 1u8, {
1667			let enable_trellis_P: u32 = unsafe { ::std::mem::transmute(enable_trellis_P) };
1668			enable_trellis_P as u64
1669		});
1670		__bindgen_bitfield_unit.set(3usize, 1u8, {
1671			let enable_trellis_B: u32 = unsafe { ::std::mem::transmute(enable_trellis_B) };
1672			enable_trellis_B as u64
1673		});
1674		__bindgen_bitfield_unit.set(4usize, 28u8, {
1675			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
1676			reserved as u64
1677		});
1678		__bindgen_bitfield_unit
1679	}
1680}
1681impl Default for _VAEncMiscParameterQuantization__bindgen_ty_1 {
1682	fn default() -> Self {
1683		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1684		unsafe {
1685			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1686			s.assume_init()
1687		}
1688	}
1689}
1690impl Default for _VAEncMiscParameterQuantization {
1691	fn default() -> Self {
1692		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1693		unsafe {
1694			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1695			s.assume_init()
1696		}
1697	}
1698}
1699#[doc = " \\brief Quantization settings for encoding.\n\n Some encoders support special types of quantization such as trellis, and this structure\n can be used by the app to control these special types of quantization by the encoder."]
1700pub type VAEncMiscParameterQuantization = _VAEncMiscParameterQuantization;
1701#[doc = " \\brief Encoding skip frame.\n\n The application may choose to skip frames externally to the encoder (e.g. drop completely or\n code as all skip's). For rate control purposes the encoder will need to know the size and number\n of skipped frames.  Skip frame(s) indicated through this structure is applicable only to the\n current frame.  It is allowed for the application to still send in packed headers for the driver to\n pack, although no frame will be encoded (e.g. for HW to encrypt the frame)."]
1702#[repr(C)]
1703#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1704pub struct _VAEncMiscParameterSkipFrame {
1705	#[doc = " \\brief Indicates skip frames as below.\n 0: Encode as normal, no skip.\n 1: One or more frames were skipped prior to the current frame, encode the current frame as normal.\n 2: The current frame is to be skipped, do not encode it but pack/encrypt the packed header contents\n    (all except VAEncPackedHeaderSlice) which could contain actual frame contents (e.g. pack the frame\n    in VAEncPackedHeaderPicture)."]
1706	pub skip_frame_flag: u8,
1707	#[doc = " \\brief The number of frames skipped prior to the current frame.  Valid when skip_frame_flag = 1."]
1708	pub num_skip_frames: u8,
1709	#[doc = " \\brief When skip_frame_flag = 1, the size of the skipped frames in bits.   When skip_frame_flag = 2,\n the size of the current skipped frame that is to be packed/encrypted in bits."]
1710	pub size_skip_frames: u32,
1711	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1712	pub va_reserved: [u32; 4usize],
1713}
1714#[doc = " \\brief Encoding skip frame.\n\n The application may choose to skip frames externally to the encoder (e.g. drop completely or\n code as all skip's). For rate control purposes the encoder will need to know the size and number\n of skipped frames.  Skip frame(s) indicated through this structure is applicable only to the\n current frame.  It is allowed for the application to still send in packed headers for the driver to\n pack, although no frame will be encoded (e.g. for HW to encrypt the frame)."]
1715pub type VAEncMiscParameterSkipFrame = _VAEncMiscParameterSkipFrame;
1716#[doc = " H.264/AVC data structures"]
1717#[repr(C)]
1718#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1719pub struct _VAPictureH264 {
1720	pub picture_id: VASurfaceID,
1721	pub frame_idx: u32,
1722	pub flags: u32,
1723	pub TopFieldOrderCnt: i32,
1724	pub BottomFieldOrderCnt: i32,
1725	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1726	pub va_reserved: [u32; 4usize],
1727}
1728#[doc = " H.264/AVC data structures"]
1729pub type VAPictureH264 = _VAPictureH264;
1730#[doc = " H.264 Picture Parameter Buffer"]
1731#[repr(C)]
1732#[derive(Copy, Clone)]
1733pub struct _VAPictureParameterBufferH264 {
1734	pub CurrPic: VAPictureH264,
1735	pub ReferenceFrames: [VAPictureH264; 16usize],
1736	pub picture_width_in_mbs_minus1: u16,
1737	pub picture_height_in_mbs_minus1: u16,
1738	pub bit_depth_luma_minus8: u8,
1739	pub bit_depth_chroma_minus8: u8,
1740	pub num_ref_frames: u8,
1741	pub seq_fields: _VAPictureParameterBufferH264__bindgen_ty_1,
1742	pub num_slice_groups_minus1: u8,
1743	pub slice_group_map_type: u8,
1744	pub slice_group_change_rate_minus1: u16,
1745	pub pic_init_qp_minus26: i8,
1746	pub pic_init_qs_minus26: i8,
1747	pub chroma_qp_index_offset: i8,
1748	pub second_chroma_qp_index_offset: i8,
1749	pub pic_fields: _VAPictureParameterBufferH264__bindgen_ty_2,
1750	pub frame_num: u16,
1751	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1752	pub va_reserved: [u32; 8usize],
1753}
1754#[repr(C)]
1755#[derive(Copy, Clone)]
1756pub union _VAPictureParameterBufferH264__bindgen_ty_1 {
1757	pub bits: _VAPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
1758	pub value: u32,
1759}
1760#[repr(C)]
1761#[repr(align(4))]
1762#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1763pub struct _VAPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
1764	pub _bitfield_align_1: [u8; 0],
1765	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
1766	pub __bindgen_padding_0: u8,
1767}
1768impl _VAPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
1769	#[inline]
1770	pub fn chroma_format_idc(&self) -> u32 {
1771		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
1772	}
1773	#[inline]
1774	pub fn set_chroma_format_idc(&mut self, val: u32) {
1775		unsafe {
1776			let val: u32 = ::std::mem::transmute(val);
1777			self._bitfield_1.set(0usize, 2u8, val as u64)
1778		}
1779	}
1780	#[inline]
1781	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
1782		unsafe {
1783			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
1784				::std::ptr::addr_of!((*this)._bitfield_1),
1785				0usize,
1786				2u8,
1787			) as u32)
1788		}
1789	}
1790	#[inline]
1791	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
1792		unsafe {
1793			let val: u32 = ::std::mem::transmute(val);
1794			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
1795				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1796				0usize,
1797				2u8,
1798				val as u64,
1799			)
1800		}
1801	}
1802	#[inline]
1803	pub fn residual_colour_transform_flag(&self) -> u32 {
1804		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1805	}
1806	#[inline]
1807	pub fn set_residual_colour_transform_flag(&mut self, val: u32) {
1808		unsafe {
1809			let val: u32 = ::std::mem::transmute(val);
1810			self._bitfield_1.set(2usize, 1u8, val as u64)
1811		}
1812	}
1813	#[inline]
1814	pub unsafe fn residual_colour_transform_flag_raw(this: *const Self) -> u32 {
1815		unsafe {
1816			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
1817				::std::ptr::addr_of!((*this)._bitfield_1),
1818				2usize,
1819				1u8,
1820			) as u32)
1821		}
1822	}
1823	#[inline]
1824	pub unsafe fn set_residual_colour_transform_flag_raw(this: *mut Self, val: u32) {
1825		unsafe {
1826			let val: u32 = ::std::mem::transmute(val);
1827			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
1828				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1829				2usize,
1830				1u8,
1831				val as u64,
1832			)
1833		}
1834	}
1835	#[inline]
1836	pub fn gaps_in_frame_num_value_allowed_flag(&self) -> u32 {
1837		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1838	}
1839	#[inline]
1840	pub fn set_gaps_in_frame_num_value_allowed_flag(&mut self, val: u32) {
1841		unsafe {
1842			let val: u32 = ::std::mem::transmute(val);
1843			self._bitfield_1.set(3usize, 1u8, val as u64)
1844		}
1845	}
1846	#[inline]
1847	pub unsafe fn gaps_in_frame_num_value_allowed_flag_raw(this: *const Self) -> u32 {
1848		unsafe {
1849			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
1850				::std::ptr::addr_of!((*this)._bitfield_1),
1851				3usize,
1852				1u8,
1853			) as u32)
1854		}
1855	}
1856	#[inline]
1857	pub unsafe fn set_gaps_in_frame_num_value_allowed_flag_raw(this: *mut Self, val: u32) {
1858		unsafe {
1859			let val: u32 = ::std::mem::transmute(val);
1860			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
1861				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1862				3usize,
1863				1u8,
1864				val as u64,
1865			)
1866		}
1867	}
1868	#[inline]
1869	pub fn frame_mbs_only_flag(&self) -> u32 {
1870		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1871	}
1872	#[inline]
1873	pub fn set_frame_mbs_only_flag(&mut self, val: u32) {
1874		unsafe {
1875			let val: u32 = ::std::mem::transmute(val);
1876			self._bitfield_1.set(4usize, 1u8, val as u64)
1877		}
1878	}
1879	#[inline]
1880	pub unsafe fn frame_mbs_only_flag_raw(this: *const Self) -> u32 {
1881		unsafe {
1882			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
1883				::std::ptr::addr_of!((*this)._bitfield_1),
1884				4usize,
1885				1u8,
1886			) as u32)
1887		}
1888	}
1889	#[inline]
1890	pub unsafe fn set_frame_mbs_only_flag_raw(this: *mut Self, val: u32) {
1891		unsafe {
1892			let val: u32 = ::std::mem::transmute(val);
1893			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
1894				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1895				4usize,
1896				1u8,
1897				val as u64,
1898			)
1899		}
1900	}
1901	#[inline]
1902	pub fn mb_adaptive_frame_field_flag(&self) -> u32 {
1903		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1904	}
1905	#[inline]
1906	pub fn set_mb_adaptive_frame_field_flag(&mut self, val: u32) {
1907		unsafe {
1908			let val: u32 = ::std::mem::transmute(val);
1909			self._bitfield_1.set(5usize, 1u8, val as u64)
1910		}
1911	}
1912	#[inline]
1913	pub unsafe fn mb_adaptive_frame_field_flag_raw(this: *const Self) -> u32 {
1914		unsafe {
1915			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
1916				::std::ptr::addr_of!((*this)._bitfield_1),
1917				5usize,
1918				1u8,
1919			) as u32)
1920		}
1921	}
1922	#[inline]
1923	pub unsafe fn set_mb_adaptive_frame_field_flag_raw(this: *mut Self, val: u32) {
1924		unsafe {
1925			let val: u32 = ::std::mem::transmute(val);
1926			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
1927				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1928				5usize,
1929				1u8,
1930				val as u64,
1931			)
1932		}
1933	}
1934	#[inline]
1935	pub fn direct_8x8_inference_flag(&self) -> u32 {
1936		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1937	}
1938	#[inline]
1939	pub fn set_direct_8x8_inference_flag(&mut self, val: u32) {
1940		unsafe {
1941			let val: u32 = ::std::mem::transmute(val);
1942			self._bitfield_1.set(6usize, 1u8, val as u64)
1943		}
1944	}
1945	#[inline]
1946	pub unsafe fn direct_8x8_inference_flag_raw(this: *const Self) -> u32 {
1947		unsafe {
1948			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
1949				::std::ptr::addr_of!((*this)._bitfield_1),
1950				6usize,
1951				1u8,
1952			) as u32)
1953		}
1954	}
1955	#[inline]
1956	pub unsafe fn set_direct_8x8_inference_flag_raw(this: *mut Self, val: u32) {
1957		unsafe {
1958			let val: u32 = ::std::mem::transmute(val);
1959			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
1960				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1961				6usize,
1962				1u8,
1963				val as u64,
1964			)
1965		}
1966	}
1967	#[inline]
1968	pub fn MinLumaBiPredSize8x8(&self) -> u32 {
1969		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1970	}
1971	#[inline]
1972	pub fn set_MinLumaBiPredSize8x8(&mut self, val: u32) {
1973		unsafe {
1974			let val: u32 = ::std::mem::transmute(val);
1975			self._bitfield_1.set(7usize, 1u8, val as u64)
1976		}
1977	}
1978	#[inline]
1979	pub unsafe fn MinLumaBiPredSize8x8_raw(this: *const Self) -> u32 {
1980		unsafe {
1981			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
1982				::std::ptr::addr_of!((*this)._bitfield_1),
1983				7usize,
1984				1u8,
1985			) as u32)
1986		}
1987	}
1988	#[inline]
1989	pub unsafe fn set_MinLumaBiPredSize8x8_raw(this: *mut Self, val: u32) {
1990		unsafe {
1991			let val: u32 = ::std::mem::transmute(val);
1992			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
1993				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1994				7usize,
1995				1u8,
1996				val as u64,
1997			)
1998		}
1999	}
2000	#[inline]
2001	pub fn log2_max_frame_num_minus4(&self) -> u32 {
2002		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u32) }
2003	}
2004	#[inline]
2005	pub fn set_log2_max_frame_num_minus4(&mut self, val: u32) {
2006		unsafe {
2007			let val: u32 = ::std::mem::transmute(val);
2008			self._bitfield_1.set(8usize, 4u8, val as u64)
2009		}
2010	}
2011	#[inline]
2012	pub unsafe fn log2_max_frame_num_minus4_raw(this: *const Self) -> u32 {
2013		unsafe {
2014			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2015				::std::ptr::addr_of!((*this)._bitfield_1),
2016				8usize,
2017				4u8,
2018			) as u32)
2019		}
2020	}
2021	#[inline]
2022	pub unsafe fn set_log2_max_frame_num_minus4_raw(this: *mut Self, val: u32) {
2023		unsafe {
2024			let val: u32 = ::std::mem::transmute(val);
2025			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2026				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2027				8usize,
2028				4u8,
2029				val as u64,
2030			)
2031		}
2032	}
2033	#[inline]
2034	pub fn pic_order_cnt_type(&self) -> u32 {
2035		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
2036	}
2037	#[inline]
2038	pub fn set_pic_order_cnt_type(&mut self, val: u32) {
2039		unsafe {
2040			let val: u32 = ::std::mem::transmute(val);
2041			self._bitfield_1.set(12usize, 2u8, val as u64)
2042		}
2043	}
2044	#[inline]
2045	pub unsafe fn pic_order_cnt_type_raw(this: *const Self) -> u32 {
2046		unsafe {
2047			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2048				::std::ptr::addr_of!((*this)._bitfield_1),
2049				12usize,
2050				2u8,
2051			) as u32)
2052		}
2053	}
2054	#[inline]
2055	pub unsafe fn set_pic_order_cnt_type_raw(this: *mut Self, val: u32) {
2056		unsafe {
2057			let val: u32 = ::std::mem::transmute(val);
2058			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2059				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2060				12usize,
2061				2u8,
2062				val as u64,
2063			)
2064		}
2065	}
2066	#[inline]
2067	pub fn log2_max_pic_order_cnt_lsb_minus4(&self) -> u32 {
2068		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 4u8) as u32) }
2069	}
2070	#[inline]
2071	pub fn set_log2_max_pic_order_cnt_lsb_minus4(&mut self, val: u32) {
2072		unsafe {
2073			let val: u32 = ::std::mem::transmute(val);
2074			self._bitfield_1.set(14usize, 4u8, val as u64)
2075		}
2076	}
2077	#[inline]
2078	pub unsafe fn log2_max_pic_order_cnt_lsb_minus4_raw(this: *const Self) -> u32 {
2079		unsafe {
2080			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2081				::std::ptr::addr_of!((*this)._bitfield_1),
2082				14usize,
2083				4u8,
2084			) as u32)
2085		}
2086	}
2087	#[inline]
2088	pub unsafe fn set_log2_max_pic_order_cnt_lsb_minus4_raw(this: *mut Self, val: u32) {
2089		unsafe {
2090			let val: u32 = ::std::mem::transmute(val);
2091			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2092				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2093				14usize,
2094				4u8,
2095				val as u64,
2096			)
2097		}
2098	}
2099	#[inline]
2100	pub fn delta_pic_order_always_zero_flag(&self) -> u32 {
2101		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
2102	}
2103	#[inline]
2104	pub fn set_delta_pic_order_always_zero_flag(&mut self, val: u32) {
2105		unsafe {
2106			let val: u32 = ::std::mem::transmute(val);
2107			self._bitfield_1.set(18usize, 1u8, val as u64)
2108		}
2109	}
2110	#[inline]
2111	pub unsafe fn delta_pic_order_always_zero_flag_raw(this: *const Self) -> u32 {
2112		unsafe {
2113			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2114				::std::ptr::addr_of!((*this)._bitfield_1),
2115				18usize,
2116				1u8,
2117			) as u32)
2118		}
2119	}
2120	#[inline]
2121	pub unsafe fn set_delta_pic_order_always_zero_flag_raw(this: *mut Self, val: u32) {
2122		unsafe {
2123			let val: u32 = ::std::mem::transmute(val);
2124			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2125				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2126				18usize,
2127				1u8,
2128				val as u64,
2129			)
2130		}
2131	}
2132	#[inline]
2133	pub fn new_bitfield_1(
2134		chroma_format_idc: u32,
2135		residual_colour_transform_flag: u32,
2136		gaps_in_frame_num_value_allowed_flag: u32,
2137		frame_mbs_only_flag: u32,
2138		mb_adaptive_frame_field_flag: u32,
2139		direct_8x8_inference_flag: u32,
2140		MinLumaBiPredSize8x8: u32,
2141		log2_max_frame_num_minus4: u32,
2142		pic_order_cnt_type: u32,
2143		log2_max_pic_order_cnt_lsb_minus4: u32,
2144		delta_pic_order_always_zero_flag: u32,
2145	) -> __BindgenBitfieldUnit<[u8; 3usize]> {
2146		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
2147		__bindgen_bitfield_unit.set(0usize, 2u8, {
2148			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
2149			chroma_format_idc as u64
2150		});
2151		__bindgen_bitfield_unit.set(2usize, 1u8, {
2152			let residual_colour_transform_flag: u32 = unsafe { ::std::mem::transmute(residual_colour_transform_flag) };
2153			residual_colour_transform_flag as u64
2154		});
2155		__bindgen_bitfield_unit.set(3usize, 1u8, {
2156			let gaps_in_frame_num_value_allowed_flag: u32 =
2157				unsafe { ::std::mem::transmute(gaps_in_frame_num_value_allowed_flag) };
2158			gaps_in_frame_num_value_allowed_flag as u64
2159		});
2160		__bindgen_bitfield_unit.set(4usize, 1u8, {
2161			let frame_mbs_only_flag: u32 = unsafe { ::std::mem::transmute(frame_mbs_only_flag) };
2162			frame_mbs_only_flag as u64
2163		});
2164		__bindgen_bitfield_unit.set(5usize, 1u8, {
2165			let mb_adaptive_frame_field_flag: u32 = unsafe { ::std::mem::transmute(mb_adaptive_frame_field_flag) };
2166			mb_adaptive_frame_field_flag as u64
2167		});
2168		__bindgen_bitfield_unit.set(6usize, 1u8, {
2169			let direct_8x8_inference_flag: u32 = unsafe { ::std::mem::transmute(direct_8x8_inference_flag) };
2170			direct_8x8_inference_flag as u64
2171		});
2172		__bindgen_bitfield_unit.set(7usize, 1u8, {
2173			let MinLumaBiPredSize8x8: u32 = unsafe { ::std::mem::transmute(MinLumaBiPredSize8x8) };
2174			MinLumaBiPredSize8x8 as u64
2175		});
2176		__bindgen_bitfield_unit.set(8usize, 4u8, {
2177			let log2_max_frame_num_minus4: u32 = unsafe { ::std::mem::transmute(log2_max_frame_num_minus4) };
2178			log2_max_frame_num_minus4 as u64
2179		});
2180		__bindgen_bitfield_unit.set(12usize, 2u8, {
2181			let pic_order_cnt_type: u32 = unsafe { ::std::mem::transmute(pic_order_cnt_type) };
2182			pic_order_cnt_type as u64
2183		});
2184		__bindgen_bitfield_unit.set(14usize, 4u8, {
2185			let log2_max_pic_order_cnt_lsb_minus4: u32 =
2186				unsafe { ::std::mem::transmute(log2_max_pic_order_cnt_lsb_minus4) };
2187			log2_max_pic_order_cnt_lsb_minus4 as u64
2188		});
2189		__bindgen_bitfield_unit.set(18usize, 1u8, {
2190			let delta_pic_order_always_zero_flag: u32 =
2191				unsafe { ::std::mem::transmute(delta_pic_order_always_zero_flag) };
2192			delta_pic_order_always_zero_flag as u64
2193		});
2194		__bindgen_bitfield_unit
2195	}
2196}
2197impl Default for _VAPictureParameterBufferH264__bindgen_ty_1 {
2198	fn default() -> Self {
2199		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2200		unsafe {
2201			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2202			s.assume_init()
2203		}
2204	}
2205}
2206#[repr(C)]
2207#[derive(Copy, Clone)]
2208pub union _VAPictureParameterBufferH264__bindgen_ty_2 {
2209	pub bits: _VAPictureParameterBufferH264__bindgen_ty_2__bindgen_ty_1,
2210	pub value: u32,
2211}
2212#[repr(C)]
2213#[repr(align(4))]
2214#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2215pub struct _VAPictureParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
2216	pub _bitfield_align_1: [u8; 0],
2217	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2218	pub __bindgen_padding_0: u16,
2219}
2220impl _VAPictureParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
2221	#[inline]
2222	pub fn entropy_coding_mode_flag(&self) -> u32 {
2223		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2224	}
2225	#[inline]
2226	pub fn set_entropy_coding_mode_flag(&mut self, val: u32) {
2227		unsafe {
2228			let val: u32 = ::std::mem::transmute(val);
2229			self._bitfield_1.set(0usize, 1u8, val as u64)
2230		}
2231	}
2232	#[inline]
2233	pub unsafe fn entropy_coding_mode_flag_raw(this: *const Self) -> u32 {
2234		unsafe {
2235			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2236				::std::ptr::addr_of!((*this)._bitfield_1),
2237				0usize,
2238				1u8,
2239			) as u32)
2240		}
2241	}
2242	#[inline]
2243	pub unsafe fn set_entropy_coding_mode_flag_raw(this: *mut Self, val: u32) {
2244		unsafe {
2245			let val: u32 = ::std::mem::transmute(val);
2246			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2247				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2248				0usize,
2249				1u8,
2250				val as u64,
2251			)
2252		}
2253	}
2254	#[inline]
2255	pub fn weighted_pred_flag(&self) -> u32 {
2256		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2257	}
2258	#[inline]
2259	pub fn set_weighted_pred_flag(&mut self, val: u32) {
2260		unsafe {
2261			let val: u32 = ::std::mem::transmute(val);
2262			self._bitfield_1.set(1usize, 1u8, val as u64)
2263		}
2264	}
2265	#[inline]
2266	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
2267		unsafe {
2268			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2269				::std::ptr::addr_of!((*this)._bitfield_1),
2270				1usize,
2271				1u8,
2272			) as u32)
2273		}
2274	}
2275	#[inline]
2276	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
2277		unsafe {
2278			let val: u32 = ::std::mem::transmute(val);
2279			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2280				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2281				1usize,
2282				1u8,
2283				val as u64,
2284			)
2285		}
2286	}
2287	#[inline]
2288	pub fn weighted_bipred_idc(&self) -> u32 {
2289		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
2290	}
2291	#[inline]
2292	pub fn set_weighted_bipred_idc(&mut self, val: u32) {
2293		unsafe {
2294			let val: u32 = ::std::mem::transmute(val);
2295			self._bitfield_1.set(2usize, 2u8, val as u64)
2296		}
2297	}
2298	#[inline]
2299	pub unsafe fn weighted_bipred_idc_raw(this: *const Self) -> u32 {
2300		unsafe {
2301			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2302				::std::ptr::addr_of!((*this)._bitfield_1),
2303				2usize,
2304				2u8,
2305			) as u32)
2306		}
2307	}
2308	#[inline]
2309	pub unsafe fn set_weighted_bipred_idc_raw(this: *mut Self, val: u32) {
2310		unsafe {
2311			let val: u32 = ::std::mem::transmute(val);
2312			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2313				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2314				2usize,
2315				2u8,
2316				val as u64,
2317			)
2318		}
2319	}
2320	#[inline]
2321	pub fn transform_8x8_mode_flag(&self) -> u32 {
2322		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2323	}
2324	#[inline]
2325	pub fn set_transform_8x8_mode_flag(&mut self, val: u32) {
2326		unsafe {
2327			let val: u32 = ::std::mem::transmute(val);
2328			self._bitfield_1.set(4usize, 1u8, val as u64)
2329		}
2330	}
2331	#[inline]
2332	pub unsafe fn transform_8x8_mode_flag_raw(this: *const Self) -> u32 {
2333		unsafe {
2334			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2335				::std::ptr::addr_of!((*this)._bitfield_1),
2336				4usize,
2337				1u8,
2338			) as u32)
2339		}
2340	}
2341	#[inline]
2342	pub unsafe fn set_transform_8x8_mode_flag_raw(this: *mut Self, val: u32) {
2343		unsafe {
2344			let val: u32 = ::std::mem::transmute(val);
2345			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2346				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2347				4usize,
2348				1u8,
2349				val as u64,
2350			)
2351		}
2352	}
2353	#[inline]
2354	pub fn field_pic_flag(&self) -> u32 {
2355		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2356	}
2357	#[inline]
2358	pub fn set_field_pic_flag(&mut self, val: u32) {
2359		unsafe {
2360			let val: u32 = ::std::mem::transmute(val);
2361			self._bitfield_1.set(5usize, 1u8, val as u64)
2362		}
2363	}
2364	#[inline]
2365	pub unsafe fn field_pic_flag_raw(this: *const Self) -> u32 {
2366		unsafe {
2367			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2368				::std::ptr::addr_of!((*this)._bitfield_1),
2369				5usize,
2370				1u8,
2371			) as u32)
2372		}
2373	}
2374	#[inline]
2375	pub unsafe fn set_field_pic_flag_raw(this: *mut Self, val: u32) {
2376		unsafe {
2377			let val: u32 = ::std::mem::transmute(val);
2378			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2379				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2380				5usize,
2381				1u8,
2382				val as u64,
2383			)
2384		}
2385	}
2386	#[inline]
2387	pub fn constrained_intra_pred_flag(&self) -> u32 {
2388		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2389	}
2390	#[inline]
2391	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
2392		unsafe {
2393			let val: u32 = ::std::mem::transmute(val);
2394			self._bitfield_1.set(6usize, 1u8, val as u64)
2395		}
2396	}
2397	#[inline]
2398	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
2399		unsafe {
2400			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2401				::std::ptr::addr_of!((*this)._bitfield_1),
2402				6usize,
2403				1u8,
2404			) as u32)
2405		}
2406	}
2407	#[inline]
2408	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
2409		unsafe {
2410			let val: u32 = ::std::mem::transmute(val);
2411			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2412				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2413				6usize,
2414				1u8,
2415				val as u64,
2416			)
2417		}
2418	}
2419	#[inline]
2420	pub fn pic_order_present_flag(&self) -> u32 {
2421		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
2422	}
2423	#[inline]
2424	pub fn set_pic_order_present_flag(&mut self, val: u32) {
2425		unsafe {
2426			let val: u32 = ::std::mem::transmute(val);
2427			self._bitfield_1.set(7usize, 1u8, val as u64)
2428		}
2429	}
2430	#[inline]
2431	pub unsafe fn pic_order_present_flag_raw(this: *const Self) -> u32 {
2432		unsafe {
2433			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2434				::std::ptr::addr_of!((*this)._bitfield_1),
2435				7usize,
2436				1u8,
2437			) as u32)
2438		}
2439	}
2440	#[inline]
2441	pub unsafe fn set_pic_order_present_flag_raw(this: *mut Self, val: u32) {
2442		unsafe {
2443			let val: u32 = ::std::mem::transmute(val);
2444			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2445				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2446				7usize,
2447				1u8,
2448				val as u64,
2449			)
2450		}
2451	}
2452	#[inline]
2453	pub fn deblocking_filter_control_present_flag(&self) -> u32 {
2454		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
2455	}
2456	#[inline]
2457	pub fn set_deblocking_filter_control_present_flag(&mut self, val: u32) {
2458		unsafe {
2459			let val: u32 = ::std::mem::transmute(val);
2460			self._bitfield_1.set(8usize, 1u8, val as u64)
2461		}
2462	}
2463	#[inline]
2464	pub unsafe fn deblocking_filter_control_present_flag_raw(this: *const Self) -> u32 {
2465		unsafe {
2466			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2467				::std::ptr::addr_of!((*this)._bitfield_1),
2468				8usize,
2469				1u8,
2470			) as u32)
2471		}
2472	}
2473	#[inline]
2474	pub unsafe fn set_deblocking_filter_control_present_flag_raw(this: *mut Self, val: u32) {
2475		unsafe {
2476			let val: u32 = ::std::mem::transmute(val);
2477			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2478				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2479				8usize,
2480				1u8,
2481				val as u64,
2482			)
2483		}
2484	}
2485	#[inline]
2486	pub fn redundant_pic_cnt_present_flag(&self) -> u32 {
2487		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
2488	}
2489	#[inline]
2490	pub fn set_redundant_pic_cnt_present_flag(&mut self, val: u32) {
2491		unsafe {
2492			let val: u32 = ::std::mem::transmute(val);
2493			self._bitfield_1.set(9usize, 1u8, val as u64)
2494		}
2495	}
2496	#[inline]
2497	pub unsafe fn redundant_pic_cnt_present_flag_raw(this: *const Self) -> u32 {
2498		unsafe {
2499			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2500				::std::ptr::addr_of!((*this)._bitfield_1),
2501				9usize,
2502				1u8,
2503			) as u32)
2504		}
2505	}
2506	#[inline]
2507	pub unsafe fn set_redundant_pic_cnt_present_flag_raw(this: *mut Self, val: u32) {
2508		unsafe {
2509			let val: u32 = ::std::mem::transmute(val);
2510			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2511				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2512				9usize,
2513				1u8,
2514				val as u64,
2515			)
2516		}
2517	}
2518	#[inline]
2519	pub fn reference_pic_flag(&self) -> u32 {
2520		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
2521	}
2522	#[inline]
2523	pub fn set_reference_pic_flag(&mut self, val: u32) {
2524		unsafe {
2525			let val: u32 = ::std::mem::transmute(val);
2526			self._bitfield_1.set(10usize, 1u8, val as u64)
2527		}
2528	}
2529	#[inline]
2530	pub unsafe fn reference_pic_flag_raw(this: *const Self) -> u32 {
2531		unsafe {
2532			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2533				::std::ptr::addr_of!((*this)._bitfield_1),
2534				10usize,
2535				1u8,
2536			) as u32)
2537		}
2538	}
2539	#[inline]
2540	pub unsafe fn set_reference_pic_flag_raw(this: *mut Self, val: u32) {
2541		unsafe {
2542			let val: u32 = ::std::mem::transmute(val);
2543			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2544				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2545				10usize,
2546				1u8,
2547				val as u64,
2548			)
2549		}
2550	}
2551	#[inline]
2552	pub fn new_bitfield_1(
2553		entropy_coding_mode_flag: u32,
2554		weighted_pred_flag: u32,
2555		weighted_bipred_idc: u32,
2556		transform_8x8_mode_flag: u32,
2557		field_pic_flag: u32,
2558		constrained_intra_pred_flag: u32,
2559		pic_order_present_flag: u32,
2560		deblocking_filter_control_present_flag: u32,
2561		redundant_pic_cnt_present_flag: u32,
2562		reference_pic_flag: u32,
2563	) -> __BindgenBitfieldUnit<[u8; 2usize]> {
2564		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
2565		__bindgen_bitfield_unit.set(0usize, 1u8, {
2566			let entropy_coding_mode_flag: u32 = unsafe { ::std::mem::transmute(entropy_coding_mode_flag) };
2567			entropy_coding_mode_flag as u64
2568		});
2569		__bindgen_bitfield_unit.set(1usize, 1u8, {
2570			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
2571			weighted_pred_flag as u64
2572		});
2573		__bindgen_bitfield_unit.set(2usize, 2u8, {
2574			let weighted_bipred_idc: u32 = unsafe { ::std::mem::transmute(weighted_bipred_idc) };
2575			weighted_bipred_idc as u64
2576		});
2577		__bindgen_bitfield_unit.set(4usize, 1u8, {
2578			let transform_8x8_mode_flag: u32 = unsafe { ::std::mem::transmute(transform_8x8_mode_flag) };
2579			transform_8x8_mode_flag as u64
2580		});
2581		__bindgen_bitfield_unit.set(5usize, 1u8, {
2582			let field_pic_flag: u32 = unsafe { ::std::mem::transmute(field_pic_flag) };
2583			field_pic_flag as u64
2584		});
2585		__bindgen_bitfield_unit.set(6usize, 1u8, {
2586			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
2587			constrained_intra_pred_flag as u64
2588		});
2589		__bindgen_bitfield_unit.set(7usize, 1u8, {
2590			let pic_order_present_flag: u32 = unsafe { ::std::mem::transmute(pic_order_present_flag) };
2591			pic_order_present_flag as u64
2592		});
2593		__bindgen_bitfield_unit.set(8usize, 1u8, {
2594			let deblocking_filter_control_present_flag: u32 =
2595				unsafe { ::std::mem::transmute(deblocking_filter_control_present_flag) };
2596			deblocking_filter_control_present_flag as u64
2597		});
2598		__bindgen_bitfield_unit.set(9usize, 1u8, {
2599			let redundant_pic_cnt_present_flag: u32 = unsafe { ::std::mem::transmute(redundant_pic_cnt_present_flag) };
2600			redundant_pic_cnt_present_flag as u64
2601		});
2602		__bindgen_bitfield_unit.set(10usize, 1u8, {
2603			let reference_pic_flag: u32 = unsafe { ::std::mem::transmute(reference_pic_flag) };
2604			reference_pic_flag as u64
2605		});
2606		__bindgen_bitfield_unit
2607	}
2608}
2609impl Default for _VAPictureParameterBufferH264__bindgen_ty_2 {
2610	fn default() -> Self {
2611		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2612		unsafe {
2613			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2614			s.assume_init()
2615		}
2616	}
2617}
2618impl Default for _VAPictureParameterBufferH264 {
2619	fn default() -> Self {
2620		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2621		unsafe {
2622			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2623			s.assume_init()
2624		}
2625	}
2626}
2627#[doc = " H.264 Picture Parameter Buffer"]
2628pub type VAPictureParameterBufferH264 = _VAPictureParameterBufferH264;
2629#[doc = " H.264 Inverse Quantization Matrix Buffer"]
2630#[repr(C)]
2631#[derive(Debug, Copy, Clone, PartialEq, Eq)]
2632pub struct _VAIQMatrixBufferH264 {
2633	#[doc = " \\brief 4x4 scaling list, in raster scan order."]
2634	pub ScalingList4x4: [[u8; 16usize]; 6usize],
2635	#[doc = " \\brief 8x8 scaling list, in raster scan order."]
2636	pub ScalingList8x8: [[u8; 64usize]; 2usize],
2637	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2638	pub va_reserved: [u32; 4usize],
2639}
2640impl Default for _VAIQMatrixBufferH264 {
2641	fn default() -> Self {
2642		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2643		unsafe {
2644			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2645			s.assume_init()
2646		}
2647	}
2648}
2649#[doc = " H.264 Inverse Quantization Matrix Buffer"]
2650pub type VAIQMatrixBufferH264 = _VAIQMatrixBufferH264;
2651#[doc = " H.264 Slice Parameter Buffer"]
2652#[repr(C)]
2653#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2654pub struct _VASliceParameterBufferH264 {
2655	pub slice_data_size: u32,
2656	#[doc = " \\brief Byte offset to the NAL Header Unit for this slice."]
2657	pub slice_data_offset: u32,
2658	pub slice_data_flag: u32,
2659	#[doc = " \\brief Bit offset from NAL Header Unit to the begining of slice_data().\n\n This bit offset is relative to and includes the NAL unit byte\n and represents the number of bits parsed in the slice_header()\n after the removal of any emulation prevention bytes in\n there. However, the slice data buffer passed to the hardware is\n the original bitstream, thus including any emulation prevention\n bytes."]
2660	pub slice_data_bit_offset: u16,
2661	pub first_mb_in_slice: u16,
2662	pub slice_type: u8,
2663	pub direct_spatial_mv_pred_flag: u8,
2664	#[doc = " H264/AVC syntax element\n\n if num_ref_idx_active_override_flag equals 0, host decoder should\n set its value to num_ref_idx_l0_default_active_minus1."]
2665	pub num_ref_idx_l0_active_minus1: u8,
2666	#[doc = " H264/AVC syntax element\n\n if num_ref_idx_active_override_flag equals 0, host decoder should\n set its value to num_ref_idx_l1_default_active_minus1."]
2667	pub num_ref_idx_l1_active_minus1: u8,
2668	pub cabac_init_idc: u8,
2669	pub slice_qp_delta: i8,
2670	pub disable_deblocking_filter_idc: u8,
2671	pub slice_alpha_c0_offset_div2: i8,
2672	pub slice_beta_offset_div2: i8,
2673	pub RefPicList0: [VAPictureH264; 32usize],
2674	pub RefPicList1: [VAPictureH264; 32usize],
2675	pub luma_log2_weight_denom: u8,
2676	pub chroma_log2_weight_denom: u8,
2677	pub luma_weight_l0_flag: u8,
2678	pub luma_weight_l0: [i16; 32usize],
2679	pub luma_offset_l0: [i16; 32usize],
2680	pub chroma_weight_l0_flag: u8,
2681	pub chroma_weight_l0: [[i16; 2usize]; 32usize],
2682	pub chroma_offset_l0: [[i16; 2usize]; 32usize],
2683	pub luma_weight_l1_flag: u8,
2684	pub luma_weight_l1: [i16; 32usize],
2685	pub luma_offset_l1: [i16; 32usize],
2686	pub chroma_weight_l1_flag: u8,
2687	pub chroma_weight_l1: [[i16; 2usize]; 32usize],
2688	pub chroma_offset_l1: [[i16; 2usize]; 32usize],
2689	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2690	pub va_reserved: [u32; 4usize],
2691}
2692#[doc = " H.264 Slice Parameter Buffer"]
2693pub type VASliceParameterBufferH264 = _VASliceParameterBufferH264;
2694#[doc = " \\brief Coded buffer segment.\n\n #VACodedBufferSegment is an element of a linked list describing\n some information on the coded buffer. The coded buffer segment\n could contain either a single NAL unit, or more than one NAL unit.\n It is recommended (but not required) to return a single NAL unit\n in a coded buffer segment, and the implementation should set the\n VA_CODED_BUF_STATUS_SINGLE_NALU status flag if that is the case."]
2695#[repr(C)]
2696#[derive(Debug, Copy, Clone, PartialEq, Eq)]
2697pub struct _VACodedBufferSegment {
2698	#[doc = " \\brief Size of the data buffer in this segment (in bytes)."]
2699	pub size: u32,
2700	#[doc = " \\brief Bit offset into the data buffer where the video data starts."]
2701	pub bit_offset: u32,
2702	#[doc = " \\brief Status set by the driver. See \\c VA_CODED_BUF_STATUS_*."]
2703	pub status: u32,
2704	#[doc = " \\brief Reserved for future use."]
2705	pub reserved: u32,
2706	#[doc = " \\brief Pointer to the start of the data buffer."]
2707	pub buf: *mut ::std::os::raw::c_void,
2708	#[doc = " \\brief Pointer to the next #VACodedBufferSegment element,\n or \\c NULL if there is none."]
2709	pub next: *mut ::std::os::raw::c_void,
2710	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2711	pub va_reserved: [u32; 4usize],
2712}
2713impl Default for _VACodedBufferSegment {
2714	fn default() -> Self {
2715		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2716		unsafe {
2717			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2718			s.assume_init()
2719		}
2720	}
2721}
2722#[doc = " \\brief Coded buffer segment.\n\n #VACodedBufferSegment is an element of a linked list describing\n some information on the coded buffer. The coded buffer segment\n could contain either a single NAL unit, or more than one NAL unit.\n It is recommended (but not required) to return a single NAL unit\n in a coded buffer segment, and the implementation should set the\n VA_CODED_BUF_STATUS_SINGLE_NALU status flag if that is the case."]
2723pub type VACodedBufferSegment = _VACodedBufferSegment;
2724pub mod VASurfaceStatus {
2725	pub type Type = ::std::os::raw::c_uint;
2726	pub const VASurfaceRendering: Type = 1;
2727	pub const VASurfaceDisplaying: Type = 2;
2728	pub const VASurfaceReady: Type = 4;
2729	pub const VASurfaceSkipped: Type = 8;
2730}
2731pub mod VADecodeErrorType {
2732	pub type Type = ::std::os::raw::c_uint;
2733	pub const VADecodeSliceMissing: Type = 0;
2734	pub const VADecodeMBError: Type = 1;
2735	pub const VADecodeReset: Type = 2;
2736}
2737#[doc = " Client calls vaQuerySurfaceError with VA_STATUS_ERROR_DECODING_ERROR, server side returns\n an array of structure VASurfaceDecodeMBErrors, and the array is terminated by setting status=-1"]
2738#[repr(C)]
2739#[derive(Debug, Copy, Clone, PartialEq, Eq)]
2740pub struct _VASurfaceDecodeMBErrors {
2741	pub status: i32,
2742	pub start_mb: u32,
2743	pub end_mb: u32,
2744	pub decode_error_type: VADecodeErrorType::Type,
2745	pub num_mb: u32,
2746	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2747	pub va_reserved: [u32; 3usize],
2748}
2749impl Default for _VASurfaceDecodeMBErrors {
2750	fn default() -> Self {
2751		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2752		unsafe {
2753			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2754			s.assume_init()
2755		}
2756	}
2757}
2758#[doc = " Client calls vaQuerySurfaceError with VA_STATUS_ERROR_DECODING_ERROR, server side returns\n an array of structure VASurfaceDecodeMBErrors, and the array is terminated by setting status=-1"]
2759pub type VASurfaceDecodeMBErrors = _VASurfaceDecodeMBErrors;
2760#[repr(C)]
2761#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2762pub struct _VAImageFormat {
2763	pub fourcc: u32,
2764	pub byte_order: u32,
2765	pub bits_per_pixel: u32,
2766	pub depth: u32,
2767	pub red_mask: u32,
2768	pub green_mask: u32,
2769	pub blue_mask: u32,
2770	pub alpha_mask: u32,
2771	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2772	pub va_reserved: [u32; 4usize],
2773}
2774pub type VAImageFormat = _VAImageFormat;
2775pub type VAImageID = VAGenericID;
2776#[repr(C)]
2777#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2778pub struct _VAImage {
2779	pub image_id: VAImageID,
2780	pub format: VAImageFormat,
2781	pub buf: VABufferID,
2782	pub width: u16,
2783	pub height: u16,
2784	pub data_size: u32,
2785	pub num_planes: u32,
2786	pub pitches: [u32; 3usize],
2787	pub offsets: [u32; 3usize],
2788	pub num_palette_entries: i32,
2789	pub entry_bytes: i32,
2790	pub component_order: [i8; 4usize],
2791	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2792	pub va_reserved: [u32; 4usize],
2793}
2794pub type VAImage = _VAImage;
2795#[doc = " HEVC data structures\n/\n/**\n \\brief Description of picture properties of those in DPB surfaces.\n\n If only progressive scan is supported, each surface contains one whole\n frame picture.\n Otherwise, each surface contains two fields of whole picture.\n In this case, two entries of ReferenceFrames[] may share same picture_id\n value."]
2796#[repr(C)]
2797#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2798pub struct _VAPictureHEVC {
2799	#[doc = " \\brief reconstructed picture buffer surface index\n invalid when taking value VA_INVALID_SURFACE."]
2800	pub picture_id: VASurfaceID,
2801	#[doc = " \\brief picture order count.\n in HEVC, POCs for top and bottom fields of same picture should\n take different values."]
2802	pub pic_order_cnt: i32,
2803	pub flags: u32,
2804	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2805	pub va_reserved: [u32; 4usize],
2806}
2807#[doc = " HEVC data structures\n/\n/**\n \\brief Description of picture properties of those in DPB surfaces.\n\n If only progressive scan is supported, each surface contains one whole\n frame picture.\n Otherwise, each surface contains two fields of whole picture.\n In this case, two entries of ReferenceFrames[] may share same picture_id\n value."]
2808pub type VAPictureHEVC = _VAPictureHEVC;
2809#[doc = " \\brief HEVC Decoding Picture Parameter Buffer Structure\n\n This structure conveys picture level parameters and should be sent once\n per frame.\n"]
2810#[repr(C)]
2811#[derive(Copy, Clone)]
2812pub struct _VAPictureParameterBufferHEVC {
2813	#[doc = " \\brief buffer description of decoded current picture\n only VA_PICTURE_HEVC_FIELD_PIC and VA_PICTURE_HEVC_BOTTOM_FIELD\n of \"flags\" fields are meaningful."]
2814	pub CurrPic: VAPictureHEVC,
2815	#[doc = " \\brief buffer description of reference frames in DPB"]
2816	pub ReferenceFrames: [VAPictureHEVC; 15usize],
2817	#[doc = " \\brief picture width, shall be integer multiple of minimum CB size."]
2818	pub pic_width_in_luma_samples: u16,
2819	#[doc = " \\brief picture height, shall be integer multiple of minimum CB size."]
2820	pub pic_height_in_luma_samples: u16,
2821	pub pic_fields: _VAPictureParameterBufferHEVC__bindgen_ty_1,
2822	#[doc = " following parameters have same syntax with those in HEVC spec */\n/** \\brief DPB size for current temporal layer"]
2823	pub sps_max_dec_pic_buffering_minus1: u8,
2824	pub bit_depth_luma_minus8: u8,
2825	pub bit_depth_chroma_minus8: u8,
2826	pub pcm_sample_bit_depth_luma_minus1: u8,
2827	pub pcm_sample_bit_depth_chroma_minus1: u8,
2828	pub log2_min_luma_coding_block_size_minus3: u8,
2829	pub log2_diff_max_min_luma_coding_block_size: u8,
2830	pub log2_min_transform_block_size_minus2: u8,
2831	pub log2_diff_max_min_transform_block_size: u8,
2832	pub log2_min_pcm_luma_coding_block_size_minus3: u8,
2833	pub log2_diff_max_min_pcm_luma_coding_block_size: u8,
2834	pub max_transform_hierarchy_depth_intra: u8,
2835	pub max_transform_hierarchy_depth_inter: u8,
2836	pub init_qp_minus26: i8,
2837	pub diff_cu_qp_delta_depth: u8,
2838	pub pps_cb_qp_offset: i8,
2839	pub pps_cr_qp_offset: i8,
2840	pub log2_parallel_merge_level_minus2: u8,
2841	pub num_tile_columns_minus1: u8,
2842	pub num_tile_rows_minus1: u8,
2843	#[doc = " when uniform_spacing_flag equals 1, application should populate\n column_width_minus[], and row_height_minus1[] with approperiate values."]
2844	pub column_width_minus1: [u16; 19usize],
2845	pub row_height_minus1: [u16; 21usize],
2846	pub slice_parsing_fields: _VAPictureParameterBufferHEVC__bindgen_ty_2,
2847	#[doc = " following parameters have same syntax with those in HEVC spec"]
2848	pub log2_max_pic_order_cnt_lsb_minus4: u8,
2849	pub num_short_term_ref_pic_sets: u8,
2850	pub num_long_term_ref_pic_sps: u8,
2851	pub num_ref_idx_l0_default_active_minus1: u8,
2852	pub num_ref_idx_l1_default_active_minus1: u8,
2853	pub pps_beta_offset_div2: i8,
2854	pub pps_tc_offset_div2: i8,
2855	pub num_extra_slice_header_bits: u8,
2856	#[doc = " \\brief number of bits that structure\n short_term_ref_pic_set( num_short_term_ref_pic_sets ) takes in slice\n segment header when short_term_ref_pic_set_sps_flag equals 0.\n if short_term_ref_pic_set_sps_flag equals 1, the value should be 0.\n the bit count is calculated after emulation prevention bytes are removed\n from bit streams.\n This variable is used for accelorater to skip parsing the\n short_term_ref_pic_set( num_short_term_ref_pic_sets ) structure."]
2857	pub st_rps_bits: u32,
2858	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2859	pub va_reserved: [u32; 8usize],
2860}
2861#[repr(C)]
2862#[derive(Copy, Clone)]
2863pub union _VAPictureParameterBufferHEVC__bindgen_ty_1 {
2864	pub bits: _VAPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
2865	pub value: u32,
2866}
2867#[repr(C)]
2868#[repr(align(4))]
2869#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2870pub struct _VAPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
2871	pub _bitfield_align_1: [u16; 0],
2872	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
2873}
2874impl _VAPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
2875	#[inline]
2876	pub fn chroma_format_idc(&self) -> u32 {
2877		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2878	}
2879	#[inline]
2880	pub fn set_chroma_format_idc(&mut self, val: u32) {
2881		unsafe {
2882			let val: u32 = ::std::mem::transmute(val);
2883			self._bitfield_1.set(0usize, 2u8, val as u64)
2884		}
2885	}
2886	#[inline]
2887	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
2888		unsafe {
2889			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2890				::std::ptr::addr_of!((*this)._bitfield_1),
2891				0usize,
2892				2u8,
2893			) as u32)
2894		}
2895	}
2896	#[inline]
2897	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
2898		unsafe {
2899			let val: u32 = ::std::mem::transmute(val);
2900			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2901				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2902				0usize,
2903				2u8,
2904				val as u64,
2905			)
2906		}
2907	}
2908	#[inline]
2909	pub fn separate_colour_plane_flag(&self) -> u32 {
2910		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2911	}
2912	#[inline]
2913	pub fn set_separate_colour_plane_flag(&mut self, val: u32) {
2914		unsafe {
2915			let val: u32 = ::std::mem::transmute(val);
2916			self._bitfield_1.set(2usize, 1u8, val as u64)
2917		}
2918	}
2919	#[inline]
2920	pub unsafe fn separate_colour_plane_flag_raw(this: *const Self) -> u32 {
2921		unsafe {
2922			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2923				::std::ptr::addr_of!((*this)._bitfield_1),
2924				2usize,
2925				1u8,
2926			) as u32)
2927		}
2928	}
2929	#[inline]
2930	pub unsafe fn set_separate_colour_plane_flag_raw(this: *mut Self, val: u32) {
2931		unsafe {
2932			let val: u32 = ::std::mem::transmute(val);
2933			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2934				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2935				2usize,
2936				1u8,
2937				val as u64,
2938			)
2939		}
2940	}
2941	#[inline]
2942	pub fn pcm_enabled_flag(&self) -> u32 {
2943		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2944	}
2945	#[inline]
2946	pub fn set_pcm_enabled_flag(&mut self, val: u32) {
2947		unsafe {
2948			let val: u32 = ::std::mem::transmute(val);
2949			self._bitfield_1.set(3usize, 1u8, val as u64)
2950		}
2951	}
2952	#[inline]
2953	pub unsafe fn pcm_enabled_flag_raw(this: *const Self) -> u32 {
2954		unsafe {
2955			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2956				::std::ptr::addr_of!((*this)._bitfield_1),
2957				3usize,
2958				1u8,
2959			) as u32)
2960		}
2961	}
2962	#[inline]
2963	pub unsafe fn set_pcm_enabled_flag_raw(this: *mut Self, val: u32) {
2964		unsafe {
2965			let val: u32 = ::std::mem::transmute(val);
2966			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2967				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2968				3usize,
2969				1u8,
2970				val as u64,
2971			)
2972		}
2973	}
2974	#[inline]
2975	pub fn scaling_list_enabled_flag(&self) -> u32 {
2976		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2977	}
2978	#[inline]
2979	pub fn set_scaling_list_enabled_flag(&mut self, val: u32) {
2980		unsafe {
2981			let val: u32 = ::std::mem::transmute(val);
2982			self._bitfield_1.set(4usize, 1u8, val as u64)
2983		}
2984	}
2985	#[inline]
2986	pub unsafe fn scaling_list_enabled_flag_raw(this: *const Self) -> u32 {
2987		unsafe {
2988			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2989				::std::ptr::addr_of!((*this)._bitfield_1),
2990				4usize,
2991				1u8,
2992			) as u32)
2993		}
2994	}
2995	#[inline]
2996	pub unsafe fn set_scaling_list_enabled_flag_raw(this: *mut Self, val: u32) {
2997		unsafe {
2998			let val: u32 = ::std::mem::transmute(val);
2999			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3000				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3001				4usize,
3002				1u8,
3003				val as u64,
3004			)
3005		}
3006	}
3007	#[inline]
3008	pub fn transform_skip_enabled_flag(&self) -> u32 {
3009		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3010	}
3011	#[inline]
3012	pub fn set_transform_skip_enabled_flag(&mut self, val: u32) {
3013		unsafe {
3014			let val: u32 = ::std::mem::transmute(val);
3015			self._bitfield_1.set(5usize, 1u8, val as u64)
3016		}
3017	}
3018	#[inline]
3019	pub unsafe fn transform_skip_enabled_flag_raw(this: *const Self) -> u32 {
3020		unsafe {
3021			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3022				::std::ptr::addr_of!((*this)._bitfield_1),
3023				5usize,
3024				1u8,
3025			) as u32)
3026		}
3027	}
3028	#[inline]
3029	pub unsafe fn set_transform_skip_enabled_flag_raw(this: *mut Self, val: u32) {
3030		unsafe {
3031			let val: u32 = ::std::mem::transmute(val);
3032			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3033				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3034				5usize,
3035				1u8,
3036				val as u64,
3037			)
3038		}
3039	}
3040	#[inline]
3041	pub fn amp_enabled_flag(&self) -> u32 {
3042		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3043	}
3044	#[inline]
3045	pub fn set_amp_enabled_flag(&mut self, val: u32) {
3046		unsafe {
3047			let val: u32 = ::std::mem::transmute(val);
3048			self._bitfield_1.set(6usize, 1u8, val as u64)
3049		}
3050	}
3051	#[inline]
3052	pub unsafe fn amp_enabled_flag_raw(this: *const Self) -> u32 {
3053		unsafe {
3054			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3055				::std::ptr::addr_of!((*this)._bitfield_1),
3056				6usize,
3057				1u8,
3058			) as u32)
3059		}
3060	}
3061	#[inline]
3062	pub unsafe fn set_amp_enabled_flag_raw(this: *mut Self, val: u32) {
3063		unsafe {
3064			let val: u32 = ::std::mem::transmute(val);
3065			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3066				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3067				6usize,
3068				1u8,
3069				val as u64,
3070			)
3071		}
3072	}
3073	#[inline]
3074	pub fn strong_intra_smoothing_enabled_flag(&self) -> u32 {
3075		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3076	}
3077	#[inline]
3078	pub fn set_strong_intra_smoothing_enabled_flag(&mut self, val: u32) {
3079		unsafe {
3080			let val: u32 = ::std::mem::transmute(val);
3081			self._bitfield_1.set(7usize, 1u8, val as u64)
3082		}
3083	}
3084	#[inline]
3085	pub unsafe fn strong_intra_smoothing_enabled_flag_raw(this: *const Self) -> u32 {
3086		unsafe {
3087			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3088				::std::ptr::addr_of!((*this)._bitfield_1),
3089				7usize,
3090				1u8,
3091			) as u32)
3092		}
3093	}
3094	#[inline]
3095	pub unsafe fn set_strong_intra_smoothing_enabled_flag_raw(this: *mut Self, val: u32) {
3096		unsafe {
3097			let val: u32 = ::std::mem::transmute(val);
3098			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3099				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3100				7usize,
3101				1u8,
3102				val as u64,
3103			)
3104		}
3105	}
3106	#[inline]
3107	pub fn sign_data_hiding_enabled_flag(&self) -> u32 {
3108		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3109	}
3110	#[inline]
3111	pub fn set_sign_data_hiding_enabled_flag(&mut self, val: u32) {
3112		unsafe {
3113			let val: u32 = ::std::mem::transmute(val);
3114			self._bitfield_1.set(8usize, 1u8, val as u64)
3115		}
3116	}
3117	#[inline]
3118	pub unsafe fn sign_data_hiding_enabled_flag_raw(this: *const Self) -> u32 {
3119		unsafe {
3120			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3121				::std::ptr::addr_of!((*this)._bitfield_1),
3122				8usize,
3123				1u8,
3124			) as u32)
3125		}
3126	}
3127	#[inline]
3128	pub unsafe fn set_sign_data_hiding_enabled_flag_raw(this: *mut Self, val: u32) {
3129		unsafe {
3130			let val: u32 = ::std::mem::transmute(val);
3131			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3132				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3133				8usize,
3134				1u8,
3135				val as u64,
3136			)
3137		}
3138	}
3139	#[inline]
3140	pub fn constrained_intra_pred_flag(&self) -> u32 {
3141		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
3142	}
3143	#[inline]
3144	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
3145		unsafe {
3146			let val: u32 = ::std::mem::transmute(val);
3147			self._bitfield_1.set(9usize, 1u8, val as u64)
3148		}
3149	}
3150	#[inline]
3151	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
3152		unsafe {
3153			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3154				::std::ptr::addr_of!((*this)._bitfield_1),
3155				9usize,
3156				1u8,
3157			) as u32)
3158		}
3159	}
3160	#[inline]
3161	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
3162		unsafe {
3163			let val: u32 = ::std::mem::transmute(val);
3164			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3165				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3166				9usize,
3167				1u8,
3168				val as u64,
3169			)
3170		}
3171	}
3172	#[inline]
3173	pub fn cu_qp_delta_enabled_flag(&self) -> u32 {
3174		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
3175	}
3176	#[inline]
3177	pub fn set_cu_qp_delta_enabled_flag(&mut self, val: u32) {
3178		unsafe {
3179			let val: u32 = ::std::mem::transmute(val);
3180			self._bitfield_1.set(10usize, 1u8, val as u64)
3181		}
3182	}
3183	#[inline]
3184	pub unsafe fn cu_qp_delta_enabled_flag_raw(this: *const Self) -> u32 {
3185		unsafe {
3186			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3187				::std::ptr::addr_of!((*this)._bitfield_1),
3188				10usize,
3189				1u8,
3190			) as u32)
3191		}
3192	}
3193	#[inline]
3194	pub unsafe fn set_cu_qp_delta_enabled_flag_raw(this: *mut Self, val: u32) {
3195		unsafe {
3196			let val: u32 = ::std::mem::transmute(val);
3197			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3198				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3199				10usize,
3200				1u8,
3201				val as u64,
3202			)
3203		}
3204	}
3205	#[inline]
3206	pub fn weighted_pred_flag(&self) -> u32 {
3207		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
3208	}
3209	#[inline]
3210	pub fn set_weighted_pred_flag(&mut self, val: u32) {
3211		unsafe {
3212			let val: u32 = ::std::mem::transmute(val);
3213			self._bitfield_1.set(11usize, 1u8, val as u64)
3214		}
3215	}
3216	#[inline]
3217	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
3218		unsafe {
3219			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3220				::std::ptr::addr_of!((*this)._bitfield_1),
3221				11usize,
3222				1u8,
3223			) as u32)
3224		}
3225	}
3226	#[inline]
3227	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
3228		unsafe {
3229			let val: u32 = ::std::mem::transmute(val);
3230			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3231				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3232				11usize,
3233				1u8,
3234				val as u64,
3235			)
3236		}
3237	}
3238	#[inline]
3239	pub fn weighted_bipred_flag(&self) -> u32 {
3240		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
3241	}
3242	#[inline]
3243	pub fn set_weighted_bipred_flag(&mut self, val: u32) {
3244		unsafe {
3245			let val: u32 = ::std::mem::transmute(val);
3246			self._bitfield_1.set(12usize, 1u8, val as u64)
3247		}
3248	}
3249	#[inline]
3250	pub unsafe fn weighted_bipred_flag_raw(this: *const Self) -> u32 {
3251		unsafe {
3252			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3253				::std::ptr::addr_of!((*this)._bitfield_1),
3254				12usize,
3255				1u8,
3256			) as u32)
3257		}
3258	}
3259	#[inline]
3260	pub unsafe fn set_weighted_bipred_flag_raw(this: *mut Self, val: u32) {
3261		unsafe {
3262			let val: u32 = ::std::mem::transmute(val);
3263			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3264				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3265				12usize,
3266				1u8,
3267				val as u64,
3268			)
3269		}
3270	}
3271	#[inline]
3272	pub fn transquant_bypass_enabled_flag(&self) -> u32 {
3273		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
3274	}
3275	#[inline]
3276	pub fn set_transquant_bypass_enabled_flag(&mut self, val: u32) {
3277		unsafe {
3278			let val: u32 = ::std::mem::transmute(val);
3279			self._bitfield_1.set(13usize, 1u8, val as u64)
3280		}
3281	}
3282	#[inline]
3283	pub unsafe fn transquant_bypass_enabled_flag_raw(this: *const Self) -> u32 {
3284		unsafe {
3285			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3286				::std::ptr::addr_of!((*this)._bitfield_1),
3287				13usize,
3288				1u8,
3289			) as u32)
3290		}
3291	}
3292	#[inline]
3293	pub unsafe fn set_transquant_bypass_enabled_flag_raw(this: *mut Self, val: u32) {
3294		unsafe {
3295			let val: u32 = ::std::mem::transmute(val);
3296			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3297				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3298				13usize,
3299				1u8,
3300				val as u64,
3301			)
3302		}
3303	}
3304	#[inline]
3305	pub fn tiles_enabled_flag(&self) -> u32 {
3306		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
3307	}
3308	#[inline]
3309	pub fn set_tiles_enabled_flag(&mut self, val: u32) {
3310		unsafe {
3311			let val: u32 = ::std::mem::transmute(val);
3312			self._bitfield_1.set(14usize, 1u8, val as u64)
3313		}
3314	}
3315	#[inline]
3316	pub unsafe fn tiles_enabled_flag_raw(this: *const Self) -> u32 {
3317		unsafe {
3318			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3319				::std::ptr::addr_of!((*this)._bitfield_1),
3320				14usize,
3321				1u8,
3322			) as u32)
3323		}
3324	}
3325	#[inline]
3326	pub unsafe fn set_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
3327		unsafe {
3328			let val: u32 = ::std::mem::transmute(val);
3329			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3330				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3331				14usize,
3332				1u8,
3333				val as u64,
3334			)
3335		}
3336	}
3337	#[inline]
3338	pub fn entropy_coding_sync_enabled_flag(&self) -> u32 {
3339		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
3340	}
3341	#[inline]
3342	pub fn set_entropy_coding_sync_enabled_flag(&mut self, val: u32) {
3343		unsafe {
3344			let val: u32 = ::std::mem::transmute(val);
3345			self._bitfield_1.set(15usize, 1u8, val as u64)
3346		}
3347	}
3348	#[inline]
3349	pub unsafe fn entropy_coding_sync_enabled_flag_raw(this: *const Self) -> u32 {
3350		unsafe {
3351			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3352				::std::ptr::addr_of!((*this)._bitfield_1),
3353				15usize,
3354				1u8,
3355			) as u32)
3356		}
3357	}
3358	#[inline]
3359	pub unsafe fn set_entropy_coding_sync_enabled_flag_raw(this: *mut Self, val: u32) {
3360		unsafe {
3361			let val: u32 = ::std::mem::transmute(val);
3362			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3363				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3364				15usize,
3365				1u8,
3366				val as u64,
3367			)
3368		}
3369	}
3370	#[inline]
3371	pub fn pps_loop_filter_across_slices_enabled_flag(&self) -> u32 {
3372		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
3373	}
3374	#[inline]
3375	pub fn set_pps_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
3376		unsafe {
3377			let val: u32 = ::std::mem::transmute(val);
3378			self._bitfield_1.set(16usize, 1u8, val as u64)
3379		}
3380	}
3381	#[inline]
3382	pub unsafe fn pps_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
3383		unsafe {
3384			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3385				::std::ptr::addr_of!((*this)._bitfield_1),
3386				16usize,
3387				1u8,
3388			) as u32)
3389		}
3390	}
3391	#[inline]
3392	pub unsafe fn set_pps_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
3393		unsafe {
3394			let val: u32 = ::std::mem::transmute(val);
3395			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3396				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3397				16usize,
3398				1u8,
3399				val as u64,
3400			)
3401		}
3402	}
3403	#[inline]
3404	pub fn loop_filter_across_tiles_enabled_flag(&self) -> u32 {
3405		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
3406	}
3407	#[inline]
3408	pub fn set_loop_filter_across_tiles_enabled_flag(&mut self, val: u32) {
3409		unsafe {
3410			let val: u32 = ::std::mem::transmute(val);
3411			self._bitfield_1.set(17usize, 1u8, val as u64)
3412		}
3413	}
3414	#[inline]
3415	pub unsafe fn loop_filter_across_tiles_enabled_flag_raw(this: *const Self) -> u32 {
3416		unsafe {
3417			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3418				::std::ptr::addr_of!((*this)._bitfield_1),
3419				17usize,
3420				1u8,
3421			) as u32)
3422		}
3423	}
3424	#[inline]
3425	pub unsafe fn set_loop_filter_across_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
3426		unsafe {
3427			let val: u32 = ::std::mem::transmute(val);
3428			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3429				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3430				17usize,
3431				1u8,
3432				val as u64,
3433			)
3434		}
3435	}
3436	#[inline]
3437	pub fn pcm_loop_filter_disabled_flag(&self) -> u32 {
3438		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
3439	}
3440	#[inline]
3441	pub fn set_pcm_loop_filter_disabled_flag(&mut self, val: u32) {
3442		unsafe {
3443			let val: u32 = ::std::mem::transmute(val);
3444			self._bitfield_1.set(18usize, 1u8, val as u64)
3445		}
3446	}
3447	#[inline]
3448	pub unsafe fn pcm_loop_filter_disabled_flag_raw(this: *const Self) -> u32 {
3449		unsafe {
3450			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3451				::std::ptr::addr_of!((*this)._bitfield_1),
3452				18usize,
3453				1u8,
3454			) as u32)
3455		}
3456	}
3457	#[inline]
3458	pub unsafe fn set_pcm_loop_filter_disabled_flag_raw(this: *mut Self, val: u32) {
3459		unsafe {
3460			let val: u32 = ::std::mem::transmute(val);
3461			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3462				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3463				18usize,
3464				1u8,
3465				val as u64,
3466			)
3467		}
3468	}
3469	#[inline]
3470	pub fn NoPicReorderingFlag(&self) -> u32 {
3471		unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) }
3472	}
3473	#[inline]
3474	pub fn set_NoPicReorderingFlag(&mut self, val: u32) {
3475		unsafe {
3476			let val: u32 = ::std::mem::transmute(val);
3477			self._bitfield_1.set(19usize, 1u8, val as u64)
3478		}
3479	}
3480	#[inline]
3481	pub unsafe fn NoPicReorderingFlag_raw(this: *const Self) -> u32 {
3482		unsafe {
3483			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3484				::std::ptr::addr_of!((*this)._bitfield_1),
3485				19usize,
3486				1u8,
3487			) as u32)
3488		}
3489	}
3490	#[inline]
3491	pub unsafe fn set_NoPicReorderingFlag_raw(this: *mut Self, val: u32) {
3492		unsafe {
3493			let val: u32 = ::std::mem::transmute(val);
3494			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3495				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3496				19usize,
3497				1u8,
3498				val as u64,
3499			)
3500		}
3501	}
3502	#[inline]
3503	pub fn NoBiPredFlag(&self) -> u32 {
3504		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) }
3505	}
3506	#[inline]
3507	pub fn set_NoBiPredFlag(&mut self, val: u32) {
3508		unsafe {
3509			let val: u32 = ::std::mem::transmute(val);
3510			self._bitfield_1.set(20usize, 1u8, val as u64)
3511		}
3512	}
3513	#[inline]
3514	pub unsafe fn NoBiPredFlag_raw(this: *const Self) -> u32 {
3515		unsafe {
3516			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3517				::std::ptr::addr_of!((*this)._bitfield_1),
3518				20usize,
3519				1u8,
3520			) as u32)
3521		}
3522	}
3523	#[inline]
3524	pub unsafe fn set_NoBiPredFlag_raw(this: *mut Self, val: u32) {
3525		unsafe {
3526			let val: u32 = ::std::mem::transmute(val);
3527			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3528				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3529				20usize,
3530				1u8,
3531				val as u64,
3532			)
3533		}
3534	}
3535	#[inline]
3536	pub fn ReservedBits(&self) -> u32 {
3537		unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 11u8) as u32) }
3538	}
3539	#[inline]
3540	pub fn set_ReservedBits(&mut self, val: u32) {
3541		unsafe {
3542			let val: u32 = ::std::mem::transmute(val);
3543			self._bitfield_1.set(21usize, 11u8, val as u64)
3544		}
3545	}
3546	#[inline]
3547	pub unsafe fn ReservedBits_raw(this: *const Self) -> u32 {
3548		unsafe {
3549			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3550				::std::ptr::addr_of!((*this)._bitfield_1),
3551				21usize,
3552				11u8,
3553			) as u32)
3554		}
3555	}
3556	#[inline]
3557	pub unsafe fn set_ReservedBits_raw(this: *mut Self, val: u32) {
3558		unsafe {
3559			let val: u32 = ::std::mem::transmute(val);
3560			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3561				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3562				21usize,
3563				11u8,
3564				val as u64,
3565			)
3566		}
3567	}
3568	#[inline]
3569	pub fn new_bitfield_1(
3570		chroma_format_idc: u32,
3571		separate_colour_plane_flag: u32,
3572		pcm_enabled_flag: u32,
3573		scaling_list_enabled_flag: u32,
3574		transform_skip_enabled_flag: u32,
3575		amp_enabled_flag: u32,
3576		strong_intra_smoothing_enabled_flag: u32,
3577		sign_data_hiding_enabled_flag: u32,
3578		constrained_intra_pred_flag: u32,
3579		cu_qp_delta_enabled_flag: u32,
3580		weighted_pred_flag: u32,
3581		weighted_bipred_flag: u32,
3582		transquant_bypass_enabled_flag: u32,
3583		tiles_enabled_flag: u32,
3584		entropy_coding_sync_enabled_flag: u32,
3585		pps_loop_filter_across_slices_enabled_flag: u32,
3586		loop_filter_across_tiles_enabled_flag: u32,
3587		pcm_loop_filter_disabled_flag: u32,
3588		NoPicReorderingFlag: u32,
3589		NoBiPredFlag: u32,
3590		ReservedBits: u32,
3591	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3592		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3593		__bindgen_bitfield_unit.set(0usize, 2u8, {
3594			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
3595			chroma_format_idc as u64
3596		});
3597		__bindgen_bitfield_unit.set(2usize, 1u8, {
3598			let separate_colour_plane_flag: u32 = unsafe { ::std::mem::transmute(separate_colour_plane_flag) };
3599			separate_colour_plane_flag as u64
3600		});
3601		__bindgen_bitfield_unit.set(3usize, 1u8, {
3602			let pcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_enabled_flag) };
3603			pcm_enabled_flag as u64
3604		});
3605		__bindgen_bitfield_unit.set(4usize, 1u8, {
3606			let scaling_list_enabled_flag: u32 = unsafe { ::std::mem::transmute(scaling_list_enabled_flag) };
3607			scaling_list_enabled_flag as u64
3608		});
3609		__bindgen_bitfield_unit.set(5usize, 1u8, {
3610			let transform_skip_enabled_flag: u32 = unsafe { ::std::mem::transmute(transform_skip_enabled_flag) };
3611			transform_skip_enabled_flag as u64
3612		});
3613		__bindgen_bitfield_unit.set(6usize, 1u8, {
3614			let amp_enabled_flag: u32 = unsafe { ::std::mem::transmute(amp_enabled_flag) };
3615			amp_enabled_flag as u64
3616		});
3617		__bindgen_bitfield_unit.set(7usize, 1u8, {
3618			let strong_intra_smoothing_enabled_flag: u32 =
3619				unsafe { ::std::mem::transmute(strong_intra_smoothing_enabled_flag) };
3620			strong_intra_smoothing_enabled_flag as u64
3621		});
3622		__bindgen_bitfield_unit.set(8usize, 1u8, {
3623			let sign_data_hiding_enabled_flag: u32 = unsafe { ::std::mem::transmute(sign_data_hiding_enabled_flag) };
3624			sign_data_hiding_enabled_flag as u64
3625		});
3626		__bindgen_bitfield_unit.set(9usize, 1u8, {
3627			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
3628			constrained_intra_pred_flag as u64
3629		});
3630		__bindgen_bitfield_unit.set(10usize, 1u8, {
3631			let cu_qp_delta_enabled_flag: u32 = unsafe { ::std::mem::transmute(cu_qp_delta_enabled_flag) };
3632			cu_qp_delta_enabled_flag as u64
3633		});
3634		__bindgen_bitfield_unit.set(11usize, 1u8, {
3635			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
3636			weighted_pred_flag as u64
3637		});
3638		__bindgen_bitfield_unit.set(12usize, 1u8, {
3639			let weighted_bipred_flag: u32 = unsafe { ::std::mem::transmute(weighted_bipred_flag) };
3640			weighted_bipred_flag as u64
3641		});
3642		__bindgen_bitfield_unit.set(13usize, 1u8, {
3643			let transquant_bypass_enabled_flag: u32 = unsafe { ::std::mem::transmute(transquant_bypass_enabled_flag) };
3644			transquant_bypass_enabled_flag as u64
3645		});
3646		__bindgen_bitfield_unit.set(14usize, 1u8, {
3647			let tiles_enabled_flag: u32 = unsafe { ::std::mem::transmute(tiles_enabled_flag) };
3648			tiles_enabled_flag as u64
3649		});
3650		__bindgen_bitfield_unit.set(15usize, 1u8, {
3651			let entropy_coding_sync_enabled_flag: u32 =
3652				unsafe { ::std::mem::transmute(entropy_coding_sync_enabled_flag) };
3653			entropy_coding_sync_enabled_flag as u64
3654		});
3655		__bindgen_bitfield_unit.set(16usize, 1u8, {
3656			let pps_loop_filter_across_slices_enabled_flag: u32 =
3657				unsafe { ::std::mem::transmute(pps_loop_filter_across_slices_enabled_flag) };
3658			pps_loop_filter_across_slices_enabled_flag as u64
3659		});
3660		__bindgen_bitfield_unit.set(17usize, 1u8, {
3661			let loop_filter_across_tiles_enabled_flag: u32 =
3662				unsafe { ::std::mem::transmute(loop_filter_across_tiles_enabled_flag) };
3663			loop_filter_across_tiles_enabled_flag as u64
3664		});
3665		__bindgen_bitfield_unit.set(18usize, 1u8, {
3666			let pcm_loop_filter_disabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_loop_filter_disabled_flag) };
3667			pcm_loop_filter_disabled_flag as u64
3668		});
3669		__bindgen_bitfield_unit.set(19usize, 1u8, {
3670			let NoPicReorderingFlag: u32 = unsafe { ::std::mem::transmute(NoPicReorderingFlag) };
3671			NoPicReorderingFlag as u64
3672		});
3673		__bindgen_bitfield_unit.set(20usize, 1u8, {
3674			let NoBiPredFlag: u32 = unsafe { ::std::mem::transmute(NoBiPredFlag) };
3675			NoBiPredFlag as u64
3676		});
3677		__bindgen_bitfield_unit.set(21usize, 11u8, {
3678			let ReservedBits: u32 = unsafe { ::std::mem::transmute(ReservedBits) };
3679			ReservedBits as u64
3680		});
3681		__bindgen_bitfield_unit
3682	}
3683}
3684impl Default for _VAPictureParameterBufferHEVC__bindgen_ty_1 {
3685	fn default() -> Self {
3686		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3687		unsafe {
3688			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3689			s.assume_init()
3690		}
3691	}
3692}
3693#[doc = " \\brief Parameters needed for parsing slice segment headers"]
3694#[repr(C)]
3695#[derive(Copy, Clone)]
3696pub union _VAPictureParameterBufferHEVC__bindgen_ty_2 {
3697	pub bits: _VAPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1,
3698	pub value: u32,
3699}
3700#[repr(C)]
3701#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
3702pub struct _VAPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
3703	pub _bitfield_align_1: [u32; 0],
3704	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
3705}
3706impl _VAPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
3707	#[inline]
3708	pub fn lists_modification_present_flag(&self) -> u32 {
3709		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3710	}
3711	#[inline]
3712	pub fn set_lists_modification_present_flag(&mut self, val: u32) {
3713		unsafe {
3714			let val: u32 = ::std::mem::transmute(val);
3715			self._bitfield_1.set(0usize, 1u8, val as u64)
3716		}
3717	}
3718	#[inline]
3719	pub unsafe fn lists_modification_present_flag_raw(this: *const Self) -> u32 {
3720		unsafe {
3721			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3722				::std::ptr::addr_of!((*this)._bitfield_1),
3723				0usize,
3724				1u8,
3725			) as u32)
3726		}
3727	}
3728	#[inline]
3729	pub unsafe fn set_lists_modification_present_flag_raw(this: *mut Self, val: u32) {
3730		unsafe {
3731			let val: u32 = ::std::mem::transmute(val);
3732			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3733				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3734				0usize,
3735				1u8,
3736				val as u64,
3737			)
3738		}
3739	}
3740	#[inline]
3741	pub fn long_term_ref_pics_present_flag(&self) -> u32 {
3742		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3743	}
3744	#[inline]
3745	pub fn set_long_term_ref_pics_present_flag(&mut self, val: u32) {
3746		unsafe {
3747			let val: u32 = ::std::mem::transmute(val);
3748			self._bitfield_1.set(1usize, 1u8, val as u64)
3749		}
3750	}
3751	#[inline]
3752	pub unsafe fn long_term_ref_pics_present_flag_raw(this: *const Self) -> u32 {
3753		unsafe {
3754			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3755				::std::ptr::addr_of!((*this)._bitfield_1),
3756				1usize,
3757				1u8,
3758			) as u32)
3759		}
3760	}
3761	#[inline]
3762	pub unsafe fn set_long_term_ref_pics_present_flag_raw(this: *mut Self, val: u32) {
3763		unsafe {
3764			let val: u32 = ::std::mem::transmute(val);
3765			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3766				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3767				1usize,
3768				1u8,
3769				val as u64,
3770			)
3771		}
3772	}
3773	#[inline]
3774	pub fn sps_temporal_mvp_enabled_flag(&self) -> u32 {
3775		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3776	}
3777	#[inline]
3778	pub fn set_sps_temporal_mvp_enabled_flag(&mut self, val: u32) {
3779		unsafe {
3780			let val: u32 = ::std::mem::transmute(val);
3781			self._bitfield_1.set(2usize, 1u8, val as u64)
3782		}
3783	}
3784	#[inline]
3785	pub unsafe fn sps_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
3786		unsafe {
3787			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3788				::std::ptr::addr_of!((*this)._bitfield_1),
3789				2usize,
3790				1u8,
3791			) as u32)
3792		}
3793	}
3794	#[inline]
3795	pub unsafe fn set_sps_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
3796		unsafe {
3797			let val: u32 = ::std::mem::transmute(val);
3798			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3799				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3800				2usize,
3801				1u8,
3802				val as u64,
3803			)
3804		}
3805	}
3806	#[inline]
3807	pub fn cabac_init_present_flag(&self) -> u32 {
3808		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3809	}
3810	#[inline]
3811	pub fn set_cabac_init_present_flag(&mut self, val: u32) {
3812		unsafe {
3813			let val: u32 = ::std::mem::transmute(val);
3814			self._bitfield_1.set(3usize, 1u8, val as u64)
3815		}
3816	}
3817	#[inline]
3818	pub unsafe fn cabac_init_present_flag_raw(this: *const Self) -> u32 {
3819		unsafe {
3820			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3821				::std::ptr::addr_of!((*this)._bitfield_1),
3822				3usize,
3823				1u8,
3824			) as u32)
3825		}
3826	}
3827	#[inline]
3828	pub unsafe fn set_cabac_init_present_flag_raw(this: *mut Self, val: u32) {
3829		unsafe {
3830			let val: u32 = ::std::mem::transmute(val);
3831			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3832				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3833				3usize,
3834				1u8,
3835				val as u64,
3836			)
3837		}
3838	}
3839	#[inline]
3840	pub fn output_flag_present_flag(&self) -> u32 {
3841		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3842	}
3843	#[inline]
3844	pub fn set_output_flag_present_flag(&mut self, val: u32) {
3845		unsafe {
3846			let val: u32 = ::std::mem::transmute(val);
3847			self._bitfield_1.set(4usize, 1u8, val as u64)
3848		}
3849	}
3850	#[inline]
3851	pub unsafe fn output_flag_present_flag_raw(this: *const Self) -> u32 {
3852		unsafe {
3853			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3854				::std::ptr::addr_of!((*this)._bitfield_1),
3855				4usize,
3856				1u8,
3857			) as u32)
3858		}
3859	}
3860	#[inline]
3861	pub unsafe fn set_output_flag_present_flag_raw(this: *mut Self, val: u32) {
3862		unsafe {
3863			let val: u32 = ::std::mem::transmute(val);
3864			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3865				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3866				4usize,
3867				1u8,
3868				val as u64,
3869			)
3870		}
3871	}
3872	#[inline]
3873	pub fn dependent_slice_segments_enabled_flag(&self) -> u32 {
3874		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3875	}
3876	#[inline]
3877	pub fn set_dependent_slice_segments_enabled_flag(&mut self, val: u32) {
3878		unsafe {
3879			let val: u32 = ::std::mem::transmute(val);
3880			self._bitfield_1.set(5usize, 1u8, val as u64)
3881		}
3882	}
3883	#[inline]
3884	pub unsafe fn dependent_slice_segments_enabled_flag_raw(this: *const Self) -> u32 {
3885		unsafe {
3886			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3887				::std::ptr::addr_of!((*this)._bitfield_1),
3888				5usize,
3889				1u8,
3890			) as u32)
3891		}
3892	}
3893	#[inline]
3894	pub unsafe fn set_dependent_slice_segments_enabled_flag_raw(this: *mut Self, val: u32) {
3895		unsafe {
3896			let val: u32 = ::std::mem::transmute(val);
3897			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3898				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3899				5usize,
3900				1u8,
3901				val as u64,
3902			)
3903		}
3904	}
3905	#[inline]
3906	pub fn pps_slice_chroma_qp_offsets_present_flag(&self) -> u32 {
3907		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3908	}
3909	#[inline]
3910	pub fn set_pps_slice_chroma_qp_offsets_present_flag(&mut self, val: u32) {
3911		unsafe {
3912			let val: u32 = ::std::mem::transmute(val);
3913			self._bitfield_1.set(6usize, 1u8, val as u64)
3914		}
3915	}
3916	#[inline]
3917	pub unsafe fn pps_slice_chroma_qp_offsets_present_flag_raw(this: *const Self) -> u32 {
3918		unsafe {
3919			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3920				::std::ptr::addr_of!((*this)._bitfield_1),
3921				6usize,
3922				1u8,
3923			) as u32)
3924		}
3925	}
3926	#[inline]
3927	pub unsafe fn set_pps_slice_chroma_qp_offsets_present_flag_raw(this: *mut Self, val: u32) {
3928		unsafe {
3929			let val: u32 = ::std::mem::transmute(val);
3930			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3931				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3932				6usize,
3933				1u8,
3934				val as u64,
3935			)
3936		}
3937	}
3938	#[inline]
3939	pub fn sample_adaptive_offset_enabled_flag(&self) -> u32 {
3940		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3941	}
3942	#[inline]
3943	pub fn set_sample_adaptive_offset_enabled_flag(&mut self, val: u32) {
3944		unsafe {
3945			let val: u32 = ::std::mem::transmute(val);
3946			self._bitfield_1.set(7usize, 1u8, val as u64)
3947		}
3948	}
3949	#[inline]
3950	pub unsafe fn sample_adaptive_offset_enabled_flag_raw(this: *const Self) -> u32 {
3951		unsafe {
3952			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3953				::std::ptr::addr_of!((*this)._bitfield_1),
3954				7usize,
3955				1u8,
3956			) as u32)
3957		}
3958	}
3959	#[inline]
3960	pub unsafe fn set_sample_adaptive_offset_enabled_flag_raw(this: *mut Self, val: u32) {
3961		unsafe {
3962			let val: u32 = ::std::mem::transmute(val);
3963			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3964				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3965				7usize,
3966				1u8,
3967				val as u64,
3968			)
3969		}
3970	}
3971	#[inline]
3972	pub fn deblocking_filter_override_enabled_flag(&self) -> u32 {
3973		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3974	}
3975	#[inline]
3976	pub fn set_deblocking_filter_override_enabled_flag(&mut self, val: u32) {
3977		unsafe {
3978			let val: u32 = ::std::mem::transmute(val);
3979			self._bitfield_1.set(8usize, 1u8, val as u64)
3980		}
3981	}
3982	#[inline]
3983	pub unsafe fn deblocking_filter_override_enabled_flag_raw(this: *const Self) -> u32 {
3984		unsafe {
3985			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3986				::std::ptr::addr_of!((*this)._bitfield_1),
3987				8usize,
3988				1u8,
3989			) as u32)
3990		}
3991	}
3992	#[inline]
3993	pub unsafe fn set_deblocking_filter_override_enabled_flag_raw(this: *mut Self, val: u32) {
3994		unsafe {
3995			let val: u32 = ::std::mem::transmute(val);
3996			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3997				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3998				8usize,
3999				1u8,
4000				val as u64,
4001			)
4002		}
4003	}
4004	#[inline]
4005	pub fn pps_disable_deblocking_filter_flag(&self) -> u32 {
4006		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
4007	}
4008	#[inline]
4009	pub fn set_pps_disable_deblocking_filter_flag(&mut self, val: u32) {
4010		unsafe {
4011			let val: u32 = ::std::mem::transmute(val);
4012			self._bitfield_1.set(9usize, 1u8, val as u64)
4013		}
4014	}
4015	#[inline]
4016	pub unsafe fn pps_disable_deblocking_filter_flag_raw(this: *const Self) -> u32 {
4017		unsafe {
4018			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4019				::std::ptr::addr_of!((*this)._bitfield_1),
4020				9usize,
4021				1u8,
4022			) as u32)
4023		}
4024	}
4025	#[inline]
4026	pub unsafe fn set_pps_disable_deblocking_filter_flag_raw(this: *mut Self, val: u32) {
4027		unsafe {
4028			let val: u32 = ::std::mem::transmute(val);
4029			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4030				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4031				9usize,
4032				1u8,
4033				val as u64,
4034			)
4035		}
4036	}
4037	#[inline]
4038	pub fn slice_segment_header_extension_present_flag(&self) -> u32 {
4039		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
4040	}
4041	#[inline]
4042	pub fn set_slice_segment_header_extension_present_flag(&mut self, val: u32) {
4043		unsafe {
4044			let val: u32 = ::std::mem::transmute(val);
4045			self._bitfield_1.set(10usize, 1u8, val as u64)
4046		}
4047	}
4048	#[inline]
4049	pub unsafe fn slice_segment_header_extension_present_flag_raw(this: *const Self) -> u32 {
4050		unsafe {
4051			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4052				::std::ptr::addr_of!((*this)._bitfield_1),
4053				10usize,
4054				1u8,
4055			) as u32)
4056		}
4057	}
4058	#[inline]
4059	pub unsafe fn set_slice_segment_header_extension_present_flag_raw(this: *mut Self, val: u32) {
4060		unsafe {
4061			let val: u32 = ::std::mem::transmute(val);
4062			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4063				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4064				10usize,
4065				1u8,
4066				val as u64,
4067			)
4068		}
4069	}
4070	#[inline]
4071	pub fn RapPicFlag(&self) -> u32 {
4072		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
4073	}
4074	#[inline]
4075	pub fn set_RapPicFlag(&mut self, val: u32) {
4076		unsafe {
4077			let val: u32 = ::std::mem::transmute(val);
4078			self._bitfield_1.set(11usize, 1u8, val as u64)
4079		}
4080	}
4081	#[inline]
4082	pub unsafe fn RapPicFlag_raw(this: *const Self) -> u32 {
4083		unsafe {
4084			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4085				::std::ptr::addr_of!((*this)._bitfield_1),
4086				11usize,
4087				1u8,
4088			) as u32)
4089		}
4090	}
4091	#[inline]
4092	pub unsafe fn set_RapPicFlag_raw(this: *mut Self, val: u32) {
4093		unsafe {
4094			let val: u32 = ::std::mem::transmute(val);
4095			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4096				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4097				11usize,
4098				1u8,
4099				val as u64,
4100			)
4101		}
4102	}
4103	#[inline]
4104	pub fn IdrPicFlag(&self) -> u32 {
4105		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
4106	}
4107	#[inline]
4108	pub fn set_IdrPicFlag(&mut self, val: u32) {
4109		unsafe {
4110			let val: u32 = ::std::mem::transmute(val);
4111			self._bitfield_1.set(12usize, 1u8, val as u64)
4112		}
4113	}
4114	#[inline]
4115	pub unsafe fn IdrPicFlag_raw(this: *const Self) -> u32 {
4116		unsafe {
4117			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4118				::std::ptr::addr_of!((*this)._bitfield_1),
4119				12usize,
4120				1u8,
4121			) as u32)
4122		}
4123	}
4124	#[inline]
4125	pub unsafe fn set_IdrPicFlag_raw(this: *mut Self, val: u32) {
4126		unsafe {
4127			let val: u32 = ::std::mem::transmute(val);
4128			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4129				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4130				12usize,
4131				1u8,
4132				val as u64,
4133			)
4134		}
4135	}
4136	#[inline]
4137	pub fn IntraPicFlag(&self) -> u32 {
4138		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
4139	}
4140	#[inline]
4141	pub fn set_IntraPicFlag(&mut self, val: u32) {
4142		unsafe {
4143			let val: u32 = ::std::mem::transmute(val);
4144			self._bitfield_1.set(13usize, 1u8, val as u64)
4145		}
4146	}
4147	#[inline]
4148	pub unsafe fn IntraPicFlag_raw(this: *const Self) -> u32 {
4149		unsafe {
4150			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4151				::std::ptr::addr_of!((*this)._bitfield_1),
4152				13usize,
4153				1u8,
4154			) as u32)
4155		}
4156	}
4157	#[inline]
4158	pub unsafe fn set_IntraPicFlag_raw(this: *mut Self, val: u32) {
4159		unsafe {
4160			let val: u32 = ::std::mem::transmute(val);
4161			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4162				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4163				13usize,
4164				1u8,
4165				val as u64,
4166			)
4167		}
4168	}
4169	#[inline]
4170	pub fn ReservedBits(&self) -> u32 {
4171		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 18u8) as u32) }
4172	}
4173	#[inline]
4174	pub fn set_ReservedBits(&mut self, val: u32) {
4175		unsafe {
4176			let val: u32 = ::std::mem::transmute(val);
4177			self._bitfield_1.set(14usize, 18u8, val as u64)
4178		}
4179	}
4180	#[inline]
4181	pub unsafe fn ReservedBits_raw(this: *const Self) -> u32 {
4182		unsafe {
4183			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4184				::std::ptr::addr_of!((*this)._bitfield_1),
4185				14usize,
4186				18u8,
4187			) as u32)
4188		}
4189	}
4190	#[inline]
4191	pub unsafe fn set_ReservedBits_raw(this: *mut Self, val: u32) {
4192		unsafe {
4193			let val: u32 = ::std::mem::transmute(val);
4194			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4195				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4196				14usize,
4197				18u8,
4198				val as u64,
4199			)
4200		}
4201	}
4202	#[inline]
4203	pub fn new_bitfield_1(
4204		lists_modification_present_flag: u32,
4205		long_term_ref_pics_present_flag: u32,
4206		sps_temporal_mvp_enabled_flag: u32,
4207		cabac_init_present_flag: u32,
4208		output_flag_present_flag: u32,
4209		dependent_slice_segments_enabled_flag: u32,
4210		pps_slice_chroma_qp_offsets_present_flag: u32,
4211		sample_adaptive_offset_enabled_flag: u32,
4212		deblocking_filter_override_enabled_flag: u32,
4213		pps_disable_deblocking_filter_flag: u32,
4214		slice_segment_header_extension_present_flag: u32,
4215		RapPicFlag: u32,
4216		IdrPicFlag: u32,
4217		IntraPicFlag: u32,
4218		ReservedBits: u32,
4219	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
4220		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
4221		__bindgen_bitfield_unit.set(0usize, 1u8, {
4222			let lists_modification_present_flag: u32 =
4223				unsafe { ::std::mem::transmute(lists_modification_present_flag) };
4224			lists_modification_present_flag as u64
4225		});
4226		__bindgen_bitfield_unit.set(1usize, 1u8, {
4227			let long_term_ref_pics_present_flag: u32 =
4228				unsafe { ::std::mem::transmute(long_term_ref_pics_present_flag) };
4229			long_term_ref_pics_present_flag as u64
4230		});
4231		__bindgen_bitfield_unit.set(2usize, 1u8, {
4232			let sps_temporal_mvp_enabled_flag: u32 = unsafe { ::std::mem::transmute(sps_temporal_mvp_enabled_flag) };
4233			sps_temporal_mvp_enabled_flag as u64
4234		});
4235		__bindgen_bitfield_unit.set(3usize, 1u8, {
4236			let cabac_init_present_flag: u32 = unsafe { ::std::mem::transmute(cabac_init_present_flag) };
4237			cabac_init_present_flag as u64
4238		});
4239		__bindgen_bitfield_unit.set(4usize, 1u8, {
4240			let output_flag_present_flag: u32 = unsafe { ::std::mem::transmute(output_flag_present_flag) };
4241			output_flag_present_flag as u64
4242		});
4243		__bindgen_bitfield_unit.set(5usize, 1u8, {
4244			let dependent_slice_segments_enabled_flag: u32 =
4245				unsafe { ::std::mem::transmute(dependent_slice_segments_enabled_flag) };
4246			dependent_slice_segments_enabled_flag as u64
4247		});
4248		__bindgen_bitfield_unit.set(6usize, 1u8, {
4249			let pps_slice_chroma_qp_offsets_present_flag: u32 =
4250				unsafe { ::std::mem::transmute(pps_slice_chroma_qp_offsets_present_flag) };
4251			pps_slice_chroma_qp_offsets_present_flag as u64
4252		});
4253		__bindgen_bitfield_unit.set(7usize, 1u8, {
4254			let sample_adaptive_offset_enabled_flag: u32 =
4255				unsafe { ::std::mem::transmute(sample_adaptive_offset_enabled_flag) };
4256			sample_adaptive_offset_enabled_flag as u64
4257		});
4258		__bindgen_bitfield_unit.set(8usize, 1u8, {
4259			let deblocking_filter_override_enabled_flag: u32 =
4260				unsafe { ::std::mem::transmute(deblocking_filter_override_enabled_flag) };
4261			deblocking_filter_override_enabled_flag as u64
4262		});
4263		__bindgen_bitfield_unit.set(9usize, 1u8, {
4264			let pps_disable_deblocking_filter_flag: u32 =
4265				unsafe { ::std::mem::transmute(pps_disable_deblocking_filter_flag) };
4266			pps_disable_deblocking_filter_flag as u64
4267		});
4268		__bindgen_bitfield_unit.set(10usize, 1u8, {
4269			let slice_segment_header_extension_present_flag: u32 =
4270				unsafe { ::std::mem::transmute(slice_segment_header_extension_present_flag) };
4271			slice_segment_header_extension_present_flag as u64
4272		});
4273		__bindgen_bitfield_unit.set(11usize, 1u8, {
4274			let RapPicFlag: u32 = unsafe { ::std::mem::transmute(RapPicFlag) };
4275			RapPicFlag as u64
4276		});
4277		__bindgen_bitfield_unit.set(12usize, 1u8, {
4278			let IdrPicFlag: u32 = unsafe { ::std::mem::transmute(IdrPicFlag) };
4279			IdrPicFlag as u64
4280		});
4281		__bindgen_bitfield_unit.set(13usize, 1u8, {
4282			let IntraPicFlag: u32 = unsafe { ::std::mem::transmute(IntraPicFlag) };
4283			IntraPicFlag as u64
4284		});
4285		__bindgen_bitfield_unit.set(14usize, 18u8, {
4286			let ReservedBits: u32 = unsafe { ::std::mem::transmute(ReservedBits) };
4287			ReservedBits as u64
4288		});
4289		__bindgen_bitfield_unit
4290	}
4291}
4292impl Default for _VAPictureParameterBufferHEVC__bindgen_ty_2 {
4293	fn default() -> Self {
4294		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4295		unsafe {
4296			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4297			s.assume_init()
4298		}
4299	}
4300}
4301impl Default for _VAPictureParameterBufferHEVC {
4302	fn default() -> Self {
4303		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4304		unsafe {
4305			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4306			s.assume_init()
4307		}
4308	}
4309}
4310#[doc = " \\brief HEVC Decoding Picture Parameter Buffer Structure\n\n This structure conveys picture level parameters and should be sent once\n per frame.\n"]
4311pub type VAPictureParameterBufferHEVC = _VAPictureParameterBufferHEVC;
4312#[doc = " \\brief HEVC Decoding Picture Parameter Buffer Structure for Range Extension\n\n This structure conveys picture level HEVC Range Extension parameters\n and should be sent once per frame. This data structure should be sent\n together with VAPictureParameterBufferHEVC in a single buffer of\n \\ref VAPictureParameterBufferHEVCExtension since each frame\n of HEVC range extension contains both picture level parameters and picture\n level range extension parameters. They should be parsed together. The buffer\n type is same as \\ref VAPictureParameterBufferHEVC.\n"]
4313#[repr(C)]
4314#[derive(Copy, Clone)]
4315pub struct _VAPictureParameterBufferHEVCRext {
4316	pub range_extension_pic_fields: _VAPictureParameterBufferHEVCRext__bindgen_ty_1,
4317	#[doc = " \\brief HEVC range extension flags\n  The following flags bears the same syntax and semantics as\n  those defined in HEVC bit stream spec."]
4318	pub diff_cu_chroma_qp_offset_depth: u8,
4319	pub chroma_qp_offset_list_len_minus1: u8,
4320	pub log2_sao_offset_scale_luma: u8,
4321	pub log2_sao_offset_scale_chroma: u8,
4322	pub log2_max_transform_skip_block_size_minus2: u8,
4323	pub cb_qp_offset_list: [i8; 6usize],
4324	pub cr_qp_offset_list: [i8; 6usize],
4325}
4326#[repr(C)]
4327#[derive(Copy, Clone)]
4328pub union _VAPictureParameterBufferHEVCRext__bindgen_ty_1 {
4329	pub bits: _VAPictureParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1,
4330	pub value: u32,
4331}
4332#[repr(C)]
4333#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4334pub struct _VAPictureParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
4335	pub _bitfield_align_1: [u32; 0],
4336	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
4337}
4338impl _VAPictureParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
4339	#[inline]
4340	pub fn transform_skip_rotation_enabled_flag(&self) -> u32 {
4341		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
4342	}
4343	#[inline]
4344	pub fn set_transform_skip_rotation_enabled_flag(&mut self, val: u32) {
4345		unsafe {
4346			let val: u32 = ::std::mem::transmute(val);
4347			self._bitfield_1.set(0usize, 1u8, val as u64)
4348		}
4349	}
4350	#[inline]
4351	pub unsafe fn transform_skip_rotation_enabled_flag_raw(this: *const Self) -> u32 {
4352		unsafe {
4353			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4354				::std::ptr::addr_of!((*this)._bitfield_1),
4355				0usize,
4356				1u8,
4357			) as u32)
4358		}
4359	}
4360	#[inline]
4361	pub unsafe fn set_transform_skip_rotation_enabled_flag_raw(this: *mut Self, val: u32) {
4362		unsafe {
4363			let val: u32 = ::std::mem::transmute(val);
4364			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4365				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4366				0usize,
4367				1u8,
4368				val as u64,
4369			)
4370		}
4371	}
4372	#[inline]
4373	pub fn transform_skip_context_enabled_flag(&self) -> u32 {
4374		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
4375	}
4376	#[inline]
4377	pub fn set_transform_skip_context_enabled_flag(&mut self, val: u32) {
4378		unsafe {
4379			let val: u32 = ::std::mem::transmute(val);
4380			self._bitfield_1.set(1usize, 1u8, val as u64)
4381		}
4382	}
4383	#[inline]
4384	pub unsafe fn transform_skip_context_enabled_flag_raw(this: *const Self) -> u32 {
4385		unsafe {
4386			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4387				::std::ptr::addr_of!((*this)._bitfield_1),
4388				1usize,
4389				1u8,
4390			) as u32)
4391		}
4392	}
4393	#[inline]
4394	pub unsafe fn set_transform_skip_context_enabled_flag_raw(this: *mut Self, val: u32) {
4395		unsafe {
4396			let val: u32 = ::std::mem::transmute(val);
4397			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4398				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4399				1usize,
4400				1u8,
4401				val as u64,
4402			)
4403		}
4404	}
4405	#[inline]
4406	pub fn implicit_rdpcm_enabled_flag(&self) -> u32 {
4407		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
4408	}
4409	#[inline]
4410	pub fn set_implicit_rdpcm_enabled_flag(&mut self, val: u32) {
4411		unsafe {
4412			let val: u32 = ::std::mem::transmute(val);
4413			self._bitfield_1.set(2usize, 1u8, val as u64)
4414		}
4415	}
4416	#[inline]
4417	pub unsafe fn implicit_rdpcm_enabled_flag_raw(this: *const Self) -> u32 {
4418		unsafe {
4419			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4420				::std::ptr::addr_of!((*this)._bitfield_1),
4421				2usize,
4422				1u8,
4423			) as u32)
4424		}
4425	}
4426	#[inline]
4427	pub unsafe fn set_implicit_rdpcm_enabled_flag_raw(this: *mut Self, val: u32) {
4428		unsafe {
4429			let val: u32 = ::std::mem::transmute(val);
4430			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4431				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4432				2usize,
4433				1u8,
4434				val as u64,
4435			)
4436		}
4437	}
4438	#[inline]
4439	pub fn explicit_rdpcm_enabled_flag(&self) -> u32 {
4440		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
4441	}
4442	#[inline]
4443	pub fn set_explicit_rdpcm_enabled_flag(&mut self, val: u32) {
4444		unsafe {
4445			let val: u32 = ::std::mem::transmute(val);
4446			self._bitfield_1.set(3usize, 1u8, val as u64)
4447		}
4448	}
4449	#[inline]
4450	pub unsafe fn explicit_rdpcm_enabled_flag_raw(this: *const Self) -> u32 {
4451		unsafe {
4452			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4453				::std::ptr::addr_of!((*this)._bitfield_1),
4454				3usize,
4455				1u8,
4456			) as u32)
4457		}
4458	}
4459	#[inline]
4460	pub unsafe fn set_explicit_rdpcm_enabled_flag_raw(this: *mut Self, val: u32) {
4461		unsafe {
4462			let val: u32 = ::std::mem::transmute(val);
4463			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4464				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4465				3usize,
4466				1u8,
4467				val as u64,
4468			)
4469		}
4470	}
4471	#[inline]
4472	pub fn extended_precision_processing_flag(&self) -> u32 {
4473		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
4474	}
4475	#[inline]
4476	pub fn set_extended_precision_processing_flag(&mut self, val: u32) {
4477		unsafe {
4478			let val: u32 = ::std::mem::transmute(val);
4479			self._bitfield_1.set(4usize, 1u8, val as u64)
4480		}
4481	}
4482	#[inline]
4483	pub unsafe fn extended_precision_processing_flag_raw(this: *const Self) -> u32 {
4484		unsafe {
4485			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4486				::std::ptr::addr_of!((*this)._bitfield_1),
4487				4usize,
4488				1u8,
4489			) as u32)
4490		}
4491	}
4492	#[inline]
4493	pub unsafe fn set_extended_precision_processing_flag_raw(this: *mut Self, val: u32) {
4494		unsafe {
4495			let val: u32 = ::std::mem::transmute(val);
4496			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4497				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4498				4usize,
4499				1u8,
4500				val as u64,
4501			)
4502		}
4503	}
4504	#[inline]
4505	pub fn intra_smoothing_disabled_flag(&self) -> u32 {
4506		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
4507	}
4508	#[inline]
4509	pub fn set_intra_smoothing_disabled_flag(&mut self, val: u32) {
4510		unsafe {
4511			let val: u32 = ::std::mem::transmute(val);
4512			self._bitfield_1.set(5usize, 1u8, val as u64)
4513		}
4514	}
4515	#[inline]
4516	pub unsafe fn intra_smoothing_disabled_flag_raw(this: *const Self) -> u32 {
4517		unsafe {
4518			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4519				::std::ptr::addr_of!((*this)._bitfield_1),
4520				5usize,
4521				1u8,
4522			) as u32)
4523		}
4524	}
4525	#[inline]
4526	pub unsafe fn set_intra_smoothing_disabled_flag_raw(this: *mut Self, val: u32) {
4527		unsafe {
4528			let val: u32 = ::std::mem::transmute(val);
4529			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4530				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4531				5usize,
4532				1u8,
4533				val as u64,
4534			)
4535		}
4536	}
4537	#[inline]
4538	pub fn high_precision_offsets_enabled_flag(&self) -> u32 {
4539		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
4540	}
4541	#[inline]
4542	pub fn set_high_precision_offsets_enabled_flag(&mut self, val: u32) {
4543		unsafe {
4544			let val: u32 = ::std::mem::transmute(val);
4545			self._bitfield_1.set(6usize, 1u8, val as u64)
4546		}
4547	}
4548	#[inline]
4549	pub unsafe fn high_precision_offsets_enabled_flag_raw(this: *const Self) -> u32 {
4550		unsafe {
4551			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4552				::std::ptr::addr_of!((*this)._bitfield_1),
4553				6usize,
4554				1u8,
4555			) as u32)
4556		}
4557	}
4558	#[inline]
4559	pub unsafe fn set_high_precision_offsets_enabled_flag_raw(this: *mut Self, val: u32) {
4560		unsafe {
4561			let val: u32 = ::std::mem::transmute(val);
4562			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4563				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4564				6usize,
4565				1u8,
4566				val as u64,
4567			)
4568		}
4569	}
4570	#[inline]
4571	pub fn persistent_rice_adaptation_enabled_flag(&self) -> u32 {
4572		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
4573	}
4574	#[inline]
4575	pub fn set_persistent_rice_adaptation_enabled_flag(&mut self, val: u32) {
4576		unsafe {
4577			let val: u32 = ::std::mem::transmute(val);
4578			self._bitfield_1.set(7usize, 1u8, val as u64)
4579		}
4580	}
4581	#[inline]
4582	pub unsafe fn persistent_rice_adaptation_enabled_flag_raw(this: *const Self) -> u32 {
4583		unsafe {
4584			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4585				::std::ptr::addr_of!((*this)._bitfield_1),
4586				7usize,
4587				1u8,
4588			) as u32)
4589		}
4590	}
4591	#[inline]
4592	pub unsafe fn set_persistent_rice_adaptation_enabled_flag_raw(this: *mut Self, val: u32) {
4593		unsafe {
4594			let val: u32 = ::std::mem::transmute(val);
4595			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4596				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4597				7usize,
4598				1u8,
4599				val as u64,
4600			)
4601		}
4602	}
4603	#[inline]
4604	pub fn cabac_bypass_alignment_enabled_flag(&self) -> u32 {
4605		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
4606	}
4607	#[inline]
4608	pub fn set_cabac_bypass_alignment_enabled_flag(&mut self, val: u32) {
4609		unsafe {
4610			let val: u32 = ::std::mem::transmute(val);
4611			self._bitfield_1.set(8usize, 1u8, val as u64)
4612		}
4613	}
4614	#[inline]
4615	pub unsafe fn cabac_bypass_alignment_enabled_flag_raw(this: *const Self) -> u32 {
4616		unsafe {
4617			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4618				::std::ptr::addr_of!((*this)._bitfield_1),
4619				8usize,
4620				1u8,
4621			) as u32)
4622		}
4623	}
4624	#[inline]
4625	pub unsafe fn set_cabac_bypass_alignment_enabled_flag_raw(this: *mut Self, val: u32) {
4626		unsafe {
4627			let val: u32 = ::std::mem::transmute(val);
4628			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4629				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4630				8usize,
4631				1u8,
4632				val as u64,
4633			)
4634		}
4635	}
4636	#[inline]
4637	pub fn cross_component_prediction_enabled_flag(&self) -> u32 {
4638		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
4639	}
4640	#[inline]
4641	pub fn set_cross_component_prediction_enabled_flag(&mut self, val: u32) {
4642		unsafe {
4643			let val: u32 = ::std::mem::transmute(val);
4644			self._bitfield_1.set(9usize, 1u8, val as u64)
4645		}
4646	}
4647	#[inline]
4648	pub unsafe fn cross_component_prediction_enabled_flag_raw(this: *const Self) -> u32 {
4649		unsafe {
4650			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4651				::std::ptr::addr_of!((*this)._bitfield_1),
4652				9usize,
4653				1u8,
4654			) as u32)
4655		}
4656	}
4657	#[inline]
4658	pub unsafe fn set_cross_component_prediction_enabled_flag_raw(this: *mut Self, val: u32) {
4659		unsafe {
4660			let val: u32 = ::std::mem::transmute(val);
4661			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4662				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4663				9usize,
4664				1u8,
4665				val as u64,
4666			)
4667		}
4668	}
4669	#[inline]
4670	pub fn chroma_qp_offset_list_enabled_flag(&self) -> u32 {
4671		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
4672	}
4673	#[inline]
4674	pub fn set_chroma_qp_offset_list_enabled_flag(&mut self, val: u32) {
4675		unsafe {
4676			let val: u32 = ::std::mem::transmute(val);
4677			self._bitfield_1.set(10usize, 1u8, val as u64)
4678		}
4679	}
4680	#[inline]
4681	pub unsafe fn chroma_qp_offset_list_enabled_flag_raw(this: *const Self) -> u32 {
4682		unsafe {
4683			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4684				::std::ptr::addr_of!((*this)._bitfield_1),
4685				10usize,
4686				1u8,
4687			) as u32)
4688		}
4689	}
4690	#[inline]
4691	pub unsafe fn set_chroma_qp_offset_list_enabled_flag_raw(this: *mut Self, val: u32) {
4692		unsafe {
4693			let val: u32 = ::std::mem::transmute(val);
4694			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4695				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4696				10usize,
4697				1u8,
4698				val as u64,
4699			)
4700		}
4701	}
4702	#[inline]
4703	pub fn reserved(&self) -> u32 {
4704		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 21u8) as u32) }
4705	}
4706	#[inline]
4707	pub fn set_reserved(&mut self, val: u32) {
4708		unsafe {
4709			let val: u32 = ::std::mem::transmute(val);
4710			self._bitfield_1.set(11usize, 21u8, val as u64)
4711		}
4712	}
4713	#[inline]
4714	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
4715		unsafe {
4716			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4717				::std::ptr::addr_of!((*this)._bitfield_1),
4718				11usize,
4719				21u8,
4720			) as u32)
4721		}
4722	}
4723	#[inline]
4724	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
4725		unsafe {
4726			let val: u32 = ::std::mem::transmute(val);
4727			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4728				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4729				11usize,
4730				21u8,
4731				val as u64,
4732			)
4733		}
4734	}
4735	#[inline]
4736	pub fn new_bitfield_1(
4737		transform_skip_rotation_enabled_flag: u32,
4738		transform_skip_context_enabled_flag: u32,
4739		implicit_rdpcm_enabled_flag: u32,
4740		explicit_rdpcm_enabled_flag: u32,
4741		extended_precision_processing_flag: u32,
4742		intra_smoothing_disabled_flag: u32,
4743		high_precision_offsets_enabled_flag: u32,
4744		persistent_rice_adaptation_enabled_flag: u32,
4745		cabac_bypass_alignment_enabled_flag: u32,
4746		cross_component_prediction_enabled_flag: u32,
4747		chroma_qp_offset_list_enabled_flag: u32,
4748		reserved: u32,
4749	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
4750		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
4751		__bindgen_bitfield_unit.set(0usize, 1u8, {
4752			let transform_skip_rotation_enabled_flag: u32 =
4753				unsafe { ::std::mem::transmute(transform_skip_rotation_enabled_flag) };
4754			transform_skip_rotation_enabled_flag as u64
4755		});
4756		__bindgen_bitfield_unit.set(1usize, 1u8, {
4757			let transform_skip_context_enabled_flag: u32 =
4758				unsafe { ::std::mem::transmute(transform_skip_context_enabled_flag) };
4759			transform_skip_context_enabled_flag as u64
4760		});
4761		__bindgen_bitfield_unit.set(2usize, 1u8, {
4762			let implicit_rdpcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(implicit_rdpcm_enabled_flag) };
4763			implicit_rdpcm_enabled_flag as u64
4764		});
4765		__bindgen_bitfield_unit.set(3usize, 1u8, {
4766			let explicit_rdpcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(explicit_rdpcm_enabled_flag) };
4767			explicit_rdpcm_enabled_flag as u64
4768		});
4769		__bindgen_bitfield_unit.set(4usize, 1u8, {
4770			let extended_precision_processing_flag: u32 =
4771				unsafe { ::std::mem::transmute(extended_precision_processing_flag) };
4772			extended_precision_processing_flag as u64
4773		});
4774		__bindgen_bitfield_unit.set(5usize, 1u8, {
4775			let intra_smoothing_disabled_flag: u32 = unsafe { ::std::mem::transmute(intra_smoothing_disabled_flag) };
4776			intra_smoothing_disabled_flag as u64
4777		});
4778		__bindgen_bitfield_unit.set(6usize, 1u8, {
4779			let high_precision_offsets_enabled_flag: u32 =
4780				unsafe { ::std::mem::transmute(high_precision_offsets_enabled_flag) };
4781			high_precision_offsets_enabled_flag as u64
4782		});
4783		__bindgen_bitfield_unit.set(7usize, 1u8, {
4784			let persistent_rice_adaptation_enabled_flag: u32 =
4785				unsafe { ::std::mem::transmute(persistent_rice_adaptation_enabled_flag) };
4786			persistent_rice_adaptation_enabled_flag as u64
4787		});
4788		__bindgen_bitfield_unit.set(8usize, 1u8, {
4789			let cabac_bypass_alignment_enabled_flag: u32 =
4790				unsafe { ::std::mem::transmute(cabac_bypass_alignment_enabled_flag) };
4791			cabac_bypass_alignment_enabled_flag as u64
4792		});
4793		__bindgen_bitfield_unit.set(9usize, 1u8, {
4794			let cross_component_prediction_enabled_flag: u32 =
4795				unsafe { ::std::mem::transmute(cross_component_prediction_enabled_flag) };
4796			cross_component_prediction_enabled_flag as u64
4797		});
4798		__bindgen_bitfield_unit.set(10usize, 1u8, {
4799			let chroma_qp_offset_list_enabled_flag: u32 =
4800				unsafe { ::std::mem::transmute(chroma_qp_offset_list_enabled_flag) };
4801			chroma_qp_offset_list_enabled_flag as u64
4802		});
4803		__bindgen_bitfield_unit.set(11usize, 21u8, {
4804			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
4805			reserved as u64
4806		});
4807		__bindgen_bitfield_unit
4808	}
4809}
4810impl Default for _VAPictureParameterBufferHEVCRext__bindgen_ty_1 {
4811	fn default() -> Self {
4812		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4813		unsafe {
4814			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4815			s.assume_init()
4816		}
4817	}
4818}
4819impl Default for _VAPictureParameterBufferHEVCRext {
4820	fn default() -> Self {
4821		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4822		unsafe {
4823			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4824			s.assume_init()
4825		}
4826	}
4827}
4828#[doc = " \\brief HEVC Decoding Picture Parameter Buffer Structure for Range Extension\n\n This structure conveys picture level HEVC Range Extension parameters\n and should be sent once per frame. This data structure should be sent\n together with VAPictureParameterBufferHEVC in a single buffer of\n \\ref VAPictureParameterBufferHEVCExtension since each frame\n of HEVC range extension contains both picture level parameters and picture\n level range extension parameters. They should be parsed together. The buffer\n type is same as \\ref VAPictureParameterBufferHEVC.\n"]
4829pub type VAPictureParameterBufferHEVCRext = _VAPictureParameterBufferHEVCRext;
4830#[doc = "\\brief HEVC Decoding Picture Parameter Buffer Structure for\nScreen Content extension\n\nThis structure conveys picture level HEVC Scc parameters\nand should be sent once per frame. This data structure should be sent\ntogether with VAPictureParameterBufferHEVC and VAPictureParameterBufferHEVCRext\nin a single buffer of \\ref VAPictureParameterBufferHEVCExtension since each\nframe of HEVC SCC contains picture level parameters, picture level range\nextension parameters and picture level Scc parameters. They should be parsed\ntogether and the buffer type is same as \\ref VAPictureParameterBufferHEVC.\n"]
4831#[repr(C)]
4832#[derive(Copy, Clone)]
4833pub struct _VAPictureParameterBufferHEVCScc {
4834	pub screen_content_pic_fields: _VAPictureParameterBufferHEVCScc__bindgen_ty_1,
4835	pub palette_max_size: u8,
4836	pub delta_palette_max_predictor_size: u8,
4837	#[doc = " \\brief Size of initial palette predictor.\n  It is derived from pps_num_palette_predictor_initializer or\n  sps_num_palette_predictor_initializer_minus1.\n  Details in HEVC SCC spec section 9.3.2.3."]
4838	pub predictor_palette_size: u8,
4839	#[doc = " \\brief Palette predictor initializer.\n  It is derived from pps_palette_predictor_initializers[][]\n  or sps_palette_predictor_initializers[][].\n  Details in HEVC SCC spec section 9.3.2.3."]
4840	pub predictor_palette_entries: [[u16; 128usize]; 3usize],
4841	pub pps_act_y_qp_offset_plus5: i8,
4842	pub pps_act_cb_qp_offset_plus5: i8,
4843	pub pps_act_cr_qp_offset_plus3: i8,
4844}
4845#[repr(C)]
4846#[derive(Copy, Clone)]
4847pub union _VAPictureParameterBufferHEVCScc__bindgen_ty_1 {
4848	pub bits: _VAPictureParameterBufferHEVCScc__bindgen_ty_1__bindgen_ty_1,
4849	pub value: u32,
4850}
4851#[repr(C)]
4852#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4853pub struct _VAPictureParameterBufferHEVCScc__bindgen_ty_1__bindgen_ty_1 {
4854	pub _bitfield_align_1: [u32; 0],
4855	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
4856}
4857impl _VAPictureParameterBufferHEVCScc__bindgen_ty_1__bindgen_ty_1 {
4858	#[inline]
4859	pub fn pps_curr_pic_ref_enabled_flag(&self) -> u32 {
4860		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
4861	}
4862	#[inline]
4863	pub fn set_pps_curr_pic_ref_enabled_flag(&mut self, val: u32) {
4864		unsafe {
4865			let val: u32 = ::std::mem::transmute(val);
4866			self._bitfield_1.set(0usize, 1u8, val as u64)
4867		}
4868	}
4869	#[inline]
4870	pub unsafe fn pps_curr_pic_ref_enabled_flag_raw(this: *const Self) -> u32 {
4871		unsafe {
4872			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4873				::std::ptr::addr_of!((*this)._bitfield_1),
4874				0usize,
4875				1u8,
4876			) as u32)
4877		}
4878	}
4879	#[inline]
4880	pub unsafe fn set_pps_curr_pic_ref_enabled_flag_raw(this: *mut Self, val: u32) {
4881		unsafe {
4882			let val: u32 = ::std::mem::transmute(val);
4883			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4884				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4885				0usize,
4886				1u8,
4887				val as u64,
4888			)
4889		}
4890	}
4891	#[inline]
4892	pub fn palette_mode_enabled_flag(&self) -> u32 {
4893		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
4894	}
4895	#[inline]
4896	pub fn set_palette_mode_enabled_flag(&mut self, val: u32) {
4897		unsafe {
4898			let val: u32 = ::std::mem::transmute(val);
4899			self._bitfield_1.set(1usize, 1u8, val as u64)
4900		}
4901	}
4902	#[inline]
4903	pub unsafe fn palette_mode_enabled_flag_raw(this: *const Self) -> u32 {
4904		unsafe {
4905			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4906				::std::ptr::addr_of!((*this)._bitfield_1),
4907				1usize,
4908				1u8,
4909			) as u32)
4910		}
4911	}
4912	#[inline]
4913	pub unsafe fn set_palette_mode_enabled_flag_raw(this: *mut Self, val: u32) {
4914		unsafe {
4915			let val: u32 = ::std::mem::transmute(val);
4916			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4917				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4918				1usize,
4919				1u8,
4920				val as u64,
4921			)
4922		}
4923	}
4924	#[inline]
4925	pub fn motion_vector_resolution_control_idc(&self) -> u32 {
4926		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
4927	}
4928	#[inline]
4929	pub fn set_motion_vector_resolution_control_idc(&mut self, val: u32) {
4930		unsafe {
4931			let val: u32 = ::std::mem::transmute(val);
4932			self._bitfield_1.set(2usize, 2u8, val as u64)
4933		}
4934	}
4935	#[inline]
4936	pub unsafe fn motion_vector_resolution_control_idc_raw(this: *const Self) -> u32 {
4937		unsafe {
4938			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4939				::std::ptr::addr_of!((*this)._bitfield_1),
4940				2usize,
4941				2u8,
4942			) as u32)
4943		}
4944	}
4945	#[inline]
4946	pub unsafe fn set_motion_vector_resolution_control_idc_raw(this: *mut Self, val: u32) {
4947		unsafe {
4948			let val: u32 = ::std::mem::transmute(val);
4949			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4950				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4951				2usize,
4952				2u8,
4953				val as u64,
4954			)
4955		}
4956	}
4957	#[inline]
4958	pub fn intra_boundary_filtering_disabled_flag(&self) -> u32 {
4959		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
4960	}
4961	#[inline]
4962	pub fn set_intra_boundary_filtering_disabled_flag(&mut self, val: u32) {
4963		unsafe {
4964			let val: u32 = ::std::mem::transmute(val);
4965			self._bitfield_1.set(4usize, 1u8, val as u64)
4966		}
4967	}
4968	#[inline]
4969	pub unsafe fn intra_boundary_filtering_disabled_flag_raw(this: *const Self) -> u32 {
4970		unsafe {
4971			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4972				::std::ptr::addr_of!((*this)._bitfield_1),
4973				4usize,
4974				1u8,
4975			) as u32)
4976		}
4977	}
4978	#[inline]
4979	pub unsafe fn set_intra_boundary_filtering_disabled_flag_raw(this: *mut Self, val: u32) {
4980		unsafe {
4981			let val: u32 = ::std::mem::transmute(val);
4982			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4983				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4984				4usize,
4985				1u8,
4986				val as u64,
4987			)
4988		}
4989	}
4990	#[inline]
4991	pub fn residual_adaptive_colour_transform_enabled_flag(&self) -> u32 {
4992		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
4993	}
4994	#[inline]
4995	pub fn set_residual_adaptive_colour_transform_enabled_flag(&mut self, val: u32) {
4996		unsafe {
4997			let val: u32 = ::std::mem::transmute(val);
4998			self._bitfield_1.set(5usize, 1u8, val as u64)
4999		}
5000	}
5001	#[inline]
5002	pub unsafe fn residual_adaptive_colour_transform_enabled_flag_raw(this: *const Self) -> u32 {
5003		unsafe {
5004			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5005				::std::ptr::addr_of!((*this)._bitfield_1),
5006				5usize,
5007				1u8,
5008			) as u32)
5009		}
5010	}
5011	#[inline]
5012	pub unsafe fn set_residual_adaptive_colour_transform_enabled_flag_raw(this: *mut Self, val: u32) {
5013		unsafe {
5014			let val: u32 = ::std::mem::transmute(val);
5015			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5016				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5017				5usize,
5018				1u8,
5019				val as u64,
5020			)
5021		}
5022	}
5023	#[inline]
5024	pub fn pps_slice_act_qp_offsets_present_flag(&self) -> u32 {
5025		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
5026	}
5027	#[inline]
5028	pub fn set_pps_slice_act_qp_offsets_present_flag(&mut self, val: u32) {
5029		unsafe {
5030			let val: u32 = ::std::mem::transmute(val);
5031			self._bitfield_1.set(6usize, 1u8, val as u64)
5032		}
5033	}
5034	#[inline]
5035	pub unsafe fn pps_slice_act_qp_offsets_present_flag_raw(this: *const Self) -> u32 {
5036		unsafe {
5037			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5038				::std::ptr::addr_of!((*this)._bitfield_1),
5039				6usize,
5040				1u8,
5041			) as u32)
5042		}
5043	}
5044	#[inline]
5045	pub unsafe fn set_pps_slice_act_qp_offsets_present_flag_raw(this: *mut Self, val: u32) {
5046		unsafe {
5047			let val: u32 = ::std::mem::transmute(val);
5048			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5049				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5050				6usize,
5051				1u8,
5052				val as u64,
5053			)
5054		}
5055	}
5056	#[inline]
5057	pub fn reserved(&self) -> u32 {
5058		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 25u8) as u32) }
5059	}
5060	#[inline]
5061	pub fn set_reserved(&mut self, val: u32) {
5062		unsafe {
5063			let val: u32 = ::std::mem::transmute(val);
5064			self._bitfield_1.set(7usize, 25u8, val as u64)
5065		}
5066	}
5067	#[inline]
5068	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
5069		unsafe {
5070			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5071				::std::ptr::addr_of!((*this)._bitfield_1),
5072				7usize,
5073				25u8,
5074			) as u32)
5075		}
5076	}
5077	#[inline]
5078	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
5079		unsafe {
5080			let val: u32 = ::std::mem::transmute(val);
5081			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5082				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5083				7usize,
5084				25u8,
5085				val as u64,
5086			)
5087		}
5088	}
5089	#[inline]
5090	pub fn new_bitfield_1(
5091		pps_curr_pic_ref_enabled_flag: u32,
5092		palette_mode_enabled_flag: u32,
5093		motion_vector_resolution_control_idc: u32,
5094		intra_boundary_filtering_disabled_flag: u32,
5095		residual_adaptive_colour_transform_enabled_flag: u32,
5096		pps_slice_act_qp_offsets_present_flag: u32,
5097		reserved: u32,
5098	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
5099		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
5100		__bindgen_bitfield_unit.set(0usize, 1u8, {
5101			let pps_curr_pic_ref_enabled_flag: u32 = unsafe { ::std::mem::transmute(pps_curr_pic_ref_enabled_flag) };
5102			pps_curr_pic_ref_enabled_flag as u64
5103		});
5104		__bindgen_bitfield_unit.set(1usize, 1u8, {
5105			let palette_mode_enabled_flag: u32 = unsafe { ::std::mem::transmute(palette_mode_enabled_flag) };
5106			palette_mode_enabled_flag as u64
5107		});
5108		__bindgen_bitfield_unit.set(2usize, 2u8, {
5109			let motion_vector_resolution_control_idc: u32 =
5110				unsafe { ::std::mem::transmute(motion_vector_resolution_control_idc) };
5111			motion_vector_resolution_control_idc as u64
5112		});
5113		__bindgen_bitfield_unit.set(4usize, 1u8, {
5114			let intra_boundary_filtering_disabled_flag: u32 =
5115				unsafe { ::std::mem::transmute(intra_boundary_filtering_disabled_flag) };
5116			intra_boundary_filtering_disabled_flag as u64
5117		});
5118		__bindgen_bitfield_unit.set(5usize, 1u8, {
5119			let residual_adaptive_colour_transform_enabled_flag: u32 =
5120				unsafe { ::std::mem::transmute(residual_adaptive_colour_transform_enabled_flag) };
5121			residual_adaptive_colour_transform_enabled_flag as u64
5122		});
5123		__bindgen_bitfield_unit.set(6usize, 1u8, {
5124			let pps_slice_act_qp_offsets_present_flag: u32 =
5125				unsafe { ::std::mem::transmute(pps_slice_act_qp_offsets_present_flag) };
5126			pps_slice_act_qp_offsets_present_flag as u64
5127		});
5128		__bindgen_bitfield_unit.set(7usize, 25u8, {
5129			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
5130			reserved as u64
5131		});
5132		__bindgen_bitfield_unit
5133	}
5134}
5135impl Default for _VAPictureParameterBufferHEVCScc__bindgen_ty_1 {
5136	fn default() -> Self {
5137		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5138		unsafe {
5139			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5140			s.assume_init()
5141		}
5142	}
5143}
5144impl Default for _VAPictureParameterBufferHEVCScc {
5145	fn default() -> Self {
5146		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5147		unsafe {
5148			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5149			s.assume_init()
5150		}
5151	}
5152}
5153#[doc = "\\brief HEVC Decoding Picture Parameter Buffer Structure for\nScreen Content extension\n\nThis structure conveys picture level HEVC Scc parameters\nand should be sent once per frame. This data structure should be sent\ntogether with VAPictureParameterBufferHEVC and VAPictureParameterBufferHEVCRext\nin a single buffer of \\ref VAPictureParameterBufferHEVCExtension since each\nframe of HEVC SCC contains picture level parameters, picture level range\nextension parameters and picture level Scc parameters. They should be parsed\ntogether and the buffer type is same as \\ref VAPictureParameterBufferHEVC.\n"]
5154pub type VAPictureParameterBufferHEVCScc = _VAPictureParameterBufferHEVCScc;
5155#[doc = " \\brief HEVC Slice Parameter Buffer Structure For Long Format\n\n VASliceParameterBufferHEVC structure should be accompanied by a\n slice data buffer, which holds the whole raw slice NAL unit bit streams\n including start code prefix and emulation prevention bytes not removed.\n\n This structure conveys parameters related to slice segment header and should\n be sent once per slice.\n\n For short format, this data structure is not sent by application.\n"]
5156#[repr(C)]
5157#[derive(Copy, Clone)]
5158pub struct _VASliceParameterBufferHEVC {
5159	#[doc = " \\brief Number of bytes in the slice data buffer for this slice\n counting from and including NAL unit header."]
5160	pub slice_data_size: u32,
5161	#[doc = " \\brief The offset to the NAL unit header for this slice"]
5162	pub slice_data_offset: u32,
5163	#[doc = " \\brief Slice data buffer flags. See \\c VA_SLICE_DATA_FLAG_XXX."]
5164	pub slice_data_flag: u32,
5165	#[doc = " \\brief Byte offset from NAL unit header to the begining of slice_data().\n\n This byte offset is relative to and includes the NAL unit header\n and represents the number of bytes parsed in the slice_header()\n after the removal of any emulation prevention bytes in\n there. However, the slice data buffer passed to the hardware is\n the original bitstream, thus including any emulation prevention\n bytes."]
5166	pub slice_data_byte_offset: u32,
5167	#[doc = " HEVC syntax element."]
5168	pub slice_segment_address: u32,
5169	#[doc = " \\brief index into ReferenceFrames[]\n RefPicList[0][] corresponds to RefPicList0[] of HEVC variable.\n RefPicList[1][] corresponds to RefPicList1[] of HEVC variable.\n value range [0..14, 0xFF], where 0xFF indicates invalid entry."]
5170	pub RefPicList: [[u8; 15usize]; 2usize],
5171	pub LongSliceFlags: _VASliceParameterBufferHEVC__bindgen_ty_1,
5172	#[doc = " HEVC syntax element. Collocated Reference Picture Index.\n index to RefPicList[0][] or RefPicList[1][].\n when slice_temporal_mvp_enabled_flag equals 0, it should take value 0xFF.\n value range [0..14, 0xFF]."]
5173	pub collocated_ref_idx: u8,
5174	#[doc = " HEVC syntax element.\n if num_ref_idx_active_override_flag equals 0, host decoder should\n set its value to num_ref_idx_l0_default_active_minus1."]
5175	pub num_ref_idx_l0_active_minus1: u8,
5176	#[doc = " HEVC syntax element.\n if num_ref_idx_active_override_flag equals 0, host decoder should\n set its value to num_ref_idx_l1_default_active_minus1."]
5177	pub num_ref_idx_l1_active_minus1: u8,
5178	#[doc = " HEVC syntax element."]
5179	pub slice_qp_delta: i8,
5180	#[doc = " HEVC syntax element."]
5181	pub slice_cb_qp_offset: i8,
5182	#[doc = " HEVC syntax element."]
5183	pub slice_cr_qp_offset: i8,
5184	#[doc = " HEVC syntax element."]
5185	pub slice_beta_offset_div2: i8,
5186	#[doc = " HEVC syntax element."]
5187	pub slice_tc_offset_div2: i8,
5188	#[doc = " HEVC syntax element."]
5189	pub luma_log2_weight_denom: u8,
5190	#[doc = " HEVC syntax element."]
5191	pub delta_chroma_log2_weight_denom: i8,
5192	#[doc = " HEVC syntax element."]
5193	pub delta_luma_weight_l0: [i8; 15usize],
5194	#[doc = " HEVC syntax element."]
5195	pub luma_offset_l0: [i8; 15usize],
5196	#[doc = " HEVC syntax element."]
5197	pub delta_chroma_weight_l0: [[i8; 2usize]; 15usize],
5198	#[doc = " corresponds to HEVC spec variable of the same name."]
5199	pub ChromaOffsetL0: [[i8; 2usize]; 15usize],
5200	#[doc = " HEVC syntax element."]
5201	pub delta_luma_weight_l1: [i8; 15usize],
5202	#[doc = " HEVC syntax element."]
5203	pub luma_offset_l1: [i8; 15usize],
5204	#[doc = " HEVC syntax element."]
5205	pub delta_chroma_weight_l1: [[i8; 2usize]; 15usize],
5206	#[doc = " corresponds to HEVC spec variable of the same name."]
5207	pub ChromaOffsetL1: [[i8; 2usize]; 15usize],
5208	#[doc = " HEVC syntax element."]
5209	pub five_minus_max_num_merge_cand: u8,
5210	#[doc = " HEVC syntax element."]
5211	pub num_entry_point_offsets: u16,
5212	#[doc = " HEVC syntax element."]
5213	pub entry_offset_to_subset_array: u16,
5214	#[doc = " \\brief Number of emulation prevention bytes in slice header."]
5215	pub slice_data_num_emu_prevn_bytes: u16,
5216	#[doc = " \\brief Reserved bytes for future use, must be zero"]
5217	pub va_reserved: [u32; 2usize],
5218}
5219#[repr(C)]
5220#[derive(Copy, Clone)]
5221pub union _VASliceParameterBufferHEVC__bindgen_ty_1 {
5222	pub value: u32,
5223	pub fields: _VASliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
5224}
5225#[repr(C)]
5226#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
5227pub struct _VASliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
5228	pub _bitfield_align_1: [u32; 0],
5229	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
5230}
5231impl _VASliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
5232	#[inline]
5233	pub fn LastSliceOfPic(&self) -> u32 {
5234		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
5235	}
5236	#[inline]
5237	pub fn set_LastSliceOfPic(&mut self, val: u32) {
5238		unsafe {
5239			let val: u32 = ::std::mem::transmute(val);
5240			self._bitfield_1.set(0usize, 1u8, val as u64)
5241		}
5242	}
5243	#[inline]
5244	pub unsafe fn LastSliceOfPic_raw(this: *const Self) -> u32 {
5245		unsafe {
5246			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5247				::std::ptr::addr_of!((*this)._bitfield_1),
5248				0usize,
5249				1u8,
5250			) as u32)
5251		}
5252	}
5253	#[inline]
5254	pub unsafe fn set_LastSliceOfPic_raw(this: *mut Self, val: u32) {
5255		unsafe {
5256			let val: u32 = ::std::mem::transmute(val);
5257			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5258				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5259				0usize,
5260				1u8,
5261				val as u64,
5262			)
5263		}
5264	}
5265	#[inline]
5266	pub fn dependent_slice_segment_flag(&self) -> u32 {
5267		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
5268	}
5269	#[inline]
5270	pub fn set_dependent_slice_segment_flag(&mut self, val: u32) {
5271		unsafe {
5272			let val: u32 = ::std::mem::transmute(val);
5273			self._bitfield_1.set(1usize, 1u8, val as u64)
5274		}
5275	}
5276	#[inline]
5277	pub unsafe fn dependent_slice_segment_flag_raw(this: *const Self) -> u32 {
5278		unsafe {
5279			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5280				::std::ptr::addr_of!((*this)._bitfield_1),
5281				1usize,
5282				1u8,
5283			) as u32)
5284		}
5285	}
5286	#[inline]
5287	pub unsafe fn set_dependent_slice_segment_flag_raw(this: *mut Self, val: u32) {
5288		unsafe {
5289			let val: u32 = ::std::mem::transmute(val);
5290			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5291				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5292				1usize,
5293				1u8,
5294				val as u64,
5295			)
5296		}
5297	}
5298	#[inline]
5299	pub fn slice_type(&self) -> u32 {
5300		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
5301	}
5302	#[inline]
5303	pub fn set_slice_type(&mut self, val: u32) {
5304		unsafe {
5305			let val: u32 = ::std::mem::transmute(val);
5306			self._bitfield_1.set(2usize, 2u8, val as u64)
5307		}
5308	}
5309	#[inline]
5310	pub unsafe fn slice_type_raw(this: *const Self) -> u32 {
5311		unsafe {
5312			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5313				::std::ptr::addr_of!((*this)._bitfield_1),
5314				2usize,
5315				2u8,
5316			) as u32)
5317		}
5318	}
5319	#[inline]
5320	pub unsafe fn set_slice_type_raw(this: *mut Self, val: u32) {
5321		unsafe {
5322			let val: u32 = ::std::mem::transmute(val);
5323			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5324				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5325				2usize,
5326				2u8,
5327				val as u64,
5328			)
5329		}
5330	}
5331	#[inline]
5332	pub fn color_plane_id(&self) -> u32 {
5333		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) }
5334	}
5335	#[inline]
5336	pub fn set_color_plane_id(&mut self, val: u32) {
5337		unsafe {
5338			let val: u32 = ::std::mem::transmute(val);
5339			self._bitfield_1.set(4usize, 2u8, val as u64)
5340		}
5341	}
5342	#[inline]
5343	pub unsafe fn color_plane_id_raw(this: *const Self) -> u32 {
5344		unsafe {
5345			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5346				::std::ptr::addr_of!((*this)._bitfield_1),
5347				4usize,
5348				2u8,
5349			) as u32)
5350		}
5351	}
5352	#[inline]
5353	pub unsafe fn set_color_plane_id_raw(this: *mut Self, val: u32) {
5354		unsafe {
5355			let val: u32 = ::std::mem::transmute(val);
5356			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5357				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5358				4usize,
5359				2u8,
5360				val as u64,
5361			)
5362		}
5363	}
5364	#[inline]
5365	pub fn slice_sao_luma_flag(&self) -> u32 {
5366		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
5367	}
5368	#[inline]
5369	pub fn set_slice_sao_luma_flag(&mut self, val: u32) {
5370		unsafe {
5371			let val: u32 = ::std::mem::transmute(val);
5372			self._bitfield_1.set(6usize, 1u8, val as u64)
5373		}
5374	}
5375	#[inline]
5376	pub unsafe fn slice_sao_luma_flag_raw(this: *const Self) -> u32 {
5377		unsafe {
5378			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5379				::std::ptr::addr_of!((*this)._bitfield_1),
5380				6usize,
5381				1u8,
5382			) as u32)
5383		}
5384	}
5385	#[inline]
5386	pub unsafe fn set_slice_sao_luma_flag_raw(this: *mut Self, val: u32) {
5387		unsafe {
5388			let val: u32 = ::std::mem::transmute(val);
5389			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5390				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5391				6usize,
5392				1u8,
5393				val as u64,
5394			)
5395		}
5396	}
5397	#[inline]
5398	pub fn slice_sao_chroma_flag(&self) -> u32 {
5399		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
5400	}
5401	#[inline]
5402	pub fn set_slice_sao_chroma_flag(&mut self, val: u32) {
5403		unsafe {
5404			let val: u32 = ::std::mem::transmute(val);
5405			self._bitfield_1.set(7usize, 1u8, val as u64)
5406		}
5407	}
5408	#[inline]
5409	pub unsafe fn slice_sao_chroma_flag_raw(this: *const Self) -> u32 {
5410		unsafe {
5411			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5412				::std::ptr::addr_of!((*this)._bitfield_1),
5413				7usize,
5414				1u8,
5415			) as u32)
5416		}
5417	}
5418	#[inline]
5419	pub unsafe fn set_slice_sao_chroma_flag_raw(this: *mut Self, val: u32) {
5420		unsafe {
5421			let val: u32 = ::std::mem::transmute(val);
5422			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5423				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5424				7usize,
5425				1u8,
5426				val as u64,
5427			)
5428		}
5429	}
5430	#[inline]
5431	pub fn mvd_l1_zero_flag(&self) -> u32 {
5432		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
5433	}
5434	#[inline]
5435	pub fn set_mvd_l1_zero_flag(&mut self, val: u32) {
5436		unsafe {
5437			let val: u32 = ::std::mem::transmute(val);
5438			self._bitfield_1.set(8usize, 1u8, val as u64)
5439		}
5440	}
5441	#[inline]
5442	pub unsafe fn mvd_l1_zero_flag_raw(this: *const Self) -> u32 {
5443		unsafe {
5444			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5445				::std::ptr::addr_of!((*this)._bitfield_1),
5446				8usize,
5447				1u8,
5448			) as u32)
5449		}
5450	}
5451	#[inline]
5452	pub unsafe fn set_mvd_l1_zero_flag_raw(this: *mut Self, val: u32) {
5453		unsafe {
5454			let val: u32 = ::std::mem::transmute(val);
5455			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5456				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5457				8usize,
5458				1u8,
5459				val as u64,
5460			)
5461		}
5462	}
5463	#[inline]
5464	pub fn cabac_init_flag(&self) -> u32 {
5465		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
5466	}
5467	#[inline]
5468	pub fn set_cabac_init_flag(&mut self, val: u32) {
5469		unsafe {
5470			let val: u32 = ::std::mem::transmute(val);
5471			self._bitfield_1.set(9usize, 1u8, val as u64)
5472		}
5473	}
5474	#[inline]
5475	pub unsafe fn cabac_init_flag_raw(this: *const Self) -> u32 {
5476		unsafe {
5477			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5478				::std::ptr::addr_of!((*this)._bitfield_1),
5479				9usize,
5480				1u8,
5481			) as u32)
5482		}
5483	}
5484	#[inline]
5485	pub unsafe fn set_cabac_init_flag_raw(this: *mut Self, val: u32) {
5486		unsafe {
5487			let val: u32 = ::std::mem::transmute(val);
5488			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5489				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5490				9usize,
5491				1u8,
5492				val as u64,
5493			)
5494		}
5495	}
5496	#[inline]
5497	pub fn slice_temporal_mvp_enabled_flag(&self) -> u32 {
5498		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
5499	}
5500	#[inline]
5501	pub fn set_slice_temporal_mvp_enabled_flag(&mut self, val: u32) {
5502		unsafe {
5503			let val: u32 = ::std::mem::transmute(val);
5504			self._bitfield_1.set(10usize, 1u8, val as u64)
5505		}
5506	}
5507	#[inline]
5508	pub unsafe fn slice_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
5509		unsafe {
5510			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5511				::std::ptr::addr_of!((*this)._bitfield_1),
5512				10usize,
5513				1u8,
5514			) as u32)
5515		}
5516	}
5517	#[inline]
5518	pub unsafe fn set_slice_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
5519		unsafe {
5520			let val: u32 = ::std::mem::transmute(val);
5521			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5522				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5523				10usize,
5524				1u8,
5525				val as u64,
5526			)
5527		}
5528	}
5529	#[inline]
5530	pub fn slice_deblocking_filter_disabled_flag(&self) -> u32 {
5531		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
5532	}
5533	#[inline]
5534	pub fn set_slice_deblocking_filter_disabled_flag(&mut self, val: u32) {
5535		unsafe {
5536			let val: u32 = ::std::mem::transmute(val);
5537			self._bitfield_1.set(11usize, 1u8, val as u64)
5538		}
5539	}
5540	#[inline]
5541	pub unsafe fn slice_deblocking_filter_disabled_flag_raw(this: *const Self) -> u32 {
5542		unsafe {
5543			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5544				::std::ptr::addr_of!((*this)._bitfield_1),
5545				11usize,
5546				1u8,
5547			) as u32)
5548		}
5549	}
5550	#[inline]
5551	pub unsafe fn set_slice_deblocking_filter_disabled_flag_raw(this: *mut Self, val: u32) {
5552		unsafe {
5553			let val: u32 = ::std::mem::transmute(val);
5554			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5555				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5556				11usize,
5557				1u8,
5558				val as u64,
5559			)
5560		}
5561	}
5562	#[inline]
5563	pub fn collocated_from_l0_flag(&self) -> u32 {
5564		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
5565	}
5566	#[inline]
5567	pub fn set_collocated_from_l0_flag(&mut self, val: u32) {
5568		unsafe {
5569			let val: u32 = ::std::mem::transmute(val);
5570			self._bitfield_1.set(12usize, 1u8, val as u64)
5571		}
5572	}
5573	#[inline]
5574	pub unsafe fn collocated_from_l0_flag_raw(this: *const Self) -> u32 {
5575		unsafe {
5576			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5577				::std::ptr::addr_of!((*this)._bitfield_1),
5578				12usize,
5579				1u8,
5580			) as u32)
5581		}
5582	}
5583	#[inline]
5584	pub unsafe fn set_collocated_from_l0_flag_raw(this: *mut Self, val: u32) {
5585		unsafe {
5586			let val: u32 = ::std::mem::transmute(val);
5587			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5588				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5589				12usize,
5590				1u8,
5591				val as u64,
5592			)
5593		}
5594	}
5595	#[inline]
5596	pub fn slice_loop_filter_across_slices_enabled_flag(&self) -> u32 {
5597		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
5598	}
5599	#[inline]
5600	pub fn set_slice_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
5601		unsafe {
5602			let val: u32 = ::std::mem::transmute(val);
5603			self._bitfield_1.set(13usize, 1u8, val as u64)
5604		}
5605	}
5606	#[inline]
5607	pub unsafe fn slice_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
5608		unsafe {
5609			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5610				::std::ptr::addr_of!((*this)._bitfield_1),
5611				13usize,
5612				1u8,
5613			) as u32)
5614		}
5615	}
5616	#[inline]
5617	pub unsafe fn set_slice_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
5618		unsafe {
5619			let val: u32 = ::std::mem::transmute(val);
5620			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5621				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5622				13usize,
5623				1u8,
5624				val as u64,
5625			)
5626		}
5627	}
5628	#[inline]
5629	pub fn reserved(&self) -> u32 {
5630		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 18u8) as u32) }
5631	}
5632	#[inline]
5633	pub fn set_reserved(&mut self, val: u32) {
5634		unsafe {
5635			let val: u32 = ::std::mem::transmute(val);
5636			self._bitfield_1.set(14usize, 18u8, val as u64)
5637		}
5638	}
5639	#[inline]
5640	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
5641		unsafe {
5642			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5643				::std::ptr::addr_of!((*this)._bitfield_1),
5644				14usize,
5645				18u8,
5646			) as u32)
5647		}
5648	}
5649	#[inline]
5650	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
5651		unsafe {
5652			let val: u32 = ::std::mem::transmute(val);
5653			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5654				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5655				14usize,
5656				18u8,
5657				val as u64,
5658			)
5659		}
5660	}
5661	#[inline]
5662	pub fn new_bitfield_1(
5663		LastSliceOfPic: u32,
5664		dependent_slice_segment_flag: u32,
5665		slice_type: u32,
5666		color_plane_id: u32,
5667		slice_sao_luma_flag: u32,
5668		slice_sao_chroma_flag: u32,
5669		mvd_l1_zero_flag: u32,
5670		cabac_init_flag: u32,
5671		slice_temporal_mvp_enabled_flag: u32,
5672		slice_deblocking_filter_disabled_flag: u32,
5673		collocated_from_l0_flag: u32,
5674		slice_loop_filter_across_slices_enabled_flag: u32,
5675		reserved: u32,
5676	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
5677		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
5678		__bindgen_bitfield_unit.set(0usize, 1u8, {
5679			let LastSliceOfPic: u32 = unsafe { ::std::mem::transmute(LastSliceOfPic) };
5680			LastSliceOfPic as u64
5681		});
5682		__bindgen_bitfield_unit.set(1usize, 1u8, {
5683			let dependent_slice_segment_flag: u32 = unsafe { ::std::mem::transmute(dependent_slice_segment_flag) };
5684			dependent_slice_segment_flag as u64
5685		});
5686		__bindgen_bitfield_unit.set(2usize, 2u8, {
5687			let slice_type: u32 = unsafe { ::std::mem::transmute(slice_type) };
5688			slice_type as u64
5689		});
5690		__bindgen_bitfield_unit.set(4usize, 2u8, {
5691			let color_plane_id: u32 = unsafe { ::std::mem::transmute(color_plane_id) };
5692			color_plane_id as u64
5693		});
5694		__bindgen_bitfield_unit.set(6usize, 1u8, {
5695			let slice_sao_luma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_luma_flag) };
5696			slice_sao_luma_flag as u64
5697		});
5698		__bindgen_bitfield_unit.set(7usize, 1u8, {
5699			let slice_sao_chroma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_chroma_flag) };
5700			slice_sao_chroma_flag as u64
5701		});
5702		__bindgen_bitfield_unit.set(8usize, 1u8, {
5703			let mvd_l1_zero_flag: u32 = unsafe { ::std::mem::transmute(mvd_l1_zero_flag) };
5704			mvd_l1_zero_flag as u64
5705		});
5706		__bindgen_bitfield_unit.set(9usize, 1u8, {
5707			let cabac_init_flag: u32 = unsafe { ::std::mem::transmute(cabac_init_flag) };
5708			cabac_init_flag as u64
5709		});
5710		__bindgen_bitfield_unit.set(10usize, 1u8, {
5711			let slice_temporal_mvp_enabled_flag: u32 =
5712				unsafe { ::std::mem::transmute(slice_temporal_mvp_enabled_flag) };
5713			slice_temporal_mvp_enabled_flag as u64
5714		});
5715		__bindgen_bitfield_unit.set(11usize, 1u8, {
5716			let slice_deblocking_filter_disabled_flag: u32 =
5717				unsafe { ::std::mem::transmute(slice_deblocking_filter_disabled_flag) };
5718			slice_deblocking_filter_disabled_flag as u64
5719		});
5720		__bindgen_bitfield_unit.set(12usize, 1u8, {
5721			let collocated_from_l0_flag: u32 = unsafe { ::std::mem::transmute(collocated_from_l0_flag) };
5722			collocated_from_l0_flag as u64
5723		});
5724		__bindgen_bitfield_unit.set(13usize, 1u8, {
5725			let slice_loop_filter_across_slices_enabled_flag: u32 =
5726				unsafe { ::std::mem::transmute(slice_loop_filter_across_slices_enabled_flag) };
5727			slice_loop_filter_across_slices_enabled_flag as u64
5728		});
5729		__bindgen_bitfield_unit.set(14usize, 18u8, {
5730			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
5731			reserved as u64
5732		});
5733		__bindgen_bitfield_unit
5734	}
5735}
5736impl Default for _VASliceParameterBufferHEVC__bindgen_ty_1 {
5737	fn default() -> Self {
5738		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5739		unsafe {
5740			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5741			s.assume_init()
5742		}
5743	}
5744}
5745impl Default for _VASliceParameterBufferHEVC {
5746	fn default() -> Self {
5747		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5748		unsafe {
5749			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5750			s.assume_init()
5751		}
5752	}
5753}
5754#[doc = " \\brief HEVC Slice Parameter Buffer Structure For Long Format\n\n VASliceParameterBufferHEVC structure should be accompanied by a\n slice data buffer, which holds the whole raw slice NAL unit bit streams\n including start code prefix and emulation prevention bytes not removed.\n\n This structure conveys parameters related to slice segment header and should\n be sent once per slice.\n\n For short format, this data structure is not sent by application.\n"]
5755pub type VASliceParameterBufferHEVC = _VASliceParameterBufferHEVC;
5756#[doc = " \\brief HEVC Extented Slice Parameter Buffer Structure For Long Format\n\n This data structure contains extension profiles (range extension and screen content).\n\n VASliceParameterBufferHEVCRext structure should be accompanied by a\n slice data buffer, which holds the whole raw slice NAL unit bit streams\n including start code prefix and emulation prevention bytes not removed.\n\n This structure conveys parameters related to slice segment header and should\n be sent once per slice with VASliceParameterBufferHEVC in a single buffer of\n \\ref VASliceParameterBufferHEVCExtension and the buffer type is same as \\ref\n VASliceParameterBufferHEVC.\n\n For short format, this data structure is not sent by application.\n"]
5757#[repr(C)]
5758#[derive(Copy, Clone)]
5759pub struct _VASliceParameterBufferHEVCRext {
5760	pub luma_offset_l0: [i16; 15usize],
5761	pub ChromaOffsetL0: [[i16; 2usize]; 15usize],
5762	pub luma_offset_l1: [i16; 15usize],
5763	pub ChromaOffsetL1: [[i16; 2usize]; 15usize],
5764	pub slice_ext_flags: _VASliceParameterBufferHEVCRext__bindgen_ty_1,
5765	#[doc = " \\brief Screen Content Extension parameters.\n  data range [-12..12]"]
5766	pub slice_act_y_qp_offset: i8,
5767	pub slice_act_cb_qp_offset: i8,
5768	pub slice_act_cr_qp_offset: i8,
5769}
5770#[repr(C)]
5771#[derive(Copy, Clone)]
5772pub union _VASliceParameterBufferHEVCRext__bindgen_ty_1 {
5773	pub bits: _VASliceParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1,
5774	pub value: u32,
5775}
5776#[repr(C)]
5777#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
5778pub struct _VASliceParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
5779	pub _bitfield_align_1: [u32; 0],
5780	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
5781}
5782impl _VASliceParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
5783	#[inline]
5784	pub fn cu_chroma_qp_offset_enabled_flag(&self) -> u32 {
5785		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
5786	}
5787	#[inline]
5788	pub fn set_cu_chroma_qp_offset_enabled_flag(&mut self, val: u32) {
5789		unsafe {
5790			let val: u32 = ::std::mem::transmute(val);
5791			self._bitfield_1.set(0usize, 1u8, val as u64)
5792		}
5793	}
5794	#[inline]
5795	pub unsafe fn cu_chroma_qp_offset_enabled_flag_raw(this: *const Self) -> u32 {
5796		unsafe {
5797			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5798				::std::ptr::addr_of!((*this)._bitfield_1),
5799				0usize,
5800				1u8,
5801			) as u32)
5802		}
5803	}
5804	#[inline]
5805	pub unsafe fn set_cu_chroma_qp_offset_enabled_flag_raw(this: *mut Self, val: u32) {
5806		unsafe {
5807			let val: u32 = ::std::mem::transmute(val);
5808			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5809				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5810				0usize,
5811				1u8,
5812				val as u64,
5813			)
5814		}
5815	}
5816	#[inline]
5817	pub fn use_integer_mv_flag(&self) -> u32 {
5818		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
5819	}
5820	#[inline]
5821	pub fn set_use_integer_mv_flag(&mut self, val: u32) {
5822		unsafe {
5823			let val: u32 = ::std::mem::transmute(val);
5824			self._bitfield_1.set(1usize, 1u8, val as u64)
5825		}
5826	}
5827	#[inline]
5828	pub unsafe fn use_integer_mv_flag_raw(this: *const Self) -> u32 {
5829		unsafe {
5830			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5831				::std::ptr::addr_of!((*this)._bitfield_1),
5832				1usize,
5833				1u8,
5834			) as u32)
5835		}
5836	}
5837	#[inline]
5838	pub unsafe fn set_use_integer_mv_flag_raw(this: *mut Self, val: u32) {
5839		unsafe {
5840			let val: u32 = ::std::mem::transmute(val);
5841			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5842				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5843				1usize,
5844				1u8,
5845				val as u64,
5846			)
5847		}
5848	}
5849	#[inline]
5850	pub fn reserved(&self) -> u32 {
5851		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
5852	}
5853	#[inline]
5854	pub fn set_reserved(&mut self, val: u32) {
5855		unsafe {
5856			let val: u32 = ::std::mem::transmute(val);
5857			self._bitfield_1.set(2usize, 30u8, val as u64)
5858		}
5859	}
5860	#[inline]
5861	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
5862		unsafe {
5863			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5864				::std::ptr::addr_of!((*this)._bitfield_1),
5865				2usize,
5866				30u8,
5867			) as u32)
5868		}
5869	}
5870	#[inline]
5871	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
5872		unsafe {
5873			let val: u32 = ::std::mem::transmute(val);
5874			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5875				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5876				2usize,
5877				30u8,
5878				val as u64,
5879			)
5880		}
5881	}
5882	#[inline]
5883	pub fn new_bitfield_1(
5884		cu_chroma_qp_offset_enabled_flag: u32,
5885		use_integer_mv_flag: u32,
5886		reserved: u32,
5887	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
5888		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
5889		__bindgen_bitfield_unit.set(0usize, 1u8, {
5890			let cu_chroma_qp_offset_enabled_flag: u32 =
5891				unsafe { ::std::mem::transmute(cu_chroma_qp_offset_enabled_flag) };
5892			cu_chroma_qp_offset_enabled_flag as u64
5893		});
5894		__bindgen_bitfield_unit.set(1usize, 1u8, {
5895			let use_integer_mv_flag: u32 = unsafe { ::std::mem::transmute(use_integer_mv_flag) };
5896			use_integer_mv_flag as u64
5897		});
5898		__bindgen_bitfield_unit.set(2usize, 30u8, {
5899			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
5900			reserved as u64
5901		});
5902		__bindgen_bitfield_unit
5903	}
5904}
5905impl Default for _VASliceParameterBufferHEVCRext__bindgen_ty_1 {
5906	fn default() -> Self {
5907		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5908		unsafe {
5909			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5910			s.assume_init()
5911		}
5912	}
5913}
5914impl Default for _VASliceParameterBufferHEVCRext {
5915	fn default() -> Self {
5916		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5917		unsafe {
5918			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5919			s.assume_init()
5920		}
5921	}
5922}
5923#[doc = " \\brief HEVC Extented Slice Parameter Buffer Structure For Long Format\n\n This data structure contains extension profiles (range extension and screen content).\n\n VASliceParameterBufferHEVCRext structure should be accompanied by a\n slice data buffer, which holds the whole raw slice NAL unit bit streams\n including start code prefix and emulation prevention bytes not removed.\n\n This structure conveys parameters related to slice segment header and should\n be sent once per slice with VASliceParameterBufferHEVC in a single buffer of\n \\ref VASliceParameterBufferHEVCExtension and the buffer type is same as \\ref\n VASliceParameterBufferHEVC.\n\n For short format, this data structure is not sent by application.\n"]
5924pub type VASliceParameterBufferHEVCRext = _VASliceParameterBufferHEVCRext;
5925#[doc = " \\brief HEVC Inverse Quantization Matrix Buffer Structure\n\n This structure is sent once per frame,\n and only when scaling_list_enabled_flag = 1.\n When sps_scaling_list_data_present_flag = 0, app still\n needs to send in this structure with default matrix values.\n\n Matrix entries are in raster scan order which follows HEVC spec."]
5926#[repr(C)]
5927#[derive(Debug, Copy, Clone, PartialEq, Eq)]
5928pub struct _VAIQMatrixBufferHEVC {
5929	#[doc = " \\brief scaling lists,\n corresponds to same HEVC spec syntax element\n ScalingList[ i ][ MatrixID ][ j ].\n\n \\brief 4x4 scaling,\n correspongs i = 0, MatrixID is in the range of 0 to 5,\n inclusive. And j is in the range of 0 to 15, inclusive."]
5930	pub ScalingList4x4: [[u8; 16usize]; 6usize],
5931	#[doc = " \\brief 8x8 scaling,\n correspongs i = 1, MatrixID is in the range of 0 to 5,\n inclusive. And j is in the range of 0 to 63, inclusive."]
5932	pub ScalingList8x8: [[u8; 64usize]; 6usize],
5933	#[doc = " \\brief 16x16 scaling,\n correspongs i = 2, MatrixID is in the range of 0 to 5,\n inclusive. And j is in the range of 0 to 63, inclusive."]
5934	pub ScalingList16x16: [[u8; 64usize]; 6usize],
5935	#[doc = " \\brief 32x32 scaling,\n correspongs i = 3, MatrixID is in the range of 0 to 1,\n inclusive. And j is in the range of 0 to 63, inclusive."]
5936	pub ScalingList32x32: [[u8; 64usize]; 2usize],
5937	#[doc = " \\brief DC values of the 16x16 scaling lists,\n corresponds to HEVC spec syntax\n scaling_list_dc_coef_minus8[ sizeID - 2 ][ matrixID ] + 8\n with sizeID = 2 and matrixID in the range of 0 to 5, inclusive."]
5938	pub ScalingListDC16x16: [u8; 6usize],
5939	#[doc = " \\brief DC values of the 32x32 scaling lists,\n corresponds to HEVC spec syntax\n scaling_list_dc_coef_minus8[ sizeID - 2 ][ matrixID ] + 8\n with sizeID = 3 and matrixID in the range of 0 to 1, inclusive."]
5940	pub ScalingListDC32x32: [u8; 2usize],
5941	#[doc = " \\brief Reserved bytes for future use, must be zero"]
5942	pub va_reserved: [u32; 4usize],
5943}
5944impl Default for _VAIQMatrixBufferHEVC {
5945	fn default() -> Self {
5946		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5947		unsafe {
5948			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5949			s.assume_init()
5950		}
5951	}
5952}
5953#[doc = " \\brief HEVC Inverse Quantization Matrix Buffer Structure\n\n This structure is sent once per frame,\n and only when scaling_list_enabled_flag = 1.\n When sps_scaling_list_data_present_flag = 0, app still\n needs to send in this structure with default matrix values.\n\n Matrix entries are in raster scan order which follows HEVC spec."]
5954pub type VAIQMatrixBufferHEVC = _VAIQMatrixBufferHEVC;
5955#[doc = " Attribute value for VAConfigAttribEncHEVCFeatures.\n\n This attribute decribes the supported features of an HEVC/H.265\n encoder configuration.\n\n All of the field values in this attribute are VA_FEATURE_* values,\n indicating support for the corresponding feature."]
5956#[repr(C)]
5957#[derive(Copy, Clone)]
5958pub union VAConfigAttribValEncHEVCFeatures {
5959	pub bits: VAConfigAttribValEncHEVCFeatures__bindgen_ty_1,
5960	pub value: u32,
5961}
5962#[repr(C)]
5963#[repr(align(4))]
5964#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
5965pub struct VAConfigAttribValEncHEVCFeatures__bindgen_ty_1 {
5966	pub _bitfield_align_1: [u8; 0],
5967	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
5968}
5969impl VAConfigAttribValEncHEVCFeatures__bindgen_ty_1 {
5970	#[inline]
5971	pub fn separate_colour_planes(&self) -> u32 {
5972		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
5973	}
5974	#[inline]
5975	pub fn set_separate_colour_planes(&mut self, val: u32) {
5976		unsafe {
5977			let val: u32 = ::std::mem::transmute(val);
5978			self._bitfield_1.set(0usize, 2u8, val as u64)
5979		}
5980	}
5981	#[inline]
5982	pub unsafe fn separate_colour_planes_raw(this: *const Self) -> u32 {
5983		unsafe {
5984			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5985				::std::ptr::addr_of!((*this)._bitfield_1),
5986				0usize,
5987				2u8,
5988			) as u32)
5989		}
5990	}
5991	#[inline]
5992	pub unsafe fn set_separate_colour_planes_raw(this: *mut Self, val: u32) {
5993		unsafe {
5994			let val: u32 = ::std::mem::transmute(val);
5995			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5996				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5997				0usize,
5998				2u8,
5999				val as u64,
6000			)
6001		}
6002	}
6003	#[inline]
6004	pub fn scaling_lists(&self) -> u32 {
6005		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
6006	}
6007	#[inline]
6008	pub fn set_scaling_lists(&mut self, val: u32) {
6009		unsafe {
6010			let val: u32 = ::std::mem::transmute(val);
6011			self._bitfield_1.set(2usize, 2u8, val as u64)
6012		}
6013	}
6014	#[inline]
6015	pub unsafe fn scaling_lists_raw(this: *const Self) -> u32 {
6016		unsafe {
6017			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6018				::std::ptr::addr_of!((*this)._bitfield_1),
6019				2usize,
6020				2u8,
6021			) as u32)
6022		}
6023	}
6024	#[inline]
6025	pub unsafe fn set_scaling_lists_raw(this: *mut Self, val: u32) {
6026		unsafe {
6027			let val: u32 = ::std::mem::transmute(val);
6028			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6029				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6030				2usize,
6031				2u8,
6032				val as u64,
6033			)
6034		}
6035	}
6036	#[inline]
6037	pub fn amp(&self) -> u32 {
6038		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) }
6039	}
6040	#[inline]
6041	pub fn set_amp(&mut self, val: u32) {
6042		unsafe {
6043			let val: u32 = ::std::mem::transmute(val);
6044			self._bitfield_1.set(4usize, 2u8, val as u64)
6045		}
6046	}
6047	#[inline]
6048	pub unsafe fn amp_raw(this: *const Self) -> u32 {
6049		unsafe {
6050			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6051				::std::ptr::addr_of!((*this)._bitfield_1),
6052				4usize,
6053				2u8,
6054			) as u32)
6055		}
6056	}
6057	#[inline]
6058	pub unsafe fn set_amp_raw(this: *mut Self, val: u32) {
6059		unsafe {
6060			let val: u32 = ::std::mem::transmute(val);
6061			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6062				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6063				4usize,
6064				2u8,
6065				val as u64,
6066			)
6067		}
6068	}
6069	#[inline]
6070	pub fn sao(&self) -> u32 {
6071		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 2u8) as u32) }
6072	}
6073	#[inline]
6074	pub fn set_sao(&mut self, val: u32) {
6075		unsafe {
6076			let val: u32 = ::std::mem::transmute(val);
6077			self._bitfield_1.set(6usize, 2u8, val as u64)
6078		}
6079	}
6080	#[inline]
6081	pub unsafe fn sao_raw(this: *const Self) -> u32 {
6082		unsafe {
6083			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6084				::std::ptr::addr_of!((*this)._bitfield_1),
6085				6usize,
6086				2u8,
6087			) as u32)
6088		}
6089	}
6090	#[inline]
6091	pub unsafe fn set_sao_raw(this: *mut Self, val: u32) {
6092		unsafe {
6093			let val: u32 = ::std::mem::transmute(val);
6094			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6095				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6096				6usize,
6097				2u8,
6098				val as u64,
6099			)
6100		}
6101	}
6102	#[inline]
6103	pub fn pcm(&self) -> u32 {
6104		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u32) }
6105	}
6106	#[inline]
6107	pub fn set_pcm(&mut self, val: u32) {
6108		unsafe {
6109			let val: u32 = ::std::mem::transmute(val);
6110			self._bitfield_1.set(8usize, 2u8, val as u64)
6111		}
6112	}
6113	#[inline]
6114	pub unsafe fn pcm_raw(this: *const Self) -> u32 {
6115		unsafe {
6116			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6117				::std::ptr::addr_of!((*this)._bitfield_1),
6118				8usize,
6119				2u8,
6120			) as u32)
6121		}
6122	}
6123	#[inline]
6124	pub unsafe fn set_pcm_raw(this: *mut Self, val: u32) {
6125		unsafe {
6126			let val: u32 = ::std::mem::transmute(val);
6127			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6128				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6129				8usize,
6130				2u8,
6131				val as u64,
6132			)
6133		}
6134	}
6135	#[inline]
6136	pub fn temporal_mvp(&self) -> u32 {
6137		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
6138	}
6139	#[inline]
6140	pub fn set_temporal_mvp(&mut self, val: u32) {
6141		unsafe {
6142			let val: u32 = ::std::mem::transmute(val);
6143			self._bitfield_1.set(10usize, 2u8, val as u64)
6144		}
6145	}
6146	#[inline]
6147	pub unsafe fn temporal_mvp_raw(this: *const Self) -> u32 {
6148		unsafe {
6149			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6150				::std::ptr::addr_of!((*this)._bitfield_1),
6151				10usize,
6152				2u8,
6153			) as u32)
6154		}
6155	}
6156	#[inline]
6157	pub unsafe fn set_temporal_mvp_raw(this: *mut Self, val: u32) {
6158		unsafe {
6159			let val: u32 = ::std::mem::transmute(val);
6160			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6161				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6162				10usize,
6163				2u8,
6164				val as u64,
6165			)
6166		}
6167	}
6168	#[inline]
6169	pub fn strong_intra_smoothing(&self) -> u32 {
6170		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
6171	}
6172	#[inline]
6173	pub fn set_strong_intra_smoothing(&mut self, val: u32) {
6174		unsafe {
6175			let val: u32 = ::std::mem::transmute(val);
6176			self._bitfield_1.set(12usize, 2u8, val as u64)
6177		}
6178	}
6179	#[inline]
6180	pub unsafe fn strong_intra_smoothing_raw(this: *const Self) -> u32 {
6181		unsafe {
6182			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6183				::std::ptr::addr_of!((*this)._bitfield_1),
6184				12usize,
6185				2u8,
6186			) as u32)
6187		}
6188	}
6189	#[inline]
6190	pub unsafe fn set_strong_intra_smoothing_raw(this: *mut Self, val: u32) {
6191		unsafe {
6192			let val: u32 = ::std::mem::transmute(val);
6193			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6194				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6195				12usize,
6196				2u8,
6197				val as u64,
6198			)
6199		}
6200	}
6201	#[inline]
6202	pub fn dependent_slices(&self) -> u32 {
6203		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u32) }
6204	}
6205	#[inline]
6206	pub fn set_dependent_slices(&mut self, val: u32) {
6207		unsafe {
6208			let val: u32 = ::std::mem::transmute(val);
6209			self._bitfield_1.set(14usize, 2u8, val as u64)
6210		}
6211	}
6212	#[inline]
6213	pub unsafe fn dependent_slices_raw(this: *const Self) -> u32 {
6214		unsafe {
6215			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6216				::std::ptr::addr_of!((*this)._bitfield_1),
6217				14usize,
6218				2u8,
6219			) as u32)
6220		}
6221	}
6222	#[inline]
6223	pub unsafe fn set_dependent_slices_raw(this: *mut Self, val: u32) {
6224		unsafe {
6225			let val: u32 = ::std::mem::transmute(val);
6226			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6227				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6228				14usize,
6229				2u8,
6230				val as u64,
6231			)
6232		}
6233	}
6234	#[inline]
6235	pub fn sign_data_hiding(&self) -> u32 {
6236		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 2u8) as u32) }
6237	}
6238	#[inline]
6239	pub fn set_sign_data_hiding(&mut self, val: u32) {
6240		unsafe {
6241			let val: u32 = ::std::mem::transmute(val);
6242			self._bitfield_1.set(16usize, 2u8, val as u64)
6243		}
6244	}
6245	#[inline]
6246	pub unsafe fn sign_data_hiding_raw(this: *const Self) -> u32 {
6247		unsafe {
6248			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6249				::std::ptr::addr_of!((*this)._bitfield_1),
6250				16usize,
6251				2u8,
6252			) as u32)
6253		}
6254	}
6255	#[inline]
6256	pub unsafe fn set_sign_data_hiding_raw(this: *mut Self, val: u32) {
6257		unsafe {
6258			let val: u32 = ::std::mem::transmute(val);
6259			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6260				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6261				16usize,
6262				2u8,
6263				val as u64,
6264			)
6265		}
6266	}
6267	#[inline]
6268	pub fn constrained_intra_pred(&self) -> u32 {
6269		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) }
6270	}
6271	#[inline]
6272	pub fn set_constrained_intra_pred(&mut self, val: u32) {
6273		unsafe {
6274			let val: u32 = ::std::mem::transmute(val);
6275			self._bitfield_1.set(18usize, 2u8, val as u64)
6276		}
6277	}
6278	#[inline]
6279	pub unsafe fn constrained_intra_pred_raw(this: *const Self) -> u32 {
6280		unsafe {
6281			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6282				::std::ptr::addr_of!((*this)._bitfield_1),
6283				18usize,
6284				2u8,
6285			) as u32)
6286		}
6287	}
6288	#[inline]
6289	pub unsafe fn set_constrained_intra_pred_raw(this: *mut Self, val: u32) {
6290		unsafe {
6291			let val: u32 = ::std::mem::transmute(val);
6292			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6293				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6294				18usize,
6295				2u8,
6296				val as u64,
6297			)
6298		}
6299	}
6300	#[inline]
6301	pub fn transform_skip(&self) -> u32 {
6302		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 2u8) as u32) }
6303	}
6304	#[inline]
6305	pub fn set_transform_skip(&mut self, val: u32) {
6306		unsafe {
6307			let val: u32 = ::std::mem::transmute(val);
6308			self._bitfield_1.set(20usize, 2u8, val as u64)
6309		}
6310	}
6311	#[inline]
6312	pub unsafe fn transform_skip_raw(this: *const Self) -> u32 {
6313		unsafe {
6314			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6315				::std::ptr::addr_of!((*this)._bitfield_1),
6316				20usize,
6317				2u8,
6318			) as u32)
6319		}
6320	}
6321	#[inline]
6322	pub unsafe fn set_transform_skip_raw(this: *mut Self, val: u32) {
6323		unsafe {
6324			let val: u32 = ::std::mem::transmute(val);
6325			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6326				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6327				20usize,
6328				2u8,
6329				val as u64,
6330			)
6331		}
6332	}
6333	#[inline]
6334	pub fn cu_qp_delta(&self) -> u32 {
6335		unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 2u8) as u32) }
6336	}
6337	#[inline]
6338	pub fn set_cu_qp_delta(&mut self, val: u32) {
6339		unsafe {
6340			let val: u32 = ::std::mem::transmute(val);
6341			self._bitfield_1.set(22usize, 2u8, val as u64)
6342		}
6343	}
6344	#[inline]
6345	pub unsafe fn cu_qp_delta_raw(this: *const Self) -> u32 {
6346		unsafe {
6347			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6348				::std::ptr::addr_of!((*this)._bitfield_1),
6349				22usize,
6350				2u8,
6351			) as u32)
6352		}
6353	}
6354	#[inline]
6355	pub unsafe fn set_cu_qp_delta_raw(this: *mut Self, val: u32) {
6356		unsafe {
6357			let val: u32 = ::std::mem::transmute(val);
6358			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6359				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6360				22usize,
6361				2u8,
6362				val as u64,
6363			)
6364		}
6365	}
6366	#[inline]
6367	pub fn weighted_prediction(&self) -> u32 {
6368		unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 2u8) as u32) }
6369	}
6370	#[inline]
6371	pub fn set_weighted_prediction(&mut self, val: u32) {
6372		unsafe {
6373			let val: u32 = ::std::mem::transmute(val);
6374			self._bitfield_1.set(24usize, 2u8, val as u64)
6375		}
6376	}
6377	#[inline]
6378	pub unsafe fn weighted_prediction_raw(this: *const Self) -> u32 {
6379		unsafe {
6380			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6381				::std::ptr::addr_of!((*this)._bitfield_1),
6382				24usize,
6383				2u8,
6384			) as u32)
6385		}
6386	}
6387	#[inline]
6388	pub unsafe fn set_weighted_prediction_raw(this: *mut Self, val: u32) {
6389		unsafe {
6390			let val: u32 = ::std::mem::transmute(val);
6391			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6392				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6393				24usize,
6394				2u8,
6395				val as u64,
6396			)
6397		}
6398	}
6399	#[inline]
6400	pub fn transquant_bypass(&self) -> u32 {
6401		unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 2u8) as u32) }
6402	}
6403	#[inline]
6404	pub fn set_transquant_bypass(&mut self, val: u32) {
6405		unsafe {
6406			let val: u32 = ::std::mem::transmute(val);
6407			self._bitfield_1.set(26usize, 2u8, val as u64)
6408		}
6409	}
6410	#[inline]
6411	pub unsafe fn transquant_bypass_raw(this: *const Self) -> u32 {
6412		unsafe {
6413			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6414				::std::ptr::addr_of!((*this)._bitfield_1),
6415				26usize,
6416				2u8,
6417			) as u32)
6418		}
6419	}
6420	#[inline]
6421	pub unsafe fn set_transquant_bypass_raw(this: *mut Self, val: u32) {
6422		unsafe {
6423			let val: u32 = ::std::mem::transmute(val);
6424			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6425				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6426				26usize,
6427				2u8,
6428				val as u64,
6429			)
6430		}
6431	}
6432	#[inline]
6433	pub fn deblocking_filter_disable(&self) -> u32 {
6434		unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 2u8) as u32) }
6435	}
6436	#[inline]
6437	pub fn set_deblocking_filter_disable(&mut self, val: u32) {
6438		unsafe {
6439			let val: u32 = ::std::mem::transmute(val);
6440			self._bitfield_1.set(28usize, 2u8, val as u64)
6441		}
6442	}
6443	#[inline]
6444	pub unsafe fn deblocking_filter_disable_raw(this: *const Self) -> u32 {
6445		unsafe {
6446			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6447				::std::ptr::addr_of!((*this)._bitfield_1),
6448				28usize,
6449				2u8,
6450			) as u32)
6451		}
6452	}
6453	#[inline]
6454	pub unsafe fn set_deblocking_filter_disable_raw(this: *mut Self, val: u32) {
6455		unsafe {
6456			let val: u32 = ::std::mem::transmute(val);
6457			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6458				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6459				28usize,
6460				2u8,
6461				val as u64,
6462			)
6463		}
6464	}
6465	#[inline]
6466	pub fn reserved(&self) -> u32 {
6467		unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 2u8) as u32) }
6468	}
6469	#[inline]
6470	pub fn set_reserved(&mut self, val: u32) {
6471		unsafe {
6472			let val: u32 = ::std::mem::transmute(val);
6473			self._bitfield_1.set(30usize, 2u8, val as u64)
6474		}
6475	}
6476	#[inline]
6477	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
6478		unsafe {
6479			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6480				::std::ptr::addr_of!((*this)._bitfield_1),
6481				30usize,
6482				2u8,
6483			) as u32)
6484		}
6485	}
6486	#[inline]
6487	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
6488		unsafe {
6489			let val: u32 = ::std::mem::transmute(val);
6490			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6491				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6492				30usize,
6493				2u8,
6494				val as u64,
6495			)
6496		}
6497	}
6498	#[inline]
6499	pub fn new_bitfield_1(
6500		separate_colour_planes: u32,
6501		scaling_lists: u32,
6502		amp: u32,
6503		sao: u32,
6504		pcm: u32,
6505		temporal_mvp: u32,
6506		strong_intra_smoothing: u32,
6507		dependent_slices: u32,
6508		sign_data_hiding: u32,
6509		constrained_intra_pred: u32,
6510		transform_skip: u32,
6511		cu_qp_delta: u32,
6512		weighted_prediction: u32,
6513		transquant_bypass: u32,
6514		deblocking_filter_disable: u32,
6515		reserved: u32,
6516	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
6517		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
6518		__bindgen_bitfield_unit.set(0usize, 2u8, {
6519			let separate_colour_planes: u32 = unsafe { ::std::mem::transmute(separate_colour_planes) };
6520			separate_colour_planes as u64
6521		});
6522		__bindgen_bitfield_unit.set(2usize, 2u8, {
6523			let scaling_lists: u32 = unsafe { ::std::mem::transmute(scaling_lists) };
6524			scaling_lists as u64
6525		});
6526		__bindgen_bitfield_unit.set(4usize, 2u8, {
6527			let amp: u32 = unsafe { ::std::mem::transmute(amp) };
6528			amp as u64
6529		});
6530		__bindgen_bitfield_unit.set(6usize, 2u8, {
6531			let sao: u32 = unsafe { ::std::mem::transmute(sao) };
6532			sao as u64
6533		});
6534		__bindgen_bitfield_unit.set(8usize, 2u8, {
6535			let pcm: u32 = unsafe { ::std::mem::transmute(pcm) };
6536			pcm as u64
6537		});
6538		__bindgen_bitfield_unit.set(10usize, 2u8, {
6539			let temporal_mvp: u32 = unsafe { ::std::mem::transmute(temporal_mvp) };
6540			temporal_mvp as u64
6541		});
6542		__bindgen_bitfield_unit.set(12usize, 2u8, {
6543			let strong_intra_smoothing: u32 = unsafe { ::std::mem::transmute(strong_intra_smoothing) };
6544			strong_intra_smoothing as u64
6545		});
6546		__bindgen_bitfield_unit.set(14usize, 2u8, {
6547			let dependent_slices: u32 = unsafe { ::std::mem::transmute(dependent_slices) };
6548			dependent_slices as u64
6549		});
6550		__bindgen_bitfield_unit.set(16usize, 2u8, {
6551			let sign_data_hiding: u32 = unsafe { ::std::mem::transmute(sign_data_hiding) };
6552			sign_data_hiding as u64
6553		});
6554		__bindgen_bitfield_unit.set(18usize, 2u8, {
6555			let constrained_intra_pred: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred) };
6556			constrained_intra_pred as u64
6557		});
6558		__bindgen_bitfield_unit.set(20usize, 2u8, {
6559			let transform_skip: u32 = unsafe { ::std::mem::transmute(transform_skip) };
6560			transform_skip as u64
6561		});
6562		__bindgen_bitfield_unit.set(22usize, 2u8, {
6563			let cu_qp_delta: u32 = unsafe { ::std::mem::transmute(cu_qp_delta) };
6564			cu_qp_delta as u64
6565		});
6566		__bindgen_bitfield_unit.set(24usize, 2u8, {
6567			let weighted_prediction: u32 = unsafe { ::std::mem::transmute(weighted_prediction) };
6568			weighted_prediction as u64
6569		});
6570		__bindgen_bitfield_unit.set(26usize, 2u8, {
6571			let transquant_bypass: u32 = unsafe { ::std::mem::transmute(transquant_bypass) };
6572			transquant_bypass as u64
6573		});
6574		__bindgen_bitfield_unit.set(28usize, 2u8, {
6575			let deblocking_filter_disable: u32 = unsafe { ::std::mem::transmute(deblocking_filter_disable) };
6576			deblocking_filter_disable as u64
6577		});
6578		__bindgen_bitfield_unit.set(30usize, 2u8, {
6579			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
6580			reserved as u64
6581		});
6582		__bindgen_bitfield_unit
6583	}
6584}
6585impl Default for VAConfigAttribValEncHEVCFeatures {
6586	fn default() -> Self {
6587		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6588		unsafe {
6589			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6590			s.assume_init()
6591		}
6592	}
6593}
6594#[doc = " Attribute value for VAConfigAttribEncHEVCBlockSizes.\n\n This attribute describes the supported coding tree and transform block\n sizes of an HEVC/H.265 encoder configuration"]
6595#[repr(C)]
6596#[derive(Copy, Clone)]
6597pub union VAConfigAttribValEncHEVCBlockSizes {
6598	pub bits: VAConfigAttribValEncHEVCBlockSizes__bindgen_ty_1,
6599	pub value: u32,
6600}
6601#[repr(C)]
6602#[repr(align(4))]
6603#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
6604pub struct VAConfigAttribValEncHEVCBlockSizes__bindgen_ty_1 {
6605	pub _bitfield_align_1: [u16; 0],
6606	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
6607}
6608impl VAConfigAttribValEncHEVCBlockSizes__bindgen_ty_1 {
6609	#[inline]
6610	pub fn log2_max_coding_tree_block_size_minus3(&self) -> u32 {
6611		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
6612	}
6613	#[inline]
6614	pub fn set_log2_max_coding_tree_block_size_minus3(&mut self, val: u32) {
6615		unsafe {
6616			let val: u32 = ::std::mem::transmute(val);
6617			self._bitfield_1.set(0usize, 2u8, val as u64)
6618		}
6619	}
6620	#[inline]
6621	pub unsafe fn log2_max_coding_tree_block_size_minus3_raw(this: *const Self) -> u32 {
6622		unsafe {
6623			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6624				::std::ptr::addr_of!((*this)._bitfield_1),
6625				0usize,
6626				2u8,
6627			) as u32)
6628		}
6629	}
6630	#[inline]
6631	pub unsafe fn set_log2_max_coding_tree_block_size_minus3_raw(this: *mut Self, val: u32) {
6632		unsafe {
6633			let val: u32 = ::std::mem::transmute(val);
6634			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6635				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6636				0usize,
6637				2u8,
6638				val as u64,
6639			)
6640		}
6641	}
6642	#[inline]
6643	pub fn log2_min_coding_tree_block_size_minus3(&self) -> u32 {
6644		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
6645	}
6646	#[inline]
6647	pub fn set_log2_min_coding_tree_block_size_minus3(&mut self, val: u32) {
6648		unsafe {
6649			let val: u32 = ::std::mem::transmute(val);
6650			self._bitfield_1.set(2usize, 2u8, val as u64)
6651		}
6652	}
6653	#[inline]
6654	pub unsafe fn log2_min_coding_tree_block_size_minus3_raw(this: *const Self) -> u32 {
6655		unsafe {
6656			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6657				::std::ptr::addr_of!((*this)._bitfield_1),
6658				2usize,
6659				2u8,
6660			) as u32)
6661		}
6662	}
6663	#[inline]
6664	pub unsafe fn set_log2_min_coding_tree_block_size_minus3_raw(this: *mut Self, val: u32) {
6665		unsafe {
6666			let val: u32 = ::std::mem::transmute(val);
6667			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6668				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6669				2usize,
6670				2u8,
6671				val as u64,
6672			)
6673		}
6674	}
6675	#[inline]
6676	pub fn log2_min_luma_coding_block_size_minus3(&self) -> u32 {
6677		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) }
6678	}
6679	#[inline]
6680	pub fn set_log2_min_luma_coding_block_size_minus3(&mut self, val: u32) {
6681		unsafe {
6682			let val: u32 = ::std::mem::transmute(val);
6683			self._bitfield_1.set(4usize, 2u8, val as u64)
6684		}
6685	}
6686	#[inline]
6687	pub unsafe fn log2_min_luma_coding_block_size_minus3_raw(this: *const Self) -> u32 {
6688		unsafe {
6689			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6690				::std::ptr::addr_of!((*this)._bitfield_1),
6691				4usize,
6692				2u8,
6693			) as u32)
6694		}
6695	}
6696	#[inline]
6697	pub unsafe fn set_log2_min_luma_coding_block_size_minus3_raw(this: *mut Self, val: u32) {
6698		unsafe {
6699			let val: u32 = ::std::mem::transmute(val);
6700			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6701				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6702				4usize,
6703				2u8,
6704				val as u64,
6705			)
6706		}
6707	}
6708	#[inline]
6709	pub fn log2_max_luma_transform_block_size_minus2(&self) -> u32 {
6710		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 2u8) as u32) }
6711	}
6712	#[inline]
6713	pub fn set_log2_max_luma_transform_block_size_minus2(&mut self, val: u32) {
6714		unsafe {
6715			let val: u32 = ::std::mem::transmute(val);
6716			self._bitfield_1.set(6usize, 2u8, val as u64)
6717		}
6718	}
6719	#[inline]
6720	pub unsafe fn log2_max_luma_transform_block_size_minus2_raw(this: *const Self) -> u32 {
6721		unsafe {
6722			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6723				::std::ptr::addr_of!((*this)._bitfield_1),
6724				6usize,
6725				2u8,
6726			) as u32)
6727		}
6728	}
6729	#[inline]
6730	pub unsafe fn set_log2_max_luma_transform_block_size_minus2_raw(this: *mut Self, val: u32) {
6731		unsafe {
6732			let val: u32 = ::std::mem::transmute(val);
6733			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6734				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6735				6usize,
6736				2u8,
6737				val as u64,
6738			)
6739		}
6740	}
6741	#[inline]
6742	pub fn log2_min_luma_transform_block_size_minus2(&self) -> u32 {
6743		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u32) }
6744	}
6745	#[inline]
6746	pub fn set_log2_min_luma_transform_block_size_minus2(&mut self, val: u32) {
6747		unsafe {
6748			let val: u32 = ::std::mem::transmute(val);
6749			self._bitfield_1.set(8usize, 2u8, val as u64)
6750		}
6751	}
6752	#[inline]
6753	pub unsafe fn log2_min_luma_transform_block_size_minus2_raw(this: *const Self) -> u32 {
6754		unsafe {
6755			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6756				::std::ptr::addr_of!((*this)._bitfield_1),
6757				8usize,
6758				2u8,
6759			) as u32)
6760		}
6761	}
6762	#[inline]
6763	pub unsafe fn set_log2_min_luma_transform_block_size_minus2_raw(this: *mut Self, val: u32) {
6764		unsafe {
6765			let val: u32 = ::std::mem::transmute(val);
6766			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6767				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6768				8usize,
6769				2u8,
6770				val as u64,
6771			)
6772		}
6773	}
6774	#[inline]
6775	pub fn max_max_transform_hierarchy_depth_inter(&self) -> u32 {
6776		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
6777	}
6778	#[inline]
6779	pub fn set_max_max_transform_hierarchy_depth_inter(&mut self, val: u32) {
6780		unsafe {
6781			let val: u32 = ::std::mem::transmute(val);
6782			self._bitfield_1.set(10usize, 2u8, val as u64)
6783		}
6784	}
6785	#[inline]
6786	pub unsafe fn max_max_transform_hierarchy_depth_inter_raw(this: *const Self) -> u32 {
6787		unsafe {
6788			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6789				::std::ptr::addr_of!((*this)._bitfield_1),
6790				10usize,
6791				2u8,
6792			) as u32)
6793		}
6794	}
6795	#[inline]
6796	pub unsafe fn set_max_max_transform_hierarchy_depth_inter_raw(this: *mut Self, val: u32) {
6797		unsafe {
6798			let val: u32 = ::std::mem::transmute(val);
6799			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6800				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6801				10usize,
6802				2u8,
6803				val as u64,
6804			)
6805		}
6806	}
6807	#[inline]
6808	pub fn min_max_transform_hierarchy_depth_inter(&self) -> u32 {
6809		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
6810	}
6811	#[inline]
6812	pub fn set_min_max_transform_hierarchy_depth_inter(&mut self, val: u32) {
6813		unsafe {
6814			let val: u32 = ::std::mem::transmute(val);
6815			self._bitfield_1.set(12usize, 2u8, val as u64)
6816		}
6817	}
6818	#[inline]
6819	pub unsafe fn min_max_transform_hierarchy_depth_inter_raw(this: *const Self) -> u32 {
6820		unsafe {
6821			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6822				::std::ptr::addr_of!((*this)._bitfield_1),
6823				12usize,
6824				2u8,
6825			) as u32)
6826		}
6827	}
6828	#[inline]
6829	pub unsafe fn set_min_max_transform_hierarchy_depth_inter_raw(this: *mut Self, val: u32) {
6830		unsafe {
6831			let val: u32 = ::std::mem::transmute(val);
6832			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6833				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6834				12usize,
6835				2u8,
6836				val as u64,
6837			)
6838		}
6839	}
6840	#[inline]
6841	pub fn max_max_transform_hierarchy_depth_intra(&self) -> u32 {
6842		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u32) }
6843	}
6844	#[inline]
6845	pub fn set_max_max_transform_hierarchy_depth_intra(&mut self, val: u32) {
6846		unsafe {
6847			let val: u32 = ::std::mem::transmute(val);
6848			self._bitfield_1.set(14usize, 2u8, val as u64)
6849		}
6850	}
6851	#[inline]
6852	pub unsafe fn max_max_transform_hierarchy_depth_intra_raw(this: *const Self) -> u32 {
6853		unsafe {
6854			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6855				::std::ptr::addr_of!((*this)._bitfield_1),
6856				14usize,
6857				2u8,
6858			) as u32)
6859		}
6860	}
6861	#[inline]
6862	pub unsafe fn set_max_max_transform_hierarchy_depth_intra_raw(this: *mut Self, val: u32) {
6863		unsafe {
6864			let val: u32 = ::std::mem::transmute(val);
6865			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6866				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6867				14usize,
6868				2u8,
6869				val as u64,
6870			)
6871		}
6872	}
6873	#[inline]
6874	pub fn min_max_transform_hierarchy_depth_intra(&self) -> u32 {
6875		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 2u8) as u32) }
6876	}
6877	#[inline]
6878	pub fn set_min_max_transform_hierarchy_depth_intra(&mut self, val: u32) {
6879		unsafe {
6880			let val: u32 = ::std::mem::transmute(val);
6881			self._bitfield_1.set(16usize, 2u8, val as u64)
6882		}
6883	}
6884	#[inline]
6885	pub unsafe fn min_max_transform_hierarchy_depth_intra_raw(this: *const Self) -> u32 {
6886		unsafe {
6887			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6888				::std::ptr::addr_of!((*this)._bitfield_1),
6889				16usize,
6890				2u8,
6891			) as u32)
6892		}
6893	}
6894	#[inline]
6895	pub unsafe fn set_min_max_transform_hierarchy_depth_intra_raw(this: *mut Self, val: u32) {
6896		unsafe {
6897			let val: u32 = ::std::mem::transmute(val);
6898			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6899				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6900				16usize,
6901				2u8,
6902				val as u64,
6903			)
6904		}
6905	}
6906	#[inline]
6907	pub fn log2_max_pcm_coding_block_size_minus3(&self) -> u32 {
6908		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) }
6909	}
6910	#[inline]
6911	pub fn set_log2_max_pcm_coding_block_size_minus3(&mut self, val: u32) {
6912		unsafe {
6913			let val: u32 = ::std::mem::transmute(val);
6914			self._bitfield_1.set(18usize, 2u8, val as u64)
6915		}
6916	}
6917	#[inline]
6918	pub unsafe fn log2_max_pcm_coding_block_size_minus3_raw(this: *const Self) -> u32 {
6919		unsafe {
6920			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6921				::std::ptr::addr_of!((*this)._bitfield_1),
6922				18usize,
6923				2u8,
6924			) as u32)
6925		}
6926	}
6927	#[inline]
6928	pub unsafe fn set_log2_max_pcm_coding_block_size_minus3_raw(this: *mut Self, val: u32) {
6929		unsafe {
6930			let val: u32 = ::std::mem::transmute(val);
6931			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6932				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6933				18usize,
6934				2u8,
6935				val as u64,
6936			)
6937		}
6938	}
6939	#[inline]
6940	pub fn log2_min_pcm_coding_block_size_minus3(&self) -> u32 {
6941		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 2u8) as u32) }
6942	}
6943	#[inline]
6944	pub fn set_log2_min_pcm_coding_block_size_minus3(&mut self, val: u32) {
6945		unsafe {
6946			let val: u32 = ::std::mem::transmute(val);
6947			self._bitfield_1.set(20usize, 2u8, val as u64)
6948		}
6949	}
6950	#[inline]
6951	pub unsafe fn log2_min_pcm_coding_block_size_minus3_raw(this: *const Self) -> u32 {
6952		unsafe {
6953			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6954				::std::ptr::addr_of!((*this)._bitfield_1),
6955				20usize,
6956				2u8,
6957			) as u32)
6958		}
6959	}
6960	#[inline]
6961	pub unsafe fn set_log2_min_pcm_coding_block_size_minus3_raw(this: *mut Self, val: u32) {
6962		unsafe {
6963			let val: u32 = ::std::mem::transmute(val);
6964			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6965				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6966				20usize,
6967				2u8,
6968				val as u64,
6969			)
6970		}
6971	}
6972	#[inline]
6973	pub fn reserved(&self) -> u32 {
6974		unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 10u8) as u32) }
6975	}
6976	#[inline]
6977	pub fn set_reserved(&mut self, val: u32) {
6978		unsafe {
6979			let val: u32 = ::std::mem::transmute(val);
6980			self._bitfield_1.set(22usize, 10u8, val as u64)
6981		}
6982	}
6983	#[inline]
6984	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
6985		unsafe {
6986			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6987				::std::ptr::addr_of!((*this)._bitfield_1),
6988				22usize,
6989				10u8,
6990			) as u32)
6991		}
6992	}
6993	#[inline]
6994	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
6995		unsafe {
6996			let val: u32 = ::std::mem::transmute(val);
6997			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6998				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6999				22usize,
7000				10u8,
7001				val as u64,
7002			)
7003		}
7004	}
7005	#[inline]
7006	pub fn new_bitfield_1(
7007		log2_max_coding_tree_block_size_minus3: u32,
7008		log2_min_coding_tree_block_size_minus3: u32,
7009		log2_min_luma_coding_block_size_minus3: u32,
7010		log2_max_luma_transform_block_size_minus2: u32,
7011		log2_min_luma_transform_block_size_minus2: u32,
7012		max_max_transform_hierarchy_depth_inter: u32,
7013		min_max_transform_hierarchy_depth_inter: u32,
7014		max_max_transform_hierarchy_depth_intra: u32,
7015		min_max_transform_hierarchy_depth_intra: u32,
7016		log2_max_pcm_coding_block_size_minus3: u32,
7017		log2_min_pcm_coding_block_size_minus3: u32,
7018		reserved: u32,
7019	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
7020		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
7021		__bindgen_bitfield_unit.set(0usize, 2u8, {
7022			let log2_max_coding_tree_block_size_minus3: u32 =
7023				unsafe { ::std::mem::transmute(log2_max_coding_tree_block_size_minus3) };
7024			log2_max_coding_tree_block_size_minus3 as u64
7025		});
7026		__bindgen_bitfield_unit.set(2usize, 2u8, {
7027			let log2_min_coding_tree_block_size_minus3: u32 =
7028				unsafe { ::std::mem::transmute(log2_min_coding_tree_block_size_minus3) };
7029			log2_min_coding_tree_block_size_minus3 as u64
7030		});
7031		__bindgen_bitfield_unit.set(4usize, 2u8, {
7032			let log2_min_luma_coding_block_size_minus3: u32 =
7033				unsafe { ::std::mem::transmute(log2_min_luma_coding_block_size_minus3) };
7034			log2_min_luma_coding_block_size_minus3 as u64
7035		});
7036		__bindgen_bitfield_unit.set(6usize, 2u8, {
7037			let log2_max_luma_transform_block_size_minus2: u32 =
7038				unsafe { ::std::mem::transmute(log2_max_luma_transform_block_size_minus2) };
7039			log2_max_luma_transform_block_size_minus2 as u64
7040		});
7041		__bindgen_bitfield_unit.set(8usize, 2u8, {
7042			let log2_min_luma_transform_block_size_minus2: u32 =
7043				unsafe { ::std::mem::transmute(log2_min_luma_transform_block_size_minus2) };
7044			log2_min_luma_transform_block_size_minus2 as u64
7045		});
7046		__bindgen_bitfield_unit.set(10usize, 2u8, {
7047			let max_max_transform_hierarchy_depth_inter: u32 =
7048				unsafe { ::std::mem::transmute(max_max_transform_hierarchy_depth_inter) };
7049			max_max_transform_hierarchy_depth_inter as u64
7050		});
7051		__bindgen_bitfield_unit.set(12usize, 2u8, {
7052			let min_max_transform_hierarchy_depth_inter: u32 =
7053				unsafe { ::std::mem::transmute(min_max_transform_hierarchy_depth_inter) };
7054			min_max_transform_hierarchy_depth_inter as u64
7055		});
7056		__bindgen_bitfield_unit.set(14usize, 2u8, {
7057			let max_max_transform_hierarchy_depth_intra: u32 =
7058				unsafe { ::std::mem::transmute(max_max_transform_hierarchy_depth_intra) };
7059			max_max_transform_hierarchy_depth_intra as u64
7060		});
7061		__bindgen_bitfield_unit.set(16usize, 2u8, {
7062			let min_max_transform_hierarchy_depth_intra: u32 =
7063				unsafe { ::std::mem::transmute(min_max_transform_hierarchy_depth_intra) };
7064			min_max_transform_hierarchy_depth_intra as u64
7065		});
7066		__bindgen_bitfield_unit.set(18usize, 2u8, {
7067			let log2_max_pcm_coding_block_size_minus3: u32 =
7068				unsafe { ::std::mem::transmute(log2_max_pcm_coding_block_size_minus3) };
7069			log2_max_pcm_coding_block_size_minus3 as u64
7070		});
7071		__bindgen_bitfield_unit.set(20usize, 2u8, {
7072			let log2_min_pcm_coding_block_size_minus3: u32 =
7073				unsafe { ::std::mem::transmute(log2_min_pcm_coding_block_size_minus3) };
7074			log2_min_pcm_coding_block_size_minus3 as u64
7075		});
7076		__bindgen_bitfield_unit.set(22usize, 10u8, {
7077			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
7078			reserved as u64
7079		});
7080		__bindgen_bitfield_unit
7081	}
7082}
7083impl Default for VAConfigAttribValEncHEVCBlockSizes {
7084	fn default() -> Self {
7085		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7086		unsafe {
7087			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7088			s.assume_init()
7089		}
7090	}
7091}
7092#[doc = " \\brief Sequence parameter for HEVC encoding in main & main 10\n profiles.\n\n This structure holds information for \\c seq_parameter_set_data() as\n defined by the HEVC specification.\n\n If packed sequence headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SEQUENCE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSequence ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c seq_scaling_matrix_present_flag is set to \\c 1, then a\n #VAQMatrixBufferHEVC buffer shall also be provided within the same\n \\c vaRenderPicture() call as this sequence parameter buffer."]
7093#[repr(C)]
7094#[derive(Copy, Clone)]
7095pub struct _VAEncSequenceParameterBufferHEVC {
7096	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [1..2]."]
7097	pub general_profile_idc: u8,
7098	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  general_level_idc shall be set equal to a value of 30 times the level\n  numbers allowed [1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2]"]
7099	pub general_level_idc: u8,
7100	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  Only value 0 is allowed for level value below 4, exclusive."]
7101	pub general_tier_flag: u8,
7102	#[doc = " \\brief Period between I frames."]
7103	pub intra_period: u32,
7104	#[doc = " \\brief Period between IDR frames."]
7105	pub intra_idr_period: u32,
7106	#[doc = " \\brief Period between I/P frames."]
7107	pub ip_period: u32,
7108	#[doc = " \\brief Initial bitrate set for this sequence in CBR or VBR modes.\n\n This field represents the initial bitrate value for this\n sequence if CBR or VBR mode is used, i.e. if the encoder\n pipeline was created with a #VAConfigAttribRateControl\n attribute set to either \\ref VA_RC_CBR or \\ref VA_RC_VBR.\n\n The bitrate can be modified later on through\n #VAEncMiscParameterRateControl buffers."]
7109	pub bits_per_second: u32,
7110	#[doc = " \\brief Picture width in pixel samples.\n  Its value must be multiple of min CU size."]
7111	pub pic_width_in_luma_samples: u16,
7112	#[doc = " \\brief Picture height in pixel samples.\n  Its value must be multiple of min CU size."]
7113	pub pic_height_in_luma_samples: u16,
7114	pub seq_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_1,
7115	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [0..3]"]
7116	pub log2_min_luma_coding_block_size_minus3: u8,
7117	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7118	pub log2_diff_max_min_luma_coding_block_size: u8,
7119	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [0..3]"]
7120	pub log2_min_transform_block_size_minus2: u8,
7121	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7122	pub log2_diff_max_min_transform_block_size: u8,
7123	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [2]"]
7124	pub max_transform_hierarchy_depth_inter: u8,
7125	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [2]"]
7126	pub max_transform_hierarchy_depth_intra: u8,
7127	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7128	pub pcm_sample_bit_depth_luma_minus1: u32,
7129	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7130	pub pcm_sample_bit_depth_chroma_minus1: u32,
7131	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7132	pub log2_min_pcm_luma_coding_block_size_minus3: u32,
7133	#[doc = " \\brief Derived from the HEVC bitstream syntax element.\n  log2_min_pcm_luma_coding_block_size_minus3 +\n  log2_diff_max_min_pcm_luma_coding_block_size"]
7134	pub log2_max_pcm_luma_coding_block_size_minus3: u32,
7135	#[doc = " @name VUI parameters (optional) */\n/**@{*/\n/** \\brief Same as the HEVC bitstream syntax element."]
7136	pub vui_parameters_present_flag: u8,
7137	pub vui_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_2,
7138	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7139	pub aspect_ratio_idc: u8,
7140	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7141	pub sar_width: u32,
7142	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7143	pub sar_height: u32,
7144	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7145	pub vui_num_units_in_tick: u32,
7146	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7147	pub vui_time_scale: u32,
7148	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7149	pub min_spatial_segmentation_idc: u16,
7150	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7151	pub max_bytes_per_pic_denom: u8,
7152	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
7153	pub max_bits_per_min_cu_denom: u8,
7154	pub scc_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_3,
7155	#[doc = " \\brief Reserved bytes for future use, must be zero"]
7156	pub va_reserved: [u32; 7usize],
7157}
7158#[repr(C)]
7159#[derive(Copy, Clone)]
7160pub union _VAEncSequenceParameterBufferHEVC__bindgen_ty_1 {
7161	pub bits: _VAEncSequenceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
7162	pub value: u32,
7163}
7164#[repr(C)]
7165#[repr(align(4))]
7166#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
7167pub struct _VAEncSequenceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
7168	pub _bitfield_align_1: [u16; 0],
7169	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
7170}
7171impl _VAEncSequenceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
7172	#[inline]
7173	pub fn chroma_format_idc(&self) -> u32 {
7174		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
7175	}
7176	#[inline]
7177	pub fn set_chroma_format_idc(&mut self, val: u32) {
7178		unsafe {
7179			let val: u32 = ::std::mem::transmute(val);
7180			self._bitfield_1.set(0usize, 2u8, val as u64)
7181		}
7182	}
7183	#[inline]
7184	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
7185		unsafe {
7186			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7187				::std::ptr::addr_of!((*this)._bitfield_1),
7188				0usize,
7189				2u8,
7190			) as u32)
7191		}
7192	}
7193	#[inline]
7194	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
7195		unsafe {
7196			let val: u32 = ::std::mem::transmute(val);
7197			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7198				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7199				0usize,
7200				2u8,
7201				val as u64,
7202			)
7203		}
7204	}
7205	#[inline]
7206	pub fn separate_colour_plane_flag(&self) -> u32 {
7207		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
7208	}
7209	#[inline]
7210	pub fn set_separate_colour_plane_flag(&mut self, val: u32) {
7211		unsafe {
7212			let val: u32 = ::std::mem::transmute(val);
7213			self._bitfield_1.set(2usize, 1u8, val as u64)
7214		}
7215	}
7216	#[inline]
7217	pub unsafe fn separate_colour_plane_flag_raw(this: *const Self) -> u32 {
7218		unsafe {
7219			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7220				::std::ptr::addr_of!((*this)._bitfield_1),
7221				2usize,
7222				1u8,
7223			) as u32)
7224		}
7225	}
7226	#[inline]
7227	pub unsafe fn set_separate_colour_plane_flag_raw(this: *mut Self, val: u32) {
7228		unsafe {
7229			let val: u32 = ::std::mem::transmute(val);
7230			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7231				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7232				2usize,
7233				1u8,
7234				val as u64,
7235			)
7236		}
7237	}
7238	#[inline]
7239	pub fn bit_depth_luma_minus8(&self) -> u32 {
7240		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) }
7241	}
7242	#[inline]
7243	pub fn set_bit_depth_luma_minus8(&mut self, val: u32) {
7244		unsafe {
7245			let val: u32 = ::std::mem::transmute(val);
7246			self._bitfield_1.set(3usize, 3u8, val as u64)
7247		}
7248	}
7249	#[inline]
7250	pub unsafe fn bit_depth_luma_minus8_raw(this: *const Self) -> u32 {
7251		unsafe {
7252			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7253				::std::ptr::addr_of!((*this)._bitfield_1),
7254				3usize,
7255				3u8,
7256			) as u32)
7257		}
7258	}
7259	#[inline]
7260	pub unsafe fn set_bit_depth_luma_minus8_raw(this: *mut Self, val: u32) {
7261		unsafe {
7262			let val: u32 = ::std::mem::transmute(val);
7263			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7264				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7265				3usize,
7266				3u8,
7267				val as u64,
7268			)
7269		}
7270	}
7271	#[inline]
7272	pub fn bit_depth_chroma_minus8(&self) -> u32 {
7273		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) }
7274	}
7275	#[inline]
7276	pub fn set_bit_depth_chroma_minus8(&mut self, val: u32) {
7277		unsafe {
7278			let val: u32 = ::std::mem::transmute(val);
7279			self._bitfield_1.set(6usize, 3u8, val as u64)
7280		}
7281	}
7282	#[inline]
7283	pub unsafe fn bit_depth_chroma_minus8_raw(this: *const Self) -> u32 {
7284		unsafe {
7285			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7286				::std::ptr::addr_of!((*this)._bitfield_1),
7287				6usize,
7288				3u8,
7289			) as u32)
7290		}
7291	}
7292	#[inline]
7293	pub unsafe fn set_bit_depth_chroma_minus8_raw(this: *mut Self, val: u32) {
7294		unsafe {
7295			let val: u32 = ::std::mem::transmute(val);
7296			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7297				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7298				6usize,
7299				3u8,
7300				val as u64,
7301			)
7302		}
7303	}
7304	#[inline]
7305	pub fn scaling_list_enabled_flag(&self) -> u32 {
7306		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
7307	}
7308	#[inline]
7309	pub fn set_scaling_list_enabled_flag(&mut self, val: u32) {
7310		unsafe {
7311			let val: u32 = ::std::mem::transmute(val);
7312			self._bitfield_1.set(9usize, 1u8, val as u64)
7313		}
7314	}
7315	#[inline]
7316	pub unsafe fn scaling_list_enabled_flag_raw(this: *const Self) -> u32 {
7317		unsafe {
7318			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7319				::std::ptr::addr_of!((*this)._bitfield_1),
7320				9usize,
7321				1u8,
7322			) as u32)
7323		}
7324	}
7325	#[inline]
7326	pub unsafe fn set_scaling_list_enabled_flag_raw(this: *mut Self, val: u32) {
7327		unsafe {
7328			let val: u32 = ::std::mem::transmute(val);
7329			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7330				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7331				9usize,
7332				1u8,
7333				val as u64,
7334			)
7335		}
7336	}
7337	#[inline]
7338	pub fn strong_intra_smoothing_enabled_flag(&self) -> u32 {
7339		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
7340	}
7341	#[inline]
7342	pub fn set_strong_intra_smoothing_enabled_flag(&mut self, val: u32) {
7343		unsafe {
7344			let val: u32 = ::std::mem::transmute(val);
7345			self._bitfield_1.set(10usize, 1u8, val as u64)
7346		}
7347	}
7348	#[inline]
7349	pub unsafe fn strong_intra_smoothing_enabled_flag_raw(this: *const Self) -> u32 {
7350		unsafe {
7351			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7352				::std::ptr::addr_of!((*this)._bitfield_1),
7353				10usize,
7354				1u8,
7355			) as u32)
7356		}
7357	}
7358	#[inline]
7359	pub unsafe fn set_strong_intra_smoothing_enabled_flag_raw(this: *mut Self, val: u32) {
7360		unsafe {
7361			let val: u32 = ::std::mem::transmute(val);
7362			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7363				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7364				10usize,
7365				1u8,
7366				val as u64,
7367			)
7368		}
7369	}
7370	#[inline]
7371	pub fn amp_enabled_flag(&self) -> u32 {
7372		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
7373	}
7374	#[inline]
7375	pub fn set_amp_enabled_flag(&mut self, val: u32) {
7376		unsafe {
7377			let val: u32 = ::std::mem::transmute(val);
7378			self._bitfield_1.set(11usize, 1u8, val as u64)
7379		}
7380	}
7381	#[inline]
7382	pub unsafe fn amp_enabled_flag_raw(this: *const Self) -> u32 {
7383		unsafe {
7384			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7385				::std::ptr::addr_of!((*this)._bitfield_1),
7386				11usize,
7387				1u8,
7388			) as u32)
7389		}
7390	}
7391	#[inline]
7392	pub unsafe fn set_amp_enabled_flag_raw(this: *mut Self, val: u32) {
7393		unsafe {
7394			let val: u32 = ::std::mem::transmute(val);
7395			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7396				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7397				11usize,
7398				1u8,
7399				val as u64,
7400			)
7401		}
7402	}
7403	#[inline]
7404	pub fn sample_adaptive_offset_enabled_flag(&self) -> u32 {
7405		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
7406	}
7407	#[inline]
7408	pub fn set_sample_adaptive_offset_enabled_flag(&mut self, val: u32) {
7409		unsafe {
7410			let val: u32 = ::std::mem::transmute(val);
7411			self._bitfield_1.set(12usize, 1u8, val as u64)
7412		}
7413	}
7414	#[inline]
7415	pub unsafe fn sample_adaptive_offset_enabled_flag_raw(this: *const Self) -> u32 {
7416		unsafe {
7417			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7418				::std::ptr::addr_of!((*this)._bitfield_1),
7419				12usize,
7420				1u8,
7421			) as u32)
7422		}
7423	}
7424	#[inline]
7425	pub unsafe fn set_sample_adaptive_offset_enabled_flag_raw(this: *mut Self, val: u32) {
7426		unsafe {
7427			let val: u32 = ::std::mem::transmute(val);
7428			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7429				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7430				12usize,
7431				1u8,
7432				val as u64,
7433			)
7434		}
7435	}
7436	#[inline]
7437	pub fn pcm_enabled_flag(&self) -> u32 {
7438		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
7439	}
7440	#[inline]
7441	pub fn set_pcm_enabled_flag(&mut self, val: u32) {
7442		unsafe {
7443			let val: u32 = ::std::mem::transmute(val);
7444			self._bitfield_1.set(13usize, 1u8, val as u64)
7445		}
7446	}
7447	#[inline]
7448	pub unsafe fn pcm_enabled_flag_raw(this: *const Self) -> u32 {
7449		unsafe {
7450			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7451				::std::ptr::addr_of!((*this)._bitfield_1),
7452				13usize,
7453				1u8,
7454			) as u32)
7455		}
7456	}
7457	#[inline]
7458	pub unsafe fn set_pcm_enabled_flag_raw(this: *mut Self, val: u32) {
7459		unsafe {
7460			let val: u32 = ::std::mem::transmute(val);
7461			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7462				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7463				13usize,
7464				1u8,
7465				val as u64,
7466			)
7467		}
7468	}
7469	#[inline]
7470	pub fn pcm_loop_filter_disabled_flag(&self) -> u32 {
7471		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
7472	}
7473	#[inline]
7474	pub fn set_pcm_loop_filter_disabled_flag(&mut self, val: u32) {
7475		unsafe {
7476			let val: u32 = ::std::mem::transmute(val);
7477			self._bitfield_1.set(14usize, 1u8, val as u64)
7478		}
7479	}
7480	#[inline]
7481	pub unsafe fn pcm_loop_filter_disabled_flag_raw(this: *const Self) -> u32 {
7482		unsafe {
7483			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7484				::std::ptr::addr_of!((*this)._bitfield_1),
7485				14usize,
7486				1u8,
7487			) as u32)
7488		}
7489	}
7490	#[inline]
7491	pub unsafe fn set_pcm_loop_filter_disabled_flag_raw(this: *mut Self, val: u32) {
7492		unsafe {
7493			let val: u32 = ::std::mem::transmute(val);
7494			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7495				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7496				14usize,
7497				1u8,
7498				val as u64,
7499			)
7500		}
7501	}
7502	#[inline]
7503	pub fn sps_temporal_mvp_enabled_flag(&self) -> u32 {
7504		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
7505	}
7506	#[inline]
7507	pub fn set_sps_temporal_mvp_enabled_flag(&mut self, val: u32) {
7508		unsafe {
7509			let val: u32 = ::std::mem::transmute(val);
7510			self._bitfield_1.set(15usize, 1u8, val as u64)
7511		}
7512	}
7513	#[inline]
7514	pub unsafe fn sps_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
7515		unsafe {
7516			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7517				::std::ptr::addr_of!((*this)._bitfield_1),
7518				15usize,
7519				1u8,
7520			) as u32)
7521		}
7522	}
7523	#[inline]
7524	pub unsafe fn set_sps_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
7525		unsafe {
7526			let val: u32 = ::std::mem::transmute(val);
7527			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7528				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7529				15usize,
7530				1u8,
7531				val as u64,
7532			)
7533		}
7534	}
7535	#[inline]
7536	pub fn low_delay_seq(&self) -> u32 {
7537		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
7538	}
7539	#[inline]
7540	pub fn set_low_delay_seq(&mut self, val: u32) {
7541		unsafe {
7542			let val: u32 = ::std::mem::transmute(val);
7543			self._bitfield_1.set(16usize, 1u8, val as u64)
7544		}
7545	}
7546	#[inline]
7547	pub unsafe fn low_delay_seq_raw(this: *const Self) -> u32 {
7548		unsafe {
7549			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7550				::std::ptr::addr_of!((*this)._bitfield_1),
7551				16usize,
7552				1u8,
7553			) as u32)
7554		}
7555	}
7556	#[inline]
7557	pub unsafe fn set_low_delay_seq_raw(this: *mut Self, val: u32) {
7558		unsafe {
7559			let val: u32 = ::std::mem::transmute(val);
7560			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7561				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7562				16usize,
7563				1u8,
7564				val as u64,
7565			)
7566		}
7567	}
7568	#[inline]
7569	pub fn hierachical_flag(&self) -> u32 {
7570		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
7571	}
7572	#[inline]
7573	pub fn set_hierachical_flag(&mut self, val: u32) {
7574		unsafe {
7575			let val: u32 = ::std::mem::transmute(val);
7576			self._bitfield_1.set(17usize, 1u8, val as u64)
7577		}
7578	}
7579	#[inline]
7580	pub unsafe fn hierachical_flag_raw(this: *const Self) -> u32 {
7581		unsafe {
7582			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7583				::std::ptr::addr_of!((*this)._bitfield_1),
7584				17usize,
7585				1u8,
7586			) as u32)
7587		}
7588	}
7589	#[inline]
7590	pub unsafe fn set_hierachical_flag_raw(this: *mut Self, val: u32) {
7591		unsafe {
7592			let val: u32 = ::std::mem::transmute(val);
7593			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7594				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7595				17usize,
7596				1u8,
7597				val as u64,
7598			)
7599		}
7600	}
7601	#[inline]
7602	pub fn reserved_bits(&self) -> u32 {
7603		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 14u8) as u32) }
7604	}
7605	#[inline]
7606	pub fn set_reserved_bits(&mut self, val: u32) {
7607		unsafe {
7608			let val: u32 = ::std::mem::transmute(val);
7609			self._bitfield_1.set(18usize, 14u8, val as u64)
7610		}
7611	}
7612	#[inline]
7613	pub unsafe fn reserved_bits_raw(this: *const Self) -> u32 {
7614		unsafe {
7615			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7616				::std::ptr::addr_of!((*this)._bitfield_1),
7617				18usize,
7618				14u8,
7619			) as u32)
7620		}
7621	}
7622	#[inline]
7623	pub unsafe fn set_reserved_bits_raw(this: *mut Self, val: u32) {
7624		unsafe {
7625			let val: u32 = ::std::mem::transmute(val);
7626			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7627				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7628				18usize,
7629				14u8,
7630				val as u64,
7631			)
7632		}
7633	}
7634	#[inline]
7635	pub fn new_bitfield_1(
7636		chroma_format_idc: u32,
7637		separate_colour_plane_flag: u32,
7638		bit_depth_luma_minus8: u32,
7639		bit_depth_chroma_minus8: u32,
7640		scaling_list_enabled_flag: u32,
7641		strong_intra_smoothing_enabled_flag: u32,
7642		amp_enabled_flag: u32,
7643		sample_adaptive_offset_enabled_flag: u32,
7644		pcm_enabled_flag: u32,
7645		pcm_loop_filter_disabled_flag: u32,
7646		sps_temporal_mvp_enabled_flag: u32,
7647		low_delay_seq: u32,
7648		hierachical_flag: u32,
7649		reserved_bits: u32,
7650	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
7651		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
7652		__bindgen_bitfield_unit.set(0usize, 2u8, {
7653			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
7654			chroma_format_idc as u64
7655		});
7656		__bindgen_bitfield_unit.set(2usize, 1u8, {
7657			let separate_colour_plane_flag: u32 = unsafe { ::std::mem::transmute(separate_colour_plane_flag) };
7658			separate_colour_plane_flag as u64
7659		});
7660		__bindgen_bitfield_unit.set(3usize, 3u8, {
7661			let bit_depth_luma_minus8: u32 = unsafe { ::std::mem::transmute(bit_depth_luma_minus8) };
7662			bit_depth_luma_minus8 as u64
7663		});
7664		__bindgen_bitfield_unit.set(6usize, 3u8, {
7665			let bit_depth_chroma_minus8: u32 = unsafe { ::std::mem::transmute(bit_depth_chroma_minus8) };
7666			bit_depth_chroma_minus8 as u64
7667		});
7668		__bindgen_bitfield_unit.set(9usize, 1u8, {
7669			let scaling_list_enabled_flag: u32 = unsafe { ::std::mem::transmute(scaling_list_enabled_flag) };
7670			scaling_list_enabled_flag as u64
7671		});
7672		__bindgen_bitfield_unit.set(10usize, 1u8, {
7673			let strong_intra_smoothing_enabled_flag: u32 =
7674				unsafe { ::std::mem::transmute(strong_intra_smoothing_enabled_flag) };
7675			strong_intra_smoothing_enabled_flag as u64
7676		});
7677		__bindgen_bitfield_unit.set(11usize, 1u8, {
7678			let amp_enabled_flag: u32 = unsafe { ::std::mem::transmute(amp_enabled_flag) };
7679			amp_enabled_flag as u64
7680		});
7681		__bindgen_bitfield_unit.set(12usize, 1u8, {
7682			let sample_adaptive_offset_enabled_flag: u32 =
7683				unsafe { ::std::mem::transmute(sample_adaptive_offset_enabled_flag) };
7684			sample_adaptive_offset_enabled_flag as u64
7685		});
7686		__bindgen_bitfield_unit.set(13usize, 1u8, {
7687			let pcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_enabled_flag) };
7688			pcm_enabled_flag as u64
7689		});
7690		__bindgen_bitfield_unit.set(14usize, 1u8, {
7691			let pcm_loop_filter_disabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_loop_filter_disabled_flag) };
7692			pcm_loop_filter_disabled_flag as u64
7693		});
7694		__bindgen_bitfield_unit.set(15usize, 1u8, {
7695			let sps_temporal_mvp_enabled_flag: u32 = unsafe { ::std::mem::transmute(sps_temporal_mvp_enabled_flag) };
7696			sps_temporal_mvp_enabled_flag as u64
7697		});
7698		__bindgen_bitfield_unit.set(16usize, 1u8, {
7699			let low_delay_seq: u32 = unsafe { ::std::mem::transmute(low_delay_seq) };
7700			low_delay_seq as u64
7701		});
7702		__bindgen_bitfield_unit.set(17usize, 1u8, {
7703			let hierachical_flag: u32 = unsafe { ::std::mem::transmute(hierachical_flag) };
7704			hierachical_flag as u64
7705		});
7706		__bindgen_bitfield_unit.set(18usize, 14u8, {
7707			let reserved_bits: u32 = unsafe { ::std::mem::transmute(reserved_bits) };
7708			reserved_bits as u64
7709		});
7710		__bindgen_bitfield_unit
7711	}
7712}
7713impl Default for _VAEncSequenceParameterBufferHEVC__bindgen_ty_1 {
7714	fn default() -> Self {
7715		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7716		unsafe {
7717			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7718			s.assume_init()
7719		}
7720	}
7721}
7722#[repr(C)]
7723#[derive(Copy, Clone)]
7724pub union _VAEncSequenceParameterBufferHEVC__bindgen_ty_2 {
7725	pub bits: _VAEncSequenceParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1,
7726	pub value: u32,
7727}
7728#[repr(C)]
7729#[repr(align(4))]
7730#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
7731pub struct _VAEncSequenceParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
7732	pub _bitfield_align_1: [u8; 0],
7733	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
7734	pub __bindgen_padding_0: u8,
7735}
7736impl _VAEncSequenceParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
7737	#[inline]
7738	pub fn aspect_ratio_info_present_flag(&self) -> u32 {
7739		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
7740	}
7741	#[inline]
7742	pub fn set_aspect_ratio_info_present_flag(&mut self, val: u32) {
7743		unsafe {
7744			let val: u32 = ::std::mem::transmute(val);
7745			self._bitfield_1.set(0usize, 1u8, val as u64)
7746		}
7747	}
7748	#[inline]
7749	pub unsafe fn aspect_ratio_info_present_flag_raw(this: *const Self) -> u32 {
7750		unsafe {
7751			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7752				::std::ptr::addr_of!((*this)._bitfield_1),
7753				0usize,
7754				1u8,
7755			) as u32)
7756		}
7757	}
7758	#[inline]
7759	pub unsafe fn set_aspect_ratio_info_present_flag_raw(this: *mut Self, val: u32) {
7760		unsafe {
7761			let val: u32 = ::std::mem::transmute(val);
7762			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7763				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7764				0usize,
7765				1u8,
7766				val as u64,
7767			)
7768		}
7769	}
7770	#[inline]
7771	pub fn neutral_chroma_indication_flag(&self) -> u32 {
7772		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
7773	}
7774	#[inline]
7775	pub fn set_neutral_chroma_indication_flag(&mut self, val: u32) {
7776		unsafe {
7777			let val: u32 = ::std::mem::transmute(val);
7778			self._bitfield_1.set(1usize, 1u8, val as u64)
7779		}
7780	}
7781	#[inline]
7782	pub unsafe fn neutral_chroma_indication_flag_raw(this: *const Self) -> u32 {
7783		unsafe {
7784			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7785				::std::ptr::addr_of!((*this)._bitfield_1),
7786				1usize,
7787				1u8,
7788			) as u32)
7789		}
7790	}
7791	#[inline]
7792	pub unsafe fn set_neutral_chroma_indication_flag_raw(this: *mut Self, val: u32) {
7793		unsafe {
7794			let val: u32 = ::std::mem::transmute(val);
7795			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7796				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7797				1usize,
7798				1u8,
7799				val as u64,
7800			)
7801		}
7802	}
7803	#[inline]
7804	pub fn field_seq_flag(&self) -> u32 {
7805		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
7806	}
7807	#[inline]
7808	pub fn set_field_seq_flag(&mut self, val: u32) {
7809		unsafe {
7810			let val: u32 = ::std::mem::transmute(val);
7811			self._bitfield_1.set(2usize, 1u8, val as u64)
7812		}
7813	}
7814	#[inline]
7815	pub unsafe fn field_seq_flag_raw(this: *const Self) -> u32 {
7816		unsafe {
7817			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7818				::std::ptr::addr_of!((*this)._bitfield_1),
7819				2usize,
7820				1u8,
7821			) as u32)
7822		}
7823	}
7824	#[inline]
7825	pub unsafe fn set_field_seq_flag_raw(this: *mut Self, val: u32) {
7826		unsafe {
7827			let val: u32 = ::std::mem::transmute(val);
7828			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7829				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7830				2usize,
7831				1u8,
7832				val as u64,
7833			)
7834		}
7835	}
7836	#[inline]
7837	pub fn vui_timing_info_present_flag(&self) -> u32 {
7838		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
7839	}
7840	#[inline]
7841	pub fn set_vui_timing_info_present_flag(&mut self, val: u32) {
7842		unsafe {
7843			let val: u32 = ::std::mem::transmute(val);
7844			self._bitfield_1.set(3usize, 1u8, val as u64)
7845		}
7846	}
7847	#[inline]
7848	pub unsafe fn vui_timing_info_present_flag_raw(this: *const Self) -> u32 {
7849		unsafe {
7850			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7851				::std::ptr::addr_of!((*this)._bitfield_1),
7852				3usize,
7853				1u8,
7854			) as u32)
7855		}
7856	}
7857	#[inline]
7858	pub unsafe fn set_vui_timing_info_present_flag_raw(this: *mut Self, val: u32) {
7859		unsafe {
7860			let val: u32 = ::std::mem::transmute(val);
7861			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7862				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7863				3usize,
7864				1u8,
7865				val as u64,
7866			)
7867		}
7868	}
7869	#[inline]
7870	pub fn bitstream_restriction_flag(&self) -> u32 {
7871		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
7872	}
7873	#[inline]
7874	pub fn set_bitstream_restriction_flag(&mut self, val: u32) {
7875		unsafe {
7876			let val: u32 = ::std::mem::transmute(val);
7877			self._bitfield_1.set(4usize, 1u8, val as u64)
7878		}
7879	}
7880	#[inline]
7881	pub unsafe fn bitstream_restriction_flag_raw(this: *const Self) -> u32 {
7882		unsafe {
7883			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7884				::std::ptr::addr_of!((*this)._bitfield_1),
7885				4usize,
7886				1u8,
7887			) as u32)
7888		}
7889	}
7890	#[inline]
7891	pub unsafe fn set_bitstream_restriction_flag_raw(this: *mut Self, val: u32) {
7892		unsafe {
7893			let val: u32 = ::std::mem::transmute(val);
7894			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7895				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7896				4usize,
7897				1u8,
7898				val as u64,
7899			)
7900		}
7901	}
7902	#[inline]
7903	pub fn tiles_fixed_structure_flag(&self) -> u32 {
7904		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
7905	}
7906	#[inline]
7907	pub fn set_tiles_fixed_structure_flag(&mut self, val: u32) {
7908		unsafe {
7909			let val: u32 = ::std::mem::transmute(val);
7910			self._bitfield_1.set(5usize, 1u8, val as u64)
7911		}
7912	}
7913	#[inline]
7914	pub unsafe fn tiles_fixed_structure_flag_raw(this: *const Self) -> u32 {
7915		unsafe {
7916			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7917				::std::ptr::addr_of!((*this)._bitfield_1),
7918				5usize,
7919				1u8,
7920			) as u32)
7921		}
7922	}
7923	#[inline]
7924	pub unsafe fn set_tiles_fixed_structure_flag_raw(this: *mut Self, val: u32) {
7925		unsafe {
7926			let val: u32 = ::std::mem::transmute(val);
7927			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7928				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7929				5usize,
7930				1u8,
7931				val as u64,
7932			)
7933		}
7934	}
7935	#[inline]
7936	pub fn motion_vectors_over_pic_boundaries_flag(&self) -> u32 {
7937		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
7938	}
7939	#[inline]
7940	pub fn set_motion_vectors_over_pic_boundaries_flag(&mut self, val: u32) {
7941		unsafe {
7942			let val: u32 = ::std::mem::transmute(val);
7943			self._bitfield_1.set(6usize, 1u8, val as u64)
7944		}
7945	}
7946	#[inline]
7947	pub unsafe fn motion_vectors_over_pic_boundaries_flag_raw(this: *const Self) -> u32 {
7948		unsafe {
7949			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7950				::std::ptr::addr_of!((*this)._bitfield_1),
7951				6usize,
7952				1u8,
7953			) as u32)
7954		}
7955	}
7956	#[inline]
7957	pub unsafe fn set_motion_vectors_over_pic_boundaries_flag_raw(this: *mut Self, val: u32) {
7958		unsafe {
7959			let val: u32 = ::std::mem::transmute(val);
7960			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7961				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7962				6usize,
7963				1u8,
7964				val as u64,
7965			)
7966		}
7967	}
7968	#[inline]
7969	pub fn restricted_ref_pic_lists_flag(&self) -> u32 {
7970		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
7971	}
7972	#[inline]
7973	pub fn set_restricted_ref_pic_lists_flag(&mut self, val: u32) {
7974		unsafe {
7975			let val: u32 = ::std::mem::transmute(val);
7976			self._bitfield_1.set(7usize, 1u8, val as u64)
7977		}
7978	}
7979	#[inline]
7980	pub unsafe fn restricted_ref_pic_lists_flag_raw(this: *const Self) -> u32 {
7981		unsafe {
7982			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
7983				::std::ptr::addr_of!((*this)._bitfield_1),
7984				7usize,
7985				1u8,
7986			) as u32)
7987		}
7988	}
7989	#[inline]
7990	pub unsafe fn set_restricted_ref_pic_lists_flag_raw(this: *mut Self, val: u32) {
7991		unsafe {
7992			let val: u32 = ::std::mem::transmute(val);
7993			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
7994				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7995				7usize,
7996				1u8,
7997				val as u64,
7998			)
7999		}
8000	}
8001	#[inline]
8002	pub fn log2_max_mv_length_horizontal(&self) -> u32 {
8003		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) }
8004	}
8005	#[inline]
8006	pub fn set_log2_max_mv_length_horizontal(&mut self, val: u32) {
8007		unsafe {
8008			let val: u32 = ::std::mem::transmute(val);
8009			self._bitfield_1.set(8usize, 5u8, val as u64)
8010		}
8011	}
8012	#[inline]
8013	pub unsafe fn log2_max_mv_length_horizontal_raw(this: *const Self) -> u32 {
8014		unsafe {
8015			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
8016				::std::ptr::addr_of!((*this)._bitfield_1),
8017				8usize,
8018				5u8,
8019			) as u32)
8020		}
8021	}
8022	#[inline]
8023	pub unsafe fn set_log2_max_mv_length_horizontal_raw(this: *mut Self, val: u32) {
8024		unsafe {
8025			let val: u32 = ::std::mem::transmute(val);
8026			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
8027				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8028				8usize,
8029				5u8,
8030				val as u64,
8031			)
8032		}
8033	}
8034	#[inline]
8035	pub fn log2_max_mv_length_vertical(&self) -> u32 {
8036		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 5u8) as u32) }
8037	}
8038	#[inline]
8039	pub fn set_log2_max_mv_length_vertical(&mut self, val: u32) {
8040		unsafe {
8041			let val: u32 = ::std::mem::transmute(val);
8042			self._bitfield_1.set(13usize, 5u8, val as u64)
8043		}
8044	}
8045	#[inline]
8046	pub unsafe fn log2_max_mv_length_vertical_raw(this: *const Self) -> u32 {
8047		unsafe {
8048			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
8049				::std::ptr::addr_of!((*this)._bitfield_1),
8050				13usize,
8051				5u8,
8052			) as u32)
8053		}
8054	}
8055	#[inline]
8056	pub unsafe fn set_log2_max_mv_length_vertical_raw(this: *mut Self, val: u32) {
8057		unsafe {
8058			let val: u32 = ::std::mem::transmute(val);
8059			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
8060				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8061				13usize,
8062				5u8,
8063				val as u64,
8064			)
8065		}
8066	}
8067	#[inline]
8068	pub fn new_bitfield_1(
8069		aspect_ratio_info_present_flag: u32,
8070		neutral_chroma_indication_flag: u32,
8071		field_seq_flag: u32,
8072		vui_timing_info_present_flag: u32,
8073		bitstream_restriction_flag: u32,
8074		tiles_fixed_structure_flag: u32,
8075		motion_vectors_over_pic_boundaries_flag: u32,
8076		restricted_ref_pic_lists_flag: u32,
8077		log2_max_mv_length_horizontal: u32,
8078		log2_max_mv_length_vertical: u32,
8079	) -> __BindgenBitfieldUnit<[u8; 3usize]> {
8080		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
8081		__bindgen_bitfield_unit.set(0usize, 1u8, {
8082			let aspect_ratio_info_present_flag: u32 = unsafe { ::std::mem::transmute(aspect_ratio_info_present_flag) };
8083			aspect_ratio_info_present_flag as u64
8084		});
8085		__bindgen_bitfield_unit.set(1usize, 1u8, {
8086			let neutral_chroma_indication_flag: u32 = unsafe { ::std::mem::transmute(neutral_chroma_indication_flag) };
8087			neutral_chroma_indication_flag as u64
8088		});
8089		__bindgen_bitfield_unit.set(2usize, 1u8, {
8090			let field_seq_flag: u32 = unsafe { ::std::mem::transmute(field_seq_flag) };
8091			field_seq_flag as u64
8092		});
8093		__bindgen_bitfield_unit.set(3usize, 1u8, {
8094			let vui_timing_info_present_flag: u32 = unsafe { ::std::mem::transmute(vui_timing_info_present_flag) };
8095			vui_timing_info_present_flag as u64
8096		});
8097		__bindgen_bitfield_unit.set(4usize, 1u8, {
8098			let bitstream_restriction_flag: u32 = unsafe { ::std::mem::transmute(bitstream_restriction_flag) };
8099			bitstream_restriction_flag as u64
8100		});
8101		__bindgen_bitfield_unit.set(5usize, 1u8, {
8102			let tiles_fixed_structure_flag: u32 = unsafe { ::std::mem::transmute(tiles_fixed_structure_flag) };
8103			tiles_fixed_structure_flag as u64
8104		});
8105		__bindgen_bitfield_unit.set(6usize, 1u8, {
8106			let motion_vectors_over_pic_boundaries_flag: u32 =
8107				unsafe { ::std::mem::transmute(motion_vectors_over_pic_boundaries_flag) };
8108			motion_vectors_over_pic_boundaries_flag as u64
8109		});
8110		__bindgen_bitfield_unit.set(7usize, 1u8, {
8111			let restricted_ref_pic_lists_flag: u32 = unsafe { ::std::mem::transmute(restricted_ref_pic_lists_flag) };
8112			restricted_ref_pic_lists_flag as u64
8113		});
8114		__bindgen_bitfield_unit.set(8usize, 5u8, {
8115			let log2_max_mv_length_horizontal: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_horizontal) };
8116			log2_max_mv_length_horizontal as u64
8117		});
8118		__bindgen_bitfield_unit.set(13usize, 5u8, {
8119			let log2_max_mv_length_vertical: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_vertical) };
8120			log2_max_mv_length_vertical as u64
8121		});
8122		__bindgen_bitfield_unit
8123	}
8124}
8125impl Default for _VAEncSequenceParameterBufferHEVC__bindgen_ty_2 {
8126	fn default() -> Self {
8127		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
8128		unsafe {
8129			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
8130			s.assume_init()
8131		}
8132	}
8133}
8134#[doc = " \\brief SCC flags to enable/disable features, including IBC and palette mode at present."]
8135#[repr(C)]
8136#[derive(Copy, Clone)]
8137pub union _VAEncSequenceParameterBufferHEVC__bindgen_ty_3 {
8138	pub bits: _VAEncSequenceParameterBufferHEVC__bindgen_ty_3__bindgen_ty_1,
8139	pub value: u32,
8140}
8141#[repr(C)]
8142#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
8143pub struct _VAEncSequenceParameterBufferHEVC__bindgen_ty_3__bindgen_ty_1 {
8144	pub _bitfield_align_1: [u32; 0],
8145	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
8146}
8147impl _VAEncSequenceParameterBufferHEVC__bindgen_ty_3__bindgen_ty_1 {
8148	#[inline]
8149	pub fn palette_mode_enabled_flag(&self) -> u32 {
8150		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
8151	}
8152	#[inline]
8153	pub fn set_palette_mode_enabled_flag(&mut self, val: u32) {
8154		unsafe {
8155			let val: u32 = ::std::mem::transmute(val);
8156			self._bitfield_1.set(0usize, 1u8, val as u64)
8157		}
8158	}
8159	#[inline]
8160	pub unsafe fn palette_mode_enabled_flag_raw(this: *const Self) -> u32 {
8161		unsafe {
8162			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8163				::std::ptr::addr_of!((*this)._bitfield_1),
8164				0usize,
8165				1u8,
8166			) as u32)
8167		}
8168	}
8169	#[inline]
8170	pub unsafe fn set_palette_mode_enabled_flag_raw(this: *mut Self, val: u32) {
8171		unsafe {
8172			let val: u32 = ::std::mem::transmute(val);
8173			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8174				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8175				0usize,
8176				1u8,
8177				val as u64,
8178			)
8179		}
8180	}
8181	#[inline]
8182	pub fn reserved(&self) -> u32 {
8183		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) }
8184	}
8185	#[inline]
8186	pub fn set_reserved(&mut self, val: u32) {
8187		unsafe {
8188			let val: u32 = ::std::mem::transmute(val);
8189			self._bitfield_1.set(1usize, 31u8, val as u64)
8190		}
8191	}
8192	#[inline]
8193	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
8194		unsafe {
8195			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8196				::std::ptr::addr_of!((*this)._bitfield_1),
8197				1usize,
8198				31u8,
8199			) as u32)
8200		}
8201	}
8202	#[inline]
8203	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
8204		unsafe {
8205			let val: u32 = ::std::mem::transmute(val);
8206			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8207				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8208				1usize,
8209				31u8,
8210				val as u64,
8211			)
8212		}
8213	}
8214	#[inline]
8215	pub fn new_bitfield_1(palette_mode_enabled_flag: u32, reserved: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
8216		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
8217		__bindgen_bitfield_unit.set(0usize, 1u8, {
8218			let palette_mode_enabled_flag: u32 = unsafe { ::std::mem::transmute(palette_mode_enabled_flag) };
8219			palette_mode_enabled_flag as u64
8220		});
8221		__bindgen_bitfield_unit.set(1usize, 31u8, {
8222			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
8223			reserved as u64
8224		});
8225		__bindgen_bitfield_unit
8226	}
8227}
8228impl Default for _VAEncSequenceParameterBufferHEVC__bindgen_ty_3 {
8229	fn default() -> Self {
8230		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
8231		unsafe {
8232			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
8233			s.assume_init()
8234		}
8235	}
8236}
8237impl Default for _VAEncSequenceParameterBufferHEVC {
8238	fn default() -> Self {
8239		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
8240		unsafe {
8241			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
8242			s.assume_init()
8243		}
8244	}
8245}
8246#[doc = " \\brief Sequence parameter for HEVC encoding in main & main 10\n profiles.\n\n This structure holds information for \\c seq_parameter_set_data() as\n defined by the HEVC specification.\n\n If packed sequence headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SEQUENCE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSequence ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c seq_scaling_matrix_present_flag is set to \\c 1, then a\n #VAQMatrixBufferHEVC buffer shall also be provided within the same\n \\c vaRenderPicture() call as this sequence parameter buffer."]
8247pub type VAEncSequenceParameterBufferHEVC = _VAEncSequenceParameterBufferHEVC;
8248#[doc = " HEVC data structures\n/\n/**\n \\brief Picture parameter for HEVC encoding in main & main 10\n profiles.\n\n This structure holds information for \\c pic_parameter_set_rbsp() as\n defined by the HEVC specification.\n\n If packed picture headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_PICTURE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderPicture ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c pic_scaling_matrix_present_flag is set to \\c 1, then a\n #VAQMatrixBufferHEVC buffer shall also be provided within the same\n \\c vaRenderPicture() call as this picture parameter buffer."]
8249#[repr(C)]
8250#[derive(Copy, Clone)]
8251pub struct _VAEncPictureParameterBufferHEVC {
8252	#[doc = " \\brief Information about the picture to be encoded.\n\n See #VAPictureHEVC for further description of each field.\n Note that decoded_curr_pic.picture_id represents the reconstructed\n (decoded) picture. User provides a scratch VA surface ID here.\n Long term reference and RPS related fields should be set to 0\n and ignored."]
8253	pub decoded_curr_pic: VAPictureHEVC,
8254	#[doc = " \\brief Decoded Picture Buffer (DPB).\n\n This array represents the list of reconstructed (decoded)\n frames used as reference. It is important to keep track of\n reconstructed frames so that they can be used later on as\n reference for P or B-frames encoding."]
8255	pub reference_frames: [VAPictureHEVC; 15usize],
8256	#[doc = " \\brief Output encoded bitstream.\n\n \\ref coded_buf has type #VAEncCodedBufferType. It should be\n large enough to hold the compressed NAL slice and possibly VPS, SPS\n and PPS NAL units, and other NAL units such as SEI."]
8257	pub coded_buf: VABufferID,
8258	#[doc = " \\brief collocated reference picture buffer index of ReferenceFrames[].\n Please note it is different from HEVC syntac element collocated_ref_idx.\n When  the HEVC syntax element slice_temporal_mvp_enable_flag takes value 0,\n collocated_ref_pic_index should take value 0xFF. .\n Range: [0..14, 0xFF]"]
8259	pub collocated_ref_pic_index: u8,
8260	#[doc = " \\brief OR'd flags describing whether the picture is the last one or not.\n\n This fields holds 0 if the picture to be encoded is not the last\n one in the stream or sequence. Otherwise, it is a combination of\n \\ref HEVC_LAST_PICTURE_EOSEQ or \\ref HEVC_LAST_PICTURE_EOSTREAM."]
8261	pub last_picture: u8,
8262	#[doc = " \\brief \\c init_qp_minus26 + 26."]
8263	pub pic_init_qp: u8,
8264	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8265	pub diff_cu_qp_delta_depth: u8,
8266	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8267	pub pps_cb_qp_offset: i8,
8268	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8269	pub pps_cr_qp_offset: i8,
8270	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8271	pub num_tile_columns_minus1: u8,
8272	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8273	pub num_tile_rows_minus1: u8,
8274	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8275	pub column_width_minus1: [u8; 19usize],
8276	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8277	pub row_height_minus1: [u8; 21usize],
8278	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
8279	pub log2_parallel_merge_level_minus2: u8,
8280	#[doc = " \\brief Application may set the CTU bit size limit based on\n  spec requirement (A.3.2), or other value for special purpose.\n  If the value is set 0, no bit size limit is checked."]
8281	pub ctu_max_bitsize_allowed: u8,
8282	#[doc = " \\brief Maximum reference index for reference picture list 0.\n   value range: [0..14]."]
8283	pub num_ref_idx_l0_default_active_minus1: u8,
8284	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  value range: [0..14]."]
8285	pub num_ref_idx_l1_default_active_minus1: u8,
8286	#[doc = " \\brief PPS header\n  Used by GPU to generate new slice headers in slice size control.\n  value range: [0..63]."]
8287	pub slice_pic_parameter_set_id: u8,
8288	#[doc = " \\brief NAL unit type\n  Used by GPU to generate new slice headers in slice size control.\n  value range: [0..63]."]
8289	pub nal_unit_type: u8,
8290	pub pic_fields: _VAEncPictureParameterBufferHEVC__bindgen_ty_1,
8291	#[doc = " \\brief When hierachical_level_plus1 > 0, hierachical_level_plus1-1 indicates\nthe current frame's level.when it > 0. B1, B2 setting in CodingType can be treated as B,\nhirachical level is determined by this variable.When hierachical_level_plus1  == 0,\nhierarchical level information still comes from coding_type."]
8292	pub hierarchical_level_plus1: u8,
8293	#[doc = " \\brief Reserved bytes for future use, must be zero"]
8294	pub va_byte_reserved: u8,
8295	pub scc_fields: _VAEncPictureParameterBufferHEVC__bindgen_ty_2,
8296	#[doc = " \\brief Reserved bytes for future use, must be zero"]
8297	pub va_reserved: [u32; 15usize],
8298}
8299#[repr(C)]
8300#[derive(Copy, Clone)]
8301pub union _VAEncPictureParameterBufferHEVC__bindgen_ty_1 {
8302	pub bits: _VAEncPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
8303	pub value: u32,
8304}
8305#[repr(C)]
8306#[repr(align(4))]
8307#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
8308pub struct _VAEncPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
8309	pub _bitfield_align_1: [u16; 0],
8310	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
8311}
8312impl _VAEncPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
8313	#[inline]
8314	pub fn idr_pic_flag(&self) -> u32 {
8315		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
8316	}
8317	#[inline]
8318	pub fn set_idr_pic_flag(&mut self, val: u32) {
8319		unsafe {
8320			let val: u32 = ::std::mem::transmute(val);
8321			self._bitfield_1.set(0usize, 1u8, val as u64)
8322		}
8323	}
8324	#[inline]
8325	pub unsafe fn idr_pic_flag_raw(this: *const Self) -> u32 {
8326		unsafe {
8327			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8328				::std::ptr::addr_of!((*this)._bitfield_1),
8329				0usize,
8330				1u8,
8331			) as u32)
8332		}
8333	}
8334	#[inline]
8335	pub unsafe fn set_idr_pic_flag_raw(this: *mut Self, val: u32) {
8336		unsafe {
8337			let val: u32 = ::std::mem::transmute(val);
8338			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8339				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8340				0usize,
8341				1u8,
8342				val as u64,
8343			)
8344		}
8345	}
8346	#[inline]
8347	pub fn coding_type(&self) -> u32 {
8348		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u32) }
8349	}
8350	#[inline]
8351	pub fn set_coding_type(&mut self, val: u32) {
8352		unsafe {
8353			let val: u32 = ::std::mem::transmute(val);
8354			self._bitfield_1.set(1usize, 3u8, val as u64)
8355		}
8356	}
8357	#[inline]
8358	pub unsafe fn coding_type_raw(this: *const Self) -> u32 {
8359		unsafe {
8360			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8361				::std::ptr::addr_of!((*this)._bitfield_1),
8362				1usize,
8363				3u8,
8364			) as u32)
8365		}
8366	}
8367	#[inline]
8368	pub unsafe fn set_coding_type_raw(this: *mut Self, val: u32) {
8369		unsafe {
8370			let val: u32 = ::std::mem::transmute(val);
8371			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8372				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8373				1usize,
8374				3u8,
8375				val as u64,
8376			)
8377		}
8378	}
8379	#[inline]
8380	pub fn reference_pic_flag(&self) -> u32 {
8381		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
8382	}
8383	#[inline]
8384	pub fn set_reference_pic_flag(&mut self, val: u32) {
8385		unsafe {
8386			let val: u32 = ::std::mem::transmute(val);
8387			self._bitfield_1.set(4usize, 1u8, val as u64)
8388		}
8389	}
8390	#[inline]
8391	pub unsafe fn reference_pic_flag_raw(this: *const Self) -> u32 {
8392		unsafe {
8393			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8394				::std::ptr::addr_of!((*this)._bitfield_1),
8395				4usize,
8396				1u8,
8397			) as u32)
8398		}
8399	}
8400	#[inline]
8401	pub unsafe fn set_reference_pic_flag_raw(this: *mut Self, val: u32) {
8402		unsafe {
8403			let val: u32 = ::std::mem::transmute(val);
8404			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8405				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8406				4usize,
8407				1u8,
8408				val as u64,
8409			)
8410		}
8411	}
8412	#[inline]
8413	pub fn dependent_slice_segments_enabled_flag(&self) -> u32 {
8414		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
8415	}
8416	#[inline]
8417	pub fn set_dependent_slice_segments_enabled_flag(&mut self, val: u32) {
8418		unsafe {
8419			let val: u32 = ::std::mem::transmute(val);
8420			self._bitfield_1.set(5usize, 1u8, val as u64)
8421		}
8422	}
8423	#[inline]
8424	pub unsafe fn dependent_slice_segments_enabled_flag_raw(this: *const Self) -> u32 {
8425		unsafe {
8426			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8427				::std::ptr::addr_of!((*this)._bitfield_1),
8428				5usize,
8429				1u8,
8430			) as u32)
8431		}
8432	}
8433	#[inline]
8434	pub unsafe fn set_dependent_slice_segments_enabled_flag_raw(this: *mut Self, val: u32) {
8435		unsafe {
8436			let val: u32 = ::std::mem::transmute(val);
8437			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8438				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8439				5usize,
8440				1u8,
8441				val as u64,
8442			)
8443		}
8444	}
8445	#[inline]
8446	pub fn sign_data_hiding_enabled_flag(&self) -> u32 {
8447		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
8448	}
8449	#[inline]
8450	pub fn set_sign_data_hiding_enabled_flag(&mut self, val: u32) {
8451		unsafe {
8452			let val: u32 = ::std::mem::transmute(val);
8453			self._bitfield_1.set(6usize, 1u8, val as u64)
8454		}
8455	}
8456	#[inline]
8457	pub unsafe fn sign_data_hiding_enabled_flag_raw(this: *const Self) -> u32 {
8458		unsafe {
8459			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8460				::std::ptr::addr_of!((*this)._bitfield_1),
8461				6usize,
8462				1u8,
8463			) as u32)
8464		}
8465	}
8466	#[inline]
8467	pub unsafe fn set_sign_data_hiding_enabled_flag_raw(this: *mut Self, val: u32) {
8468		unsafe {
8469			let val: u32 = ::std::mem::transmute(val);
8470			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8471				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8472				6usize,
8473				1u8,
8474				val as u64,
8475			)
8476		}
8477	}
8478	#[inline]
8479	pub fn constrained_intra_pred_flag(&self) -> u32 {
8480		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
8481	}
8482	#[inline]
8483	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
8484		unsafe {
8485			let val: u32 = ::std::mem::transmute(val);
8486			self._bitfield_1.set(7usize, 1u8, val as u64)
8487		}
8488	}
8489	#[inline]
8490	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
8491		unsafe {
8492			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8493				::std::ptr::addr_of!((*this)._bitfield_1),
8494				7usize,
8495				1u8,
8496			) as u32)
8497		}
8498	}
8499	#[inline]
8500	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
8501		unsafe {
8502			let val: u32 = ::std::mem::transmute(val);
8503			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8504				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8505				7usize,
8506				1u8,
8507				val as u64,
8508			)
8509		}
8510	}
8511	#[inline]
8512	pub fn transform_skip_enabled_flag(&self) -> u32 {
8513		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
8514	}
8515	#[inline]
8516	pub fn set_transform_skip_enabled_flag(&mut self, val: u32) {
8517		unsafe {
8518			let val: u32 = ::std::mem::transmute(val);
8519			self._bitfield_1.set(8usize, 1u8, val as u64)
8520		}
8521	}
8522	#[inline]
8523	pub unsafe fn transform_skip_enabled_flag_raw(this: *const Self) -> u32 {
8524		unsafe {
8525			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8526				::std::ptr::addr_of!((*this)._bitfield_1),
8527				8usize,
8528				1u8,
8529			) as u32)
8530		}
8531	}
8532	#[inline]
8533	pub unsafe fn set_transform_skip_enabled_flag_raw(this: *mut Self, val: u32) {
8534		unsafe {
8535			let val: u32 = ::std::mem::transmute(val);
8536			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8537				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8538				8usize,
8539				1u8,
8540				val as u64,
8541			)
8542		}
8543	}
8544	#[inline]
8545	pub fn cu_qp_delta_enabled_flag(&self) -> u32 {
8546		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
8547	}
8548	#[inline]
8549	pub fn set_cu_qp_delta_enabled_flag(&mut self, val: u32) {
8550		unsafe {
8551			let val: u32 = ::std::mem::transmute(val);
8552			self._bitfield_1.set(9usize, 1u8, val as u64)
8553		}
8554	}
8555	#[inline]
8556	pub unsafe fn cu_qp_delta_enabled_flag_raw(this: *const Self) -> u32 {
8557		unsafe {
8558			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8559				::std::ptr::addr_of!((*this)._bitfield_1),
8560				9usize,
8561				1u8,
8562			) as u32)
8563		}
8564	}
8565	#[inline]
8566	pub unsafe fn set_cu_qp_delta_enabled_flag_raw(this: *mut Self, val: u32) {
8567		unsafe {
8568			let val: u32 = ::std::mem::transmute(val);
8569			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8570				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8571				9usize,
8572				1u8,
8573				val as u64,
8574			)
8575		}
8576	}
8577	#[inline]
8578	pub fn weighted_pred_flag(&self) -> u32 {
8579		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
8580	}
8581	#[inline]
8582	pub fn set_weighted_pred_flag(&mut self, val: u32) {
8583		unsafe {
8584			let val: u32 = ::std::mem::transmute(val);
8585			self._bitfield_1.set(10usize, 1u8, val as u64)
8586		}
8587	}
8588	#[inline]
8589	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
8590		unsafe {
8591			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8592				::std::ptr::addr_of!((*this)._bitfield_1),
8593				10usize,
8594				1u8,
8595			) as u32)
8596		}
8597	}
8598	#[inline]
8599	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
8600		unsafe {
8601			let val: u32 = ::std::mem::transmute(val);
8602			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8603				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8604				10usize,
8605				1u8,
8606				val as u64,
8607			)
8608		}
8609	}
8610	#[inline]
8611	pub fn weighted_bipred_flag(&self) -> u32 {
8612		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
8613	}
8614	#[inline]
8615	pub fn set_weighted_bipred_flag(&mut self, val: u32) {
8616		unsafe {
8617			let val: u32 = ::std::mem::transmute(val);
8618			self._bitfield_1.set(11usize, 1u8, val as u64)
8619		}
8620	}
8621	#[inline]
8622	pub unsafe fn weighted_bipred_flag_raw(this: *const Self) -> u32 {
8623		unsafe {
8624			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8625				::std::ptr::addr_of!((*this)._bitfield_1),
8626				11usize,
8627				1u8,
8628			) as u32)
8629		}
8630	}
8631	#[inline]
8632	pub unsafe fn set_weighted_bipred_flag_raw(this: *mut Self, val: u32) {
8633		unsafe {
8634			let val: u32 = ::std::mem::transmute(val);
8635			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8636				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8637				11usize,
8638				1u8,
8639				val as u64,
8640			)
8641		}
8642	}
8643	#[inline]
8644	pub fn transquant_bypass_enabled_flag(&self) -> u32 {
8645		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
8646	}
8647	#[inline]
8648	pub fn set_transquant_bypass_enabled_flag(&mut self, val: u32) {
8649		unsafe {
8650			let val: u32 = ::std::mem::transmute(val);
8651			self._bitfield_1.set(12usize, 1u8, val as u64)
8652		}
8653	}
8654	#[inline]
8655	pub unsafe fn transquant_bypass_enabled_flag_raw(this: *const Self) -> u32 {
8656		unsafe {
8657			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8658				::std::ptr::addr_of!((*this)._bitfield_1),
8659				12usize,
8660				1u8,
8661			) as u32)
8662		}
8663	}
8664	#[inline]
8665	pub unsafe fn set_transquant_bypass_enabled_flag_raw(this: *mut Self, val: u32) {
8666		unsafe {
8667			let val: u32 = ::std::mem::transmute(val);
8668			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8669				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8670				12usize,
8671				1u8,
8672				val as u64,
8673			)
8674		}
8675	}
8676	#[inline]
8677	pub fn tiles_enabled_flag(&self) -> u32 {
8678		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
8679	}
8680	#[inline]
8681	pub fn set_tiles_enabled_flag(&mut self, val: u32) {
8682		unsafe {
8683			let val: u32 = ::std::mem::transmute(val);
8684			self._bitfield_1.set(13usize, 1u8, val as u64)
8685		}
8686	}
8687	#[inline]
8688	pub unsafe fn tiles_enabled_flag_raw(this: *const Self) -> u32 {
8689		unsafe {
8690			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8691				::std::ptr::addr_of!((*this)._bitfield_1),
8692				13usize,
8693				1u8,
8694			) as u32)
8695		}
8696	}
8697	#[inline]
8698	pub unsafe fn set_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
8699		unsafe {
8700			let val: u32 = ::std::mem::transmute(val);
8701			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8702				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8703				13usize,
8704				1u8,
8705				val as u64,
8706			)
8707		}
8708	}
8709	#[inline]
8710	pub fn entropy_coding_sync_enabled_flag(&self) -> u32 {
8711		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
8712	}
8713	#[inline]
8714	pub fn set_entropy_coding_sync_enabled_flag(&mut self, val: u32) {
8715		unsafe {
8716			let val: u32 = ::std::mem::transmute(val);
8717			self._bitfield_1.set(14usize, 1u8, val as u64)
8718		}
8719	}
8720	#[inline]
8721	pub unsafe fn entropy_coding_sync_enabled_flag_raw(this: *const Self) -> u32 {
8722		unsafe {
8723			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8724				::std::ptr::addr_of!((*this)._bitfield_1),
8725				14usize,
8726				1u8,
8727			) as u32)
8728		}
8729	}
8730	#[inline]
8731	pub unsafe fn set_entropy_coding_sync_enabled_flag_raw(this: *mut Self, val: u32) {
8732		unsafe {
8733			let val: u32 = ::std::mem::transmute(val);
8734			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8735				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8736				14usize,
8737				1u8,
8738				val as u64,
8739			)
8740		}
8741	}
8742	#[inline]
8743	pub fn loop_filter_across_tiles_enabled_flag(&self) -> u32 {
8744		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
8745	}
8746	#[inline]
8747	pub fn set_loop_filter_across_tiles_enabled_flag(&mut self, val: u32) {
8748		unsafe {
8749			let val: u32 = ::std::mem::transmute(val);
8750			self._bitfield_1.set(15usize, 1u8, val as u64)
8751		}
8752	}
8753	#[inline]
8754	pub unsafe fn loop_filter_across_tiles_enabled_flag_raw(this: *const Self) -> u32 {
8755		unsafe {
8756			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8757				::std::ptr::addr_of!((*this)._bitfield_1),
8758				15usize,
8759				1u8,
8760			) as u32)
8761		}
8762	}
8763	#[inline]
8764	pub unsafe fn set_loop_filter_across_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
8765		unsafe {
8766			let val: u32 = ::std::mem::transmute(val);
8767			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8768				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8769				15usize,
8770				1u8,
8771				val as u64,
8772			)
8773		}
8774	}
8775	#[inline]
8776	pub fn pps_loop_filter_across_slices_enabled_flag(&self) -> u32 {
8777		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
8778	}
8779	#[inline]
8780	pub fn set_pps_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
8781		unsafe {
8782			let val: u32 = ::std::mem::transmute(val);
8783			self._bitfield_1.set(16usize, 1u8, val as u64)
8784		}
8785	}
8786	#[inline]
8787	pub unsafe fn pps_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
8788		unsafe {
8789			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8790				::std::ptr::addr_of!((*this)._bitfield_1),
8791				16usize,
8792				1u8,
8793			) as u32)
8794		}
8795	}
8796	#[inline]
8797	pub unsafe fn set_pps_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
8798		unsafe {
8799			let val: u32 = ::std::mem::transmute(val);
8800			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8801				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8802				16usize,
8803				1u8,
8804				val as u64,
8805			)
8806		}
8807	}
8808	#[inline]
8809	pub fn scaling_list_data_present_flag(&self) -> u32 {
8810		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
8811	}
8812	#[inline]
8813	pub fn set_scaling_list_data_present_flag(&mut self, val: u32) {
8814		unsafe {
8815			let val: u32 = ::std::mem::transmute(val);
8816			self._bitfield_1.set(17usize, 1u8, val as u64)
8817		}
8818	}
8819	#[inline]
8820	pub unsafe fn scaling_list_data_present_flag_raw(this: *const Self) -> u32 {
8821		unsafe {
8822			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8823				::std::ptr::addr_of!((*this)._bitfield_1),
8824				17usize,
8825				1u8,
8826			) as u32)
8827		}
8828	}
8829	#[inline]
8830	pub unsafe fn set_scaling_list_data_present_flag_raw(this: *mut Self, val: u32) {
8831		unsafe {
8832			let val: u32 = ::std::mem::transmute(val);
8833			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8834				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8835				17usize,
8836				1u8,
8837				val as u64,
8838			)
8839		}
8840	}
8841	#[inline]
8842	pub fn screen_content_flag(&self) -> u32 {
8843		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
8844	}
8845	#[inline]
8846	pub fn set_screen_content_flag(&mut self, val: u32) {
8847		unsafe {
8848			let val: u32 = ::std::mem::transmute(val);
8849			self._bitfield_1.set(18usize, 1u8, val as u64)
8850		}
8851	}
8852	#[inline]
8853	pub unsafe fn screen_content_flag_raw(this: *const Self) -> u32 {
8854		unsafe {
8855			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8856				::std::ptr::addr_of!((*this)._bitfield_1),
8857				18usize,
8858				1u8,
8859			) as u32)
8860		}
8861	}
8862	#[inline]
8863	pub unsafe fn set_screen_content_flag_raw(this: *mut Self, val: u32) {
8864		unsafe {
8865			let val: u32 = ::std::mem::transmute(val);
8866			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8867				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8868				18usize,
8869				1u8,
8870				val as u64,
8871			)
8872		}
8873	}
8874	#[inline]
8875	pub fn enable_gpu_weighted_prediction(&self) -> u32 {
8876		unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) }
8877	}
8878	#[inline]
8879	pub fn set_enable_gpu_weighted_prediction(&mut self, val: u32) {
8880		unsafe {
8881			let val: u32 = ::std::mem::transmute(val);
8882			self._bitfield_1.set(19usize, 1u8, val as u64)
8883		}
8884	}
8885	#[inline]
8886	pub unsafe fn enable_gpu_weighted_prediction_raw(this: *const Self) -> u32 {
8887		unsafe {
8888			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8889				::std::ptr::addr_of!((*this)._bitfield_1),
8890				19usize,
8891				1u8,
8892			) as u32)
8893		}
8894	}
8895	#[inline]
8896	pub unsafe fn set_enable_gpu_weighted_prediction_raw(this: *mut Self, val: u32) {
8897		unsafe {
8898			let val: u32 = ::std::mem::transmute(val);
8899			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8900				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8901				19usize,
8902				1u8,
8903				val as u64,
8904			)
8905		}
8906	}
8907	#[inline]
8908	pub fn no_output_of_prior_pics_flag(&self) -> u32 {
8909		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) }
8910	}
8911	#[inline]
8912	pub fn set_no_output_of_prior_pics_flag(&mut self, val: u32) {
8913		unsafe {
8914			let val: u32 = ::std::mem::transmute(val);
8915			self._bitfield_1.set(20usize, 1u8, val as u64)
8916		}
8917	}
8918	#[inline]
8919	pub unsafe fn no_output_of_prior_pics_flag_raw(this: *const Self) -> u32 {
8920		unsafe {
8921			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8922				::std::ptr::addr_of!((*this)._bitfield_1),
8923				20usize,
8924				1u8,
8925			) as u32)
8926		}
8927	}
8928	#[inline]
8929	pub unsafe fn set_no_output_of_prior_pics_flag_raw(this: *mut Self, val: u32) {
8930		unsafe {
8931			let val: u32 = ::std::mem::transmute(val);
8932			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8933				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8934				20usize,
8935				1u8,
8936				val as u64,
8937			)
8938		}
8939	}
8940	#[inline]
8941	pub fn reserved(&self) -> u32 {
8942		unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 11u8) as u32) }
8943	}
8944	#[inline]
8945	pub fn set_reserved(&mut self, val: u32) {
8946		unsafe {
8947			let val: u32 = ::std::mem::transmute(val);
8948			self._bitfield_1.set(21usize, 11u8, val as u64)
8949		}
8950	}
8951	#[inline]
8952	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
8953		unsafe {
8954			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8955				::std::ptr::addr_of!((*this)._bitfield_1),
8956				21usize,
8957				11u8,
8958			) as u32)
8959		}
8960	}
8961	#[inline]
8962	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
8963		unsafe {
8964			let val: u32 = ::std::mem::transmute(val);
8965			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8966				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8967				21usize,
8968				11u8,
8969				val as u64,
8970			)
8971		}
8972	}
8973	#[inline]
8974	pub fn new_bitfield_1(
8975		idr_pic_flag: u32,
8976		coding_type: u32,
8977		reference_pic_flag: u32,
8978		dependent_slice_segments_enabled_flag: u32,
8979		sign_data_hiding_enabled_flag: u32,
8980		constrained_intra_pred_flag: u32,
8981		transform_skip_enabled_flag: u32,
8982		cu_qp_delta_enabled_flag: u32,
8983		weighted_pred_flag: u32,
8984		weighted_bipred_flag: u32,
8985		transquant_bypass_enabled_flag: u32,
8986		tiles_enabled_flag: u32,
8987		entropy_coding_sync_enabled_flag: u32,
8988		loop_filter_across_tiles_enabled_flag: u32,
8989		pps_loop_filter_across_slices_enabled_flag: u32,
8990		scaling_list_data_present_flag: u32,
8991		screen_content_flag: u32,
8992		enable_gpu_weighted_prediction: u32,
8993		no_output_of_prior_pics_flag: u32,
8994		reserved: u32,
8995	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
8996		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
8997		__bindgen_bitfield_unit.set(0usize, 1u8, {
8998			let idr_pic_flag: u32 = unsafe { ::std::mem::transmute(idr_pic_flag) };
8999			idr_pic_flag as u64
9000		});
9001		__bindgen_bitfield_unit.set(1usize, 3u8, {
9002			let coding_type: u32 = unsafe { ::std::mem::transmute(coding_type) };
9003			coding_type as u64
9004		});
9005		__bindgen_bitfield_unit.set(4usize, 1u8, {
9006			let reference_pic_flag: u32 = unsafe { ::std::mem::transmute(reference_pic_flag) };
9007			reference_pic_flag as u64
9008		});
9009		__bindgen_bitfield_unit.set(5usize, 1u8, {
9010			let dependent_slice_segments_enabled_flag: u32 =
9011				unsafe { ::std::mem::transmute(dependent_slice_segments_enabled_flag) };
9012			dependent_slice_segments_enabled_flag as u64
9013		});
9014		__bindgen_bitfield_unit.set(6usize, 1u8, {
9015			let sign_data_hiding_enabled_flag: u32 = unsafe { ::std::mem::transmute(sign_data_hiding_enabled_flag) };
9016			sign_data_hiding_enabled_flag as u64
9017		});
9018		__bindgen_bitfield_unit.set(7usize, 1u8, {
9019			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
9020			constrained_intra_pred_flag as u64
9021		});
9022		__bindgen_bitfield_unit.set(8usize, 1u8, {
9023			let transform_skip_enabled_flag: u32 = unsafe { ::std::mem::transmute(transform_skip_enabled_flag) };
9024			transform_skip_enabled_flag as u64
9025		});
9026		__bindgen_bitfield_unit.set(9usize, 1u8, {
9027			let cu_qp_delta_enabled_flag: u32 = unsafe { ::std::mem::transmute(cu_qp_delta_enabled_flag) };
9028			cu_qp_delta_enabled_flag as u64
9029		});
9030		__bindgen_bitfield_unit.set(10usize, 1u8, {
9031			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
9032			weighted_pred_flag as u64
9033		});
9034		__bindgen_bitfield_unit.set(11usize, 1u8, {
9035			let weighted_bipred_flag: u32 = unsafe { ::std::mem::transmute(weighted_bipred_flag) };
9036			weighted_bipred_flag as u64
9037		});
9038		__bindgen_bitfield_unit.set(12usize, 1u8, {
9039			let transquant_bypass_enabled_flag: u32 = unsafe { ::std::mem::transmute(transquant_bypass_enabled_flag) };
9040			transquant_bypass_enabled_flag as u64
9041		});
9042		__bindgen_bitfield_unit.set(13usize, 1u8, {
9043			let tiles_enabled_flag: u32 = unsafe { ::std::mem::transmute(tiles_enabled_flag) };
9044			tiles_enabled_flag as u64
9045		});
9046		__bindgen_bitfield_unit.set(14usize, 1u8, {
9047			let entropy_coding_sync_enabled_flag: u32 =
9048				unsafe { ::std::mem::transmute(entropy_coding_sync_enabled_flag) };
9049			entropy_coding_sync_enabled_flag as u64
9050		});
9051		__bindgen_bitfield_unit.set(15usize, 1u8, {
9052			let loop_filter_across_tiles_enabled_flag: u32 =
9053				unsafe { ::std::mem::transmute(loop_filter_across_tiles_enabled_flag) };
9054			loop_filter_across_tiles_enabled_flag as u64
9055		});
9056		__bindgen_bitfield_unit.set(16usize, 1u8, {
9057			let pps_loop_filter_across_slices_enabled_flag: u32 =
9058				unsafe { ::std::mem::transmute(pps_loop_filter_across_slices_enabled_flag) };
9059			pps_loop_filter_across_slices_enabled_flag as u64
9060		});
9061		__bindgen_bitfield_unit.set(17usize, 1u8, {
9062			let scaling_list_data_present_flag: u32 = unsafe { ::std::mem::transmute(scaling_list_data_present_flag) };
9063			scaling_list_data_present_flag as u64
9064		});
9065		__bindgen_bitfield_unit.set(18usize, 1u8, {
9066			let screen_content_flag: u32 = unsafe { ::std::mem::transmute(screen_content_flag) };
9067			screen_content_flag as u64
9068		});
9069		__bindgen_bitfield_unit.set(19usize, 1u8, {
9070			let enable_gpu_weighted_prediction: u32 = unsafe { ::std::mem::transmute(enable_gpu_weighted_prediction) };
9071			enable_gpu_weighted_prediction as u64
9072		});
9073		__bindgen_bitfield_unit.set(20usize, 1u8, {
9074			let no_output_of_prior_pics_flag: u32 = unsafe { ::std::mem::transmute(no_output_of_prior_pics_flag) };
9075			no_output_of_prior_pics_flag as u64
9076		});
9077		__bindgen_bitfield_unit.set(21usize, 11u8, {
9078			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
9079			reserved as u64
9080		});
9081		__bindgen_bitfield_unit
9082	}
9083}
9084impl Default for _VAEncPictureParameterBufferHEVC__bindgen_ty_1 {
9085	fn default() -> Self {
9086		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9087		unsafe {
9088			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9089			s.assume_init()
9090		}
9091	}
9092}
9093#[doc = " \\brief SCC flags to enable/disable feature, only IBC at present."]
9094#[repr(C)]
9095#[derive(Copy, Clone)]
9096pub union _VAEncPictureParameterBufferHEVC__bindgen_ty_2 {
9097	pub bits: _VAEncPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1,
9098	pub value: u16,
9099}
9100#[repr(C)]
9101#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
9102pub struct _VAEncPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
9103	pub _bitfield_align_1: [u16; 0],
9104	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
9105}
9106impl _VAEncPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
9107	#[inline]
9108	pub fn pps_curr_pic_ref_enabled_flag(&self) -> u16 {
9109		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
9110	}
9111	#[inline]
9112	pub fn set_pps_curr_pic_ref_enabled_flag(&mut self, val: u16) {
9113		unsafe {
9114			let val: u16 = ::std::mem::transmute(val);
9115			self._bitfield_1.set(0usize, 1u8, val as u64)
9116		}
9117	}
9118	#[inline]
9119	pub unsafe fn pps_curr_pic_ref_enabled_flag_raw(this: *const Self) -> u16 {
9120		unsafe {
9121			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9122				::std::ptr::addr_of!((*this)._bitfield_1),
9123				0usize,
9124				1u8,
9125			) as u16)
9126		}
9127	}
9128	#[inline]
9129	pub unsafe fn set_pps_curr_pic_ref_enabled_flag_raw(this: *mut Self, val: u16) {
9130		unsafe {
9131			let val: u16 = ::std::mem::transmute(val);
9132			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9133				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9134				0usize,
9135				1u8,
9136				val as u64,
9137			)
9138		}
9139	}
9140	#[inline]
9141	pub fn reserved(&self) -> u16 {
9142		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 15u8) as u16) }
9143	}
9144	#[inline]
9145	pub fn set_reserved(&mut self, val: u16) {
9146		unsafe {
9147			let val: u16 = ::std::mem::transmute(val);
9148			self._bitfield_1.set(1usize, 15u8, val as u64)
9149		}
9150	}
9151	#[inline]
9152	pub unsafe fn reserved_raw(this: *const Self) -> u16 {
9153		unsafe {
9154			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9155				::std::ptr::addr_of!((*this)._bitfield_1),
9156				1usize,
9157				15u8,
9158			) as u16)
9159		}
9160	}
9161	#[inline]
9162	pub unsafe fn set_reserved_raw(this: *mut Self, val: u16) {
9163		unsafe {
9164			let val: u16 = ::std::mem::transmute(val);
9165			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9166				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9167				1usize,
9168				15u8,
9169				val as u64,
9170			)
9171		}
9172	}
9173	#[inline]
9174	pub fn new_bitfield_1(pps_curr_pic_ref_enabled_flag: u16, reserved: u16) -> __BindgenBitfieldUnit<[u8; 2usize]> {
9175		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
9176		__bindgen_bitfield_unit.set(0usize, 1u8, {
9177			let pps_curr_pic_ref_enabled_flag: u16 = unsafe { ::std::mem::transmute(pps_curr_pic_ref_enabled_flag) };
9178			pps_curr_pic_ref_enabled_flag as u64
9179		});
9180		__bindgen_bitfield_unit.set(1usize, 15u8, {
9181			let reserved: u16 = unsafe { ::std::mem::transmute(reserved) };
9182			reserved as u64
9183		});
9184		__bindgen_bitfield_unit
9185	}
9186}
9187impl Default for _VAEncPictureParameterBufferHEVC__bindgen_ty_2 {
9188	fn default() -> Self {
9189		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9190		unsafe {
9191			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9192			s.assume_init()
9193		}
9194	}
9195}
9196impl Default for _VAEncPictureParameterBufferHEVC {
9197	fn default() -> Self {
9198		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9199		unsafe {
9200			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9201			s.assume_init()
9202		}
9203	}
9204}
9205#[doc = " HEVC data structures\n/\n/**\n \\brief Picture parameter for HEVC encoding in main & main 10\n profiles.\n\n This structure holds information for \\c pic_parameter_set_rbsp() as\n defined by the HEVC specification.\n\n If packed picture headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_PICTURE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderPicture ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c pic_scaling_matrix_present_flag is set to \\c 1, then a\n #VAQMatrixBufferHEVC buffer shall also be provided within the same\n \\c vaRenderPicture() call as this picture parameter buffer."]
9206pub type VAEncPictureParameterBufferHEVC = _VAEncPictureParameterBufferHEVC;
9207#[doc = " \\brief Slice parameter for HEVC encoding in main & main 10 profiles.\n\n This structure holds information for \\c\n slice_segment_layer_rbsp() as defined by the HEVC\n specification.\n\n If packed slice headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SLICE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSlice ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n"]
9208#[repr(C)]
9209#[derive(Copy, Clone)]
9210pub struct _VAEncSliceParameterBufferHEVC {
9211	#[doc = " \\brief Starting CTU address for this slice."]
9212	pub slice_segment_address: u32,
9213	#[doc = " \\brief Number of CTUs in this slice."]
9214	pub num_ctu_in_slice: u32,
9215	#[doc = " \\brief Slice type.\n  Corresponds to HEVC syntax element of the same name."]
9216	pub slice_type: u8,
9217	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9218	pub slice_pic_parameter_set_id: u8,
9219	#[doc = " \\brief Maximum reference index for reference picture list 0.\n  Range: 0 to 14, inclusive."]
9220	pub num_ref_idx_l0_active_minus1: u8,
9221	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  Range: 0 to 14, inclusive."]
9222	pub num_ref_idx_l1_active_minus1: u8,
9223	#[doc = " \\brief Reference picture list 0 (for P slices)."]
9224	pub ref_pic_list0: [VAPictureHEVC; 15usize],
9225	#[doc = " \\brief Reference picture list 1 (for B slices)."]
9226	pub ref_pic_list1: [VAPictureHEVC; 15usize],
9227	#[doc = " @name pred_weight_table() */\n/**@{*/\n/** \\brief Same as the HEVC bitstream syntax element."]
9228	pub luma_log2_weight_denom: u8,
9229	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9230	pub delta_chroma_log2_weight_denom: i8,
9231	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9232	pub delta_luma_weight_l0: [i8; 15usize],
9233	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9234	pub luma_offset_l0: [i8; 15usize],
9235	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9236	pub delta_chroma_weight_l0: [[i8; 2usize]; 15usize],
9237	#[doc = " \\brief Same as the HEVC spec variable ChromaOffsetL0[]."]
9238	pub chroma_offset_l0: [[i8; 2usize]; 15usize],
9239	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9240	pub delta_luma_weight_l1: [i8; 15usize],
9241	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9242	pub luma_offset_l1: [i8; 15usize],
9243	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9244	pub delta_chroma_weight_l1: [[i8; 2usize]; 15usize],
9245	#[doc = " \\brief Same as the HEVC spec variable ChromaOffsetL1[]."]
9246	pub chroma_offset_l1: [[i8; 2usize]; 15usize],
9247	#[doc = " \\brief Corresponds to HEVC spec variable MaxNumMergeCand.\n  Range: [1..5]."]
9248	pub max_num_merge_cand: u8,
9249	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9250	pub slice_qp_delta: i8,
9251	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9252	pub slice_cb_qp_offset: i8,
9253	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9254	pub slice_cr_qp_offset: i8,
9255	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9256	pub slice_beta_offset_div2: i8,
9257	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9258	pub slice_tc_offset_div2: i8,
9259	pub slice_fields: _VAEncSliceParameterBufferHEVC__bindgen_ty_1,
9260	#[doc = " \\brief bit offset of syntax element pred_weight_table() in slice segment header.\n It aligns with the starting position of the current packed slice header.\n It is used when encoder prefers to override the weighted prediction parameters passed in\n from application.\n Please refer to enable_gpu_weighted_prediction in VAEncPictureParameterBufferHEVC."]
9261	pub pred_weight_table_bit_offset: u32,
9262	#[doc = " \\brief bit length of syntax element pred_weight_table() in slice segment header.\n It is used when encoder prefers to override the weighted prediction parameters passed in\n from application.\n Please refer to enable_gpu_weighted_prediction in VAEncPictureParameterBufferHEVC."]
9263	pub pred_weight_table_bit_length: u32,
9264	#[doc = " \\brief Reserved bytes for future use, must be zero"]
9265	pub va_reserved: [u32; 6usize],
9266}
9267#[repr(C)]
9268#[derive(Copy, Clone)]
9269pub union _VAEncSliceParameterBufferHEVC__bindgen_ty_1 {
9270	pub bits: _VAEncSliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
9271	pub value: u32,
9272}
9273#[repr(C)]
9274#[repr(align(4))]
9275#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
9276pub struct _VAEncSliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
9277	pub _bitfield_align_1: [u8; 0],
9278	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
9279	pub __bindgen_padding_0: u16,
9280}
9281impl _VAEncSliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
9282	#[inline]
9283	pub fn last_slice_of_pic_flag(&self) -> u32 {
9284		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
9285	}
9286	#[inline]
9287	pub fn set_last_slice_of_pic_flag(&mut self, val: u32) {
9288		unsafe {
9289			let val: u32 = ::std::mem::transmute(val);
9290			self._bitfield_1.set(0usize, 1u8, val as u64)
9291		}
9292	}
9293	#[inline]
9294	pub unsafe fn last_slice_of_pic_flag_raw(this: *const Self) -> u32 {
9295		unsafe {
9296			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9297				::std::ptr::addr_of!((*this)._bitfield_1),
9298				0usize,
9299				1u8,
9300			) as u32)
9301		}
9302	}
9303	#[inline]
9304	pub unsafe fn set_last_slice_of_pic_flag_raw(this: *mut Self, val: u32) {
9305		unsafe {
9306			let val: u32 = ::std::mem::transmute(val);
9307			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9308				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9309				0usize,
9310				1u8,
9311				val as u64,
9312			)
9313		}
9314	}
9315	#[inline]
9316	pub fn dependent_slice_segment_flag(&self) -> u32 {
9317		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
9318	}
9319	#[inline]
9320	pub fn set_dependent_slice_segment_flag(&mut self, val: u32) {
9321		unsafe {
9322			let val: u32 = ::std::mem::transmute(val);
9323			self._bitfield_1.set(1usize, 1u8, val as u64)
9324		}
9325	}
9326	#[inline]
9327	pub unsafe fn dependent_slice_segment_flag_raw(this: *const Self) -> u32 {
9328		unsafe {
9329			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9330				::std::ptr::addr_of!((*this)._bitfield_1),
9331				1usize,
9332				1u8,
9333			) as u32)
9334		}
9335	}
9336	#[inline]
9337	pub unsafe fn set_dependent_slice_segment_flag_raw(this: *mut Self, val: u32) {
9338		unsafe {
9339			let val: u32 = ::std::mem::transmute(val);
9340			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9341				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9342				1usize,
9343				1u8,
9344				val as u64,
9345			)
9346		}
9347	}
9348	#[inline]
9349	pub fn colour_plane_id(&self) -> u32 {
9350		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
9351	}
9352	#[inline]
9353	pub fn set_colour_plane_id(&mut self, val: u32) {
9354		unsafe {
9355			let val: u32 = ::std::mem::transmute(val);
9356			self._bitfield_1.set(2usize, 2u8, val as u64)
9357		}
9358	}
9359	#[inline]
9360	pub unsafe fn colour_plane_id_raw(this: *const Self) -> u32 {
9361		unsafe {
9362			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9363				::std::ptr::addr_of!((*this)._bitfield_1),
9364				2usize,
9365				2u8,
9366			) as u32)
9367		}
9368	}
9369	#[inline]
9370	pub unsafe fn set_colour_plane_id_raw(this: *mut Self, val: u32) {
9371		unsafe {
9372			let val: u32 = ::std::mem::transmute(val);
9373			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9374				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9375				2usize,
9376				2u8,
9377				val as u64,
9378			)
9379		}
9380	}
9381	#[inline]
9382	pub fn slice_temporal_mvp_enabled_flag(&self) -> u32 {
9383		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
9384	}
9385	#[inline]
9386	pub fn set_slice_temporal_mvp_enabled_flag(&mut self, val: u32) {
9387		unsafe {
9388			let val: u32 = ::std::mem::transmute(val);
9389			self._bitfield_1.set(4usize, 1u8, val as u64)
9390		}
9391	}
9392	#[inline]
9393	pub unsafe fn slice_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
9394		unsafe {
9395			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9396				::std::ptr::addr_of!((*this)._bitfield_1),
9397				4usize,
9398				1u8,
9399			) as u32)
9400		}
9401	}
9402	#[inline]
9403	pub unsafe fn set_slice_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
9404		unsafe {
9405			let val: u32 = ::std::mem::transmute(val);
9406			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9407				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9408				4usize,
9409				1u8,
9410				val as u64,
9411			)
9412		}
9413	}
9414	#[inline]
9415	pub fn slice_sao_luma_flag(&self) -> u32 {
9416		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
9417	}
9418	#[inline]
9419	pub fn set_slice_sao_luma_flag(&mut self, val: u32) {
9420		unsafe {
9421			let val: u32 = ::std::mem::transmute(val);
9422			self._bitfield_1.set(5usize, 1u8, val as u64)
9423		}
9424	}
9425	#[inline]
9426	pub unsafe fn slice_sao_luma_flag_raw(this: *const Self) -> u32 {
9427		unsafe {
9428			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9429				::std::ptr::addr_of!((*this)._bitfield_1),
9430				5usize,
9431				1u8,
9432			) as u32)
9433		}
9434	}
9435	#[inline]
9436	pub unsafe fn set_slice_sao_luma_flag_raw(this: *mut Self, val: u32) {
9437		unsafe {
9438			let val: u32 = ::std::mem::transmute(val);
9439			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9440				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9441				5usize,
9442				1u8,
9443				val as u64,
9444			)
9445		}
9446	}
9447	#[inline]
9448	pub fn slice_sao_chroma_flag(&self) -> u32 {
9449		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
9450	}
9451	#[inline]
9452	pub fn set_slice_sao_chroma_flag(&mut self, val: u32) {
9453		unsafe {
9454			let val: u32 = ::std::mem::transmute(val);
9455			self._bitfield_1.set(6usize, 1u8, val as u64)
9456		}
9457	}
9458	#[inline]
9459	pub unsafe fn slice_sao_chroma_flag_raw(this: *const Self) -> u32 {
9460		unsafe {
9461			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9462				::std::ptr::addr_of!((*this)._bitfield_1),
9463				6usize,
9464				1u8,
9465			) as u32)
9466		}
9467	}
9468	#[inline]
9469	pub unsafe fn set_slice_sao_chroma_flag_raw(this: *mut Self, val: u32) {
9470		unsafe {
9471			let val: u32 = ::std::mem::transmute(val);
9472			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9473				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9474				6usize,
9475				1u8,
9476				val as u64,
9477			)
9478		}
9479	}
9480	#[inline]
9481	pub fn num_ref_idx_active_override_flag(&self) -> u32 {
9482		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
9483	}
9484	#[inline]
9485	pub fn set_num_ref_idx_active_override_flag(&mut self, val: u32) {
9486		unsafe {
9487			let val: u32 = ::std::mem::transmute(val);
9488			self._bitfield_1.set(7usize, 1u8, val as u64)
9489		}
9490	}
9491	#[inline]
9492	pub unsafe fn num_ref_idx_active_override_flag_raw(this: *const Self) -> u32 {
9493		unsafe {
9494			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9495				::std::ptr::addr_of!((*this)._bitfield_1),
9496				7usize,
9497				1u8,
9498			) as u32)
9499		}
9500	}
9501	#[inline]
9502	pub unsafe fn set_num_ref_idx_active_override_flag_raw(this: *mut Self, val: u32) {
9503		unsafe {
9504			let val: u32 = ::std::mem::transmute(val);
9505			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9506				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9507				7usize,
9508				1u8,
9509				val as u64,
9510			)
9511		}
9512	}
9513	#[inline]
9514	pub fn mvd_l1_zero_flag(&self) -> u32 {
9515		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
9516	}
9517	#[inline]
9518	pub fn set_mvd_l1_zero_flag(&mut self, val: u32) {
9519		unsafe {
9520			let val: u32 = ::std::mem::transmute(val);
9521			self._bitfield_1.set(8usize, 1u8, val as u64)
9522		}
9523	}
9524	#[inline]
9525	pub unsafe fn mvd_l1_zero_flag_raw(this: *const Self) -> u32 {
9526		unsafe {
9527			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9528				::std::ptr::addr_of!((*this)._bitfield_1),
9529				8usize,
9530				1u8,
9531			) as u32)
9532		}
9533	}
9534	#[inline]
9535	pub unsafe fn set_mvd_l1_zero_flag_raw(this: *mut Self, val: u32) {
9536		unsafe {
9537			let val: u32 = ::std::mem::transmute(val);
9538			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9539				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9540				8usize,
9541				1u8,
9542				val as u64,
9543			)
9544		}
9545	}
9546	#[inline]
9547	pub fn cabac_init_flag(&self) -> u32 {
9548		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
9549	}
9550	#[inline]
9551	pub fn set_cabac_init_flag(&mut self, val: u32) {
9552		unsafe {
9553			let val: u32 = ::std::mem::transmute(val);
9554			self._bitfield_1.set(9usize, 1u8, val as u64)
9555		}
9556	}
9557	#[inline]
9558	pub unsafe fn cabac_init_flag_raw(this: *const Self) -> u32 {
9559		unsafe {
9560			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9561				::std::ptr::addr_of!((*this)._bitfield_1),
9562				9usize,
9563				1u8,
9564			) as u32)
9565		}
9566	}
9567	#[inline]
9568	pub unsafe fn set_cabac_init_flag_raw(this: *mut Self, val: u32) {
9569		unsafe {
9570			let val: u32 = ::std::mem::transmute(val);
9571			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9572				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9573				9usize,
9574				1u8,
9575				val as u64,
9576			)
9577		}
9578	}
9579	#[inline]
9580	pub fn slice_deblocking_filter_disabled_flag(&self) -> u32 {
9581		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
9582	}
9583	#[inline]
9584	pub fn set_slice_deblocking_filter_disabled_flag(&mut self, val: u32) {
9585		unsafe {
9586			let val: u32 = ::std::mem::transmute(val);
9587			self._bitfield_1.set(10usize, 2u8, val as u64)
9588		}
9589	}
9590	#[inline]
9591	pub unsafe fn slice_deblocking_filter_disabled_flag_raw(this: *const Self) -> u32 {
9592		unsafe {
9593			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9594				::std::ptr::addr_of!((*this)._bitfield_1),
9595				10usize,
9596				2u8,
9597			) as u32)
9598		}
9599	}
9600	#[inline]
9601	pub unsafe fn set_slice_deblocking_filter_disabled_flag_raw(this: *mut Self, val: u32) {
9602		unsafe {
9603			let val: u32 = ::std::mem::transmute(val);
9604			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9605				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9606				10usize,
9607				2u8,
9608				val as u64,
9609			)
9610		}
9611	}
9612	#[inline]
9613	pub fn slice_loop_filter_across_slices_enabled_flag(&self) -> u32 {
9614		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
9615	}
9616	#[inline]
9617	pub fn set_slice_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
9618		unsafe {
9619			let val: u32 = ::std::mem::transmute(val);
9620			self._bitfield_1.set(12usize, 1u8, val as u64)
9621		}
9622	}
9623	#[inline]
9624	pub unsafe fn slice_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
9625		unsafe {
9626			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9627				::std::ptr::addr_of!((*this)._bitfield_1),
9628				12usize,
9629				1u8,
9630			) as u32)
9631		}
9632	}
9633	#[inline]
9634	pub unsafe fn set_slice_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
9635		unsafe {
9636			let val: u32 = ::std::mem::transmute(val);
9637			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9638				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9639				12usize,
9640				1u8,
9641				val as u64,
9642			)
9643		}
9644	}
9645	#[inline]
9646	pub fn collocated_from_l0_flag(&self) -> u32 {
9647		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
9648	}
9649	#[inline]
9650	pub fn set_collocated_from_l0_flag(&mut self, val: u32) {
9651		unsafe {
9652			let val: u32 = ::std::mem::transmute(val);
9653			self._bitfield_1.set(13usize, 1u8, val as u64)
9654		}
9655	}
9656	#[inline]
9657	pub unsafe fn collocated_from_l0_flag_raw(this: *const Self) -> u32 {
9658		unsafe {
9659			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
9660				::std::ptr::addr_of!((*this)._bitfield_1),
9661				13usize,
9662				1u8,
9663			) as u32)
9664		}
9665	}
9666	#[inline]
9667	pub unsafe fn set_collocated_from_l0_flag_raw(this: *mut Self, val: u32) {
9668		unsafe {
9669			let val: u32 = ::std::mem::transmute(val);
9670			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
9671				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9672				13usize,
9673				1u8,
9674				val as u64,
9675			)
9676		}
9677	}
9678	#[inline]
9679	pub fn new_bitfield_1(
9680		last_slice_of_pic_flag: u32,
9681		dependent_slice_segment_flag: u32,
9682		colour_plane_id: u32,
9683		slice_temporal_mvp_enabled_flag: u32,
9684		slice_sao_luma_flag: u32,
9685		slice_sao_chroma_flag: u32,
9686		num_ref_idx_active_override_flag: u32,
9687		mvd_l1_zero_flag: u32,
9688		cabac_init_flag: u32,
9689		slice_deblocking_filter_disabled_flag: u32,
9690		slice_loop_filter_across_slices_enabled_flag: u32,
9691		collocated_from_l0_flag: u32,
9692	) -> __BindgenBitfieldUnit<[u8; 2usize]> {
9693		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
9694		__bindgen_bitfield_unit.set(0usize, 1u8, {
9695			let last_slice_of_pic_flag: u32 = unsafe { ::std::mem::transmute(last_slice_of_pic_flag) };
9696			last_slice_of_pic_flag as u64
9697		});
9698		__bindgen_bitfield_unit.set(1usize, 1u8, {
9699			let dependent_slice_segment_flag: u32 = unsafe { ::std::mem::transmute(dependent_slice_segment_flag) };
9700			dependent_slice_segment_flag as u64
9701		});
9702		__bindgen_bitfield_unit.set(2usize, 2u8, {
9703			let colour_plane_id: u32 = unsafe { ::std::mem::transmute(colour_plane_id) };
9704			colour_plane_id as u64
9705		});
9706		__bindgen_bitfield_unit.set(4usize, 1u8, {
9707			let slice_temporal_mvp_enabled_flag: u32 =
9708				unsafe { ::std::mem::transmute(slice_temporal_mvp_enabled_flag) };
9709			slice_temporal_mvp_enabled_flag as u64
9710		});
9711		__bindgen_bitfield_unit.set(5usize, 1u8, {
9712			let slice_sao_luma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_luma_flag) };
9713			slice_sao_luma_flag as u64
9714		});
9715		__bindgen_bitfield_unit.set(6usize, 1u8, {
9716			let slice_sao_chroma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_chroma_flag) };
9717			slice_sao_chroma_flag as u64
9718		});
9719		__bindgen_bitfield_unit.set(7usize, 1u8, {
9720			let num_ref_idx_active_override_flag: u32 =
9721				unsafe { ::std::mem::transmute(num_ref_idx_active_override_flag) };
9722			num_ref_idx_active_override_flag as u64
9723		});
9724		__bindgen_bitfield_unit.set(8usize, 1u8, {
9725			let mvd_l1_zero_flag: u32 = unsafe { ::std::mem::transmute(mvd_l1_zero_flag) };
9726			mvd_l1_zero_flag as u64
9727		});
9728		__bindgen_bitfield_unit.set(9usize, 1u8, {
9729			let cabac_init_flag: u32 = unsafe { ::std::mem::transmute(cabac_init_flag) };
9730			cabac_init_flag as u64
9731		});
9732		__bindgen_bitfield_unit.set(10usize, 2u8, {
9733			let slice_deblocking_filter_disabled_flag: u32 =
9734				unsafe { ::std::mem::transmute(slice_deblocking_filter_disabled_flag) };
9735			slice_deblocking_filter_disabled_flag as u64
9736		});
9737		__bindgen_bitfield_unit.set(12usize, 1u8, {
9738			let slice_loop_filter_across_slices_enabled_flag: u32 =
9739				unsafe { ::std::mem::transmute(slice_loop_filter_across_slices_enabled_flag) };
9740			slice_loop_filter_across_slices_enabled_flag as u64
9741		});
9742		__bindgen_bitfield_unit.set(13usize, 1u8, {
9743			let collocated_from_l0_flag: u32 = unsafe { ::std::mem::transmute(collocated_from_l0_flag) };
9744			collocated_from_l0_flag as u64
9745		});
9746		__bindgen_bitfield_unit
9747	}
9748}
9749impl Default for _VAEncSliceParameterBufferHEVC__bindgen_ty_1 {
9750	fn default() -> Self {
9751		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9752		unsafe {
9753			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9754			s.assume_init()
9755		}
9756	}
9757}
9758impl Default for _VAEncSliceParameterBufferHEVC {
9759	fn default() -> Self {
9760		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9761		unsafe {
9762			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9763			s.assume_init()
9764		}
9765	}
9766}
9767#[doc = " \\brief Slice parameter for HEVC encoding in main & main 10 profiles.\n\n This structure holds information for \\c\n slice_segment_layer_rbsp() as defined by the HEVC\n specification.\n\n If packed slice headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SLICE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSlice ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n"]
9768pub type VAEncSliceParameterBufferHEVC = _VAEncSliceParameterBufferHEVC;
9769#[doc = " \\brief Sequence parameter for H.264 encoding in baseline, main & high\n profiles.\n\n This structure holds information for \\c seq_parameter_set_data() as\n defined by the H.264 specification.\n\n If packed sequence headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SEQUENCE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSequence ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c seq_scaling_matrix_present_flag is set to \\c 1, then a\n #VAIQMatrixBufferH264 buffer shall also be provided within the same\n \\c vaRenderPicture() call as this sequence parameter buffer."]
9770#[repr(C)]
9771#[derive(Copy, Clone)]
9772pub struct _VAEncSequenceParameterBufferH264 {
9773	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9774	pub seq_parameter_set_id: u8,
9775	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9776	pub level_idc: u8,
9777	#[doc = " \\brief Period between I frames."]
9778	pub intra_period: u32,
9779	#[doc = " \\brief Period between IDR frames."]
9780	pub intra_idr_period: u32,
9781	#[doc = " \\brief Period between I/P frames."]
9782	pub ip_period: u32,
9783	#[doc = " \\brief Initial bitrate set for this sequence in CBR or VBR modes.\n\n This field represents the initial bitrate value for this\n sequence if CBR or VBR mode is used, i.e. if the encoder\n pipeline was created with a #VAConfigAttribRateControl\n attribute set to either \\ref VA_RC_CBR or \\ref VA_RC_VBR.\n\n The bitrate can be modified later on through\n #VAEncMiscParameterRateControl buffers."]
9784	pub bits_per_second: u32,
9785	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9786	pub max_num_ref_frames: u32,
9787	#[doc = " \\brief Picture width in macroblocks."]
9788	pub picture_width_in_mbs: u16,
9789	#[doc = " \\brief Picture height in macroblocks."]
9790	pub picture_height_in_mbs: u16,
9791	pub seq_fields: _VAEncSequenceParameterBufferH264__bindgen_ty_1,
9792	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9793	pub bit_depth_luma_minus8: u8,
9794	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9795	pub bit_depth_chroma_minus8: u8,
9796	#[doc = " if pic_order_cnt_type == 1 */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
9797	pub num_ref_frames_in_pic_order_cnt_cycle: u8,
9798	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9799	pub offset_for_non_ref_pic: i32,
9800	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9801	pub offset_for_top_to_bottom_field: i32,
9802	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9803	pub offset_for_ref_frame: [i32; 256usize],
9804	#[doc = " @name Cropping (optional) */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
9805	pub frame_cropping_flag: u8,
9806	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9807	pub frame_crop_left_offset: u32,
9808	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9809	pub frame_crop_right_offset: u32,
9810	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9811	pub frame_crop_top_offset: u32,
9812	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9813	pub frame_crop_bottom_offset: u32,
9814	#[doc = " @name VUI parameters (optional) */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
9815	pub vui_parameters_present_flag: u8,
9816	pub vui_fields: _VAEncSequenceParameterBufferH264__bindgen_ty_2,
9817	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9818	pub aspect_ratio_idc: u8,
9819	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9820	pub sar_width: u32,
9821	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9822	pub sar_height: u32,
9823	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9824	pub num_units_in_tick: u32,
9825	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
9826	pub time_scale: u32,
9827	#[doc = " \\brief Reserved bytes for future use, must be zero"]
9828	pub va_reserved: [u32; 4usize],
9829}
9830#[repr(C)]
9831#[derive(Copy, Clone)]
9832pub union _VAEncSequenceParameterBufferH264__bindgen_ty_1 {
9833	pub bits: _VAEncSequenceParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
9834	pub value: u32,
9835}
9836#[repr(C)]
9837#[repr(align(4))]
9838#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
9839pub struct _VAEncSequenceParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
9840	pub _bitfield_align_1: [u8; 0],
9841	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
9842	pub __bindgen_padding_0: u8,
9843}
9844impl _VAEncSequenceParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
9845	#[inline]
9846	pub fn chroma_format_idc(&self) -> u32 {
9847		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
9848	}
9849	#[inline]
9850	pub fn set_chroma_format_idc(&mut self, val: u32) {
9851		unsafe {
9852			let val: u32 = ::std::mem::transmute(val);
9853			self._bitfield_1.set(0usize, 2u8, val as u64)
9854		}
9855	}
9856	#[inline]
9857	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
9858		unsafe {
9859			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9860				::std::ptr::addr_of!((*this)._bitfield_1),
9861				0usize,
9862				2u8,
9863			) as u32)
9864		}
9865	}
9866	#[inline]
9867	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
9868		unsafe {
9869			let val: u32 = ::std::mem::transmute(val);
9870			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9871				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9872				0usize,
9873				2u8,
9874				val as u64,
9875			)
9876		}
9877	}
9878	#[inline]
9879	pub fn frame_mbs_only_flag(&self) -> u32 {
9880		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
9881	}
9882	#[inline]
9883	pub fn set_frame_mbs_only_flag(&mut self, val: u32) {
9884		unsafe {
9885			let val: u32 = ::std::mem::transmute(val);
9886			self._bitfield_1.set(2usize, 1u8, val as u64)
9887		}
9888	}
9889	#[inline]
9890	pub unsafe fn frame_mbs_only_flag_raw(this: *const Self) -> u32 {
9891		unsafe {
9892			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9893				::std::ptr::addr_of!((*this)._bitfield_1),
9894				2usize,
9895				1u8,
9896			) as u32)
9897		}
9898	}
9899	#[inline]
9900	pub unsafe fn set_frame_mbs_only_flag_raw(this: *mut Self, val: u32) {
9901		unsafe {
9902			let val: u32 = ::std::mem::transmute(val);
9903			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9904				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9905				2usize,
9906				1u8,
9907				val as u64,
9908			)
9909		}
9910	}
9911	#[inline]
9912	pub fn mb_adaptive_frame_field_flag(&self) -> u32 {
9913		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
9914	}
9915	#[inline]
9916	pub fn set_mb_adaptive_frame_field_flag(&mut self, val: u32) {
9917		unsafe {
9918			let val: u32 = ::std::mem::transmute(val);
9919			self._bitfield_1.set(3usize, 1u8, val as u64)
9920		}
9921	}
9922	#[inline]
9923	pub unsafe fn mb_adaptive_frame_field_flag_raw(this: *const Self) -> u32 {
9924		unsafe {
9925			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9926				::std::ptr::addr_of!((*this)._bitfield_1),
9927				3usize,
9928				1u8,
9929			) as u32)
9930		}
9931	}
9932	#[inline]
9933	pub unsafe fn set_mb_adaptive_frame_field_flag_raw(this: *mut Self, val: u32) {
9934		unsafe {
9935			let val: u32 = ::std::mem::transmute(val);
9936			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9937				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9938				3usize,
9939				1u8,
9940				val as u64,
9941			)
9942		}
9943	}
9944	#[inline]
9945	pub fn seq_scaling_matrix_present_flag(&self) -> u32 {
9946		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
9947	}
9948	#[inline]
9949	pub fn set_seq_scaling_matrix_present_flag(&mut self, val: u32) {
9950		unsafe {
9951			let val: u32 = ::std::mem::transmute(val);
9952			self._bitfield_1.set(4usize, 1u8, val as u64)
9953		}
9954	}
9955	#[inline]
9956	pub unsafe fn seq_scaling_matrix_present_flag_raw(this: *const Self) -> u32 {
9957		unsafe {
9958			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9959				::std::ptr::addr_of!((*this)._bitfield_1),
9960				4usize,
9961				1u8,
9962			) as u32)
9963		}
9964	}
9965	#[inline]
9966	pub unsafe fn set_seq_scaling_matrix_present_flag_raw(this: *mut Self, val: u32) {
9967		unsafe {
9968			let val: u32 = ::std::mem::transmute(val);
9969			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9970				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9971				4usize,
9972				1u8,
9973				val as u64,
9974			)
9975		}
9976	}
9977	#[inline]
9978	pub fn direct_8x8_inference_flag(&self) -> u32 {
9979		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
9980	}
9981	#[inline]
9982	pub fn set_direct_8x8_inference_flag(&mut self, val: u32) {
9983		unsafe {
9984			let val: u32 = ::std::mem::transmute(val);
9985			self._bitfield_1.set(5usize, 1u8, val as u64)
9986		}
9987	}
9988	#[inline]
9989	pub unsafe fn direct_8x8_inference_flag_raw(this: *const Self) -> u32 {
9990		unsafe {
9991			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9992				::std::ptr::addr_of!((*this)._bitfield_1),
9993				5usize,
9994				1u8,
9995			) as u32)
9996		}
9997	}
9998	#[inline]
9999	pub unsafe fn set_direct_8x8_inference_flag_raw(this: *mut Self, val: u32) {
10000		unsafe {
10001			let val: u32 = ::std::mem::transmute(val);
10002			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
10003				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10004				5usize,
10005				1u8,
10006				val as u64,
10007			)
10008		}
10009	}
10010	#[inline]
10011	pub fn log2_max_frame_num_minus4(&self) -> u32 {
10012		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 4u8) as u32) }
10013	}
10014	#[inline]
10015	pub fn set_log2_max_frame_num_minus4(&mut self, val: u32) {
10016		unsafe {
10017			let val: u32 = ::std::mem::transmute(val);
10018			self._bitfield_1.set(6usize, 4u8, val as u64)
10019		}
10020	}
10021	#[inline]
10022	pub unsafe fn log2_max_frame_num_minus4_raw(this: *const Self) -> u32 {
10023		unsafe {
10024			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
10025				::std::ptr::addr_of!((*this)._bitfield_1),
10026				6usize,
10027				4u8,
10028			) as u32)
10029		}
10030	}
10031	#[inline]
10032	pub unsafe fn set_log2_max_frame_num_minus4_raw(this: *mut Self, val: u32) {
10033		unsafe {
10034			let val: u32 = ::std::mem::transmute(val);
10035			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
10036				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10037				6usize,
10038				4u8,
10039				val as u64,
10040			)
10041		}
10042	}
10043	#[inline]
10044	pub fn pic_order_cnt_type(&self) -> u32 {
10045		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
10046	}
10047	#[inline]
10048	pub fn set_pic_order_cnt_type(&mut self, val: u32) {
10049		unsafe {
10050			let val: u32 = ::std::mem::transmute(val);
10051			self._bitfield_1.set(10usize, 2u8, val as u64)
10052		}
10053	}
10054	#[inline]
10055	pub unsafe fn pic_order_cnt_type_raw(this: *const Self) -> u32 {
10056		unsafe {
10057			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
10058				::std::ptr::addr_of!((*this)._bitfield_1),
10059				10usize,
10060				2u8,
10061			) as u32)
10062		}
10063	}
10064	#[inline]
10065	pub unsafe fn set_pic_order_cnt_type_raw(this: *mut Self, val: u32) {
10066		unsafe {
10067			let val: u32 = ::std::mem::transmute(val);
10068			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
10069				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10070				10usize,
10071				2u8,
10072				val as u64,
10073			)
10074		}
10075	}
10076	#[inline]
10077	pub fn log2_max_pic_order_cnt_lsb_minus4(&self) -> u32 {
10078		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u32) }
10079	}
10080	#[inline]
10081	pub fn set_log2_max_pic_order_cnt_lsb_minus4(&mut self, val: u32) {
10082		unsafe {
10083			let val: u32 = ::std::mem::transmute(val);
10084			self._bitfield_1.set(12usize, 4u8, val as u64)
10085		}
10086	}
10087	#[inline]
10088	pub unsafe fn log2_max_pic_order_cnt_lsb_minus4_raw(this: *const Self) -> u32 {
10089		unsafe {
10090			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
10091				::std::ptr::addr_of!((*this)._bitfield_1),
10092				12usize,
10093				4u8,
10094			) as u32)
10095		}
10096	}
10097	#[inline]
10098	pub unsafe fn set_log2_max_pic_order_cnt_lsb_minus4_raw(this: *mut Self, val: u32) {
10099		unsafe {
10100			let val: u32 = ::std::mem::transmute(val);
10101			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
10102				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10103				12usize,
10104				4u8,
10105				val as u64,
10106			)
10107		}
10108	}
10109	#[inline]
10110	pub fn delta_pic_order_always_zero_flag(&self) -> u32 {
10111		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
10112	}
10113	#[inline]
10114	pub fn set_delta_pic_order_always_zero_flag(&mut self, val: u32) {
10115		unsafe {
10116			let val: u32 = ::std::mem::transmute(val);
10117			self._bitfield_1.set(16usize, 1u8, val as u64)
10118		}
10119	}
10120	#[inline]
10121	pub unsafe fn delta_pic_order_always_zero_flag_raw(this: *const Self) -> u32 {
10122		unsafe {
10123			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
10124				::std::ptr::addr_of!((*this)._bitfield_1),
10125				16usize,
10126				1u8,
10127			) as u32)
10128		}
10129	}
10130	#[inline]
10131	pub unsafe fn set_delta_pic_order_always_zero_flag_raw(this: *mut Self, val: u32) {
10132		unsafe {
10133			let val: u32 = ::std::mem::transmute(val);
10134			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
10135				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10136				16usize,
10137				1u8,
10138				val as u64,
10139			)
10140		}
10141	}
10142	#[inline]
10143	pub fn new_bitfield_1(
10144		chroma_format_idc: u32,
10145		frame_mbs_only_flag: u32,
10146		mb_adaptive_frame_field_flag: u32,
10147		seq_scaling_matrix_present_flag: u32,
10148		direct_8x8_inference_flag: u32,
10149		log2_max_frame_num_minus4: u32,
10150		pic_order_cnt_type: u32,
10151		log2_max_pic_order_cnt_lsb_minus4: u32,
10152		delta_pic_order_always_zero_flag: u32,
10153	) -> __BindgenBitfieldUnit<[u8; 3usize]> {
10154		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
10155		__bindgen_bitfield_unit.set(0usize, 2u8, {
10156			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
10157			chroma_format_idc as u64
10158		});
10159		__bindgen_bitfield_unit.set(2usize, 1u8, {
10160			let frame_mbs_only_flag: u32 = unsafe { ::std::mem::transmute(frame_mbs_only_flag) };
10161			frame_mbs_only_flag as u64
10162		});
10163		__bindgen_bitfield_unit.set(3usize, 1u8, {
10164			let mb_adaptive_frame_field_flag: u32 = unsafe { ::std::mem::transmute(mb_adaptive_frame_field_flag) };
10165			mb_adaptive_frame_field_flag as u64
10166		});
10167		__bindgen_bitfield_unit.set(4usize, 1u8, {
10168			let seq_scaling_matrix_present_flag: u32 =
10169				unsafe { ::std::mem::transmute(seq_scaling_matrix_present_flag) };
10170			seq_scaling_matrix_present_flag as u64
10171		});
10172		__bindgen_bitfield_unit.set(5usize, 1u8, {
10173			let direct_8x8_inference_flag: u32 = unsafe { ::std::mem::transmute(direct_8x8_inference_flag) };
10174			direct_8x8_inference_flag as u64
10175		});
10176		__bindgen_bitfield_unit.set(6usize, 4u8, {
10177			let log2_max_frame_num_minus4: u32 = unsafe { ::std::mem::transmute(log2_max_frame_num_minus4) };
10178			log2_max_frame_num_minus4 as u64
10179		});
10180		__bindgen_bitfield_unit.set(10usize, 2u8, {
10181			let pic_order_cnt_type: u32 = unsafe { ::std::mem::transmute(pic_order_cnt_type) };
10182			pic_order_cnt_type as u64
10183		});
10184		__bindgen_bitfield_unit.set(12usize, 4u8, {
10185			let log2_max_pic_order_cnt_lsb_minus4: u32 =
10186				unsafe { ::std::mem::transmute(log2_max_pic_order_cnt_lsb_minus4) };
10187			log2_max_pic_order_cnt_lsb_minus4 as u64
10188		});
10189		__bindgen_bitfield_unit.set(16usize, 1u8, {
10190			let delta_pic_order_always_zero_flag: u32 =
10191				unsafe { ::std::mem::transmute(delta_pic_order_always_zero_flag) };
10192			delta_pic_order_always_zero_flag as u64
10193		});
10194		__bindgen_bitfield_unit
10195	}
10196}
10197impl Default for _VAEncSequenceParameterBufferH264__bindgen_ty_1 {
10198	fn default() -> Self {
10199		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10200		unsafe {
10201			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10202			s.assume_init()
10203		}
10204	}
10205}
10206#[repr(C)]
10207#[derive(Copy, Clone)]
10208pub union _VAEncSequenceParameterBufferH264__bindgen_ty_2 {
10209	pub bits: _VAEncSequenceParameterBufferH264__bindgen_ty_2__bindgen_ty_1,
10210	pub value: u32,
10211}
10212#[repr(C)]
10213#[repr(align(4))]
10214#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
10215pub struct _VAEncSequenceParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
10216	pub _bitfield_align_1: [u16; 0],
10217	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
10218}
10219impl _VAEncSequenceParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
10220	#[inline]
10221	pub fn aspect_ratio_info_present_flag(&self) -> u32 {
10222		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
10223	}
10224	#[inline]
10225	pub fn set_aspect_ratio_info_present_flag(&mut self, val: u32) {
10226		unsafe {
10227			let val: u32 = ::std::mem::transmute(val);
10228			self._bitfield_1.set(0usize, 1u8, val as u64)
10229		}
10230	}
10231	#[inline]
10232	pub unsafe fn aspect_ratio_info_present_flag_raw(this: *const Self) -> u32 {
10233		unsafe {
10234			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10235				::std::ptr::addr_of!((*this)._bitfield_1),
10236				0usize,
10237				1u8,
10238			) as u32)
10239		}
10240	}
10241	#[inline]
10242	pub unsafe fn set_aspect_ratio_info_present_flag_raw(this: *mut Self, val: u32) {
10243		unsafe {
10244			let val: u32 = ::std::mem::transmute(val);
10245			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10246				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10247				0usize,
10248				1u8,
10249				val as u64,
10250			)
10251		}
10252	}
10253	#[inline]
10254	pub fn timing_info_present_flag(&self) -> u32 {
10255		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
10256	}
10257	#[inline]
10258	pub fn set_timing_info_present_flag(&mut self, val: u32) {
10259		unsafe {
10260			let val: u32 = ::std::mem::transmute(val);
10261			self._bitfield_1.set(1usize, 1u8, val as u64)
10262		}
10263	}
10264	#[inline]
10265	pub unsafe fn timing_info_present_flag_raw(this: *const Self) -> u32 {
10266		unsafe {
10267			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10268				::std::ptr::addr_of!((*this)._bitfield_1),
10269				1usize,
10270				1u8,
10271			) as u32)
10272		}
10273	}
10274	#[inline]
10275	pub unsafe fn set_timing_info_present_flag_raw(this: *mut Self, val: u32) {
10276		unsafe {
10277			let val: u32 = ::std::mem::transmute(val);
10278			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10279				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10280				1usize,
10281				1u8,
10282				val as u64,
10283			)
10284		}
10285	}
10286	#[inline]
10287	pub fn bitstream_restriction_flag(&self) -> u32 {
10288		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
10289	}
10290	#[inline]
10291	pub fn set_bitstream_restriction_flag(&mut self, val: u32) {
10292		unsafe {
10293			let val: u32 = ::std::mem::transmute(val);
10294			self._bitfield_1.set(2usize, 1u8, val as u64)
10295		}
10296	}
10297	#[inline]
10298	pub unsafe fn bitstream_restriction_flag_raw(this: *const Self) -> u32 {
10299		unsafe {
10300			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10301				::std::ptr::addr_of!((*this)._bitfield_1),
10302				2usize,
10303				1u8,
10304			) as u32)
10305		}
10306	}
10307	#[inline]
10308	pub unsafe fn set_bitstream_restriction_flag_raw(this: *mut Self, val: u32) {
10309		unsafe {
10310			let val: u32 = ::std::mem::transmute(val);
10311			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10312				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10313				2usize,
10314				1u8,
10315				val as u64,
10316			)
10317		}
10318	}
10319	#[inline]
10320	pub fn log2_max_mv_length_horizontal(&self) -> u32 {
10321		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 5u8) as u32) }
10322	}
10323	#[inline]
10324	pub fn set_log2_max_mv_length_horizontal(&mut self, val: u32) {
10325		unsafe {
10326			let val: u32 = ::std::mem::transmute(val);
10327			self._bitfield_1.set(3usize, 5u8, val as u64)
10328		}
10329	}
10330	#[inline]
10331	pub unsafe fn log2_max_mv_length_horizontal_raw(this: *const Self) -> u32 {
10332		unsafe {
10333			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10334				::std::ptr::addr_of!((*this)._bitfield_1),
10335				3usize,
10336				5u8,
10337			) as u32)
10338		}
10339	}
10340	#[inline]
10341	pub unsafe fn set_log2_max_mv_length_horizontal_raw(this: *mut Self, val: u32) {
10342		unsafe {
10343			let val: u32 = ::std::mem::transmute(val);
10344			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10345				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10346				3usize,
10347				5u8,
10348				val as u64,
10349			)
10350		}
10351	}
10352	#[inline]
10353	pub fn log2_max_mv_length_vertical(&self) -> u32 {
10354		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) }
10355	}
10356	#[inline]
10357	pub fn set_log2_max_mv_length_vertical(&mut self, val: u32) {
10358		unsafe {
10359			let val: u32 = ::std::mem::transmute(val);
10360			self._bitfield_1.set(8usize, 5u8, val as u64)
10361		}
10362	}
10363	#[inline]
10364	pub unsafe fn log2_max_mv_length_vertical_raw(this: *const Self) -> u32 {
10365		unsafe {
10366			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10367				::std::ptr::addr_of!((*this)._bitfield_1),
10368				8usize,
10369				5u8,
10370			) as u32)
10371		}
10372	}
10373	#[inline]
10374	pub unsafe fn set_log2_max_mv_length_vertical_raw(this: *mut Self, val: u32) {
10375		unsafe {
10376			let val: u32 = ::std::mem::transmute(val);
10377			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10378				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10379				8usize,
10380				5u8,
10381				val as u64,
10382			)
10383		}
10384	}
10385	#[inline]
10386	pub fn fixed_frame_rate_flag(&self) -> u32 {
10387		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
10388	}
10389	#[inline]
10390	pub fn set_fixed_frame_rate_flag(&mut self, val: u32) {
10391		unsafe {
10392			let val: u32 = ::std::mem::transmute(val);
10393			self._bitfield_1.set(13usize, 1u8, val as u64)
10394		}
10395	}
10396	#[inline]
10397	pub unsafe fn fixed_frame_rate_flag_raw(this: *const Self) -> u32 {
10398		unsafe {
10399			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10400				::std::ptr::addr_of!((*this)._bitfield_1),
10401				13usize,
10402				1u8,
10403			) as u32)
10404		}
10405	}
10406	#[inline]
10407	pub unsafe fn set_fixed_frame_rate_flag_raw(this: *mut Self, val: u32) {
10408		unsafe {
10409			let val: u32 = ::std::mem::transmute(val);
10410			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10411				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10412				13usize,
10413				1u8,
10414				val as u64,
10415			)
10416		}
10417	}
10418	#[inline]
10419	pub fn low_delay_hrd_flag(&self) -> u32 {
10420		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
10421	}
10422	#[inline]
10423	pub fn set_low_delay_hrd_flag(&mut self, val: u32) {
10424		unsafe {
10425			let val: u32 = ::std::mem::transmute(val);
10426			self._bitfield_1.set(14usize, 1u8, val as u64)
10427		}
10428	}
10429	#[inline]
10430	pub unsafe fn low_delay_hrd_flag_raw(this: *const Self) -> u32 {
10431		unsafe {
10432			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10433				::std::ptr::addr_of!((*this)._bitfield_1),
10434				14usize,
10435				1u8,
10436			) as u32)
10437		}
10438	}
10439	#[inline]
10440	pub unsafe fn set_low_delay_hrd_flag_raw(this: *mut Self, val: u32) {
10441		unsafe {
10442			let val: u32 = ::std::mem::transmute(val);
10443			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10444				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10445				14usize,
10446				1u8,
10447				val as u64,
10448			)
10449		}
10450	}
10451	#[inline]
10452	pub fn motion_vectors_over_pic_boundaries_flag(&self) -> u32 {
10453		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
10454	}
10455	#[inline]
10456	pub fn set_motion_vectors_over_pic_boundaries_flag(&mut self, val: u32) {
10457		unsafe {
10458			let val: u32 = ::std::mem::transmute(val);
10459			self._bitfield_1.set(15usize, 1u8, val as u64)
10460		}
10461	}
10462	#[inline]
10463	pub unsafe fn motion_vectors_over_pic_boundaries_flag_raw(this: *const Self) -> u32 {
10464		unsafe {
10465			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10466				::std::ptr::addr_of!((*this)._bitfield_1),
10467				15usize,
10468				1u8,
10469			) as u32)
10470		}
10471	}
10472	#[inline]
10473	pub unsafe fn set_motion_vectors_over_pic_boundaries_flag_raw(this: *mut Self, val: u32) {
10474		unsafe {
10475			let val: u32 = ::std::mem::transmute(val);
10476			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10477				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10478				15usize,
10479				1u8,
10480				val as u64,
10481			)
10482		}
10483	}
10484	#[inline]
10485	pub fn reserved(&self) -> u32 {
10486		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
10487	}
10488	#[inline]
10489	pub fn set_reserved(&mut self, val: u32) {
10490		unsafe {
10491			let val: u32 = ::std::mem::transmute(val);
10492			self._bitfield_1.set(16usize, 16u8, val as u64)
10493		}
10494	}
10495	#[inline]
10496	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
10497		unsafe {
10498			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10499				::std::ptr::addr_of!((*this)._bitfield_1),
10500				16usize,
10501				16u8,
10502			) as u32)
10503		}
10504	}
10505	#[inline]
10506	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
10507		unsafe {
10508			let val: u32 = ::std::mem::transmute(val);
10509			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10510				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10511				16usize,
10512				16u8,
10513				val as u64,
10514			)
10515		}
10516	}
10517	#[inline]
10518	pub fn new_bitfield_1(
10519		aspect_ratio_info_present_flag: u32,
10520		timing_info_present_flag: u32,
10521		bitstream_restriction_flag: u32,
10522		log2_max_mv_length_horizontal: u32,
10523		log2_max_mv_length_vertical: u32,
10524		fixed_frame_rate_flag: u32,
10525		low_delay_hrd_flag: u32,
10526		motion_vectors_over_pic_boundaries_flag: u32,
10527		reserved: u32,
10528	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
10529		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
10530		__bindgen_bitfield_unit.set(0usize, 1u8, {
10531			let aspect_ratio_info_present_flag: u32 = unsafe { ::std::mem::transmute(aspect_ratio_info_present_flag) };
10532			aspect_ratio_info_present_flag as u64
10533		});
10534		__bindgen_bitfield_unit.set(1usize, 1u8, {
10535			let timing_info_present_flag: u32 = unsafe { ::std::mem::transmute(timing_info_present_flag) };
10536			timing_info_present_flag as u64
10537		});
10538		__bindgen_bitfield_unit.set(2usize, 1u8, {
10539			let bitstream_restriction_flag: u32 = unsafe { ::std::mem::transmute(bitstream_restriction_flag) };
10540			bitstream_restriction_flag as u64
10541		});
10542		__bindgen_bitfield_unit.set(3usize, 5u8, {
10543			let log2_max_mv_length_horizontal: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_horizontal) };
10544			log2_max_mv_length_horizontal as u64
10545		});
10546		__bindgen_bitfield_unit.set(8usize, 5u8, {
10547			let log2_max_mv_length_vertical: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_vertical) };
10548			log2_max_mv_length_vertical as u64
10549		});
10550		__bindgen_bitfield_unit.set(13usize, 1u8, {
10551			let fixed_frame_rate_flag: u32 = unsafe { ::std::mem::transmute(fixed_frame_rate_flag) };
10552			fixed_frame_rate_flag as u64
10553		});
10554		__bindgen_bitfield_unit.set(14usize, 1u8, {
10555			let low_delay_hrd_flag: u32 = unsafe { ::std::mem::transmute(low_delay_hrd_flag) };
10556			low_delay_hrd_flag as u64
10557		});
10558		__bindgen_bitfield_unit.set(15usize, 1u8, {
10559			let motion_vectors_over_pic_boundaries_flag: u32 =
10560				unsafe { ::std::mem::transmute(motion_vectors_over_pic_boundaries_flag) };
10561			motion_vectors_over_pic_boundaries_flag as u64
10562		});
10563		__bindgen_bitfield_unit.set(16usize, 16u8, {
10564			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
10565			reserved as u64
10566		});
10567		__bindgen_bitfield_unit
10568	}
10569}
10570impl Default for _VAEncSequenceParameterBufferH264__bindgen_ty_2 {
10571	fn default() -> Self {
10572		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10573		unsafe {
10574			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10575			s.assume_init()
10576		}
10577	}
10578}
10579impl Default for _VAEncSequenceParameterBufferH264 {
10580	fn default() -> Self {
10581		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10582		unsafe {
10583			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10584			s.assume_init()
10585		}
10586	}
10587}
10588#[doc = " \\brief Sequence parameter for H.264 encoding in baseline, main & high\n profiles.\n\n This structure holds information for \\c seq_parameter_set_data() as\n defined by the H.264 specification.\n\n If packed sequence headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SEQUENCE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSequence ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c seq_scaling_matrix_present_flag is set to \\c 1, then a\n #VAIQMatrixBufferH264 buffer shall also be provided within the same\n \\c vaRenderPicture() call as this sequence parameter buffer."]
10589pub type VAEncSequenceParameterBufferH264 = _VAEncSequenceParameterBufferH264;
10590#[doc = " \\brief Picture parameter for H.264 encoding in baseline, main & high\n profiles.\n\n This structure holds information for \\c pic_parameter_set_rbsp() as\n defined by the H.264 specification.\n\n If packed picture headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_PICTURE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderPicture ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c pic_scaling_matrix_present_flag is set to \\c 1, then a\n #VAIQMatrixBufferH264 buffer shall also be provided within the same\n \\c vaRenderPicture() call as this picture parameter buffer."]
10591#[repr(C)]
10592#[derive(Copy, Clone)]
10593pub struct _VAEncPictureParameterBufferH264 {
10594	#[doc = " \\brief Information about the picture to be encoded.\n\n See #VAPictureH264 for further description of each field.\n Note that CurrPic.picture_id represents the reconstructed\n (decoded) picture. User provides a scratch VA surface ID here."]
10595	pub CurrPic: VAPictureH264,
10596	#[doc = " \\brief Decoded Picture Buffer (DPB).\n\n This array represents the list of reconstructed (decoded)\n frames used as reference. It is important to keep track of\n reconstructed frames so that they can be used later on as\n reference for P or B-frames encoding."]
10597	pub ReferenceFrames: [VAPictureH264; 16usize],
10598	#[doc = " \\brief Output encoded bitstream.\n\n \\ref coded_buf has type #VAEncCodedBufferType. It should be\n large enough to hold the compressed NAL slice and possibly SPS\n and PPS NAL units."]
10599	pub coded_buf: VABufferID,
10600	#[doc = " \\brief The picture parameter set referred to in the slice header."]
10601	pub pic_parameter_set_id: u8,
10602	#[doc = " \\brief The active sequence parameter set. Range: 0 to 31, inclusive."]
10603	pub seq_parameter_set_id: u8,
10604	#[doc = " \\brief OR'd flags describing whether the picture is the last one or not.\n\n This fields holds 0 if the picture to be encoded is not the last\n one in the stream or sequence. Otherwise, it is a combination of\n \\ref H264_LAST_PICTURE_EOSEQ or \\ref H264_LAST_PICTURE_EOSTREAM."]
10605	pub last_picture: u8,
10606	#[doc = " \\brief The picture identifier.\n   Range: 0 to \\f$2^{log2\\_max\\_frame\\_num\\_minus4 + 4} - 1\\f$, inclusive."]
10607	pub frame_num: u16,
10608	#[doc = " \\brief \\c pic_init_qp_minus26 + 26."]
10609	pub pic_init_qp: u8,
10610	#[doc = " \\brief Maximum reference index for reference picture list 0.\n   Range: 0 to 31, inclusive."]
10611	pub num_ref_idx_l0_active_minus1: u8,
10612	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  Range: 0 to 31, inclusive."]
10613	pub num_ref_idx_l1_active_minus1: u8,
10614	#[doc = " \\brief Range: -12 to 12, inclusive."]
10615	pub chroma_qp_index_offset: i8,
10616	#[doc = " \\brief Range: -12 to 12, inclusive."]
10617	pub second_chroma_qp_index_offset: i8,
10618	pub pic_fields: _VAEncPictureParameterBufferH264__bindgen_ty_1,
10619	#[doc = " \\brief Reserved bytes for future use, must be zero"]
10620	pub va_reserved: [u32; 4usize],
10621}
10622#[repr(C)]
10623#[derive(Copy, Clone)]
10624pub union _VAEncPictureParameterBufferH264__bindgen_ty_1 {
10625	pub bits: _VAEncPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
10626	pub value: u32,
10627}
10628#[repr(C)]
10629#[repr(align(4))]
10630#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
10631pub struct _VAEncPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
10632	pub _bitfield_align_1: [u8; 0],
10633	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
10634	pub __bindgen_padding_0: u16,
10635}
10636impl _VAEncPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
10637	#[inline]
10638	pub fn idr_pic_flag(&self) -> u32 {
10639		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
10640	}
10641	#[inline]
10642	pub fn set_idr_pic_flag(&mut self, val: u32) {
10643		unsafe {
10644			let val: u32 = ::std::mem::transmute(val);
10645			self._bitfield_1.set(0usize, 1u8, val as u64)
10646		}
10647	}
10648	#[inline]
10649	pub unsafe fn idr_pic_flag_raw(this: *const Self) -> u32 {
10650		unsafe {
10651			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10652				::std::ptr::addr_of!((*this)._bitfield_1),
10653				0usize,
10654				1u8,
10655			) as u32)
10656		}
10657	}
10658	#[inline]
10659	pub unsafe fn set_idr_pic_flag_raw(this: *mut Self, val: u32) {
10660		unsafe {
10661			let val: u32 = ::std::mem::transmute(val);
10662			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10663				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10664				0usize,
10665				1u8,
10666				val as u64,
10667			)
10668		}
10669	}
10670	#[inline]
10671	pub fn reference_pic_flag(&self) -> u32 {
10672		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) }
10673	}
10674	#[inline]
10675	pub fn set_reference_pic_flag(&mut self, val: u32) {
10676		unsafe {
10677			let val: u32 = ::std::mem::transmute(val);
10678			self._bitfield_1.set(1usize, 2u8, val as u64)
10679		}
10680	}
10681	#[inline]
10682	pub unsafe fn reference_pic_flag_raw(this: *const Self) -> u32 {
10683		unsafe {
10684			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10685				::std::ptr::addr_of!((*this)._bitfield_1),
10686				1usize,
10687				2u8,
10688			) as u32)
10689		}
10690	}
10691	#[inline]
10692	pub unsafe fn set_reference_pic_flag_raw(this: *mut Self, val: u32) {
10693		unsafe {
10694			let val: u32 = ::std::mem::transmute(val);
10695			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10696				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10697				1usize,
10698				2u8,
10699				val as u64,
10700			)
10701		}
10702	}
10703	#[inline]
10704	pub fn entropy_coding_mode_flag(&self) -> u32 {
10705		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
10706	}
10707	#[inline]
10708	pub fn set_entropy_coding_mode_flag(&mut self, val: u32) {
10709		unsafe {
10710			let val: u32 = ::std::mem::transmute(val);
10711			self._bitfield_1.set(3usize, 1u8, val as u64)
10712		}
10713	}
10714	#[inline]
10715	pub unsafe fn entropy_coding_mode_flag_raw(this: *const Self) -> u32 {
10716		unsafe {
10717			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10718				::std::ptr::addr_of!((*this)._bitfield_1),
10719				3usize,
10720				1u8,
10721			) as u32)
10722		}
10723	}
10724	#[inline]
10725	pub unsafe fn set_entropy_coding_mode_flag_raw(this: *mut Self, val: u32) {
10726		unsafe {
10727			let val: u32 = ::std::mem::transmute(val);
10728			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10729				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10730				3usize,
10731				1u8,
10732				val as u64,
10733			)
10734		}
10735	}
10736	#[inline]
10737	pub fn weighted_pred_flag(&self) -> u32 {
10738		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
10739	}
10740	#[inline]
10741	pub fn set_weighted_pred_flag(&mut self, val: u32) {
10742		unsafe {
10743			let val: u32 = ::std::mem::transmute(val);
10744			self._bitfield_1.set(4usize, 1u8, val as u64)
10745		}
10746	}
10747	#[inline]
10748	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
10749		unsafe {
10750			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10751				::std::ptr::addr_of!((*this)._bitfield_1),
10752				4usize,
10753				1u8,
10754			) as u32)
10755		}
10756	}
10757	#[inline]
10758	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
10759		unsafe {
10760			let val: u32 = ::std::mem::transmute(val);
10761			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10762				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10763				4usize,
10764				1u8,
10765				val as u64,
10766			)
10767		}
10768	}
10769	#[inline]
10770	pub fn weighted_bipred_idc(&self) -> u32 {
10771		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 2u8) as u32) }
10772	}
10773	#[inline]
10774	pub fn set_weighted_bipred_idc(&mut self, val: u32) {
10775		unsafe {
10776			let val: u32 = ::std::mem::transmute(val);
10777			self._bitfield_1.set(5usize, 2u8, val as u64)
10778		}
10779	}
10780	#[inline]
10781	pub unsafe fn weighted_bipred_idc_raw(this: *const Self) -> u32 {
10782		unsafe {
10783			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10784				::std::ptr::addr_of!((*this)._bitfield_1),
10785				5usize,
10786				2u8,
10787			) as u32)
10788		}
10789	}
10790	#[inline]
10791	pub unsafe fn set_weighted_bipred_idc_raw(this: *mut Self, val: u32) {
10792		unsafe {
10793			let val: u32 = ::std::mem::transmute(val);
10794			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10795				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10796				5usize,
10797				2u8,
10798				val as u64,
10799			)
10800		}
10801	}
10802	#[inline]
10803	pub fn constrained_intra_pred_flag(&self) -> u32 {
10804		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
10805	}
10806	#[inline]
10807	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
10808		unsafe {
10809			let val: u32 = ::std::mem::transmute(val);
10810			self._bitfield_1.set(7usize, 1u8, val as u64)
10811		}
10812	}
10813	#[inline]
10814	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
10815		unsafe {
10816			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10817				::std::ptr::addr_of!((*this)._bitfield_1),
10818				7usize,
10819				1u8,
10820			) as u32)
10821		}
10822	}
10823	#[inline]
10824	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
10825		unsafe {
10826			let val: u32 = ::std::mem::transmute(val);
10827			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10828				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10829				7usize,
10830				1u8,
10831				val as u64,
10832			)
10833		}
10834	}
10835	#[inline]
10836	pub fn transform_8x8_mode_flag(&self) -> u32 {
10837		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
10838	}
10839	#[inline]
10840	pub fn set_transform_8x8_mode_flag(&mut self, val: u32) {
10841		unsafe {
10842			let val: u32 = ::std::mem::transmute(val);
10843			self._bitfield_1.set(8usize, 1u8, val as u64)
10844		}
10845	}
10846	#[inline]
10847	pub unsafe fn transform_8x8_mode_flag_raw(this: *const Self) -> u32 {
10848		unsafe {
10849			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10850				::std::ptr::addr_of!((*this)._bitfield_1),
10851				8usize,
10852				1u8,
10853			) as u32)
10854		}
10855	}
10856	#[inline]
10857	pub unsafe fn set_transform_8x8_mode_flag_raw(this: *mut Self, val: u32) {
10858		unsafe {
10859			let val: u32 = ::std::mem::transmute(val);
10860			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10861				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10862				8usize,
10863				1u8,
10864				val as u64,
10865			)
10866		}
10867	}
10868	#[inline]
10869	pub fn deblocking_filter_control_present_flag(&self) -> u32 {
10870		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
10871	}
10872	#[inline]
10873	pub fn set_deblocking_filter_control_present_flag(&mut self, val: u32) {
10874		unsafe {
10875			let val: u32 = ::std::mem::transmute(val);
10876			self._bitfield_1.set(9usize, 1u8, val as u64)
10877		}
10878	}
10879	#[inline]
10880	pub unsafe fn deblocking_filter_control_present_flag_raw(this: *const Self) -> u32 {
10881		unsafe {
10882			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10883				::std::ptr::addr_of!((*this)._bitfield_1),
10884				9usize,
10885				1u8,
10886			) as u32)
10887		}
10888	}
10889	#[inline]
10890	pub unsafe fn set_deblocking_filter_control_present_flag_raw(this: *mut Self, val: u32) {
10891		unsafe {
10892			let val: u32 = ::std::mem::transmute(val);
10893			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10894				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10895				9usize,
10896				1u8,
10897				val as u64,
10898			)
10899		}
10900	}
10901	#[inline]
10902	pub fn redundant_pic_cnt_present_flag(&self) -> u32 {
10903		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
10904	}
10905	#[inline]
10906	pub fn set_redundant_pic_cnt_present_flag(&mut self, val: u32) {
10907		unsafe {
10908			let val: u32 = ::std::mem::transmute(val);
10909			self._bitfield_1.set(10usize, 1u8, val as u64)
10910		}
10911	}
10912	#[inline]
10913	pub unsafe fn redundant_pic_cnt_present_flag_raw(this: *const Self) -> u32 {
10914		unsafe {
10915			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10916				::std::ptr::addr_of!((*this)._bitfield_1),
10917				10usize,
10918				1u8,
10919			) as u32)
10920		}
10921	}
10922	#[inline]
10923	pub unsafe fn set_redundant_pic_cnt_present_flag_raw(this: *mut Self, val: u32) {
10924		unsafe {
10925			let val: u32 = ::std::mem::transmute(val);
10926			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10927				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10928				10usize,
10929				1u8,
10930				val as u64,
10931			)
10932		}
10933	}
10934	#[inline]
10935	pub fn pic_order_present_flag(&self) -> u32 {
10936		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
10937	}
10938	#[inline]
10939	pub fn set_pic_order_present_flag(&mut self, val: u32) {
10940		unsafe {
10941			let val: u32 = ::std::mem::transmute(val);
10942			self._bitfield_1.set(11usize, 1u8, val as u64)
10943		}
10944	}
10945	#[inline]
10946	pub unsafe fn pic_order_present_flag_raw(this: *const Self) -> u32 {
10947		unsafe {
10948			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10949				::std::ptr::addr_of!((*this)._bitfield_1),
10950				11usize,
10951				1u8,
10952			) as u32)
10953		}
10954	}
10955	#[inline]
10956	pub unsafe fn set_pic_order_present_flag_raw(this: *mut Self, val: u32) {
10957		unsafe {
10958			let val: u32 = ::std::mem::transmute(val);
10959			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10960				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10961				11usize,
10962				1u8,
10963				val as u64,
10964			)
10965		}
10966	}
10967	#[inline]
10968	pub fn pic_scaling_matrix_present_flag(&self) -> u32 {
10969		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
10970	}
10971	#[inline]
10972	pub fn set_pic_scaling_matrix_present_flag(&mut self, val: u32) {
10973		unsafe {
10974			let val: u32 = ::std::mem::transmute(val);
10975			self._bitfield_1.set(12usize, 1u8, val as u64)
10976		}
10977	}
10978	#[inline]
10979	pub unsafe fn pic_scaling_matrix_present_flag_raw(this: *const Self) -> u32 {
10980		unsafe {
10981			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
10982				::std::ptr::addr_of!((*this)._bitfield_1),
10983				12usize,
10984				1u8,
10985			) as u32)
10986		}
10987	}
10988	#[inline]
10989	pub unsafe fn set_pic_scaling_matrix_present_flag_raw(this: *mut Self, val: u32) {
10990		unsafe {
10991			let val: u32 = ::std::mem::transmute(val);
10992			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
10993				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10994				12usize,
10995				1u8,
10996				val as u64,
10997			)
10998		}
10999	}
11000	#[inline]
11001	pub fn new_bitfield_1(
11002		idr_pic_flag: u32,
11003		reference_pic_flag: u32,
11004		entropy_coding_mode_flag: u32,
11005		weighted_pred_flag: u32,
11006		weighted_bipred_idc: u32,
11007		constrained_intra_pred_flag: u32,
11008		transform_8x8_mode_flag: u32,
11009		deblocking_filter_control_present_flag: u32,
11010		redundant_pic_cnt_present_flag: u32,
11011		pic_order_present_flag: u32,
11012		pic_scaling_matrix_present_flag: u32,
11013	) -> __BindgenBitfieldUnit<[u8; 2usize]> {
11014		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
11015		__bindgen_bitfield_unit.set(0usize, 1u8, {
11016			let idr_pic_flag: u32 = unsafe { ::std::mem::transmute(idr_pic_flag) };
11017			idr_pic_flag as u64
11018		});
11019		__bindgen_bitfield_unit.set(1usize, 2u8, {
11020			let reference_pic_flag: u32 = unsafe { ::std::mem::transmute(reference_pic_flag) };
11021			reference_pic_flag as u64
11022		});
11023		__bindgen_bitfield_unit.set(3usize, 1u8, {
11024			let entropy_coding_mode_flag: u32 = unsafe { ::std::mem::transmute(entropy_coding_mode_flag) };
11025			entropy_coding_mode_flag as u64
11026		});
11027		__bindgen_bitfield_unit.set(4usize, 1u8, {
11028			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
11029			weighted_pred_flag as u64
11030		});
11031		__bindgen_bitfield_unit.set(5usize, 2u8, {
11032			let weighted_bipred_idc: u32 = unsafe { ::std::mem::transmute(weighted_bipred_idc) };
11033			weighted_bipred_idc as u64
11034		});
11035		__bindgen_bitfield_unit.set(7usize, 1u8, {
11036			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
11037			constrained_intra_pred_flag as u64
11038		});
11039		__bindgen_bitfield_unit.set(8usize, 1u8, {
11040			let transform_8x8_mode_flag: u32 = unsafe { ::std::mem::transmute(transform_8x8_mode_flag) };
11041			transform_8x8_mode_flag as u64
11042		});
11043		__bindgen_bitfield_unit.set(9usize, 1u8, {
11044			let deblocking_filter_control_present_flag: u32 =
11045				unsafe { ::std::mem::transmute(deblocking_filter_control_present_flag) };
11046			deblocking_filter_control_present_flag as u64
11047		});
11048		__bindgen_bitfield_unit.set(10usize, 1u8, {
11049			let redundant_pic_cnt_present_flag: u32 = unsafe { ::std::mem::transmute(redundant_pic_cnt_present_flag) };
11050			redundant_pic_cnt_present_flag as u64
11051		});
11052		__bindgen_bitfield_unit.set(11usize, 1u8, {
11053			let pic_order_present_flag: u32 = unsafe { ::std::mem::transmute(pic_order_present_flag) };
11054			pic_order_present_flag as u64
11055		});
11056		__bindgen_bitfield_unit.set(12usize, 1u8, {
11057			let pic_scaling_matrix_present_flag: u32 =
11058				unsafe { ::std::mem::transmute(pic_scaling_matrix_present_flag) };
11059			pic_scaling_matrix_present_flag as u64
11060		});
11061		__bindgen_bitfield_unit
11062	}
11063}
11064impl Default for _VAEncPictureParameterBufferH264__bindgen_ty_1 {
11065	fn default() -> Self {
11066		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11067		unsafe {
11068			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11069			s.assume_init()
11070		}
11071	}
11072}
11073impl Default for _VAEncPictureParameterBufferH264 {
11074	fn default() -> Self {
11075		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11076		unsafe {
11077			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11078			s.assume_init()
11079		}
11080	}
11081}
11082#[doc = " \\brief Picture parameter for H.264 encoding in baseline, main & high\n profiles.\n\n This structure holds information for \\c pic_parameter_set_rbsp() as\n defined by the H.264 specification.\n\n If packed picture headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_PICTURE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderPicture ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If \\c pic_scaling_matrix_present_flag is set to \\c 1, then a\n #VAIQMatrixBufferH264 buffer shall also be provided within the same\n \\c vaRenderPicture() call as this picture parameter buffer."]
11083pub type VAEncPictureParameterBufferH264 = _VAEncPictureParameterBufferH264;
11084#[doc = " \\brief Slice parameter for H.264 encoding in baseline, main & high profiles.\n\n This structure holds information for \\c\n slice_layer_without_partitioning_rbsp() as defined by the H.264\n specification.\n\n If packed slice headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SLICE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSlice ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If per-macroblock encoder configuration is needed, \\c macroblock_info\n references a buffer of type #VAEncMacroblockParameterBufferH264. This\n buffer is not passed to vaRenderPicture() and it can be re-used\n without re-allocating the whole buffer."]
11085#[repr(C)]
11086#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11087pub struct _VAEncSliceParameterBufferH264 {
11088	#[doc = " \\brief Starting MB address for this slice."]
11089	pub macroblock_address: u32,
11090	#[doc = " \\brief Number of macroblocks in this slice."]
11091	pub num_macroblocks: u32,
11092	#[doc = " \\brief Per-MB encoder configuration buffer, or \\c VA_INVALID_ID.\n\n If per-MB encoder configuration is needed, then \\ref macroblock_info\n references a buffer of type #VAEncMacroblockParameterBufferH264\n (\\c VAEncMacroblockParameterBufferType). Otherwise, buffer id\n is set to \\c VA_INVALID_ID and per-MB configuration is derived\n from this slice parameter.\n\n The \\c macroblock_info buffer must hold \\ref num_macroblocks\n elements."]
11093	pub macroblock_info: VABufferID,
11094	#[doc = " \\brief Slice type.\n  Range: 0..2, 5..7, i.e. no switching slices."]
11095	pub slice_type: u8,
11096	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11097	pub pic_parameter_set_id: u8,
11098	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11099	pub idr_pic_id: u16,
11100	#[doc = " @name If pic_order_cnt_type == 0 */\n/**@{*/\n/** \\brief The picture order count modulo MaxPicOrderCntLsb."]
11101	pub pic_order_cnt_lsb: u16,
11102	#[doc = " \\brief Valid if \\c pic_order_present_flag and this is a bottom field."]
11103	pub delta_pic_order_cnt_bottom: i32,
11104	#[doc = "@}*/\n/** @name If pic_order_cnt_type == 1 && !delta_pic_order_always_zero_flag */\n/**@{*/\n/** \\brief [0]: top, [1]: bottom."]
11105	pub delta_pic_order_cnt: [i32; 2usize],
11106	#[doc = " @name If slice_type == B */\n/**@{"]
11107	pub direct_spatial_mv_pred_flag: u8,
11108	#[doc = " @name If slice_type == P */\n/**@{*/\n/** \\brief Specifies if\n \\ref _VAEncPictureParameterBufferH264::num_ref_idx_l0_active_minus1 or\n \\ref _VAEncPictureParameterBufferH264::num_ref_idx_l1_active_minus1 are\n overriden by the values for this slice."]
11109	pub num_ref_idx_active_override_flag: u8,
11110	#[doc = " \\brief Maximum reference index for reference picture list 0.\n  Range: 0 to 31, inclusive."]
11111	pub num_ref_idx_l0_active_minus1: u8,
11112	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  Range: 0 to 31, inclusive."]
11113	pub num_ref_idx_l1_active_minus1: u8,
11114	#[doc = " \\brief Reference picture list 0 (for P slices)."]
11115	pub RefPicList0: [VAPictureH264; 32usize],
11116	#[doc = " \\brief Reference picture list 1 (for B slices)."]
11117	pub RefPicList1: [VAPictureH264; 32usize],
11118	#[doc = " @name pred_weight_table() */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
11119	pub luma_log2_weight_denom: u8,
11120	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11121	pub chroma_log2_weight_denom: u8,
11122	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11123	pub luma_weight_l0_flag: u8,
11124	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11125	pub luma_weight_l0: [::std::os::raw::c_short; 32usize],
11126	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11127	pub luma_offset_l0: [::std::os::raw::c_short; 32usize],
11128	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11129	pub chroma_weight_l0_flag: u8,
11130	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11131	pub chroma_weight_l0: [[::std::os::raw::c_short; 2usize]; 32usize],
11132	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11133	pub chroma_offset_l0: [[::std::os::raw::c_short; 2usize]; 32usize],
11134	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11135	pub luma_weight_l1_flag: u8,
11136	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11137	pub luma_weight_l1: [::std::os::raw::c_short; 32usize],
11138	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11139	pub luma_offset_l1: [::std::os::raw::c_short; 32usize],
11140	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11141	pub chroma_weight_l1_flag: u8,
11142	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11143	pub chroma_weight_l1: [[::std::os::raw::c_short; 2usize]; 32usize],
11144	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11145	pub chroma_offset_l1: [[::std::os::raw::c_short; 2usize]; 32usize],
11146	#[doc = " \\brief Range: 0 to 2, inclusive."]
11147	pub cabac_init_idc: u8,
11148	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11149	pub slice_qp_delta: i8,
11150	#[doc = " @name If deblocking_filter_control_present_flag */\n/**@{*/\n/** \\brief Range: 0 to 2, inclusive."]
11151	pub disable_deblocking_filter_idc: u8,
11152	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11153	pub slice_alpha_c0_offset_div2: i8,
11154	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
11155	pub slice_beta_offset_div2: i8,
11156	#[doc = " \\brief Reserved bytes for future use, must be zero"]
11157	pub va_reserved: [u32; 4usize],
11158}
11159#[doc = " \\brief Slice parameter for H.264 encoding in baseline, main & high profiles.\n\n This structure holds information for \\c\n slice_layer_without_partitioning_rbsp() as defined by the H.264\n specification.\n\n If packed slice headers mode is used, i.e. if the encoding\n pipeline was configured with the #VA_ENC_PACKED_HEADER_SLICE\n flag, then the driver expects two more buffers to be provided to\n the same \\c vaRenderPicture() as this buffer:\n - a #VAEncPackedHeaderParameterBuffer with type set to\n   VAEncPackedHeaderType::VAEncPackedHeaderSlice ;\n - a #VAEncPackedHeaderDataBuffer which holds the actual packed\n   header data.\n\n If per-macroblock encoder configuration is needed, \\c macroblock_info\n references a buffer of type #VAEncMacroblockParameterBufferH264. This\n buffer is not passed to vaRenderPicture() and it can be re-used\n without re-allocating the whole buffer."]
11160pub type VAEncSliceParameterBufferH264 = _VAEncSliceParameterBufferH264;
11161#[doc = " \\brief Macroblock parameter for H.264 encoding in baseline, main & high\n profiles.\n\n This structure holds per-macroblock information. The buffer must be\n allocated with as many elements (macroblocks) as necessary to fit\n the slice to be encoded. Besides, the per-macroblock records must\n be written in a strict raster order and with no gap. i.e. every\n macroblock, regardless of its type, shall have an entry."]
11162#[repr(C)]
11163#[derive(Copy, Clone)]
11164pub struct _VAEncMacroblockParameterBufferH264 {
11165	#[doc = " \\brief Quantization parameter.\n\n Requested quantization parameter. Range: 0 to 51, inclusive.\n If \\ref qp is set to 0xff, then the actual value is derived\n from the slice-level value: \\c pic_init_qp + \\c slice_qp_delta."]
11166	pub qp: u8,
11167	pub info: _VAEncMacroblockParameterBufferH264__bindgen_ty_1,
11168	#[doc = " \\brief Reserved bytes for future use, must be zero"]
11169	pub va_reserved: [u32; 4usize],
11170}
11171#[repr(C)]
11172#[derive(Copy, Clone)]
11173pub union _VAEncMacroblockParameterBufferH264__bindgen_ty_1 {
11174	pub intra_fields: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
11175	pub inter_fields: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2,
11176}
11177#[doc = " @name Data for intra macroblock */\n/**@{"]
11178#[repr(C)]
11179#[derive(Copy, Clone)]
11180pub union _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
11181	pub bits: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
11182	pub value: u32,
11183}
11184#[repr(C)]
11185#[repr(align(4))]
11186#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11187pub struct _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
11188	pub _bitfield_align_1: [u8; 0],
11189	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
11190	pub __bindgen_padding_0: u16,
11191}
11192impl _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
11193	#[inline]
11194	pub fn pred_avail_override_flag(&self) -> u32 {
11195		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
11196	}
11197	#[inline]
11198	pub fn set_pred_avail_override_flag(&mut self, val: u32) {
11199		unsafe {
11200			let val: u32 = ::std::mem::transmute(val);
11201			self._bitfield_1.set(0usize, 1u8, val as u64)
11202		}
11203	}
11204	#[inline]
11205	pub unsafe fn pred_avail_override_flag_raw(this: *const Self) -> u32 {
11206		unsafe {
11207			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11208				::std::ptr::addr_of!((*this)._bitfield_1),
11209				0usize,
11210				1u8,
11211			) as u32)
11212		}
11213	}
11214	#[inline]
11215	pub unsafe fn set_pred_avail_override_flag_raw(this: *mut Self, val: u32) {
11216		unsafe {
11217			let val: u32 = ::std::mem::transmute(val);
11218			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11219				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11220				0usize,
11221				1u8,
11222				val as u64,
11223			)
11224		}
11225	}
11226	#[inline]
11227	pub fn pred_avail_flags(&self) -> u32 {
11228		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 8u8) as u32) }
11229	}
11230	#[inline]
11231	pub fn set_pred_avail_flags(&mut self, val: u32) {
11232		unsafe {
11233			let val: u32 = ::std::mem::transmute(val);
11234			self._bitfield_1.set(1usize, 8u8, val as u64)
11235		}
11236	}
11237	#[inline]
11238	pub unsafe fn pred_avail_flags_raw(this: *const Self) -> u32 {
11239		unsafe {
11240			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11241				::std::ptr::addr_of!((*this)._bitfield_1),
11242				1usize,
11243				8u8,
11244			) as u32)
11245		}
11246	}
11247	#[inline]
11248	pub unsafe fn set_pred_avail_flags_raw(this: *mut Self, val: u32) {
11249		unsafe {
11250			let val: u32 = ::std::mem::transmute(val);
11251			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11252				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11253				1usize,
11254				8u8,
11255				val as u64,
11256			)
11257		}
11258	}
11259	#[inline]
11260	pub fn new_bitfield_1(pred_avail_override_flag: u32, pred_avail_flags: u32) -> __BindgenBitfieldUnit<[u8; 2usize]> {
11261		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
11262		__bindgen_bitfield_unit.set(0usize, 1u8, {
11263			let pred_avail_override_flag: u32 = unsafe { ::std::mem::transmute(pred_avail_override_flag) };
11264			pred_avail_override_flag as u64
11265		});
11266		__bindgen_bitfield_unit.set(1usize, 8u8, {
11267			let pred_avail_flags: u32 = unsafe { ::std::mem::transmute(pred_avail_flags) };
11268			pred_avail_flags as u64
11269		});
11270		__bindgen_bitfield_unit
11271	}
11272}
11273impl Default for _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
11274	fn default() -> Self {
11275		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11276		unsafe {
11277			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11278			s.assume_init()
11279		}
11280	}
11281}
11282#[doc = " @name Data for inter macroblock */\n/**@{"]
11283#[repr(C)]
11284#[derive(Copy, Clone)]
11285pub union _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2 {
11286	pub bits: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
11287	pub value: u32,
11288}
11289#[repr(C)]
11290#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11291pub struct _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
11292	pub reserved: u32,
11293}
11294impl Default for _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2 {
11295	fn default() -> Self {
11296		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11297		unsafe {
11298			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11299			s.assume_init()
11300		}
11301	}
11302}
11303impl Default for _VAEncMacroblockParameterBufferH264__bindgen_ty_1 {
11304	fn default() -> Self {
11305		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11306		unsafe {
11307			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11308			s.assume_init()
11309		}
11310	}
11311}
11312impl Default for _VAEncMacroblockParameterBufferH264 {
11313	fn default() -> Self {
11314		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11315		unsafe {
11316			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11317			s.assume_init()
11318		}
11319	}
11320}
11321#[doc = " \\brief Macroblock parameter for H.264 encoding in baseline, main & high\n profiles.\n\n This structure holds per-macroblock information. The buffer must be\n allocated with as many elements (macroblocks) as necessary to fit\n the slice to be encoded. Besides, the per-macroblock records must\n be written in a strict raster order and with no gap. i.e. every\n macroblock, regardless of its type, shall have an entry."]
11322pub type VAEncMacroblockParameterBufferH264 = _VAEncMacroblockParameterBufferH264;
11323pub const _VAProcColorStandardType_VAProcColorStandardNone: _VAProcColorStandardType = 0;
11324#[doc = " \\brief ITU-R BT.601.\n\n It is unspecified whether this will use 525-line or 625-line values;\n specify the colour primaries and matrix coefficients explicitly if\n it is known which one is required.\n\n Equivalent to:\n   colour_primaries = 5 or 6\n   transfer_characteristics = 6\n   matrix_coefficients = 5 or 6"]
11325pub const _VAProcColorStandardType_VAProcColorStandardBT601: _VAProcColorStandardType = 1;
11326#[doc = " \\brief ITU-R BT.709.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 1\n   matrix_coefficients = 1"]
11327pub const _VAProcColorStandardType_VAProcColorStandardBT709: _VAProcColorStandardType = 2;
11328#[doc = " \\brief ITU-R BT.470-2 System M.\n\n Equivalent to:\n   colour_primaries = 4\n   transfer_characteristics = 4\n   matrix_coefficients = 4"]
11329pub const _VAProcColorStandardType_VAProcColorStandardBT470M: _VAProcColorStandardType = 3;
11330#[doc = " \\brief ITU-R BT.470-2 System B, G.\n\n Equivalent to:\n   colour_primaries = 5\n   transfer_characteristics = 5\n   matrix_coefficients = 5"]
11331pub const _VAProcColorStandardType_VAProcColorStandardBT470BG: _VAProcColorStandardType = 4;
11332#[doc = " \\brief SMPTE-170M.\n\n Equivalent to:\n   colour_primaries = 6\n   transfer_characteristics = 6\n   matrix_coefficients = 6"]
11333pub const _VAProcColorStandardType_VAProcColorStandardSMPTE170M: _VAProcColorStandardType = 5;
11334#[doc = " \\brief SMPTE-240M.\n\n Equivalent to:\n   colour_primaries = 7\n   transfer_characteristics = 7\n   matrix_coefficients = 7"]
11335pub const _VAProcColorStandardType_VAProcColorStandardSMPTE240M: _VAProcColorStandardType = 6;
11336#[doc = " \\brief Generic film.\n\n Equivalent to:\n   colour_primaries = 8\n   transfer_characteristics = 1\n   matrix_coefficients = 1"]
11337pub const _VAProcColorStandardType_VAProcColorStandardGenericFilm: _VAProcColorStandardType = 7;
11338#[doc = " \\brief sRGB.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 13\n   matrix_coefficients = 0"]
11339pub const _VAProcColorStandardType_VAProcColorStandardSRGB: _VAProcColorStandardType = 8;
11340#[doc = " \\brief stRGB.\n\n ???"]
11341pub const _VAProcColorStandardType_VAProcColorStandardSTRGB: _VAProcColorStandardType = 9;
11342#[doc = " \\brief xvYCC601.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 11\n   matrix_coefficients = 5"]
11343pub const _VAProcColorStandardType_VAProcColorStandardXVYCC601: _VAProcColorStandardType = 10;
11344#[doc = " \\brief xvYCC709.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 11\n   matrix_coefficients = 1"]
11345pub const _VAProcColorStandardType_VAProcColorStandardXVYCC709: _VAProcColorStandardType = 11;
11346#[doc = " \\brief ITU-R BT.2020.\n\n Equivalent to:\n   colour_primaries = 9\n   transfer_characteristics = 14\n   matrix_coefficients = 9"]
11347pub const _VAProcColorStandardType_VAProcColorStandardBT2020: _VAProcColorStandardType = 12;
11348#[doc = " \\brief Explicitly specified color properties.\n\n Use corresponding color properties section.\n For example, HDR10 content:\n   colour_primaries = 9 (BT2020)\n   transfer_characteristics = 16 (SMPTE ST2084)\n   matrix_coefficients = 9"]
11349pub const _VAProcColorStandardType_VAProcColorStandardExplicit: _VAProcColorStandardType = 13;
11350#[doc = " \\brief Number of color standards."]
11351pub const _VAProcColorStandardType_VAProcColorStandardCount: _VAProcColorStandardType = 14;
11352#[doc = " \\brief Color standard types.\n\n These define a set of color properties corresponding to particular\n video standards.\n\n Where matrix_coefficients is specified, it applies only to YUV data -\n RGB data always use the identity matrix (matrix_coefficients = 0)."]
11353pub type _VAProcColorStandardType = ::std::os::raw::c_uint;
11354#[doc = " \\brief Color standard types.\n\n These define a set of color properties corresponding to particular\n video standards.\n\n Where matrix_coefficients is specified, it applies only to YUV data -\n RGB data always use the identity matrix (matrix_coefficients = 0)."]
11355pub use self::_VAProcColorStandardType as VAProcColorStandardType;
11356pub const _VAProcHighDynamicRangeMetadataType_VAProcHighDynamicRangeMetadataNone: _VAProcHighDynamicRangeMetadataType =
11357	0;
11358#[doc = " \\brief Metadata type for HDR10."]
11359pub const _VAProcHighDynamicRangeMetadataType_VAProcHighDynamicRangeMetadataHDR10: _VAProcHighDynamicRangeMetadataType =
11360	1;
11361#[doc = " \\brief Number of Metadata type."]
11362pub const _VAProcHighDynamicRangeMetadataType_VAProcHighDynamicRangeMetadataTypeCount:
11363	_VAProcHighDynamicRangeMetadataType = 2;
11364#[doc = " \\brief High Dynamic Range Metadata types."]
11365pub type _VAProcHighDynamicRangeMetadataType = ::std::os::raw::c_uint;
11366#[doc = " \\brief High Dynamic Range Metadata types."]
11367pub use self::_VAProcHighDynamicRangeMetadataType as VAProcHighDynamicRangeMetadataType;
11368#[doc = " \\brief Default Mode.\n In this mode, pipeline is decided in driver to the appropriate mode.\n e.g. a mode that's a balance between power and performance."]
11369pub const _VAProcMode_VAProcDefaultMode: _VAProcMode = 0;
11370#[doc = " \\brief Power Saving Mode.\n In this mode, pipeline is optimized for power saving."]
11371pub const _VAProcMode_VAProcPowerSavingMode: _VAProcMode = 1;
11372#[doc = " \\brief Performance Mode.\n In this mode, pipeline is optimized for performance."]
11373pub const _VAProcMode_VAProcPerformanceMode: _VAProcMode = 2;
11374#[doc = " \\brief Video Processing Mode."]
11375pub type _VAProcMode = ::std::os::raw::c_uint;
11376#[doc = " \\brief Video Processing Mode."]
11377pub use self::_VAProcMode as VAProcMode;
11378#[doc = " \\brief Video blending state definition."]
11379#[repr(C)]
11380#[derive(Debug, Default, Copy, Clone, PartialEq)]
11381pub struct _VABlendState {
11382	#[doc = " \\brief Video blending flags."]
11383	pub flags: ::std::os::raw::c_uint,
11384	#[doc = " \\brief Global alpha value.\n\n Valid if \\ref flags has VA_BLEND_GLOBAL_ALPHA.\n Valid range is 0.0 to 1.0 inclusive."]
11385	pub global_alpha: f32,
11386	#[doc = " \\brief Minimum luma value.\n\n Valid if \\ref flags has VA_BLEND_LUMA_KEY.\n Valid range is 0.0 to 1.0 inclusive.\n \\ref min_luma shall be set to a sensible value lower than \\ref max_luma."]
11387	pub min_luma: f32,
11388	#[doc = " \\brief Maximum luma value.\n\n Valid if \\ref flags has VA_BLEND_LUMA_KEY.\n Valid range is 0.0 to 1.0 inclusive.\n \\ref max_luma shall be set to a sensible value larger than \\ref min_luma."]
11389	pub max_luma: f32,
11390}
11391#[doc = " \\brief Video blending state definition."]
11392pub type VABlendState = _VABlendState;
11393#[repr(C)]
11394#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11395pub struct _VAProcColorProperties {
11396	#[doc = " Chroma sample location.\\c VA_CHROMA_SITING_VERTICAL_XXX | VA_CHROMA_SITING_HORIZONTAL_XXX"]
11397	pub chroma_sample_location: u8,
11398	#[doc = " Color range. \\c VA_SOURCE_RANGE_XXX"]
11399	pub color_range: u8,
11400	#[doc = " Colour primaries.\n\n See ISO/IEC 23001-8 or ITU H.273, section 8.1 and table 2.\n Only used if the color standard in use is \\c VAColorStandardExplicit.\n Below list the typical colour primaries for the reference.\n ---------------------------------------------------------------------------------\n | Value | Primaries                  | Informative Remark                       |\n --------------------------------------------------------------------------------\n | 1     |primary  x        y         |Rec.ITU-R BT.709-5                        |\n |       |green    0.300    0.600     |IEC 61966-2-1(sRGB or sYCC)               |\n |       |blue     0.150    0.060     |                                          |\n |       |red      0.640    0.330     |                                          |\n |       |whiteD65 0.3127   0.3290    |                                          |\n ---------------------------------------------------------------------------------\n | 6     |primary  x        y         |Rec.ITU-R BT.601-6 525                    |\n |       |green    0.310    0.595     |                                          |\n |       |blue     0.155    0.070     |                                          |\n |       |red      0.630    0.340     |                                          |\n |       |whiteD65 0.3127   0.3290    |                                          |\n ---------------------------------------------------------------------------------\n | 9     |primary  x        y         |Rec.ITU-R BT.2020                         |\n |       |green    0.170    0.797     |                                          |\n |       |blue     0.131    0.046     |                                          |\n |       |red      0.708    0.292     |                                          |\n |       |whiteD65 0.3127   0.3290    |                                          |\n ---------------------------------------------------------------------------------"]
11401	pub colour_primaries: u8,
11402	#[doc = " Transfer characteristics.\n\n See ISO/IEC 23001-8 or ITU H.273, section 8.2 and table 3.\n Only used if the color standard in use is \\c VAColorStandardExplicit.\n Below list the typical transfer characteristics for the reference.\n -----------------------------------------------------------\n | Value | Informative Remark                              |\n -----------------------------------------------------------\n | 1     |Rec.ITU-R BT.709-5                               |\n |       |colour gamut system                              |\n -----------------------------------------------------------\n | 4     |Assumed display gamma 2.2                        |\n -----------------------------------------------------------\n | 6     |Rec.ITU-R BT.601-6 525 or 625                    |\n -----------------------------------------------------------\n | 8     |Linear transfer characteristics                  |\n -----------------------------------------------------------\n | 13    |IEC 61966-2-1(sRGB or sYCC)                      |\n -----------------------------------------------------------\n | 14,15 |Rec.ITU-R BT.2020                                |\n -----------------------------------------------------------\n | 16    |SMPTE ST 2084 for 10,12,14 and 16bit system      |\n -----------------------------------------------------------"]
11403	pub transfer_characteristics: u8,
11404	#[doc = " Matrix coefficients.\n\n See ISO/IEC 23001-8 or ITU H.273, section 8.3 and table 4.\n Only used if the color standard in use is \\c VAColorStandardExplicit."]
11405	pub matrix_coefficients: u8,
11406	#[doc = " Reserved bytes for future use, must be zero."]
11407	pub reserved: [u8; 3usize],
11408}
11409pub type VAProcColorProperties = _VAProcColorProperties;
11410#[doc = " \\brief High Dynamic Range Meta Data."]
11411#[repr(C)]
11412#[derive(Debug, Copy, Clone, PartialEq, Eq)]
11413pub struct _VAHdrMetaData {
11414	#[doc = " \\brief high dynamic range metadata type, HDR10 etc."]
11415	pub metadata_type: VAProcHighDynamicRangeMetadataType,
11416	#[doc = "  \\brief Pointer to high dynamic range metadata.\n\n  The pointer could point to VAHdrMetaDataHDR10 or other HDR meta data."]
11417	pub metadata: *mut ::std::os::raw::c_void,
11418	#[doc = "  \\brief Size of high dynamic range metadata."]
11419	pub metadata_size: u32,
11420	#[doc = " \\brief Reserved bytes for future use, must be zero"]
11421	pub reserved: [u32; 4usize],
11422}
11423impl Default for _VAHdrMetaData {
11424	fn default() -> Self {
11425		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11426		unsafe {
11427			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11428			s.assume_init()
11429		}
11430	}
11431}
11432#[doc = " \\brief High Dynamic Range Meta Data."]
11433pub type VAHdrMetaData = _VAHdrMetaData;
11434#[doc = " \\brief Video processing pipeline configuration.\n\n This buffer defines a video processing pipeline. The actual filters to\n be applied are provided in the \\c filters field, they can be re-used\n in other processing pipelines.\n\n The target surface is specified by the \\c render_target argument of\n \\c vaBeginPicture(). The general usage model is described as follows:\n - \\c vaBeginPicture(): specify the target surface that receives the\n   processed output;\n - \\c vaRenderPicture(): specify a surface to be processed and composed\n   into the \\c render_target. Use as many \\c vaRenderPicture() calls as\n   necessary surfaces to compose ;\n - \\c vaEndPicture(): tell the driver to start processing the surfaces\n   with the requested filters.\n\n If a filter (e.g. noise reduction) needs to be applied with different\n values for multiple surfaces, the application needs to create as many\n filter parameter buffers as necessary. i.e. the filter parameters shall\n not change between two calls to \\c vaRenderPicture().\n\n For composition usage models, the first surface to process will generally\n use an opaque background color, i.e. \\c output_background_color set with\n the most significant byte set to \\c 0xff. For instance, \\c 0xff000000 for\n a black background. Then, subsequent surfaces would use a transparent\n background color."]
11435#[repr(C)]
11436#[derive(Debug, Copy, Clone, PartialEq, Eq)]
11437pub struct _VAProcPipelineParameterBuffer {
11438	#[doc = " \\brief Source surface ID.\n\n ID of the source surface to process. If subpictures are associated\n with the video surfaces then they shall be rendered to the target\n surface, if the #VA_PROC_PIPELINE_SUBPICTURES pipeline flag is set."]
11439	pub surface: VASurfaceID,
11440	#[doc = " \\brief Region within the source surface to be processed.\n\n Pointer to a #VARectangle defining the region within the source\n surface to be processed. If NULL, \\c surface_region implies the\n whole surface."]
11441	pub surface_region: *const VARectangle,
11442	#[doc = " \\brief Requested input color standard.\n\n Color properties are implicitly converted throughout the processing\n pipeline. The video processor chooses the best moment to apply\n this conversion. The set of supported color standards for input shall\n be queried with vaQueryVideoProcPipelineCaps().\n\n If this is set to VAProcColorStandardExplicit, the color properties\n are specified explicitly in input_color_properties instead."]
11443	pub surface_color_standard: VAProcColorStandardType,
11444	#[doc = " \\brief Region within the output surface.\n\n Pointer to a #VARectangle defining the region within the output\n surface that receives the processed pixels. If NULL, \\c output_region\n implies the whole surface.\n\n Note that any pixels residing outside the specified region will\n be filled in with the \\ref output_background_color."]
11445	pub output_region: *const VARectangle,
11446	#[doc = " \\brief Background color.\n\n Background color used to fill in pixels that reside outside of the\n specified \\ref output_region. The color is specified in ARGB format:\n [31:24] alpha, [23:16] red, [15:8] green, [7:0] blue.\n\n Unless the alpha value is zero or the \\ref output_region represents\n the whole target surface size, implementations shall not render the\n source surface to the target surface directly. Rather, in order to\n maintain the exact semantics of \\ref output_background_color, the\n driver shall use a temporary surface and fill it in with the\n appropriate background color. Next, the driver will blend this\n temporary surface into the target surface."]
11447	pub output_background_color: u32,
11448	#[doc = " \\brief Requested output color standard.\n\n If this is set to VAProcColorStandardExplicit, the color properties\n are specified explicitly in output_color_properties instead."]
11449	pub output_color_standard: VAProcColorStandardType,
11450	#[doc = " \\brief Pipeline filters. See video pipeline flags.\n\n Flags to control the pipeline, like whether to apply subpictures\n or not, notify the driver that it can opt for power optimizations,\n should this be needed."]
11451	pub pipeline_flags: u32,
11452	#[doc = " \\brief Extra filter flags. See vaPutSurface() flags.\n\n Filter flags are used as a fast path, wherever possible, to use\n vaPutSurface() flags instead of explicit filter parameter buffers.\n\n Allowed filter flags API-wise. Use vaQueryVideoProcPipelineCaps()\n to check for implementation details:\n - Bob-deinterlacing: \\c VA_FRAME_PICTURE, \\c VA_TOP_FIELD,\n   \\c VA_BOTTOM_FIELD. Note that any deinterlacing filter\n   (#VAProcFilterDeinterlacing) will override those flags.\n - Color space conversion: \\c VA_SRC_BT601, \\c VA_SRC_BT709,\n   \\c VA_SRC_SMPTE_240.\n - Scaling: \\c VA_FILTER_SCALING_DEFAULT, \\c VA_FILTER_SCALING_FAST,\n   \\c VA_FILTER_SCALING_HQ, \\c VA_FILTER_SCALING_NL_ANAMORPHIC.\n - Interpolation Method: \\c VA_FILTER_INTERPOLATION_DEFAULT,\n   \\c VA_FILTER_INTERPOLATION_NEAREST_NEIGHBOR,\n   \\c VA_FILTER_INTERPOLATION_BILINEAR, \\c VA_FILTER_INTERPOLATION_ADVANCED."]
11453	pub filter_flags: u32,
11454	#[doc = " \\brief Array of filters to apply to the surface.\n\n The list of filters shall be ordered in the same way the driver expects\n them. i.e. as was returned from vaQueryVideoProcFilters().\n Otherwise, a #VA_STATUS_ERROR_INVALID_FILTER_CHAIN is returned\n from vaRenderPicture() with this buffer.\n\n #VA_STATUS_ERROR_UNSUPPORTED_FILTER is returned if the list\n contains an unsupported filter.\n"]
11455	pub filters: *mut VABufferID,
11456	#[doc = " \\brief Actual number of filters."]
11457	pub num_filters: u32,
11458	#[doc = " \\brief Array of forward reference frames (past frames)."]
11459	pub forward_references: *mut VASurfaceID,
11460	#[doc = " \\brief Number of forward reference frames that were supplied."]
11461	pub num_forward_references: u32,
11462	#[doc = " \\brief Array of backward reference frames (future frames)."]
11463	pub backward_references: *mut VASurfaceID,
11464	#[doc = " \\brief Number of backward reference frames that were supplied."]
11465	pub num_backward_references: u32,
11466	#[doc = " \\brief Rotation state. See rotation angles.\n\n The rotation angle is clockwise. There is no specific rotation\n center for this operation. Rather, The source \\ref surface is\n first rotated by the specified angle and then scaled to fit the\n \\ref output_region.\n\n This means that the top-left hand corner (0,0) of the output\n (rotated) surface is expressed as follows:\n - \\ref VA_ROTATION_NONE: (0,0) is the top left corner of the\n   source surface -- no rotation is performed ;\n - \\ref VA_ROTATION_90: (0,0) is the bottom-left corner of the\n   source surface ;\n - \\ref VA_ROTATION_180: (0,0) is the bottom-right corner of the\n   source surface -- the surface is flipped around the X axis ;\n - \\ref VA_ROTATION_270: (0,0) is the top-right corner of the\n   source surface.\n\n Check VAProcPipelineCaps::rotation_flags first prior to\n defining a specific rotation angle. Otherwise, the hardware can\n perfectly ignore this variable if it does not support any\n rotation."]
11467	pub rotation_state: u32,
11468	#[doc = " \\brief blending state. See \"Video blending state definition\".\n\n If \\ref blend_state is NULL, then default operation mode depends\n on the source \\ref surface format:\n - RGB: per-pixel alpha blending ;\n - YUV: no blending, i.e override the underlying pixels.\n\n Otherwise, \\ref blend_state is a pointer to a #VABlendState\n structure that shall be live until vaEndPicture().\n\n Implementation note: the driver is responsible for checking the\n blend state flags against the actual source \\ref surface format.\n e.g. premultiplied alpha blending is only applicable to RGB\n surfaces, and luma keying is only applicable to YUV surfaces.\n If a mismatch occurs, then #VA_STATUS_ERROR_INVALID_BLEND_STATE\n is returned."]
11469	pub blend_state: *const VABlendState,
11470	#[doc = " \\brief mirroring state. See \"Mirroring directions\".\n\n Mirroring of an image can be performed either along the\n horizontal or vertical axis. It is assumed that the rotation\n operation is always performed before the mirroring operation."]
11471	pub mirror_state: u32,
11472	#[doc = " \\brief Array of additional output surfaces."]
11473	pub additional_outputs: *mut VASurfaceID,
11474	#[doc = " \\brief Number of additional output surfaces."]
11475	pub num_additional_outputs: u32,
11476	#[doc = " \\brief Flag to indicate the input surface flag\n\n bit0~3: Surface sample type\n - 0000: Progressive --> VA_FRAME_PICTURE\n - 0001: Single Top Field --> VA_TOP_FIELD\n - 0010: Single Bottom Field --> VA_BOTTOM_FIELD\n - 0100: Interleaved Top Field First --> VA_TOP_FIELD_FIRST\n - 1000: Interleaved Bottom Field First --> VA_BOTTOM_FIELD_FIRST\n\n For interlaced scaling, examples as follow:\n - 1. Interleaved to Interleaved (Suppose input is top field first)\n   -- set input_surface_flag as VA_TOP_FIELD_FIRST\n   -- set output_surface_flag as VA_TOP_FIELD_FIRST\n - 2. Interleaved to Field (Suppose input is top field first)\n   An interleaved frame need to be passed twice.\n   First cycle to get the first field:\n   -- set input_surface_flag as VA_TOP_FIELD_FIRST\n   -- set output_surface_flag as VA_TOP_FIELD\n   Second cycle to get the second field:\n   -- set input_surface_flag as VA_TOP_FIELD_FIRST\n   -- set output_surface_flag as VA_BOTTOM_FIELD\n - 3. Field to Interleaved (Suppose first field is top field)\n   -- create two surfaces, one for top field, the other for bottom field\n   -- set surface with the first field surface id\n   -- set backward_reference with the second field surface id\n   -- set input_surface_flag as VA_TOP_FIELD\n   -- set output_surface_flag as VA_TOP_FIELD_FIRST\n - 4. Field to Field:\n   -- set flag according to each frame.\n\n bit31: Surface encryption\n - 0: non-protected\n - 1: protected\n\n bit4~30 for future"]
11477	pub input_surface_flag: u32,
11478	#[doc = " \\brief Flag to indicate the output surface flag\n\n bit0~3: Surface sample type\n - 0000: Progressive --> VA_FRAME_PICTURE\n - 0001: Top Field --> VA_TOP_FIELD\n - 0010: Bottom Field --> VA_BOTTOM_FIELD\n - 0100: Top Field First --> VA_TOP_FIELD_FIRST\n - 1000: Bottom Field First --> VA_BOTTOM_FIELD_FIRST\n\n bit31: Surface encryption\n - 0: non-protected\n - 1: protected\n\n bit4~30 for future"]
11479	pub output_surface_flag: u32,
11480	#[doc = " \\brief Input Color Properties. See \"VAProcColorProperties\"."]
11481	pub input_color_properties: VAProcColorProperties,
11482	#[doc = " \\brief Output Color Properties. See \"VAProcColorProperties\"."]
11483	pub output_color_properties: VAProcColorProperties,
11484	#[doc = " \\brief Processing mode. See \"VAProcMode\"."]
11485	pub processing_mode: VAProcMode,
11486	#[doc = " \\brief Output High Dynamic Metadata.\n\n If output_metadata is NULL, then output default to SDR."]
11487	pub output_hdr_metadata: *mut VAHdrMetaData,
11488	#[cfg(any(target_arch = "x86_64", all(target_pointer_width = "64", not(windows))))]
11489	pub va_reserved: [u32; 16usize],
11490	#[cfg(not(any(target_arch = "x86_64", all(target_pointer_width = "64", not(windows)))))]
11491	pub va_reserved: [u32; 19usize],
11492}
11493impl Default for _VAProcPipelineParameterBuffer {
11494	fn default() -> Self {
11495		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11496		unsafe {
11497			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11498			s.assume_init()
11499		}
11500	}
11501}
11502#[doc = " \\brief Video processing pipeline configuration.\n\n This buffer defines a video processing pipeline. The actual filters to\n be applied are provided in the \\c filters field, they can be re-used\n in other processing pipelines.\n\n The target surface is specified by the \\c render_target argument of\n \\c vaBeginPicture(). The general usage model is described as follows:\n - \\c vaBeginPicture(): specify the target surface that receives the\n   processed output;\n - \\c vaRenderPicture(): specify a surface to be processed and composed\n   into the \\c render_target. Use as many \\c vaRenderPicture() calls as\n   necessary surfaces to compose ;\n - \\c vaEndPicture(): tell the driver to start processing the surfaces\n   with the requested filters.\n\n If a filter (e.g. noise reduction) needs to be applied with different\n values for multiple surfaces, the application needs to create as many\n filter parameter buffers as necessary. i.e. the filter parameters shall\n not change between two calls to \\c vaRenderPicture().\n\n For composition usage models, the first surface to process will generally\n use an opaque background color, i.e. \\c output_background_color set with\n the most significant byte set to \\c 0xff. For instance, \\c 0xff000000 for\n a black background. Then, subsequent surfaces would use a transparent\n background color."]
11503pub type VAProcPipelineParameterBuffer = _VAProcPipelineParameterBuffer;
11504#[doc = " \\brief External buffer descriptor for a DRM PRIME surface.\n\n For export, call vaExportSurfaceHandle() with mem_type set to\n VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2 and pass a pointer to an\n instance of this structure to fill.\n If VA_EXPORT_SURFACE_SEPARATE_LAYERS is specified on export, each\n layer will contain exactly one plane.  For example, an NV12\n surface will be exported as two layers, one of DRM_FORMAT_R8 and\n one of DRM_FORMAT_GR88.\n If VA_EXPORT_SURFACE_COMPOSED_LAYERS is specified on export,\n there will be exactly one layer.\n\n For import, call vaCreateSurfaces() with the MemoryType attribute\n set to VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2 and the\n ExternalBufferDescriptor attribute set to point to an array of\n num_surfaces instances of this structure.\n The number of planes which need to be provided for a given layer\n is dependent on both the format and the format modifier used for\n the objects containing it.  For example, the format DRM_FORMAT_RGBA\n normally requires one plane, but with the format modifier\n I915_FORMAT_MOD_Y_TILED_CCS it requires two planes - the first\n being the main data plane and the second containing the color\n control surface.\n Note that a given driver may only support a subset of possible\n representations of a particular format.  For example, it may only\n support NV12 surfaces when they are contained within a single DRM\n object, and therefore fail to create such surfaces if the two\n planes are in different DRM objects.\n Note that backend driver will retrieve the resource represent by fd,\n and a valid surface ID is generated. Backend driver will not close\n the file descriptor. Application should handle the release of the fd.\n releasing the fd will not impact the existence of the surface."]
11505#[repr(C)]
11506#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11507pub struct _VADRMPRIMESurfaceDescriptor {
11508	#[doc = " Pixel format fourcc of the whole surface (VA_FOURCC_*)."]
11509	pub fourcc: u32,
11510	#[doc = " Width of the surface in pixels."]
11511	pub width: u32,
11512	#[doc = " Height of the surface in pixels."]
11513	pub height: u32,
11514	#[doc = " Number of distinct DRM objects making up the surface."]
11515	pub num_objects: u32,
11516	pub objects: [_VADRMPRIMESurfaceDescriptor__bindgen_ty_1; 4usize],
11517	#[doc = " Number of layers making up the surface."]
11518	pub num_layers: u32,
11519	pub layers: [_VADRMPRIMESurfaceDescriptor__bindgen_ty_2; 4usize],
11520}
11521#[doc = " Description of each object."]
11522#[repr(C)]
11523#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11524pub struct _VADRMPRIMESurfaceDescriptor__bindgen_ty_1 {
11525	#[doc = " DRM PRIME file descriptor for this object."]
11526	pub fd: ::std::os::raw::c_int,
11527	#[doc = " Total size of this object (may include regions which are\n  not part of the surface)."]
11528	pub size: u32,
11529	#[doc = " Format modifier applied to this object."]
11530	pub drm_format_modifier: u64,
11531}
11532#[doc = " Description of each layer in the surface."]
11533#[repr(C)]
11534#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11535pub struct _VADRMPRIMESurfaceDescriptor__bindgen_ty_2 {
11536	#[doc = " DRM format fourcc of this layer (DRM_FOURCC_*)."]
11537	pub drm_format: u32,
11538	#[doc = " Number of planes in this layer."]
11539	pub num_planes: u32,
11540	#[doc = " Index in the objects array of the object containing each\n  plane."]
11541	pub object_index: [u32; 4usize],
11542	#[doc = " Offset within the object of each plane."]
11543	pub offset: [u32; 4usize],
11544	#[doc = " Pitch of each plane."]
11545	pub pitch: [u32; 4usize],
11546}
11547#[doc = " \\brief External buffer descriptor for a DRM PRIME surface.\n\n For export, call vaExportSurfaceHandle() with mem_type set to\n VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2 and pass a pointer to an\n instance of this structure to fill.\n If VA_EXPORT_SURFACE_SEPARATE_LAYERS is specified on export, each\n layer will contain exactly one plane.  For example, an NV12\n surface will be exported as two layers, one of DRM_FORMAT_R8 and\n one of DRM_FORMAT_GR88.\n If VA_EXPORT_SURFACE_COMPOSED_LAYERS is specified on export,\n there will be exactly one layer.\n\n For import, call vaCreateSurfaces() with the MemoryType attribute\n set to VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2 and the\n ExternalBufferDescriptor attribute set to point to an array of\n num_surfaces instances of this structure.\n The number of planes which need to be provided for a given layer\n is dependent on both the format and the format modifier used for\n the objects containing it.  For example, the format DRM_FORMAT_RGBA\n normally requires one plane, but with the format modifier\n I915_FORMAT_MOD_Y_TILED_CCS it requires two planes - the first\n being the main data plane and the second containing the color\n control surface.\n Note that a given driver may only support a subset of possible\n representations of a particular format.  For example, it may only\n support NV12 surfaces when they are contained within a single DRM\n object, and therefore fail to create such surfaces if the two\n planes are in different DRM objects.\n Note that backend driver will retrieve the resource represent by fd,\n and a valid surface ID is generated. Backend driver will not close\n the file descriptor. Application should handle the release of the fd.\n releasing the fd will not impact the existence of the surface."]
11548pub type VADRMPRIMESurfaceDescriptor = _VADRMPRIMESurfaceDescriptor;
11549pub struct Va {
11550	__library: ::libloading::Library,
11551	pub vaErrorStr:
11552		Result<unsafe extern "C" fn(error_status: VAStatus) -> *const ::std::os::raw::c_char, ::libloading::Error>,
11553	pub vaInitialize: Result<
11554		unsafe extern "C" fn(
11555			dpy: VADisplay,
11556			major_version: *mut ::std::os::raw::c_int,
11557			minor_version: *mut ::std::os::raw::c_int,
11558		) -> VAStatus,
11559		::libloading::Error,
11560	>,
11561	pub vaTerminate: Result<unsafe extern "C" fn(dpy: VADisplay) -> VAStatus, ::libloading::Error>,
11562	pub vaQueryVendorString:
11563		Result<unsafe extern "C" fn(dpy: VADisplay) -> *const ::std::os::raw::c_char, ::libloading::Error>,
11564	pub vaMaxNumProfiles: Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
11565	pub vaMaxNumEntrypoints: Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
11566	pub vaQueryConfigProfiles: Result<
11567		unsafe extern "C" fn(
11568			dpy: VADisplay,
11569			profile_list: *mut VAProfile::Type,
11570			num_profiles: *mut ::std::os::raw::c_int,
11571		) -> VAStatus,
11572		::libloading::Error,
11573	>,
11574	pub vaQueryConfigEntrypoints: Result<
11575		unsafe extern "C" fn(
11576			dpy: VADisplay,
11577			profile: VAProfile::Type,
11578			entrypoint_list: *mut VAEntrypoint::Type,
11579			num_entrypoints: *mut ::std::os::raw::c_int,
11580		) -> VAStatus,
11581		::libloading::Error,
11582	>,
11583	pub vaGetConfigAttributes: Result<
11584		unsafe extern "C" fn(
11585			dpy: VADisplay,
11586			profile: VAProfile::Type,
11587			entrypoint: VAEntrypoint::Type,
11588			attrib_list: *mut VAConfigAttrib,
11589			num_attribs: ::std::os::raw::c_int,
11590		) -> VAStatus,
11591		::libloading::Error,
11592	>,
11593	pub vaCreateConfig: Result<
11594		unsafe extern "C" fn(
11595			dpy: VADisplay,
11596			profile: VAProfile::Type,
11597			entrypoint: VAEntrypoint::Type,
11598			attrib_list: *mut VAConfigAttrib,
11599			num_attribs: ::std::os::raw::c_int,
11600			config_id: *mut VAConfigID,
11601		) -> VAStatus,
11602		::libloading::Error,
11603	>,
11604	pub vaDestroyConfig:
11605		Result<unsafe extern "C" fn(dpy: VADisplay, config_id: VAConfigID) -> VAStatus, ::libloading::Error>,
11606	pub vaQuerySurfaceAttributes: Result<
11607		unsafe extern "C" fn(
11608			dpy: VADisplay,
11609			config: VAConfigID,
11610			attrib_list: *mut VASurfaceAttrib,
11611			num_attribs: *mut ::std::os::raw::c_uint,
11612		) -> VAStatus,
11613		::libloading::Error,
11614	>,
11615	pub vaCreateSurfaces: Result<
11616		unsafe extern "C" fn(
11617			dpy: VADisplay,
11618			format: ::std::os::raw::c_uint,
11619			width: ::std::os::raw::c_uint,
11620			height: ::std::os::raw::c_uint,
11621			surfaces: *mut VASurfaceID,
11622			num_surfaces: ::std::os::raw::c_uint,
11623			attrib_list: *mut VASurfaceAttrib,
11624			num_attribs: ::std::os::raw::c_uint,
11625		) -> VAStatus,
11626		::libloading::Error,
11627	>,
11628	pub vaDestroySurfaces: Result<
11629		unsafe extern "C" fn(
11630			dpy: VADisplay,
11631			surfaces: *mut VASurfaceID,
11632			num_surfaces: ::std::os::raw::c_int,
11633		) -> VAStatus,
11634		::libloading::Error,
11635	>,
11636	pub vaCreateContext: Result<
11637		unsafe extern "C" fn(
11638			dpy: VADisplay,
11639			config_id: VAConfigID,
11640			picture_width: ::std::os::raw::c_int,
11641			picture_height: ::std::os::raw::c_int,
11642			flag: ::std::os::raw::c_int,
11643			render_targets: *mut VASurfaceID,
11644			num_render_targets: ::std::os::raw::c_int,
11645			context: *mut VAContextID,
11646		) -> VAStatus,
11647		::libloading::Error,
11648	>,
11649	pub vaDestroyContext:
11650		Result<unsafe extern "C" fn(dpy: VADisplay, context: VAContextID) -> VAStatus, ::libloading::Error>,
11651	pub vaCreateBuffer: Result<
11652		unsafe extern "C" fn(
11653			dpy: VADisplay,
11654			context: VAContextID,
11655			type_: VABufferType::Type,
11656			size: ::std::os::raw::c_uint,
11657			num_elements: ::std::os::raw::c_uint,
11658			data: *mut ::std::os::raw::c_void,
11659			buf_id: *mut VABufferID,
11660		) -> VAStatus,
11661		::libloading::Error,
11662	>,
11663	pub vaMapBuffer: Result<
11664		unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID, pbuf: *mut *mut ::std::os::raw::c_void) -> VAStatus,
11665		::libloading::Error,
11666	>,
11667	pub vaUnmapBuffer:
11668		Result<unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID) -> VAStatus, ::libloading::Error>,
11669	pub vaDestroyBuffer:
11670		Result<unsafe extern "C" fn(dpy: VADisplay, buffer_id: VABufferID) -> VAStatus, ::libloading::Error>,
11671	pub vaExportSurfaceHandle: Result<
11672		unsafe extern "C" fn(
11673			dpy: VADisplay,
11674			surface_id: VASurfaceID,
11675			mem_type: u32,
11676			flags: u32,
11677			descriptor: *mut ::std::os::raw::c_void,
11678		) -> VAStatus,
11679		::libloading::Error,
11680	>,
11681	pub vaBeginPicture: Result<
11682		unsafe extern "C" fn(dpy: VADisplay, context: VAContextID, render_target: VASurfaceID) -> VAStatus,
11683		::libloading::Error,
11684	>,
11685	pub vaRenderPicture: Result<
11686		unsafe extern "C" fn(
11687			dpy: VADisplay,
11688			context: VAContextID,
11689			buffers: *mut VABufferID,
11690			num_buffers: ::std::os::raw::c_int,
11691		) -> VAStatus,
11692		::libloading::Error,
11693	>,
11694	pub vaEndPicture:
11695		Result<unsafe extern "C" fn(dpy: VADisplay, context: VAContextID) -> VAStatus, ::libloading::Error>,
11696	pub vaSyncSurface:
11697		Result<unsafe extern "C" fn(dpy: VADisplay, render_target: VASurfaceID) -> VAStatus, ::libloading::Error>,
11698	pub vaQuerySurfaceStatus: Result<
11699		unsafe extern "C" fn(
11700			dpy: VADisplay,
11701			render_target: VASurfaceID,
11702			status: *mut VASurfaceStatus::Type,
11703		) -> VAStatus,
11704		::libloading::Error,
11705	>,
11706	pub vaQuerySurfaceError: Result<
11707		unsafe extern "C" fn(
11708			dpy: VADisplay,
11709			surface: VASurfaceID,
11710			error_status: VAStatus,
11711			error_info: *mut *mut ::std::os::raw::c_void,
11712		) -> VAStatus,
11713		::libloading::Error,
11714	>,
11715	pub vaMaxNumImageFormats:
11716		Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
11717	pub vaQueryImageFormats: Result<
11718		unsafe extern "C" fn(
11719			dpy: VADisplay,
11720			format_list: *mut VAImageFormat,
11721			num_formats: *mut ::std::os::raw::c_int,
11722		) -> VAStatus,
11723		::libloading::Error,
11724	>,
11725	pub vaCreateImage: Result<
11726		unsafe extern "C" fn(
11727			dpy: VADisplay,
11728			format: *mut VAImageFormat,
11729			width: ::std::os::raw::c_int,
11730			height: ::std::os::raw::c_int,
11731			image: *mut VAImage,
11732		) -> VAStatus,
11733		::libloading::Error,
11734	>,
11735	pub vaDestroyImage: Result<unsafe extern "C" fn(dpy: VADisplay, image: VAImageID) -> VAStatus, ::libloading::Error>,
11736	pub vaGetImage: Result<
11737		unsafe extern "C" fn(
11738			dpy: VADisplay,
11739			surface: VASurfaceID,
11740			x: ::std::os::raw::c_int,
11741			y: ::std::os::raw::c_int,
11742			width: ::std::os::raw::c_uint,
11743			height: ::std::os::raw::c_uint,
11744			image: VAImageID,
11745		) -> VAStatus,
11746		::libloading::Error,
11747	>,
11748	pub vaPutImage: Result<
11749		unsafe extern "C" fn(
11750			dpy: VADisplay,
11751			surface: VASurfaceID,
11752			image: VAImageID,
11753			src_x: ::std::os::raw::c_int,
11754			src_y: ::std::os::raw::c_int,
11755			src_width: ::std::os::raw::c_uint,
11756			src_height: ::std::os::raw::c_uint,
11757			dest_x: ::std::os::raw::c_int,
11758			dest_y: ::std::os::raw::c_int,
11759			dest_width: ::std::os::raw::c_uint,
11760			dest_height: ::std::os::raw::c_uint,
11761		) -> VAStatus,
11762		::libloading::Error,
11763	>,
11764	pub vaDeriveImage: Result<
11765		unsafe extern "C" fn(dpy: VADisplay, surface: VASurfaceID, image: *mut VAImage) -> VAStatus,
11766		::libloading::Error,
11767	>,
11768	pub vaGetDisplayDRM: Result<unsafe extern "C" fn(fd: ::std::os::raw::c_int) -> VADisplay, ::libloading::Error>,
11769}
11770impl Va {
11771	pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
11772	where
11773		P: ::libloading::AsFilename,
11774	{
11775		let library = ::libloading::Library::new(path)?;
11776		Self::from_library(library)
11777	}
11778	pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
11779	where
11780		L: Into<::libloading::Library>,
11781	{
11782		let __library = library.into();
11783		let vaErrorStr = __library.get(b"vaErrorStr\0").map(|sym| *sym);
11784		let vaInitialize = __library.get(b"vaInitialize\0").map(|sym| *sym);
11785		let vaTerminate = __library.get(b"vaTerminate\0").map(|sym| *sym);
11786		let vaQueryVendorString = __library.get(b"vaQueryVendorString\0").map(|sym| *sym);
11787		let vaMaxNumProfiles = __library.get(b"vaMaxNumProfiles\0").map(|sym| *sym);
11788		let vaMaxNumEntrypoints = __library.get(b"vaMaxNumEntrypoints\0").map(|sym| *sym);
11789		let vaQueryConfigProfiles = __library.get(b"vaQueryConfigProfiles\0").map(|sym| *sym);
11790		let vaQueryConfigEntrypoints = __library.get(b"vaQueryConfigEntrypoints\0").map(|sym| *sym);
11791		let vaGetConfigAttributes = __library.get(b"vaGetConfigAttributes\0").map(|sym| *sym);
11792		let vaCreateConfig = __library.get(b"vaCreateConfig\0").map(|sym| *sym);
11793		let vaDestroyConfig = __library.get(b"vaDestroyConfig\0").map(|sym| *sym);
11794		let vaQuerySurfaceAttributes = __library.get(b"vaQuerySurfaceAttributes\0").map(|sym| *sym);
11795		let vaCreateSurfaces = __library.get(b"vaCreateSurfaces\0").map(|sym| *sym);
11796		let vaDestroySurfaces = __library.get(b"vaDestroySurfaces\0").map(|sym| *sym);
11797		let vaCreateContext = __library.get(b"vaCreateContext\0").map(|sym| *sym);
11798		let vaDestroyContext = __library.get(b"vaDestroyContext\0").map(|sym| *sym);
11799		let vaCreateBuffer = __library.get(b"vaCreateBuffer\0").map(|sym| *sym);
11800		let vaMapBuffer = __library.get(b"vaMapBuffer\0").map(|sym| *sym);
11801		let vaUnmapBuffer = __library.get(b"vaUnmapBuffer\0").map(|sym| *sym);
11802		let vaDestroyBuffer = __library.get(b"vaDestroyBuffer\0").map(|sym| *sym);
11803		let vaExportSurfaceHandle = __library.get(b"vaExportSurfaceHandle\0").map(|sym| *sym);
11804		let vaBeginPicture = __library.get(b"vaBeginPicture\0").map(|sym| *sym);
11805		let vaRenderPicture = __library.get(b"vaRenderPicture\0").map(|sym| *sym);
11806		let vaEndPicture = __library.get(b"vaEndPicture\0").map(|sym| *sym);
11807		let vaSyncSurface = __library.get(b"vaSyncSurface\0").map(|sym| *sym);
11808		let vaQuerySurfaceStatus = __library.get(b"vaQuerySurfaceStatus\0").map(|sym| *sym);
11809		let vaQuerySurfaceError = __library.get(b"vaQuerySurfaceError\0").map(|sym| *sym);
11810		let vaMaxNumImageFormats = __library.get(b"vaMaxNumImageFormats\0").map(|sym| *sym);
11811		let vaQueryImageFormats = __library.get(b"vaQueryImageFormats\0").map(|sym| *sym);
11812		let vaCreateImage = __library.get(b"vaCreateImage\0").map(|sym| *sym);
11813		let vaDestroyImage = __library.get(b"vaDestroyImage\0").map(|sym| *sym);
11814		let vaGetImage = __library.get(b"vaGetImage\0").map(|sym| *sym);
11815		let vaPutImage = __library.get(b"vaPutImage\0").map(|sym| *sym);
11816		let vaDeriveImage = __library.get(b"vaDeriveImage\0").map(|sym| *sym);
11817		let vaGetDisplayDRM = __library.get(b"vaGetDisplayDRM\0").map(|sym| *sym);
11818		Ok(Va {
11819			__library,
11820			vaErrorStr,
11821			vaInitialize,
11822			vaTerminate,
11823			vaQueryVendorString,
11824			vaMaxNumProfiles,
11825			vaMaxNumEntrypoints,
11826			vaQueryConfigProfiles,
11827			vaQueryConfigEntrypoints,
11828			vaGetConfigAttributes,
11829			vaCreateConfig,
11830			vaDestroyConfig,
11831			vaQuerySurfaceAttributes,
11832			vaCreateSurfaces,
11833			vaDestroySurfaces,
11834			vaCreateContext,
11835			vaDestroyContext,
11836			vaCreateBuffer,
11837			vaMapBuffer,
11838			vaUnmapBuffer,
11839			vaDestroyBuffer,
11840			vaExportSurfaceHandle,
11841			vaBeginPicture,
11842			vaRenderPicture,
11843			vaEndPicture,
11844			vaSyncSurface,
11845			vaQuerySurfaceStatus,
11846			vaQuerySurfaceError,
11847			vaMaxNumImageFormats,
11848			vaQueryImageFormats,
11849			vaCreateImage,
11850			vaDestroyImage,
11851			vaGetImage,
11852			vaPutImage,
11853			vaDeriveImage,
11854			vaGetDisplayDRM,
11855		})
11856	}
11857	#[doc = " Returns a short english description of error_status"]
11858	pub unsafe fn vaErrorStr(&self, error_status: VAStatus) -> *const ::std::os::raw::c_char {
11859		(self.vaErrorStr.as_ref().expect("Expected function, got error."))(error_status)
11860	}
11861	#[doc = " Initialize the library"]
11862	pub unsafe fn vaInitialize(
11863		&self,
11864		dpy: VADisplay,
11865		major_version: *mut ::std::os::raw::c_int,
11866		minor_version: *mut ::std::os::raw::c_int,
11867	) -> VAStatus {
11868		(self.vaInitialize.as_ref().expect("Expected function, got error."))(dpy, major_version, minor_version)
11869	}
11870	#[doc = " After this call, all library internal resources will be cleaned up"]
11871	pub unsafe fn vaTerminate(&self, dpy: VADisplay) -> VAStatus {
11872		(self.vaTerminate.as_ref().expect("Expected function, got error."))(dpy)
11873	}
11874	#[doc = " vaQueryVendorString returns a pointer to a zero-terminated string\n describing some aspects of the VA implemenation on a specific\n hardware accelerator. The format of the returned string is vendor\n specific and at the discretion of the implementer.\n e.g. for the Intel GMA500 implementation, an example would be:\n \"Intel GMA500 - 2.0.0.32L.0005\""]
11875	pub unsafe fn vaQueryVendorString(&self, dpy: VADisplay) -> *const ::std::os::raw::c_char {
11876		(self
11877			.vaQueryVendorString
11878			.as_ref()
11879			.expect("Expected function, got error."))(dpy)
11880	}
11881	#[doc = " Get maximum number of profiles supported by the implementation"]
11882	pub unsafe fn vaMaxNumProfiles(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
11883		(self.vaMaxNumProfiles.as_ref().expect("Expected function, got error."))(dpy)
11884	}
11885	#[doc = " Get maximum number of entrypoints supported by the implementation"]
11886	pub unsafe fn vaMaxNumEntrypoints(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
11887		(self
11888			.vaMaxNumEntrypoints
11889			.as_ref()
11890			.expect("Expected function, got error."))(dpy)
11891	}
11892	#[doc = " Query supported profiles\n The caller must provide a \"profile_list\" array that can hold at\n least vaMaxNumProfile() entries. The actual number of profiles\n returned in \"profile_list\" is returned in \"num_profile\"."]
11893	pub unsafe fn vaQueryConfigProfiles(
11894		&self,
11895		dpy: VADisplay,
11896		profile_list: *mut VAProfile::Type,
11897		num_profiles: *mut ::std::os::raw::c_int,
11898	) -> VAStatus {
11899		(self
11900			.vaQueryConfigProfiles
11901			.as_ref()
11902			.expect("Expected function, got error."))(dpy, profile_list, num_profiles)
11903	}
11904	#[doc = " Query supported entrypoints for a given profile\n The caller must provide an \"entrypoint_list\" array that can hold at\n least vaMaxNumEntrypoints() entries. The actual number of entrypoints\n returned in \"entrypoint_list\" is returned in \"num_entrypoints\"."]
11905	pub unsafe fn vaQueryConfigEntrypoints(
11906		&self,
11907		dpy: VADisplay,
11908		profile: VAProfile::Type,
11909		entrypoint_list: *mut VAEntrypoint::Type,
11910		num_entrypoints: *mut ::std::os::raw::c_int,
11911	) -> VAStatus {
11912		(self
11913			.vaQueryConfigEntrypoints
11914			.as_ref()
11915			.expect("Expected function, got error."))(dpy, profile, entrypoint_list, num_entrypoints)
11916	}
11917	#[doc = " Get attributes for a given profile/entrypoint pair\n The caller must provide an \"attrib_list\" with all attributes to be\n retrieved.  Upon return, the attributes in \"attrib_list\" have been\n updated with their value.  Unknown attributes or attributes that are\n not supported for the given profile/entrypoint pair will have their\n value set to VA_ATTRIB_NOT_SUPPORTED"]
11918	pub unsafe fn vaGetConfigAttributes(
11919		&self,
11920		dpy: VADisplay,
11921		profile: VAProfile::Type,
11922		entrypoint: VAEntrypoint::Type,
11923		attrib_list: *mut VAConfigAttrib,
11924		num_attribs: ::std::os::raw::c_int,
11925	) -> VAStatus {
11926		(self
11927			.vaGetConfigAttributes
11928			.as_ref()
11929			.expect("Expected function, got error."))(dpy, profile, entrypoint, attrib_list, num_attribs)
11930	}
11931	#[doc = " Create a configuration for the video decode/encode/processing pipeline\n it passes in the attribute list that specifies the attributes it cares\n about, with the rest taking default values."]
11932	pub unsafe fn vaCreateConfig(
11933		&self,
11934		dpy: VADisplay,
11935		profile: VAProfile::Type,
11936		entrypoint: VAEntrypoint::Type,
11937		attrib_list: *mut VAConfigAttrib,
11938		num_attribs: ::std::os::raw::c_int,
11939		config_id: *mut VAConfigID,
11940	) -> VAStatus {
11941		(self.vaCreateConfig.as_ref().expect("Expected function, got error."))(
11942			dpy,
11943			profile,
11944			entrypoint,
11945			attrib_list,
11946			num_attribs,
11947			config_id,
11948		)
11949	}
11950	#[doc = " Free resources associdated with a given config"]
11951	pub unsafe fn vaDestroyConfig(&self, dpy: VADisplay, config_id: VAConfigID) -> VAStatus {
11952		(self.vaDestroyConfig.as_ref().expect("Expected function, got error."))(dpy, config_id)
11953	}
11954	#[doc = " \\brief Queries surface attributes for the supplied config.\n\n This function queries for all supported attributes for the\n supplied VA \\c config. In particular, if the underlying hardware\n supports the creation of VA surfaces in various formats, then\n this function will enumerate all pixel formats that are supported.\n\n The \\c attrib_list array is allocated by the user and \\c\n num_attribs shall be initialized to the number of allocated\n elements in that array. Upon successful return, the actual number\n of attributes will be overwritten into \\c num_attribs. Otherwise,\n \\c VA_STATUS_ERROR_MAX_NUM_EXCEEDED is returned and \\c num_attribs\n is adjusted to the number of elements that would be returned if\n enough space was available.\n\n Note: it is perfectly valid to pass NULL to the \\c attrib_list\n argument when vaQuerySurfaceAttributes() is used to determine the\n actual number of elements that need to be allocated.\n\n @param[in] dpy               the VA display\n @param[in] config            the config identifying a codec or a video\n     processing pipeline\n @param[out] attrib_list      the output array of #VASurfaceAttrib elements\n @param[in,out] num_attribs   the number of elements allocated on\n      input, the number of elements actually filled in output"]
11955	pub unsafe fn vaQuerySurfaceAttributes(
11956		&self,
11957		dpy: VADisplay,
11958		config: VAConfigID,
11959		attrib_list: *mut VASurfaceAttrib,
11960		num_attribs: *mut ::std::os::raw::c_uint,
11961	) -> VAStatus {
11962		(self
11963			.vaQuerySurfaceAttributes
11964			.as_ref()
11965			.expect("Expected function, got error."))(dpy, config, attrib_list, num_attribs)
11966	}
11967	#[doc = " \\brief Creates an array of surfaces\n\n Creates an array of surfaces. The optional list of attributes shall\n be constructed based on what the underlying hardware could expose\n through vaQuerySurfaceAttributes().\n\n @param[in] dpy               the VA display\n @param[in] format            the desired surface format. See \\c VA_RT_FORMAT_*\n @param[in] width             the surface width\n @param[in] height            the surface height\n @param[out] surfaces         the array of newly created surfaces\n @param[in] num_surfaces      the number of surfaces to create\n @param[in] attrib_list       the list of (optional) attributes, or \\c NULL\n @param[in] num_attribs       the number of attributes supplied in\n     \\c attrib_list, or zero"]
11968	pub unsafe fn vaCreateSurfaces(
11969		&self,
11970		dpy: VADisplay,
11971		format: ::std::os::raw::c_uint,
11972		width: ::std::os::raw::c_uint,
11973		height: ::std::os::raw::c_uint,
11974		surfaces: *mut VASurfaceID,
11975		num_surfaces: ::std::os::raw::c_uint,
11976		attrib_list: *mut VASurfaceAttrib,
11977		num_attribs: ::std::os::raw::c_uint,
11978	) -> VAStatus {
11979		(self.vaCreateSurfaces.as_ref().expect("Expected function, got error."))(
11980			dpy,
11981			format,
11982			width,
11983			height,
11984			surfaces,
11985			num_surfaces,
11986			attrib_list,
11987			num_attribs,
11988		)
11989	}
11990	#[doc = " vaDestroySurfaces - Destroy resources associated with surfaces.\n  Surfaces can only be destroyed after all contexts using these surfaces have been\n  destroyed.\n  dpy: display\n  surfaces: array of surfaces to destroy\n  num_surfaces: number of surfaces in the array to be destroyed."]
11991	pub unsafe fn vaDestroySurfaces(
11992		&self,
11993		dpy: VADisplay,
11994		surfaces: *mut VASurfaceID,
11995		num_surfaces: ::std::os::raw::c_int,
11996	) -> VAStatus {
11997		(self.vaDestroySurfaces.as_ref().expect("Expected function, got error."))(dpy, surfaces, num_surfaces)
11998	}
11999	#[doc = " vaCreateContext - Create a context\n  dpy: display\n  config_id: configuration for the context\n  picture_width: coded picture width\n  picture_height: coded picture height\n  flag: any combination of the following:\n    VA_PROGRESSIVE (only progressive frame pictures in the sequence when set)\n  render_targets: a hint for render targets (surfaces) tied to the context\n  num_render_targets: number of render targets in the above array\n  context: created context id upon return"]
12000	pub unsafe fn vaCreateContext(
12001		&self,
12002		dpy: VADisplay,
12003		config_id: VAConfigID,
12004		picture_width: ::std::os::raw::c_int,
12005		picture_height: ::std::os::raw::c_int,
12006		flag: ::std::os::raw::c_int,
12007		render_targets: *mut VASurfaceID,
12008		num_render_targets: ::std::os::raw::c_int,
12009		context: *mut VAContextID,
12010	) -> VAStatus {
12011		(self.vaCreateContext.as_ref().expect("Expected function, got error."))(
12012			dpy,
12013			config_id,
12014			picture_width,
12015			picture_height,
12016			flag,
12017			render_targets,
12018			num_render_targets,
12019			context,
12020		)
12021	}
12022	#[doc = " vaDestroyContext - Destroy a context\n  dpy: display\n  context: context to be destroyed"]
12023	pub unsafe fn vaDestroyContext(&self, dpy: VADisplay, context: VAContextID) -> VAStatus {
12024		(self.vaDestroyContext.as_ref().expect("Expected function, got error."))(dpy, context)
12025	}
12026	#[doc = " Creates a buffer for \"num_elements\" elements of \"size\" bytes and\n initalize with \"data\".\n if \"data\" is null, then the contents of the buffer data store\n are undefined.\n Basically there are two ways to get buffer data to the server side. One is\n to call vaCreateBuffer() with a non-null \"data\", which results the data being\n copied to the data store on the server side.  A different method that\n eliminates this copy is to pass null as \"data\" when calling vaCreateBuffer(),\n and then use vaMapBuffer() to map the data store from the server side to the\n client address space for access.\n The user must call vaDestroyBuffer() to destroy a buffer.\n  Note: image buffers are created by the library, not the client. Please see\n        vaCreateImage on how image buffers are managed."]
12027	pub unsafe fn vaCreateBuffer(
12028		&self,
12029		dpy: VADisplay,
12030		context: VAContextID,
12031		type_: VABufferType::Type,
12032		size: ::std::os::raw::c_uint,
12033		num_elements: ::std::os::raw::c_uint,
12034		data: *mut ::std::os::raw::c_void,
12035		buf_id: *mut VABufferID,
12036	) -> VAStatus {
12037		(self.vaCreateBuffer.as_ref().expect("Expected function, got error."))(
12038			dpy,
12039			context,
12040			type_,
12041			size,
12042			num_elements,
12043			data,
12044			buf_id,
12045		)
12046	}
12047	#[doc = " Map data store of the buffer into the client's address space\n vaCreateBuffer() needs to be called with \"data\" set to NULL before\n calling vaMapBuffer()\n\n if buffer type is VAEncCodedBufferType, pbuf points to link-list of\n VACodedBufferSegment, and the list is terminated if \"next\" is NULL"]
12048	pub unsafe fn vaMapBuffer(
12049		&self,
12050		dpy: VADisplay,
12051		buf_id: VABufferID,
12052		pbuf: *mut *mut ::std::os::raw::c_void,
12053	) -> VAStatus {
12054		(self.vaMapBuffer.as_ref().expect("Expected function, got error."))(dpy, buf_id, pbuf)
12055	}
12056	#[doc = " After client making changes to a mapped data store, it needs to\n \"Unmap\" it to let the server know that the data is ready to be\n consumed by the server"]
12057	pub unsafe fn vaUnmapBuffer(&self, dpy: VADisplay, buf_id: VABufferID) -> VAStatus {
12058		(self.vaUnmapBuffer.as_ref().expect("Expected function, got error."))(dpy, buf_id)
12059	}
12060	#[doc = " After this call, the buffer is deleted and this buffer_id is no longer valid\n\n A buffer can be re-used and sent to the server by another Begin/Render/End\n sequence if vaDestroyBuffer() is not called with this buffer.\n\n Note re-using a shared buffer (e.g. a slice data buffer) between the host and the\n hardware accelerator can result in performance dropping."]
12061	pub unsafe fn vaDestroyBuffer(&self, dpy: VADisplay, buffer_id: VABufferID) -> VAStatus {
12062		(self.vaDestroyBuffer.as_ref().expect("Expected function, got error."))(dpy, buffer_id)
12063	}
12064	#[doc = " \\brief Export a handle to a surface for use with an external API\n\n The exported handles are owned by the caller, and the caller is\n responsible for freeing them when no longer needed (e.g. by closing\n DRM PRIME file descriptors).\n\n This does not perform any synchronisation.  If the contents of the\n surface will be read, vaSyncSurface() must be called before doing so.\n If the contents of the surface are written, then all operations must\n be completed externally before using the surface again by via VA-API\n functions.\n\n @param[in] dpy          VA display.\n @param[in] surface_id   Surface to export.\n @param[in] mem_type     Memory type to export to.\n @param[in] flags        Combination of flags to apply\n   (VA_EXPORT_SURFACE_*).\n @param[out] descriptor  Pointer to the descriptor structure to fill\n   with the handle details.  The type of this structure depends on\n   the value of mem_type.\n\n @return Status code:\n - VA_STATUS_SUCCESS:    Success.\n - VA_STATUS_ERROR_INVALID_DISPLAY:  The display is not valid.\n - VA_STATUS_ERROR_UNIMPLEMENTED:  The driver does not implement\n     this interface.\n - VA_STATUS_ERROR_INVALID_SURFACE:  The surface is not valid, or\n     the surface is not exportable in the specified way.\n - VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE:  The driver does not\n     support exporting surfaces to the specified memory type."]
12065	pub unsafe fn vaExportSurfaceHandle(
12066		&self,
12067		dpy: VADisplay,
12068		surface_id: VASurfaceID,
12069		mem_type: u32,
12070		flags: u32,
12071		descriptor: *mut ::std::os::raw::c_void,
12072	) -> VAStatus {
12073		(self
12074			.vaExportSurfaceHandle
12075			.as_ref()
12076			.expect("Expected function, got error."))(dpy, surface_id, mem_type, flags, descriptor)
12077	}
12078	#[doc = " Get ready for a video pipeline\n - decode a picture to a target surface\n - encode a picture from a target surface\n - process a picture to a target surface"]
12079	pub unsafe fn vaBeginPicture(&self, dpy: VADisplay, context: VAContextID, render_target: VASurfaceID) -> VAStatus {
12080		(self.vaBeginPicture.as_ref().expect("Expected function, got error."))(dpy, context, render_target)
12081	}
12082	#[doc = " Send video decode, encode or processing buffers to the server."]
12083	pub unsafe fn vaRenderPicture(
12084		&self,
12085		dpy: VADisplay,
12086		context: VAContextID,
12087		buffers: *mut VABufferID,
12088		num_buffers: ::std::os::raw::c_int,
12089	) -> VAStatus {
12090		(self.vaRenderPicture.as_ref().expect("Expected function, got error."))(dpy, context, buffers, num_buffers)
12091	}
12092	#[doc = " Make the end of rendering for a picture.\n The server should start processing all pending operations for this\n surface. This call is non-blocking. The client can start another\n Begin/Render/End sequence on a different render target.\n if VAContextID used in this function previously successfully passed\n vaMFAddContext call, real processing will be started during vaMFSubmit"]
12093	pub unsafe fn vaEndPicture(&self, dpy: VADisplay, context: VAContextID) -> VAStatus {
12094		(self.vaEndPicture.as_ref().expect("Expected function, got error."))(dpy, context)
12095	}
12096	#[doc = " This function blocks until all pending operations on the render target\n have been completed.  Upon return it is safe to use the render target for a\n different picture."]
12097	pub unsafe fn vaSyncSurface(&self, dpy: VADisplay, render_target: VASurfaceID) -> VAStatus {
12098		(self.vaSyncSurface.as_ref().expect("Expected function, got error."))(dpy, render_target)
12099	}
12100	#[doc = " Find out any pending ops on the render target"]
12101	pub unsafe fn vaQuerySurfaceStatus(
12102		&self,
12103		dpy: VADisplay,
12104		render_target: VASurfaceID,
12105		status: *mut VASurfaceStatus::Type,
12106	) -> VAStatus {
12107		(self
12108			.vaQuerySurfaceStatus
12109			.as_ref()
12110			.expect("Expected function, got error."))(dpy, render_target, status)
12111	}
12112	#[doc = " After the application gets VA_STATUS_ERROR_DECODING_ERROR after calling vaSyncSurface(),\n it can call vaQuerySurfaceError to find out further details on the particular error.\n VA_STATUS_ERROR_DECODING_ERROR should be passed in as \"error_status\".\n\n After the applications get VA_STATUS_HW_BUSY or VA_STATUS_SUCCESSFULL from vaSyncSurface(),\n it still can call vaQuerySurfaceError to find out further details to know if has real hw reset\n happened on this surface since umd and kmd could recover the context from reset with success in sometimes.\n VA_STATUS_HW_BUSY or VA_STATUS_SUCCESSFULL also could be passed in as \"error_status\".\n\n Upon the return, error_info will point to an array of _VASurfaceDecodeMBErrors structure,\n which is allocated and filled by libVA with detailed information on the VADecodeErrorType.\n The array is terminated if \"status==-1\" is detected."]
12113	pub unsafe fn vaQuerySurfaceError(
12114		&self,
12115		dpy: VADisplay,
12116		surface: VASurfaceID,
12117		error_status: VAStatus,
12118		error_info: *mut *mut ::std::os::raw::c_void,
12119	) -> VAStatus {
12120		(self
12121			.vaQuerySurfaceError
12122			.as_ref()
12123			.expect("Expected function, got error."))(dpy, surface, error_status, error_info)
12124	}
12125	#[doc = " Get maximum number of image formats supported by the implementation"]
12126	pub unsafe fn vaMaxNumImageFormats(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
12127		(self
12128			.vaMaxNumImageFormats
12129			.as_ref()
12130			.expect("Expected function, got error."))(dpy)
12131	}
12132	#[doc = " Query supported image formats\n The caller must provide a \"format_list\" array that can hold at\n least vaMaxNumImageFormats() entries. The actual number of formats\n returned in \"format_list\" is returned in \"num_formats\"."]
12133	pub unsafe fn vaQueryImageFormats(
12134		&self,
12135		dpy: VADisplay,
12136		format_list: *mut VAImageFormat,
12137		num_formats: *mut ::std::os::raw::c_int,
12138	) -> VAStatus {
12139		(self
12140			.vaQueryImageFormats
12141			.as_ref()
12142			.expect("Expected function, got error."))(dpy, format_list, num_formats)
12143	}
12144	#[doc = " Create a VAImage structure\n The width and height fields returned in the VAImage structure may get\n enlarged for some YUV formats. Upon return from this function,\n image->buf has been created and proper storage allocated by the library.\n The client can access the image through the Map/Unmap calls."]
12145	pub unsafe fn vaCreateImage(
12146		&self,
12147		dpy: VADisplay,
12148		format: *mut VAImageFormat,
12149		width: ::std::os::raw::c_int,
12150		height: ::std::os::raw::c_int,
12151		image: *mut VAImage,
12152	) -> VAStatus {
12153		(self.vaCreateImage.as_ref().expect("Expected function, got error."))(dpy, format, width, height, image)
12154	}
12155	#[doc = " Should call DestroyImage before destroying the surface it is bound to"]
12156	pub unsafe fn vaDestroyImage(&self, dpy: VADisplay, image: VAImageID) -> VAStatus {
12157		(self.vaDestroyImage.as_ref().expect("Expected function, got error."))(dpy, image)
12158	}
12159	#[doc = " Retrive surface data into a VAImage\n Image must be in a format supported by the implementation"]
12160	pub unsafe fn vaGetImage(
12161		&self,
12162		dpy: VADisplay,
12163		surface: VASurfaceID,
12164		x: ::std::os::raw::c_int,
12165		y: ::std::os::raw::c_int,
12166		width: ::std::os::raw::c_uint,
12167		height: ::std::os::raw::c_uint,
12168		image: VAImageID,
12169	) -> VAStatus {
12170		(self.vaGetImage.as_ref().expect("Expected function, got error."))(dpy, surface, x, y, width, height, image)
12171	}
12172	#[doc = " Copy data from a VAImage to a surface\n Image must be in a format supported by the implementation\n Returns a VA_STATUS_ERROR_SURFACE_BUSY if the surface\n shouldn't be rendered into when this is called"]
12173	pub unsafe fn vaPutImage(
12174		&self,
12175		dpy: VADisplay,
12176		surface: VASurfaceID,
12177		image: VAImageID,
12178		src_x: ::std::os::raw::c_int,
12179		src_y: ::std::os::raw::c_int,
12180		src_width: ::std::os::raw::c_uint,
12181		src_height: ::std::os::raw::c_uint,
12182		dest_x: ::std::os::raw::c_int,
12183		dest_y: ::std::os::raw::c_int,
12184		dest_width: ::std::os::raw::c_uint,
12185		dest_height: ::std::os::raw::c_uint,
12186	) -> VAStatus {
12187		(self.vaPutImage.as_ref().expect("Expected function, got error."))(
12188			dpy,
12189			surface,
12190			image,
12191			src_x,
12192			src_y,
12193			src_width,
12194			src_height,
12195			dest_x,
12196			dest_y,
12197			dest_width,
12198			dest_height,
12199		)
12200	}
12201	#[doc = " Derive an VAImage from an existing surface.\n This interface will derive a VAImage and corresponding image buffer from\n an existing VA Surface. The image buffer can then be mapped/unmapped for\n direct CPU access. This operation is only possible on implementations with\n direct rendering capabilities and internal surface formats that can be\n represented with a VAImage. When the operation is not possible this interface\n will return VA_STATUS_ERROR_OPERATION_FAILED. Clients should then fall back\n to using vaCreateImage + vaPutImage to accomplish the same task in an\n indirect manner.\n\n Implementations should only return success when the resulting image buffer\n would be useable with vaMap/Unmap.\n\n When directly accessing a surface special care must be taken to insure\n proper synchronization with the graphics hardware. Clients should call\n vaQuerySurfaceStatus to insure that a surface is not the target of concurrent\n rendering or currently being displayed by an overlay.\n\n Additionally nothing about the contents of a surface should be assumed\n following a vaPutSurface. Implementations are free to modify the surface for\n scaling or subpicture blending within a call to vaPutImage.\n\n Calls to vaPutImage or vaGetImage using the same surface from which the image\n has been derived will return VA_STATUS_ERROR_SURFACE_BUSY. vaPutImage or\n vaGetImage with other surfaces is supported.\n\n An image created with vaDeriveImage should be freed with vaDestroyImage. The\n image and image buffer structures will be destroyed; however, the underlying\n surface will remain unchanged until freed with vaDestroySurfaces."]
12202	pub unsafe fn vaDeriveImage(&self, dpy: VADisplay, surface: VASurfaceID, image: *mut VAImage) -> VAStatus {
12203		(self.vaDeriveImage.as_ref().expect("Expected function, got error."))(dpy, surface, image)
12204	}
12205	#[doc = " \\brief Returns a VA display derived from the specified DRM connection.\n\n This function returns a (possibly cached) VA display from the\n specified DRM connection @fd.\n\n @param[in]   fd      the DRM connection descriptor\n @return the VA display"]
12206	pub unsafe fn vaGetDisplayDRM(&self, fd: ::std::os::raw::c_int) -> VADisplay {
12207		(self.vaGetDisplayDRM.as_ref().expect("Expected function, got error."))(fd)
12208	}
12209}