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}
169pub const VA_MAJOR_VERSION: u32 = 1;
170pub const VA_MINOR_VERSION: u32 = 23;
171pub const VA_MICRO_VERSION: u32 = 0;
172pub const VA_VERSION_S: &[u8; 7] = b"1.23.0\0";
173pub const VA_VERSION_HEX: u32 = 18284544;
174pub const VA_STATUS_SUCCESS: u32 = 0;
175pub const VA_STATUS_ERROR_OPERATION_FAILED: u32 = 1;
176pub const VA_STATUS_ERROR_ALLOCATION_FAILED: u32 = 2;
177pub const VA_STATUS_ERROR_INVALID_DISPLAY: u32 = 3;
178pub const VA_STATUS_ERROR_INVALID_CONFIG: u32 = 4;
179pub const VA_STATUS_ERROR_INVALID_CONTEXT: u32 = 5;
180pub const VA_STATUS_ERROR_INVALID_SURFACE: u32 = 6;
181pub const VA_STATUS_ERROR_INVALID_BUFFER: u32 = 7;
182pub const VA_STATUS_ERROR_INVALID_IMAGE: u32 = 8;
183pub const VA_STATUS_ERROR_INVALID_SUBPICTURE: u32 = 9;
184pub const VA_STATUS_ERROR_ATTR_NOT_SUPPORTED: u32 = 10;
185pub const VA_STATUS_ERROR_MAX_NUM_EXCEEDED: u32 = 11;
186pub const VA_STATUS_ERROR_UNSUPPORTED_PROFILE: u32 = 12;
187pub const VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT: u32 = 13;
188pub const VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT: u32 = 14;
189pub const VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE: u32 = 15;
190pub const VA_STATUS_ERROR_SURFACE_BUSY: u32 = 16;
191pub const VA_STATUS_ERROR_FLAG_NOT_SUPPORTED: u32 = 17;
192pub const VA_STATUS_ERROR_INVALID_PARAMETER: u32 = 18;
193pub const VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED: u32 = 19;
194pub const VA_STATUS_ERROR_UNIMPLEMENTED: u32 = 20;
195pub const VA_STATUS_ERROR_SURFACE_IN_DISPLAYING: u32 = 21;
196pub const VA_STATUS_ERROR_INVALID_IMAGE_FORMAT: u32 = 22;
197pub const VA_STATUS_ERROR_DECODING_ERROR: u32 = 23;
198pub const VA_STATUS_ERROR_ENCODING_ERROR: u32 = 24;
199pub const VA_STATUS_ERROR_INVALID_VALUE: u32 = 25;
200pub const VA_STATUS_ERROR_UNSUPPORTED_FILTER: u32 = 32;
201pub const VA_STATUS_ERROR_INVALID_FILTER_CHAIN: u32 = 33;
202pub const VA_STATUS_ERROR_HW_BUSY: u32 = 34;
203pub const VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE: u32 = 36;
204pub const VA_STATUS_ERROR_NOT_ENOUGH_BUFFER: u32 = 37;
205pub const VA_STATUS_ERROR_TIMEDOUT: u32 = 38;
206pub const VA_STATUS_ERROR_UNKNOWN: u32 = 4294967295;
207pub const VA_FRAME_PICTURE: u32 = 0;
208pub const VA_TOP_FIELD: u32 = 1;
209pub const VA_BOTTOM_FIELD: u32 = 2;
210pub const VA_TOP_FIELD_FIRST: u32 = 4;
211pub const VA_BOTTOM_FIELD_FIRST: u32 = 8;
212pub const VA_ENABLE_BLEND: u32 = 4;
213pub const VA_CLEAR_DRAWABLE: u32 = 8;
214pub const VA_SRC_COLOR_MASK: u32 = 240;
215pub const VA_SRC_BT601: u32 = 16;
216pub const VA_SRC_BT709: u32 = 32;
217pub const VA_SRC_SMPTE_240: u32 = 64;
218pub const VA_FILTER_SCALING_DEFAULT: u32 = 0;
219pub const VA_FILTER_SCALING_FAST: u32 = 256;
220pub const VA_FILTER_SCALING_HQ: u32 = 512;
221pub const VA_FILTER_SCALING_NL_ANAMORPHIC: u32 = 768;
222pub const VA_FILTER_SCALING_MASK: u32 = 3840;
223pub const VA_FILTER_INTERPOLATION_DEFAULT: u32 = 0;
224pub const VA_FILTER_INTERPOLATION_NEAREST_NEIGHBOR: u32 = 4096;
225pub const VA_FILTER_INTERPOLATION_BILINEAR: u32 = 8192;
226pub const VA_FILTER_INTERPOLATION_ADVANCED: u32 = 12288;
227pub const VA_FILTER_INTERPOLATION_MASK: u32 = 61440;
228pub const VA_PADDING_LOW: u32 = 4;
229pub const VA_PADDING_MEDIUM: u32 = 8;
230pub const VA_PADDING_HIGH: u32 = 16;
231pub const VA_PADDING_LARGE: u32 = 32;
232pub const VA_EXEC_SYNC: u32 = 0;
233pub const VA_EXEC_ASYNC: u32 = 1;
234pub const VA_EXEC_MODE_DEFAULT: u32 = 0;
235pub const VA_EXEC_MODE_POWER_SAVING: u32 = 1;
236pub const VA_EXEC_MODE_PERFORMANCE: u32 = 2;
237pub const VA_FEATURE_NOT_SUPPORTED: u32 = 0;
238pub const VA_FEATURE_SUPPORTED: u32 = 1;
239pub const VA_FEATURE_REQUIRED: u32 = 2;
240pub const VA_RT_FORMAT_YUV420: u32 = 1;
241pub const VA_RT_FORMAT_YUV422: u32 = 2;
242pub const VA_RT_FORMAT_YUV444: u32 = 4;
243pub const VA_RT_FORMAT_YUV411: u32 = 8;
244pub const VA_RT_FORMAT_YUV400: u32 = 16;
245pub const VA_RT_FORMAT_YUV420_10: u32 = 256;
246pub const VA_RT_FORMAT_YUV422_10: u32 = 512;
247pub const VA_RT_FORMAT_YUV444_10: u32 = 1024;
248pub const VA_RT_FORMAT_YUV420_12: u32 = 4096;
249pub const VA_RT_FORMAT_YUV422_12: u32 = 8192;
250pub const VA_RT_FORMAT_YUV444_12: u32 = 16384;
251pub const VA_RT_FORMAT_RGB16: u32 = 65536;
252pub const VA_RT_FORMAT_RGB32: u32 = 131072;
253pub const VA_RT_FORMAT_RGBP: u32 = 1048576;
254pub const VA_RT_FORMAT_RGB32_10: u32 = 2097152;
255pub const VA_RT_FORMAT_PROTECTED: u32 = 2147483648;
256pub const VA_RT_FORMAT_RGB32_10BPP: u32 = 2097152;
257pub const VA_RT_FORMAT_YUV420_10BPP: u32 = 256;
258pub const VA_RC_NONE: u32 = 1;
259pub const VA_RC_CBR: u32 = 2;
260pub const VA_RC_VBR: u32 = 4;
261pub const VA_RC_VCM: u32 = 8;
262pub const VA_RC_CQP: u32 = 16;
263pub const VA_RC_VBR_CONSTRAINED: u32 = 32;
264pub const VA_RC_ICQ: u32 = 64;
265pub const VA_RC_MB: u32 = 128;
266pub const VA_RC_CFS: u32 = 256;
267pub const VA_RC_PARALLEL: u32 = 512;
268pub const VA_RC_QVBR: u32 = 1024;
269pub const VA_RC_AVBR: u32 = 2048;
270pub const VA_RC_TCBRC: u32 = 4096;
271pub const VA_DEC_SLICE_MODE_NORMAL: u32 = 1;
272pub const VA_DEC_SLICE_MODE_BASE: u32 = 2;
273pub const VA_DEC_PROCESSING_NONE: u32 = 0;
274pub const VA_DEC_PROCESSING: u32 = 1;
275pub const VA_ENC_PACKED_HEADER_NONE: u32 = 0;
276pub const VA_ENC_PACKED_HEADER_SEQUENCE: u32 = 1;
277pub const VA_ENC_PACKED_HEADER_PICTURE: u32 = 2;
278pub const VA_ENC_PACKED_HEADER_SLICE: u32 = 4;
279pub const VA_ENC_PACKED_HEADER_MISC: u32 = 8;
280pub const VA_ENC_PACKED_HEADER_RAW_DATA: u32 = 16;
281pub const VA_ENC_INTERLACED_NONE: u32 = 0;
282pub const VA_ENC_INTERLACED_FRAME: u32 = 1;
283pub const VA_ENC_INTERLACED_FIELD: u32 = 2;
284pub const VA_ENC_INTERLACED_MBAFF: u32 = 4;
285pub const VA_ENC_INTERLACED_PAFF: u32 = 8;
286pub const VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS: u32 = 1;
287pub const VA_ENC_SLICE_STRUCTURE_ARBITRARY_MACROBLOCKS: u32 = 2;
288pub const VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS: u32 = 4;
289pub const VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE: u32 = 8;
290pub const VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS: u32 = 16;
291pub const VA_ENC_SLICE_STRUCTURE_EQUAL_MULTI_ROWS: u32 = 32;
292pub const VA_ENC_QUANTIZATION_NONE: u32 = 0;
293pub const VA_ENC_QUANTIZATION_TRELLIS_SUPPORTED: u32 = 1;
294pub const VA_PREDICTION_DIRECTION_PREVIOUS: u32 = 1;
295pub const VA_PREDICTION_DIRECTION_FUTURE: u32 = 2;
296pub const VA_PREDICTION_DIRECTION_BI_NOT_EMPTY: u32 = 4;
297pub const VA_ENC_INTRA_REFRESH_NONE: u32 = 0;
298pub const VA_ENC_INTRA_REFRESH_ROLLING_COLUMN: u32 = 1;
299pub const VA_ENC_INTRA_REFRESH_ROLLING_ROW: u32 = 2;
300pub const VA_ENC_INTRA_REFRESH_ADAPTIVE: u32 = 16;
301pub const VA_ENC_INTRA_REFRESH_CYCLIC: u32 = 32;
302pub const VA_ENC_INTRA_REFRESH_P_FRAME: u32 = 65536;
303pub const VA_ENC_INTRA_REFRESH_B_FRAME: u32 = 131072;
304pub const VA_ENC_INTRA_REFRESH_MULTI_REF: u32 = 262144;
305pub const VA_PC_CIPHER_AES: u32 = 1;
306pub const VA_PC_BLOCK_SIZE_128: u32 = 1;
307pub const VA_PC_BLOCK_SIZE_192: u32 = 2;
308pub const VA_PC_BLOCK_SIZE_256: u32 = 4;
309pub const VA_PC_CIPHER_MODE_ECB: u32 = 1;
310pub const VA_PC_CIPHER_MODE_CBC: u32 = 2;
311pub const VA_PC_CIPHER_MODE_CTR: u32 = 4;
312pub const VA_PC_SAMPLE_TYPE_FULLSAMPLE: u32 = 1;
313pub const VA_PC_SAMPLE_TYPE_SUBSAMPLE: u32 = 2;
314pub const VA_PC_USAGE_DEFAULT: u32 = 0;
315pub const VA_PC_USAGE_WIDEVINE: u32 = 1;
316pub const VA_PROCESSING_RATE_NONE: u32 = 0;
317pub const VA_PROCESSING_RATE_ENCODE: u32 = 1;
318pub const VA_PROCESSING_RATE_DECODE: u32 = 2;
319pub const VA_SEGID_BLOCK_16X16: u32 = 0;
320pub const VA_SEGID_BLOCK_32X32: u32 = 1;
321pub const VA_SEGID_BLOCK_64X64: u32 = 2;
322pub const VA_SEGID_BLOCK_8X8: u32 = 3;
323pub const VA_ATTRIB_NOT_SUPPORTED: u32 = 2147483648;
324pub const VA_INVALID_ID: u32 = 4294967295;
325pub const VA_INVALID_SURFACE: u32 = 4294967295;
326pub const VA_SURFACE_ATTRIB_NOT_SUPPORTED: u32 = 0;
327pub const VA_SURFACE_ATTRIB_GETTABLE: u32 = 1;
328pub const VA_SURFACE_ATTRIB_SETTABLE: u32 = 2;
329pub const VA_SURFACE_ATTRIB_MEM_TYPE_VA: u32 = 1;
330pub const VA_SURFACE_ATTRIB_MEM_TYPE_V4L2: u32 = 2;
331pub const VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR: u32 = 4;
332pub const VA_SURFACE_EXTBUF_DESC_ENABLE_TILING: u32 = 1;
333pub const VA_SURFACE_EXTBUF_DESC_CACHED: u32 = 2;
334pub const VA_SURFACE_EXTBUF_DESC_UNCACHED: u32 = 4;
335pub const VA_SURFACE_EXTBUF_DESC_WC: u32 = 8;
336pub const VA_SURFACE_EXTBUF_DESC_PROTECTED: u32 = 2147483648;
337pub const VA_SURFACE_ATTRIB_USAGE_HINT_GENERIC: u32 = 0;
338pub const VA_SURFACE_ATTRIB_USAGE_HINT_DECODER: u32 = 1;
339pub const VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER: u32 = 2;
340pub const VA_SURFACE_ATTRIB_USAGE_HINT_VPP_READ: u32 = 4;
341pub const VA_SURFACE_ATTRIB_USAGE_HINT_VPP_WRITE: u32 = 8;
342pub const VA_SURFACE_ATTRIB_USAGE_HINT_DISPLAY: u32 = 16;
343pub const VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT: u32 = 32;
344pub const VA_PROGRESSIVE: u32 = 1;
345pub const VA_ENCRYPTION_TYPE_FULLSAMPLE_CTR: u32 = 1;
346pub const VA_ENCRYPTION_TYPE_FULLSAMPLE_CBC: u32 = 2;
347pub const VA_ENCRYPTION_TYPE_SUBSAMPLE_CTR: u32 = 4;
348pub const VA_ENCRYPTION_TYPE_SUBSAMPLE_CBC: u32 = 8;
349pub const VA_SLICE_DATA_FLAG_ALL: u32 = 0;
350pub const VA_SLICE_DATA_FLAG_BEGIN: u32 = 1;
351pub const VA_SLICE_DATA_FLAG_MIDDLE: u32 = 2;
352pub const VA_SLICE_DATA_FLAG_END: u32 = 4;
353pub const VA_MB_TYPE_MOTION_FORWARD: u32 = 2;
354pub const VA_MB_TYPE_MOTION_BACKWARD: u32 = 4;
355pub const VA_MB_TYPE_MOTION_PATTERN: u32 = 8;
356pub const VA_MB_TYPE_MOTION_INTRA: u32 = 16;
357pub const VA_PICTURE_H264_INVALID: u32 = 1;
358pub const VA_PICTURE_H264_TOP_FIELD: u32 = 2;
359pub const VA_PICTURE_H264_BOTTOM_FIELD: u32 = 4;
360pub const VA_PICTURE_H264_SHORT_TERM_REFERENCE: u32 = 8;
361pub const VA_PICTURE_H264_LONG_TERM_REFERENCE: u32 = 16;
362pub const VA_CODED_BUF_STATUS_PICTURE_AVE_QP_MASK: u32 = 255;
363pub const VA_CODED_BUF_STATUS_LARGE_SLICE_MASK: u32 = 256;
364pub const VA_CODED_BUF_STATUS_SLICE_OVERFLOW_MASK: u32 = 512;
365pub const VA_CODED_BUF_STATUS_BITRATE_OVERFLOW: u32 = 1024;
366pub const VA_CODED_BUF_STATUS_BITRATE_HIGH: u32 = 2048;
367pub const VA_CODED_BUF_STATUS_FRAME_SIZE_OVERFLOW: u32 = 4096;
368pub const VA_CODED_BUF_STATUS_BAD_BITSTREAM: u32 = 32768;
369pub const VA_CODED_BUF_STATUS_AIR_MB_OVER_THRESHOLD: u32 = 16711680;
370pub const VA_CODED_BUF_STATUS_NUMBER_PASSES_MASK: u32 = 251658240;
371pub const VA_CODED_BUF_STATUS_SINGLE_NALU: u32 = 268435456;
372pub const VA_MAPBUFFER_FLAG_DEFAULT: u32 = 0;
373pub const VA_MAPBUFFER_FLAG_READ: u32 = 1;
374pub const VA_MAPBUFFER_FLAG_WRITE: u32 = 2;
375pub const VA_EXPORT_SURFACE_READ_ONLY: u32 = 1;
376pub const VA_EXPORT_SURFACE_WRITE_ONLY: u32 = 2;
377pub const VA_EXPORT_SURFACE_READ_WRITE: u32 = 3;
378pub const VA_EXPORT_SURFACE_SEPARATE_LAYERS: u32 = 4;
379pub const VA_EXPORT_SURFACE_COMPOSED_LAYERS: u32 = 8;
380pub const VA_TIMEOUT_INFINITE: i32 = -1;
381pub const VA_FOURCC_NV12: u32 = 842094158;
382pub const VA_FOURCC_NV21: u32 = 825382478;
383pub const VA_FOURCC_AI44: u32 = 875839817;
384pub const VA_FOURCC_RGBA: u32 = 1094862674;
385pub const VA_FOURCC_RGBX: u32 = 1480738642;
386pub const VA_FOURCC_BGRA: u32 = 1095911234;
387pub const VA_FOURCC_BGRX: u32 = 1481787202;
388pub const VA_FOURCC_ARGB: u32 = 1111970369;
389pub const VA_FOURCC_XRGB: u32 = 1111970392;
390pub const VA_FOURCC_ABGR: u32 = 1380401729;
391pub const VA_FOURCC_XBGR: u32 = 1380401752;
392pub const VA_FOURCC_UYVY: u32 = 1498831189;
393pub const VA_FOURCC_YUY2: u32 = 844715353;
394pub const VA_FOURCC_AYUV: u32 = 1448433985;
395pub const VA_FOURCC_NV11: u32 = 825316942;
396pub const VA_FOURCC_YV12: u32 = 842094169;
397pub const VA_FOURCC_P208: u32 = 942682704;
398pub const VA_FOURCC_I420: u32 = 808596553;
399pub const VA_FOURCC_YV24: u32 = 875714137;
400pub const VA_FOURCC_YV32: u32 = 842225241;
401pub const VA_FOURCC_Y800: u32 = 808466521;
402pub const VA_FOURCC_IMC3: u32 = 860048713;
403pub const VA_FOURCC_411P: u32 = 1345401140;
404pub const VA_FOURCC_411R: u32 = 1378955572;
405pub const VA_FOURCC_422H: u32 = 1211249204;
406pub const VA_FOURCC_422V: u32 = 1446130228;
407pub const VA_FOURCC_444P: u32 = 1345598516;
408pub const VA_FOURCC_RGBP: u32 = 1346520914;
409pub const VA_FOURCC_BGRP: u32 = 1347569474;
410pub const VA_FOURCC_RGB565: u32 = 909199186;
411pub const VA_FOURCC_BGR565: u32 = 909199170;
412pub const VA_FOURCC_Y210: u32 = 808530521;
413pub const VA_FOURCC_Y212: u32 = 842084953;
414pub const VA_FOURCC_Y216: u32 = 909193817;
415pub const VA_FOURCC_Y410: u32 = 808531033;
416pub const VA_FOURCC_Y412: u32 = 842085465;
417pub const VA_FOURCC_Y416: u32 = 909194329;
418pub const VA_FOURCC_YV16: u32 = 909203033;
419pub const VA_FOURCC_P010: u32 = 808530000;
420pub const VA_FOURCC_P012: u32 = 842084432;
421pub const VA_FOURCC_P016: u32 = 909193296;
422pub const VA_FOURCC_I010: u32 = 808529993;
423pub const VA_FOURCC_IYUV: u32 = 1448433993;
424pub const VA_FOURCC_A2R10G10B10: u32 = 808669761;
425pub const VA_FOURCC_A2B10G10R10: u32 = 808665665;
426pub const VA_FOURCC_X2R10G10B10: u32 = 808669784;
427pub const VA_FOURCC_X2B10G10R10: u32 = 808665688;
428pub const VA_FOURCC_Y8: u32 = 538982489;
429pub const VA_FOURCC_Y16: u32 = 540422489;
430pub const VA_FOURCC_VYUY: u32 = 1498765654;
431pub const VA_FOURCC_YVYU: u32 = 1431918169;
432pub const VA_FOURCC_ARGB64: u32 = 877089345;
433pub const VA_FOURCC_ABGR64: u32 = 877085249;
434pub const VA_FOURCC_XYUV: u32 = 1448434008;
435pub const VA_FOURCC_Q416: u32 = 909194321;
436pub const VA_LSB_FIRST: u32 = 1;
437pub const VA_MSB_FIRST: u32 = 2;
438pub const VA_SUBPICTURE_CHROMA_KEYING: u32 = 1;
439pub const VA_SUBPICTURE_GLOBAL_ALPHA: u32 = 2;
440pub const VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD: u32 = 4;
441pub const VA_ROTATION_NONE: u32 = 0;
442pub const VA_ROTATION_90: u32 = 1;
443pub const VA_ROTATION_180: u32 = 2;
444pub const VA_ROTATION_270: u32 = 3;
445pub const VA_MIRROR_NONE: u32 = 0;
446pub const VA_MIRROR_HORIZONTAL: u32 = 1;
447pub const VA_MIRROR_VERTICAL: u32 = 2;
448pub const VA_OOL_DEBLOCKING_FALSE: u32 = 0;
449pub const VA_OOL_DEBLOCKING_TRUE: u32 = 1;
450pub const VA_RENDER_MODE_UNDEFINED: u32 = 0;
451pub const VA_RENDER_MODE_LOCAL_OVERLAY: u32 = 1;
452pub const VA_RENDER_MODE_LOCAL_GPU: u32 = 2;
453pub const VA_RENDER_MODE_EXTERNAL_OVERLAY: u32 = 4;
454pub const VA_RENDER_MODE_EXTERNAL_GPU: u32 = 8;
455pub const VA_RENDER_DEVICE_UNDEFINED: u32 = 0;
456pub const VA_RENDER_DEVICE_LOCAL: u32 = 1;
457pub const VA_RENDER_DEVICE_EXTERNAL: u32 = 2;
458pub const VA_DISPLAY_ATTRIB_NOT_SUPPORTED: u32 = 0;
459pub const VA_DISPLAY_ATTRIB_GETTABLE: u32 = 1;
460pub const VA_DISPLAY_ATTRIB_SETTABLE: u32 = 2;
461pub const VA_PICTURE_HEVC_INVALID: u32 = 1;
462pub const VA_PICTURE_HEVC_FIELD_PIC: u32 = 2;
463pub const VA_PICTURE_HEVC_BOTTOM_FIELD: u32 = 4;
464pub const VA_PICTURE_HEVC_LONG_TERM_REFERENCE: u32 = 8;
465pub const VA_PICTURE_HEVC_RPS_ST_CURR_BEFORE: u32 = 16;
466pub const VA_PICTURE_HEVC_RPS_ST_CURR_AFTER: u32 = 32;
467pub const VA_PICTURE_HEVC_RPS_LT_CURR: u32 = 64;
468pub const VA_PICTURE_VVC_INVALID: u32 = 1;
469pub const VA_PICTURE_VVC_LONG_TERM_REFERENCE: u32 = 2;
470pub const VA_PICTURE_VVC_UNAVAILABLE_REFERENCE: u32 = 4;
471pub const VA_FEI_FUNCTION_ENC: u32 = 1;
472pub const VA_FEI_FUNCTION_PAK: u32 = 2;
473pub const VA_FEI_FUNCTION_ENC_PAK: u32 = 4;
474pub const VA_PICTURE_STATS_INVALID: u32 = 1;
475pub const VA_PICTURE_STATS_PROGRESSIVE: u32 = 0;
476pub const VA_PICTURE_STATS_TOP_FIELD: u32 = 2;
477pub const VA_PICTURE_STATS_BOTTOM_FIELD: u32 = 4;
478pub const VA_PICTURE_STATS_CONTENT_UPDATED: u32 = 16;
479pub const VA_MB_PRED_AVAIL_TOP_LEFT: u32 = 4;
480pub const VA_MB_PRED_AVAIL_TOP: u32 = 16;
481pub const VA_MB_PRED_AVAIL_TOP_RIGHT: u32 = 8;
482pub const VA_MB_PRED_AVAIL_LEFT: u32 = 64;
483pub const VA_AV1_MAX_SEGMENTS: u32 = 8;
484pub const VA_AV1_SEG_LVL_MAX: u32 = 8;
485pub const VA_BLEND_GLOBAL_ALPHA: u32 = 1;
486pub const VA_BLEND_PREMULTIPLIED_ALPHA: u32 = 2;
487pub const VA_BLEND_LUMA_KEY: u32 = 16;
488pub const VA_PROC_PIPELINE_SUBPICTURES: u32 = 1;
489pub const VA_PROC_PIPELINE_FAST: u32 = 2;
490pub const VA_PROC_FILTER_MANDATORY: u32 = 1;
491pub const VA_PIPELINE_FLAG_END: u32 = 4;
492pub const VA_CHROMA_SITING_UNKNOWN: u32 = 0;
493pub const VA_CHROMA_SITING_VERTICAL_TOP: u32 = 1;
494pub const VA_CHROMA_SITING_VERTICAL_CENTER: u32 = 2;
495pub const VA_CHROMA_SITING_VERTICAL_BOTTOM: u32 = 3;
496pub const VA_CHROMA_SITING_HORIZONTAL_LEFT: u32 = 4;
497pub const VA_CHROMA_SITING_HORIZONTAL_CENTER: u32 = 8;
498pub const VA_SOURCE_RANGE_UNKNOWN: u32 = 0;
499pub const VA_SOURCE_RANGE_REDUCED: u32 = 1;
500pub const VA_SOURCE_RANGE_FULL: u32 = 2;
501pub const VA_TONE_MAPPING_HDR_TO_HDR: u32 = 1;
502pub const VA_TONE_MAPPING_HDR_TO_SDR: u32 = 2;
503pub const VA_TONE_MAPPING_HDR_TO_EDR: u32 = 4;
504pub const VA_TONE_MAPPING_SDR_TO_HDR: u32 = 8;
505pub const VA_DEINTERLACING_BOTTOM_FIELD_FIRST: u32 = 1;
506pub const VA_DEINTERLACING_BOTTOM_FIELD: u32 = 2;
507pub const VA_DEINTERLACING_ONE_FIELD: u32 = 4;
508pub const VA_DEINTERLACING_FMD_ENABLE: u32 = 8;
509pub const VA_DEINTERLACING_SCD_ENABLE: u32 = 16;
510pub const VA_PROC_HVS_DENOISE_DEFAULT: u32 = 0;
511pub const VA_PROC_HVS_DENOISE_AUTO_BDRATE: u32 = 1;
512pub const VA_PROC_HVS_DENOISE_AUTO_SUBJECTIVE: u32 = 2;
513pub const VA_PROC_HVS_DENOISE_MANUAL: u32 = 3;
514pub const VA_3DLUT_CHANNEL_UNKNOWN: u32 = 0;
515pub const VA_3DLUT_CHANNEL_RGB_RGB: u32 = 1;
516pub const VA_3DLUT_CHANNEL_YUV_RGB: u32 = 2;
517pub const VA_3DLUT_CHANNEL_VUY_RGB: u32 = 4;
518pub const VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM: u32 = 268435456;
519pub const VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME: u32 = 536870912;
520pub const VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2: u32 = 1073741824;
521pub const VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3: u32 = 134217728;
522#[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"]
523pub type VADisplay = *mut ::std::os::raw::c_void;
524pub type VAStatus = ::std::os::raw::c_int;
525#[doc = " \\brief Structure to describe rectangle."]
526#[repr(C)]
527#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
528pub struct _VARectangle {
529	pub x: i16,
530	pub y: i16,
531	pub width: u16,
532	pub height: u16,
533}
534#[doc = " \\brief Structure to describe rectangle."]
535pub type VARectangle = _VARectangle;
536#[doc = " \\brief Generic motion vector data structure."]
537#[repr(C)]
538#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
539pub struct _VAMotionVector {
540	#[doc = " \\brief Past reference\n\n - \\c [0]: horizontal motion vector for past reference\n - \\c [1]: vertical motion vector for past reference"]
541	pub mv0: [i16; 2usize],
542	#[doc = " \\brief Future reference\n\n - \\c [0]: horizontal motion vector for future reference\n - \\c [1]: vertical motion vector for future reference"]
543	pub mv1: [i16; 2usize],
544}
545#[doc = " \\brief Generic motion vector data structure."]
546pub type VAMotionVector = _VAMotionVector;
547#[doc = " Type of a message callback, used for both error and info log."]
548pub type VAMessageCallback = ::std::option::Option<
549	unsafe extern "C" fn(user_context: *mut ::std::os::raw::c_void, message: *const ::std::os::raw::c_char),
550>;
551pub type VAPrivFunc = ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>;
552pub mod VAProfile {
553	#[doc = " Currently defined profiles"]
554	pub type Type = ::std::os::raw::c_int;
555	#[doc = " \\brief Profile ID used for video processing."]
556	pub const VAProfileNone: Type = -1;
557	#[doc = " \\brief Profile ID used for video processing."]
558	pub const VAProfileMPEG2Simple: Type = 0;
559	#[doc = " \\brief Profile ID used for video processing."]
560	pub const VAProfileMPEG2Main: Type = 1;
561	#[doc = " \\brief Profile ID used for video processing."]
562	pub const VAProfileMPEG4Simple: Type = 2;
563	#[doc = " \\brief Profile ID used for video processing."]
564	pub const VAProfileMPEG4AdvancedSimple: Type = 3;
565	#[doc = " \\brief Profile ID used for video processing."]
566	pub const VAProfileMPEG4Main: Type = 4;
567	#[doc = " \\brief Profile ID used for video processing."]
568	pub const VAProfileH264Baseline: Type = 5;
569	#[doc = " \\brief Profile ID used for video processing."]
570	pub const VAProfileH264Main: Type = 6;
571	#[doc = " \\brief Profile ID used for video processing."]
572	pub const VAProfileH264High: Type = 7;
573	#[doc = " \\brief Profile ID used for video processing."]
574	pub const VAProfileVC1Simple: Type = 8;
575	#[doc = " \\brief Profile ID used for video processing."]
576	pub const VAProfileVC1Main: Type = 9;
577	#[doc = " \\brief Profile ID used for video processing."]
578	pub const VAProfileVC1Advanced: Type = 10;
579	#[doc = " \\brief Profile ID used for video processing."]
580	pub const VAProfileH263Baseline: Type = 11;
581	#[doc = " \\brief Profile ID used for video processing."]
582	pub const VAProfileJPEGBaseline: Type = 12;
583	#[doc = " \\brief Profile ID used for video processing."]
584	pub const VAProfileH264ConstrainedBaseline: Type = 13;
585	#[doc = " \\brief Profile ID used for video processing."]
586	pub const VAProfileVP8Version0_3: Type = 14;
587	#[doc = " \\brief Profile ID used for video processing."]
588	pub const VAProfileH264MultiviewHigh: Type = 15;
589	#[doc = " \\brief Profile ID used for video processing."]
590	pub const VAProfileH264StereoHigh: Type = 16;
591	#[doc = " \\brief Profile ID used for video processing."]
592	pub const VAProfileHEVCMain: Type = 17;
593	#[doc = " \\brief Profile ID used for video processing."]
594	pub const VAProfileHEVCMain10: Type = 18;
595	#[doc = " \\brief Profile ID used for video processing."]
596	pub const VAProfileVP9Profile0: Type = 19;
597	#[doc = " \\brief Profile ID used for video processing."]
598	pub const VAProfileVP9Profile1: Type = 20;
599	#[doc = " \\brief Profile ID used for video processing."]
600	pub const VAProfileVP9Profile2: Type = 21;
601	#[doc = " \\brief Profile ID used for video processing."]
602	pub const VAProfileVP9Profile3: Type = 22;
603	#[doc = " \\brief Profile ID used for video processing."]
604	pub const VAProfileHEVCMain12: Type = 23;
605	#[doc = " \\brief Profile ID used for video processing."]
606	pub const VAProfileHEVCMain422_10: Type = 24;
607	#[doc = " \\brief Profile ID used for video processing."]
608	pub const VAProfileHEVCMain422_12: Type = 25;
609	#[doc = " \\brief Profile ID used for video processing."]
610	pub const VAProfileHEVCMain444: Type = 26;
611	#[doc = " \\brief Profile ID used for video processing."]
612	pub const VAProfileHEVCMain444_10: Type = 27;
613	#[doc = " \\brief Profile ID used for video processing."]
614	pub const VAProfileHEVCMain444_12: Type = 28;
615	#[doc = " \\brief Profile ID used for video processing."]
616	pub const VAProfileHEVCSccMain: Type = 29;
617	#[doc = " \\brief Profile ID used for video processing."]
618	pub const VAProfileHEVCSccMain10: Type = 30;
619	#[doc = " \\brief Profile ID used for video processing."]
620	pub const VAProfileHEVCSccMain444: Type = 31;
621	#[doc = " \\brief Profile ID used for video processing."]
622	pub const VAProfileAV1Profile0: Type = 32;
623	#[doc = " \\brief Profile ID used for video processing."]
624	pub const VAProfileAV1Profile1: Type = 33;
625	#[doc = " \\brief Profile ID used for video processing."]
626	pub const VAProfileHEVCSccMain444_10: Type = 34;
627	#[doc = " \\brief Profile ID used for protected video playback."]
628	pub const VAProfileProtected: Type = 35;
629	#[doc = " \\brief Profile ID used for protected video playback."]
630	pub const VAProfileH264High10: Type = 36;
631	#[doc = " \\brief Profile ID used for protected video playback."]
632	pub const VAProfileVVCMain10: Type = 37;
633	#[doc = " \\brief Profile ID used for protected video playback."]
634	pub const VAProfileVVCMultilayerMain10: Type = 38;
635	#[doc = " \\brief Profile ID used for protected video playback."]
636	pub const VAProfileAV1Profile2: Type = 39;
637	#[doc = " \\brief Profile ID used for protected video playback."]
638	pub const VAProfileH264High422: Type = 40;
639}
640pub mod VAEntrypoint {
641	#[doc = "  Currently defined entrypoints"]
642	pub type Type = ::std::os::raw::c_uint;
643	pub const VAEntrypointVLD: Type = 1;
644	pub const VAEntrypointIZZ: Type = 2;
645	pub const VAEntrypointIDCT: Type = 3;
646	pub const VAEntrypointMoComp: Type = 4;
647	pub const VAEntrypointDeblocking: Type = 5;
648	pub const VAEntrypointEncSlice: Type = 6;
649	pub const VAEntrypointEncPicture: Type = 7;
650	pub const VAEntrypointEncSliceLP: Type = 8;
651	#[doc = "< Video pre/post-processing."]
652	pub const VAEntrypointVideoProc: Type = 10;
653	#[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."]
654	pub const VAEntrypointFEI: Type = 11;
655	#[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."]
656	pub const VAEntrypointStats: Type = 12;
657	#[doc = " \\brief VAEntrypointProtectedTEEComm\n\n A function for communicating with TEE (Trusted Execution Environment)."]
658	pub const VAEntrypointProtectedTEEComm: Type = 13;
659	#[doc = " \\brief VAEntrypointProtectedContent\n\n A function for protected content to decrypt encrypted content."]
660	pub const VAEntrypointProtectedContent: Type = 14;
661}
662pub mod VAConfigAttribType {
663	#[doc = " Currently defined configuration attribute types"]
664	pub type Type = ::std::os::raw::c_uint;
665	pub const VAConfigAttribRTFormat: Type = 0;
666	pub const VAConfigAttribSpatialResidual: Type = 1;
667	pub const VAConfigAttribSpatialClipping: Type = 2;
668	pub const VAConfigAttribIntraResidual: Type = 3;
669	pub const VAConfigAttribEncryption: Type = 4;
670	pub const VAConfigAttribRateControl: Type = 5;
671	#[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."]
672	pub const VAConfigAttribDecSliceMode: Type = 6;
673	#[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."]
674	pub const VAConfigAttribDecJPEG: Type = 7;
675	#[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."]
676	pub const VAConfigAttribDecProcessing: Type = 8;
677	#[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."]
678	pub const VAConfigAttribEncPackedHeaders: Type = 10;
679	#[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."]
680	pub const VAConfigAttribEncInterlaced: Type = 11;
681	#[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)."]
682	pub const VAConfigAttribEncMaxRefFrames: Type = 13;
683	#[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."]
684	pub const VAConfigAttribEncMaxSlices: Type = 14;
685	#[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."]
686	pub const VAConfigAttribEncSliceStructure: Type = 15;
687	#[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."]
688	pub const VAConfigAttribEncMacroblockInfo: Type = 16;
689	#[doc = " \\brief Maximum picture width. Read-only.\n\n This attribute determines the maximum picture width the driver supports\n for a given configuration."]
690	pub const VAConfigAttribMaxPictureWidth: Type = 18;
691	#[doc = " \\brief Maximum picture height. Read-only.\n\n This attribute determines the maximum picture height the driver supports\n for a given configuration."]
692	pub const VAConfigAttribMaxPictureHeight: Type = 19;
693	#[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."]
694	pub const VAConfigAttribEncJPEG: Type = 20;
695	#[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."]
696	pub const VAConfigAttribEncQualityRange: Type = 21;
697	#[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"]
698	pub const VAConfigAttribEncQuantization: Type = 22;
699	#[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"]
700	pub const VAConfigAttribEncIntraRefresh: Type = 23;
701	#[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."]
702	pub const VAConfigAttribEncSkipFrame: Type = 24;
703	#[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."]
704	pub const VAConfigAttribEncROI: Type = 25;
705	#[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."]
706	pub const VAConfigAttribEncRateControlExt: Type = 26;
707	#[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"]
708	pub const VAConfigAttribProcessingRate: Type = 27;
709	#[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."]
710	pub const VAConfigAttribEncDirtyRect: Type = 28;
711	#[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."]
712	pub const VAConfigAttribEncParallelRateControl: Type = 29;
713	#[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."]
714	pub const VAConfigAttribEncDynamicScaling: Type = 30;
715	#[doc = " \\brief frame size tolerance support\n it indicates the tolerance of frame size"]
716	pub const VAConfigAttribFrameSizeToleranceSupport: Type = 31;
717	#[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."]
718	pub const VAConfigAttribFEIFunctionType: Type = 32;
719	#[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."]
720	pub const VAConfigAttribFEIMVPredictors: Type = 33;
721	#[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."]
722	pub const VAConfigAttribStats: Type = 34;
723	#[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."]
724	pub const VAConfigAttribEncTileSupport: Type = 35;
725	#[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"]
726	pub const VAConfigAttribCustomRoundingControl: Type = 36;
727	#[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."]
728	pub const VAConfigAttribQPBlockSize: Type = 37;
729	#[doc = " \\brief encode max frame size attribute. Read-only\n attribute value \\c VAConfigAttribValMaxFrameSize represent max frame size support"]
730	pub const VAConfigAttribMaxFrameSize: Type = 38;
731	#[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)."]
732	pub const VAConfigAttribPredictionDirection: Type = 39;
733	#[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"]
734	pub const VAConfigAttribMultipleFrame: Type = 40;
735	#[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"]
736	pub const VAConfigAttribContextPriority: Type = 41;
737	#[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."]
738	pub const VAConfigAttribDecAV1Features: Type = 42;
739	#[doc = " \\brief TEE could be any HW secure device. Read-only"]
740	pub const VAConfigAttribTEEType: Type = 43;
741	#[doc = " \\brief TEE type client is a specific module supporting specific functions in TEE. Read-only"]
742	pub const VAConfigAttribTEETypeClient: Type = 44;
743	#[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...."]
744	pub const VAConfigAttribProtectedContentCipherAlgorithm: Type = 45;
745	#[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...."]
746	pub const VAConfigAttribProtectedContentCipherBlockSize: Type = 46;
747	#[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..."]
748	pub const VAConfigAttribProtectedContentCipherMode: Type = 47;
749	#[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."]
750	pub const VAConfigAttribProtectedContentCipherSampleType: Type = 48;
751	#[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...."]
752	pub const VAConfigAttribProtectedContentUsage: Type = 49;
753	#[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."]
754	pub const VAConfigAttribEncHEVCFeatures: Type = 50;
755	#[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."]
756	pub const VAConfigAttribEncHEVCBlockSizes: Type = 51;
757	#[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."]
758	pub const VAConfigAttribEncAV1: Type = 52;
759	#[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."]
760	pub const VAConfigAttribEncAV1Ext1: Type = 53;
761	#[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."]
762	pub const VAConfigAttribEncAV1Ext2: Type = 54;
763	#[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."]
764	pub const VAConfigAttribEncPerBlockControl: Type = 55;
765	#[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."]
766	pub const VAConfigAttribEncMaxTileRows: Type = 56;
767	#[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."]
768	pub const VAConfigAttribEncMaxTileCols: Type = 57;
769	#[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."]
770	pub const VAConfigAttribEncVP9: Type = 58;
771	#[doc = "@}"]
772	pub const VAConfigAttribTypeMax: Type = 59;
773}
774#[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"]
775#[repr(C)]
776#[derive(Debug, Copy, Clone, PartialEq, Eq)]
777pub struct _VAConfigAttrib {
778	pub type_: VAConfigAttribType::Type,
779	pub value: u32,
780}
781impl Default for _VAConfigAttrib {
782	fn default() -> Self {
783		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
784		unsafe {
785			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
786			s.assume_init()
787		}
788	}
789}
790#[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"]
791pub type VAConfigAttrib = _VAConfigAttrib;
792#[doc = " Generic ID type, can be re-typed for specific implementation"]
793pub type VAGenericID = ::std::os::raw::c_uint;
794pub type VAConfigID = VAGenericID;
795#[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"]
796pub type VAContextID = VAGenericID;
797pub type VASurfaceID = VAGenericID;
798pub mod VAGenericValueType {
799	#[doc = " \\brief Generic value types."]
800	pub type Type = ::std::os::raw::c_uint;
801	#[doc = "< 32-bit signed integer."]
802	pub const VAGenericValueTypeInteger: Type = 1;
803	#[doc = "< 32-bit floating-point value."]
804	pub const VAGenericValueTypeFloat: Type = 2;
805	#[doc = "< Generic pointer type"]
806	pub const VAGenericValueTypePointer: Type = 3;
807	#[doc = "< Pointer to function"]
808	pub const VAGenericValueTypeFunc: Type = 4;
809}
810#[doc = " \\brief Generic function type."]
811pub type VAGenericFunc = ::std::option::Option<unsafe extern "C" fn()>;
812#[doc = " \\brief Generic value."]
813#[repr(C)]
814#[derive(Copy, Clone)]
815pub struct _VAGenericValue {
816	#[doc = " \\brief Value type. See #VAGenericValueType."]
817	pub type_: VAGenericValueType::Type,
818	pub value: _VAGenericValue__bindgen_ty_1,
819}
820#[doc = " \\brief Value holder."]
821#[repr(C)]
822#[derive(Copy, Clone)]
823pub union _VAGenericValue__bindgen_ty_1 {
824	#[doc = " \\brief 32-bit signed integer."]
825	pub i: i32,
826	#[doc = " \\brief 32-bit float."]
827	pub f: f32,
828	#[doc = " \\brief Generic pointer."]
829	pub p: *mut ::std::os::raw::c_void,
830	#[doc = " \\brief Pointer to function."]
831	pub fn_: VAGenericFunc,
832}
833impl Default for _VAGenericValue__bindgen_ty_1 {
834	fn default() -> Self {
835		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
836		unsafe {
837			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
838			s.assume_init()
839		}
840	}
841}
842impl Default for _VAGenericValue {
843	fn default() -> Self {
844		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
845		unsafe {
846			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
847			s.assume_init()
848		}
849	}
850}
851#[doc = " \\brief Generic value."]
852pub type VAGenericValue = _VAGenericValue;
853pub mod VASurfaceAttribType {
854	#[doc = " \\brief Surface attribute types."]
855	pub type Type = ::std::os::raw::c_uint;
856	pub const VASurfaceAttribNone: Type = 0;
857	#[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."]
858	pub const VASurfaceAttribPixelFormat: Type = 1;
859	#[doc = " \\brief Minimal width in pixels (int, read-only)."]
860	pub const VASurfaceAttribMinWidth: Type = 2;
861	#[doc = " \\brief Maximal width in pixels (int, read-only)."]
862	pub const VASurfaceAttribMaxWidth: Type = 3;
863	#[doc = " \\brief Minimal height in pixels (int, read-only)."]
864	pub const VASurfaceAttribMinHeight: Type = 4;
865	#[doc = " \\brief Maximal height in pixels (int, read-only)."]
866	pub const VASurfaceAttribMaxHeight: Type = 5;
867	#[doc = " \\brief Surface memory type expressed in bit fields (int, read/write)."]
868	pub const VASurfaceAttribMemoryType: Type = 6;
869	#[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."]
870	pub const VASurfaceAttribExternalBufferDescriptor: Type = 7;
871	#[doc = " \\brief Surface usage hint, gives the driver a hint of intended usage\n  to optimize allocation (e.g. tiling) (int, read/write)."]
872	pub const VASurfaceAttribUsageHint: Type = 8;
873	#[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."]
874	pub const VASurfaceAttribDRMFormatModifiers: Type = 9;
875	#[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."]
876	pub const VASurfaceAttribAlignmentSize: Type = 10;
877	#[doc = " \\brief Number of surface attributes."]
878	pub const VASurfaceAttribCount: Type = 11;
879}
880#[doc = " \\brief Surface attribute."]
881#[repr(C)]
882#[derive(Copy, Clone)]
883pub struct _VASurfaceAttrib {
884	#[doc = " \\brief Type."]
885	pub type_: VASurfaceAttribType::Type,
886	#[doc = " \\brief Flags. See \"Surface attribute flags\"."]
887	pub flags: u32,
888	#[doc = " \\brief Value. See \"Surface attribute types\" for the expected types."]
889	pub value: VAGenericValue,
890}
891impl Default for _VASurfaceAttrib {
892	fn default() -> Self {
893		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
894		unsafe {
895			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
896			s.assume_init()
897		}
898	}
899}
900#[doc = " \\brief Surface attribute."]
901pub type VASurfaceAttrib = _VASurfaceAttrib;
902#[doc = " \\brief VASurfaceAttribExternalBuffers structure for\n the VASurfaceAttribExternalBufferDescriptor attribute."]
903#[repr(C)]
904#[derive(Debug, Copy, Clone, PartialEq, Eq)]
905pub struct _VASurfaceAttribExternalBuffers {
906	#[doc = " \\brief pixel format in fourcc."]
907	pub pixel_format: u32,
908	#[doc = " \\brief width in pixels."]
909	pub width: u32,
910	#[doc = " \\brief height in pixels."]
911	pub height: u32,
912	#[doc = " \\brief total size of the buffer in bytes."]
913	pub data_size: u32,
914	#[doc = " \\brief number of planes for planar layout"]
915	pub num_planes: u32,
916	#[doc = " \\brief pitch for each plane in bytes"]
917	pub pitches: [u32; 4usize],
918	#[doc = " \\brief offset for each plane in bytes"]
919	pub offsets: [u32; 4usize],
920	#[doc = " \\brief buffer handles or user pointers"]
921	pub buffers: *mut usize,
922	#[doc = " \\brief number of elements in the \"buffers\" array"]
923	pub num_buffers: u32,
924	#[doc = " \\brief flags. See \"Surface external buffer descriptor flags\"."]
925	pub flags: u32,
926	#[doc = " \\brief reserved for passing private data"]
927	pub private_data: *mut ::std::os::raw::c_void,
928}
929impl Default for _VASurfaceAttribExternalBuffers {
930	fn default() -> Self {
931		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
932		unsafe {
933			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
934			s.assume_init()
935		}
936	}
937}
938#[doc = " \\brief VASurfaceAttribExternalBuffers structure for\n the VASurfaceAttribExternalBufferDescriptor attribute."]
939pub type VASurfaceAttribExternalBuffers = _VASurfaceAttribExternalBuffers;
940pub type VAMFContextID = VAGenericID;
941#[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."]
942pub type VABufferID = VAGenericID;
943pub mod VABufferType {
944	pub type Type = ::std::os::raw::c_uint;
945	pub const VAPictureParameterBufferType: Type = 0;
946	pub const VAIQMatrixBufferType: Type = 1;
947	pub const VABitPlaneBufferType: Type = 2;
948	pub const VASliceGroupMapBufferType: Type = 3;
949	pub const VASliceParameterBufferType: Type = 4;
950	pub const VASliceDataBufferType: Type = 5;
951	pub const VAMacroblockParameterBufferType: Type = 6;
952	pub const VAResidualDataBufferType: Type = 7;
953	pub const VADeblockingParameterBufferType: Type = 8;
954	pub const VAImageBufferType: Type = 9;
955	pub const VAProtectedSliceDataBufferType: Type = 10;
956	pub const VAQMatrixBufferType: Type = 11;
957	pub const VAHuffmanTableBufferType: Type = 12;
958	pub const VAProbabilityBufferType: Type = 13;
959	pub const VAEncCodedBufferType: Type = 21;
960	pub const VAEncSequenceParameterBufferType: Type = 22;
961	pub const VAEncPictureParameterBufferType: Type = 23;
962	pub const VAEncSliceParameterBufferType: Type = 24;
963	pub const VAEncPackedHeaderParameterBufferType: Type = 25;
964	pub const VAEncPackedHeaderDataBufferType: Type = 26;
965	pub const VAEncMiscParameterBufferType: Type = 27;
966	pub const VAEncMacroblockParameterBufferType: Type = 28;
967	pub const VAEncMacroblockMapBufferType: Type = 29;
968	#[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"]
969	pub const VAEncQPBufferType: Type = 30;
970	#[doc = " \\brief Video processing pipeline parameter buffer.\n\n This buffer describes the video processing pipeline. See\n #VAProcPipelineParameterBuffer for details."]
971	pub const VAProcPipelineParameterBufferType: Type = 41;
972	#[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."]
973	pub const VAProcFilterParameterBufferType: Type = 42;
974	#[doc = " \\brief FEI specific buffer types"]
975	pub const VAEncFEIMVBufferType: Type = 43;
976	#[doc = " \\brief FEI specific buffer types"]
977	pub const VAEncFEIMBCodeBufferType: Type = 44;
978	#[doc = " \\brief FEI specific buffer types"]
979	pub const VAEncFEIDistortionBufferType: Type = 45;
980	#[doc = " \\brief FEI specific buffer types"]
981	pub const VAEncFEIMBControlBufferType: Type = 46;
982	#[doc = " \\brief FEI specific buffer types"]
983	pub const VAEncFEIMVPredictorBufferType: Type = 47;
984	#[doc = " \\brief FEI specific buffer types"]
985	pub const VAStatsStatisticsParameterBufferType: Type = 48;
986	#[doc = " \\brief Statistics output for VAEntrypointStats progressive and top field of interlaced case"]
987	pub const VAStatsStatisticsBufferType: Type = 49;
988	#[doc = " \\brief Statistics output for VAEntrypointStats bottom field of interlaced case"]
989	pub const VAStatsStatisticsBottomFieldBufferType: Type = 50;
990	#[doc = " \\brief Statistics output for VAEntrypointStats bottom field of interlaced case"]
991	pub const VAStatsMVBufferType: Type = 51;
992	#[doc = " \\brief Statistics output for VAEntrypointStats bottom field of interlaced case"]
993	pub const VAStatsMVPredictorBufferType: Type = 52;
994	#[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."]
995	pub const VAEncMacroblockDisableSkipMapBufferType: Type = 53;
996	#[doc = " \\brief HEVC FEI CTB level cmd buffer\n it is CTB level information for future usage."]
997	pub const VAEncFEICTBCmdBufferType: Type = 54;
998	#[doc = " \\brief HEVC FEI CU level data buffer\n it's CTB level information for future usage"]
999	pub const VAEncFEICURecordBufferType: Type = 55;
1000	#[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"]
1001	pub const VADecodeStreamoutBufferType: Type = 56;
1002	#[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."]
1003	pub const VASubsetsParameterBufferType: Type = 57;
1004	#[doc = " \\brief adjust context parameters dynamically\n\n this parameter is used to update context parameters, detail parameter is in\n  \\c VAContextParameterUpdateBuffer"]
1005	pub const VAContextParameterUpdateBufferType: Type = 58;
1006	#[doc = " \\brief Protected session execution buffer type\n\n It's for TEE execution usage (vaProtectedSessionExecute()). The buffer structure is in\n \\c VAProtectedSessionExecuteBuffer"]
1007	pub const VAProtectedSessionExecuteBufferType: Type = 59;
1008	#[doc = " \\brief Encryption parameters buffer for protected content session.\n\n Refer to \\c VAEncryptionParameters"]
1009	pub const VAEncryptionParameterBufferType: Type = 60;
1010	#[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."]
1011	pub const VAEncDeltaQpPerBlockBufferType: Type = 61;
1012	#[doc = " \\brief VVC ALF data buffer\n\n Refer to \\c VAAlfDataVVC"]
1013	pub const VAAlfBufferType: Type = 62;
1014	#[doc = " \\brief VVC LMCS data buffer\n\n Refer to \\c VALmcsDataVVC"]
1015	pub const VALmcsBufferType: Type = 63;
1016	#[doc = " \\brief VVC SubPic data buffer\n\n Refer to \\c VASubPicVVC"]
1017	pub const VASubPicBufferType: Type = 64;
1018	#[doc = " \\brief VVC Tile Dimension data buffer\n\n Data buffer of tile widths and heights, with each element formatted as uint16_t"]
1019	pub const VATileBufferType: Type = 65;
1020	#[doc = " \\brief VVC Slice Structure data buffer\n\n Refer to \\c VASliceStructVVC"]
1021	pub const VASliceStructBufferType: Type = 66;
1022	#[doc = " \\brief VVC Slice Structure data buffer\n\n Refer to \\c VASliceStructVVC"]
1023	pub const VABufferTypeMax: Type = 67;
1024}
1025#[doc = " Processing rate parameter for encode."]
1026#[repr(C)]
1027#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1028pub struct _VAProcessingRateParameterEnc {
1029	#[doc = " \\brief Profile level"]
1030	pub level_idc: u8,
1031	pub reserved: [u8; 3usize],
1032	#[doc = " \\brief quality level. When set to 0, default quality\n level is used."]
1033	pub quality_level: u32,
1034	#[doc = " \\brief Period between I frames."]
1035	pub intra_period: u32,
1036	#[doc = " \\brief Period between I/P frames."]
1037	pub ip_period: u32,
1038}
1039#[doc = " Processing rate parameter for encode."]
1040pub type VAProcessingRateParameterEnc = _VAProcessingRateParameterEnc;
1041#[doc = " Processing rate parameter for decode."]
1042#[repr(C)]
1043#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1044pub struct _VAProcessingRateParameterDec {
1045	#[doc = " \\brief Profile level"]
1046	pub level_idc: u8,
1047	pub reserved0: [u8; 3usize],
1048	pub reserved: u32,
1049}
1050#[doc = " Processing rate parameter for decode."]
1051pub type VAProcessingRateParameterDec = _VAProcessingRateParameterDec;
1052#[repr(C)]
1053#[derive(Copy, Clone)]
1054pub struct _VAProcessingRateParameter {
1055	pub __bindgen_anon_1: _VAProcessingRateParameter__bindgen_ty_1,
1056}
1057#[repr(C)]
1058#[derive(Copy, Clone)]
1059pub union _VAProcessingRateParameter__bindgen_ty_1 {
1060	pub proc_buf_enc: VAProcessingRateParameterEnc,
1061	pub proc_buf_dec: VAProcessingRateParameterDec,
1062}
1063impl Default for _VAProcessingRateParameter__bindgen_ty_1 {
1064	fn default() -> Self {
1065		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1066		unsafe {
1067			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1068			s.assume_init()
1069		}
1070	}
1071}
1072impl Default for _VAProcessingRateParameter {
1073	fn default() -> Self {
1074		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1075		unsafe {
1076			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1077			s.assume_init()
1078		}
1079	}
1080}
1081pub type VAProcessingRateParameter = _VAProcessingRateParameter;
1082pub mod VAEncMiscParameterType {
1083	pub type Type = ::std::os::raw::c_uint;
1084	pub const VAEncMiscParameterTypeFrameRate: Type = 0;
1085	pub const VAEncMiscParameterTypeRateControl: Type = 1;
1086	pub const VAEncMiscParameterTypeMaxSliceSize: Type = 2;
1087	pub const VAEncMiscParameterTypeAIR: Type = 3;
1088	#[doc = " \\brief Buffer type used to express a maximum frame size (in bits)."]
1089	pub const VAEncMiscParameterTypeMaxFrameSize: Type = 4;
1090	#[doc = " \\brief Buffer type used for HRD parameters."]
1091	pub const VAEncMiscParameterTypeHRD: Type = 5;
1092	#[doc = " \\brief Buffer type used for HRD parameters."]
1093	pub const VAEncMiscParameterTypeQualityLevel: Type = 6;
1094	#[doc = " \\brief Buffer type used for Rolling intra refresh"]
1095	pub const VAEncMiscParameterTypeRIR: Type = 7;
1096	#[doc = " \\brief Buffer type used for quantization parameters, it's per-sequence parameter"]
1097	pub const VAEncMiscParameterTypeQuantization: Type = 8;
1098	#[doc = " \\brief Buffer type used for sending skip frame parameters to the encoder's\n rate control, when the user has externally skipped frames."]
1099	pub const VAEncMiscParameterTypeSkipFrame: Type = 9;
1100	#[doc = " \\brief Buffer type used for region-of-interest (ROI) parameters."]
1101	pub const VAEncMiscParameterTypeROI: Type = 10;
1102	#[doc = " \\brief Buffer type used to express a maximum frame size (in bytes) settings for multiple pass."]
1103	pub const VAEncMiscParameterTypeMultiPassFrameSize: Type = 11;
1104	#[doc = " \\brief Buffer type used for temporal layer structure"]
1105	pub const VAEncMiscParameterTypeTemporalLayerStructure: Type = 12;
1106	#[doc = " \\brief Buffer type used for dirty region-of-interest (ROI) parameters."]
1107	pub const VAEncMiscParameterTypeDirtyRect: Type = 13;
1108	#[doc = " \\brief Buffer type used for parallel BRC parameters."]
1109	pub const VAEncMiscParameterTypeParallelBRC: Type = 14;
1110	#[doc = " \\brief Set MB partion mode mask and Half-pel/Quant-pel motion search"]
1111	pub const VAEncMiscParameterTypeSubMbPartPel: Type = 15;
1112	#[doc = " \\brief set encode quality tuning"]
1113	pub const VAEncMiscParameterTypeEncQuality: Type = 16;
1114	#[doc = " \\brief Buffer type used for encoder rounding offset parameters."]
1115	pub const VAEncMiscParameterTypeCustomRoundingControl: Type = 17;
1116	#[doc = " \\brief Buffer type used for FEI input frame level parameters"]
1117	pub const VAEncMiscParameterTypeFEIFrameControl: Type = 18;
1118	#[doc = " \\brief encode extension buffer, ect. MPEG2 Sequence extenstion data"]
1119	pub const VAEncMiscParameterTypeExtensionData: Type = 19;
1120}
1121pub mod VAEncPackedHeaderType {
1122	#[doc = " \\brief Packed header type."]
1123	pub type Type = ::std::os::raw::c_uint;
1124	#[doc = " \\brief Packed sequence header."]
1125	pub const VAEncPackedHeaderSequence: Type = 1;
1126	#[doc = " \\brief Packed picture header."]
1127	pub const VAEncPackedHeaderPicture: Type = 2;
1128	#[doc = " \\brief Packed slice header."]
1129	pub const VAEncPackedHeaderSlice: Type = 3;
1130	#[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."]
1131	pub const VAEncPackedHeaderRawData: Type = 4;
1132	#[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"]
1133	pub const VAEncPackedHeaderMiscMask: Type = 2147483648;
1134}
1135#[doc = " \\brief Packed header parameter."]
1136#[repr(C)]
1137#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1138pub struct _VAEncPackedHeaderParameterBuffer {
1139	#[doc = " Type of the packed header buffer. See #VAEncPackedHeaderType."]
1140	pub type_: u32,
1141	#[doc = " \\brief Size of the #VAEncPackedHeaderDataBuffer in bits."]
1142	pub bit_length: u32,
1143	#[doc = " \\brief Flag: buffer contains start code emulation prevention bytes?"]
1144	pub has_emulation_bytes: u8,
1145	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1146	pub va_reserved: [u32; 4usize],
1147}
1148#[doc = " \\brief Packed header parameter."]
1149pub type VAEncPackedHeaderParameterBuffer = _VAEncPackedHeaderParameterBuffer;
1150#[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);"]
1151#[repr(C)]
1152#[derive(Debug)]
1153pub struct _VAEncMiscParameterBuffer {
1154	pub type_: VAEncMiscParameterType::Type,
1155	pub data: __IncompleteArrayField<u32>,
1156}
1157impl Default for _VAEncMiscParameterBuffer {
1158	fn default() -> Self {
1159		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1160		unsafe {
1161			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1162			s.assume_init()
1163		}
1164	}
1165}
1166#[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);"]
1167pub type VAEncMiscParameterBuffer = _VAEncMiscParameterBuffer;
1168#[doc = " \\brief Temporal layer Structure"]
1169#[repr(C)]
1170#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1171pub struct _VAEncMiscParameterTemporalLayerStructure {
1172	#[doc = " \\brief The number of temporal layers"]
1173	pub number_of_layers: u32,
1174	#[doc = " \\brief The length of the array defining frame layer membership. Should be 1-32"]
1175	pub periodicity: u32,
1176	#[doc = " \\brief The array indicating the layer id for each frame\n\n The layer id for the first frame in a coded sequence is always 0, so layer_id[] specifies the layer\n ids for frames starting from the 2nd frame."]
1177	pub layer_id: [u32; 32usize],
1178	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1179	pub va_reserved: [u32; 4usize],
1180}
1181#[doc = " \\brief Temporal layer Structure"]
1182pub type VAEncMiscParameterTemporalLayerStructure = _VAEncMiscParameterTemporalLayerStructure;
1183#[doc = " \\brief Rate control parameters"]
1184#[repr(C)]
1185#[derive(Copy, Clone)]
1186pub struct _VAEncMiscParameterRateControl {
1187	#[doc = " The maximum bit-rate which the the rate controller should generate."]
1188	pub bits_per_second: u32,
1189	#[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%)."]
1190	pub target_percentage: u32,
1191	#[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."]
1192	pub window_size: u32,
1193	#[doc = " Initial quantiser value used at the start of the stream.\n\n Ignored if set to zero."]
1194	pub initial_qp: u32,
1195	#[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."]
1196	pub min_qp: u32,
1197	#[doc = " Basic unit size.\n\n Only used by some drivers - see driver documentation for details.  Set to zero if unused."]
1198	pub basic_unit_size: u32,
1199	pub rc_flags: _VAEncMiscParameterRateControl__bindgen_ty_1,
1200	#[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."]
1201	pub ICQ_quality_factor: u32,
1202	#[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."]
1203	pub max_qp: u32,
1204	#[doc = " Quality factor\n\n  the range will be different for different codec"]
1205	pub quality_factor: u32,
1206	#[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"]
1207	pub target_frame_size: u32,
1208	#[doc = " Reserved bytes for future use, must be zero."]
1209	pub va_reserved: [u32; 4usize],
1210}
1211#[repr(C)]
1212#[derive(Copy, Clone)]
1213pub union _VAEncMiscParameterRateControl__bindgen_ty_1 {
1214	pub bits: _VAEncMiscParameterRateControl__bindgen_ty_1__bindgen_ty_1,
1215	pub value: u32,
1216}
1217#[repr(C)]
1218#[repr(align(4))]
1219#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1220pub struct _VAEncMiscParameterRateControl__bindgen_ty_1__bindgen_ty_1 {
1221	pub _bitfield_align_1: [u16; 0],
1222	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
1223}
1224impl _VAEncMiscParameterRateControl__bindgen_ty_1__bindgen_ty_1 {
1225	#[inline]
1226	pub fn reset(&self) -> u32 {
1227		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1228	}
1229	#[inline]
1230	pub fn set_reset(&mut self, val: u32) {
1231		unsafe {
1232			let val: u32 = ::std::mem::transmute(val);
1233			self._bitfield_1.set(0usize, 1u8, val as u64)
1234		}
1235	}
1236	#[inline]
1237	pub unsafe fn reset_raw(this: *const Self) -> u32 {
1238		unsafe {
1239			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1240				::std::ptr::addr_of!((*this)._bitfield_1),
1241				0usize,
1242				1u8,
1243			) as u32)
1244		}
1245	}
1246	#[inline]
1247	pub unsafe fn set_reset_raw(this: *mut Self, val: u32) {
1248		unsafe {
1249			let val: u32 = ::std::mem::transmute(val);
1250			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1251				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1252				0usize,
1253				1u8,
1254				val as u64,
1255			)
1256		}
1257	}
1258	#[inline]
1259	pub fn disable_frame_skip(&self) -> u32 {
1260		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1261	}
1262	#[inline]
1263	pub fn set_disable_frame_skip(&mut self, val: u32) {
1264		unsafe {
1265			let val: u32 = ::std::mem::transmute(val);
1266			self._bitfield_1.set(1usize, 1u8, val as u64)
1267		}
1268	}
1269	#[inline]
1270	pub unsafe fn disable_frame_skip_raw(this: *const Self) -> u32 {
1271		unsafe {
1272			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1273				::std::ptr::addr_of!((*this)._bitfield_1),
1274				1usize,
1275				1u8,
1276			) as u32)
1277		}
1278	}
1279	#[inline]
1280	pub unsafe fn set_disable_frame_skip_raw(this: *mut Self, val: u32) {
1281		unsafe {
1282			let val: u32 = ::std::mem::transmute(val);
1283			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1284				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1285				1usize,
1286				1u8,
1287				val as u64,
1288			)
1289		}
1290	}
1291	#[inline]
1292	pub fn disable_bit_stuffing(&self) -> u32 {
1293		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1294	}
1295	#[inline]
1296	pub fn set_disable_bit_stuffing(&mut self, val: u32) {
1297		unsafe {
1298			let val: u32 = ::std::mem::transmute(val);
1299			self._bitfield_1.set(2usize, 1u8, val as u64)
1300		}
1301	}
1302	#[inline]
1303	pub unsafe fn disable_bit_stuffing_raw(this: *const Self) -> u32 {
1304		unsafe {
1305			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1306				::std::ptr::addr_of!((*this)._bitfield_1),
1307				2usize,
1308				1u8,
1309			) as u32)
1310		}
1311	}
1312	#[inline]
1313	pub unsafe fn set_disable_bit_stuffing_raw(this: *mut Self, val: u32) {
1314		unsafe {
1315			let val: u32 = ::std::mem::transmute(val);
1316			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1317				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1318				2usize,
1319				1u8,
1320				val as u64,
1321			)
1322		}
1323	}
1324	#[inline]
1325	pub fn mb_rate_control(&self) -> u32 {
1326		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 4u8) as u32) }
1327	}
1328	#[inline]
1329	pub fn set_mb_rate_control(&mut self, val: u32) {
1330		unsafe {
1331			let val: u32 = ::std::mem::transmute(val);
1332			self._bitfield_1.set(3usize, 4u8, val as u64)
1333		}
1334	}
1335	#[inline]
1336	pub unsafe fn mb_rate_control_raw(this: *const Self) -> u32 {
1337		unsafe {
1338			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1339				::std::ptr::addr_of!((*this)._bitfield_1),
1340				3usize,
1341				4u8,
1342			) as u32)
1343		}
1344	}
1345	#[inline]
1346	pub unsafe fn set_mb_rate_control_raw(this: *mut Self, val: u32) {
1347		unsafe {
1348			let val: u32 = ::std::mem::transmute(val);
1349			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1350				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1351				3usize,
1352				4u8,
1353				val as u64,
1354			)
1355		}
1356	}
1357	#[inline]
1358	pub fn temporal_id(&self) -> u32 {
1359		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 8u8) as u32) }
1360	}
1361	#[inline]
1362	pub fn set_temporal_id(&mut self, val: u32) {
1363		unsafe {
1364			let val: u32 = ::std::mem::transmute(val);
1365			self._bitfield_1.set(7usize, 8u8, val as u64)
1366		}
1367	}
1368	#[inline]
1369	pub unsafe fn temporal_id_raw(this: *const Self) -> u32 {
1370		unsafe {
1371			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1372				::std::ptr::addr_of!((*this)._bitfield_1),
1373				7usize,
1374				8u8,
1375			) as u32)
1376		}
1377	}
1378	#[inline]
1379	pub unsafe fn set_temporal_id_raw(this: *mut Self, val: u32) {
1380		unsafe {
1381			let val: u32 = ::std::mem::transmute(val);
1382			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1383				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1384				7usize,
1385				8u8,
1386				val as u64,
1387			)
1388		}
1389	}
1390	#[inline]
1391	pub fn cfs_I_frames(&self) -> u32 {
1392		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
1393	}
1394	#[inline]
1395	pub fn set_cfs_I_frames(&mut self, val: u32) {
1396		unsafe {
1397			let val: u32 = ::std::mem::transmute(val);
1398			self._bitfield_1.set(15usize, 1u8, val as u64)
1399		}
1400	}
1401	#[inline]
1402	pub unsafe fn cfs_I_frames_raw(this: *const Self) -> u32 {
1403		unsafe {
1404			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1405				::std::ptr::addr_of!((*this)._bitfield_1),
1406				15usize,
1407				1u8,
1408			) as u32)
1409		}
1410	}
1411	#[inline]
1412	pub unsafe fn set_cfs_I_frames_raw(this: *mut Self, val: u32) {
1413		unsafe {
1414			let val: u32 = ::std::mem::transmute(val);
1415			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1416				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1417				15usize,
1418				1u8,
1419				val as u64,
1420			)
1421		}
1422	}
1423	#[inline]
1424	pub fn enable_parallel_brc(&self) -> u32 {
1425		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
1426	}
1427	#[inline]
1428	pub fn set_enable_parallel_brc(&mut self, val: u32) {
1429		unsafe {
1430			let val: u32 = ::std::mem::transmute(val);
1431			self._bitfield_1.set(16usize, 1u8, val as u64)
1432		}
1433	}
1434	#[inline]
1435	pub unsafe fn enable_parallel_brc_raw(this: *const Self) -> u32 {
1436		unsafe {
1437			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1438				::std::ptr::addr_of!((*this)._bitfield_1),
1439				16usize,
1440				1u8,
1441			) as u32)
1442		}
1443	}
1444	#[inline]
1445	pub unsafe fn set_enable_parallel_brc_raw(this: *mut Self, val: u32) {
1446		unsafe {
1447			let val: u32 = ::std::mem::transmute(val);
1448			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1449				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1450				16usize,
1451				1u8,
1452				val as u64,
1453			)
1454		}
1455	}
1456	#[inline]
1457	pub fn enable_dynamic_scaling(&self) -> u32 {
1458		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
1459	}
1460	#[inline]
1461	pub fn set_enable_dynamic_scaling(&mut self, val: u32) {
1462		unsafe {
1463			let val: u32 = ::std::mem::transmute(val);
1464			self._bitfield_1.set(17usize, 1u8, val as u64)
1465		}
1466	}
1467	#[inline]
1468	pub unsafe fn enable_dynamic_scaling_raw(this: *const Self) -> u32 {
1469		unsafe {
1470			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1471				::std::ptr::addr_of!((*this)._bitfield_1),
1472				17usize,
1473				1u8,
1474			) as u32)
1475		}
1476	}
1477	#[inline]
1478	pub unsafe fn set_enable_dynamic_scaling_raw(this: *mut Self, val: u32) {
1479		unsafe {
1480			let val: u32 = ::std::mem::transmute(val);
1481			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1482				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1483				17usize,
1484				1u8,
1485				val as u64,
1486			)
1487		}
1488	}
1489	#[inline]
1490	pub fn frame_tolerance_mode(&self) -> u32 {
1491		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) }
1492	}
1493	#[inline]
1494	pub fn set_frame_tolerance_mode(&mut self, val: u32) {
1495		unsafe {
1496			let val: u32 = ::std::mem::transmute(val);
1497			self._bitfield_1.set(18usize, 2u8, val as u64)
1498		}
1499	}
1500	#[inline]
1501	pub unsafe fn frame_tolerance_mode_raw(this: *const Self) -> u32 {
1502		unsafe {
1503			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1504				::std::ptr::addr_of!((*this)._bitfield_1),
1505				18usize,
1506				2u8,
1507			) as u32)
1508		}
1509	}
1510	#[inline]
1511	pub unsafe fn set_frame_tolerance_mode_raw(this: *mut Self, val: u32) {
1512		unsafe {
1513			let val: u32 = ::std::mem::transmute(val);
1514			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1515				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1516				18usize,
1517				2u8,
1518				val as u64,
1519			)
1520		}
1521	}
1522	#[inline]
1523	pub fn reserved(&self) -> u32 {
1524		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 12u8) as u32) }
1525	}
1526	#[inline]
1527	pub fn set_reserved(&mut self, val: u32) {
1528		unsafe {
1529			let val: u32 = ::std::mem::transmute(val);
1530			self._bitfield_1.set(20usize, 12u8, val as u64)
1531		}
1532	}
1533	#[inline]
1534	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
1535		unsafe {
1536			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1537				::std::ptr::addr_of!((*this)._bitfield_1),
1538				20usize,
1539				12u8,
1540			) as u32)
1541		}
1542	}
1543	#[inline]
1544	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
1545		unsafe {
1546			let val: u32 = ::std::mem::transmute(val);
1547			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1548				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1549				20usize,
1550				12u8,
1551				val as u64,
1552			)
1553		}
1554	}
1555	#[inline]
1556	pub fn new_bitfield_1(
1557		reset: u32,
1558		disable_frame_skip: u32,
1559		disable_bit_stuffing: u32,
1560		mb_rate_control: u32,
1561		temporal_id: u32,
1562		cfs_I_frames: u32,
1563		enable_parallel_brc: u32,
1564		enable_dynamic_scaling: u32,
1565		frame_tolerance_mode: u32,
1566		reserved: u32,
1567	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
1568		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
1569		__bindgen_bitfield_unit.set(0usize, 1u8, {
1570			let reset: u32 = unsafe { ::std::mem::transmute(reset) };
1571			reset as u64
1572		});
1573		__bindgen_bitfield_unit.set(1usize, 1u8, {
1574			let disable_frame_skip: u32 = unsafe { ::std::mem::transmute(disable_frame_skip) };
1575			disable_frame_skip as u64
1576		});
1577		__bindgen_bitfield_unit.set(2usize, 1u8, {
1578			let disable_bit_stuffing: u32 = unsafe { ::std::mem::transmute(disable_bit_stuffing) };
1579			disable_bit_stuffing as u64
1580		});
1581		__bindgen_bitfield_unit.set(3usize, 4u8, {
1582			let mb_rate_control: u32 = unsafe { ::std::mem::transmute(mb_rate_control) };
1583			mb_rate_control as u64
1584		});
1585		__bindgen_bitfield_unit.set(7usize, 8u8, {
1586			let temporal_id: u32 = unsafe { ::std::mem::transmute(temporal_id) };
1587			temporal_id as u64
1588		});
1589		__bindgen_bitfield_unit.set(15usize, 1u8, {
1590			let cfs_I_frames: u32 = unsafe { ::std::mem::transmute(cfs_I_frames) };
1591			cfs_I_frames as u64
1592		});
1593		__bindgen_bitfield_unit.set(16usize, 1u8, {
1594			let enable_parallel_brc: u32 = unsafe { ::std::mem::transmute(enable_parallel_brc) };
1595			enable_parallel_brc as u64
1596		});
1597		__bindgen_bitfield_unit.set(17usize, 1u8, {
1598			let enable_dynamic_scaling: u32 = unsafe { ::std::mem::transmute(enable_dynamic_scaling) };
1599			enable_dynamic_scaling as u64
1600		});
1601		__bindgen_bitfield_unit.set(18usize, 2u8, {
1602			let frame_tolerance_mode: u32 = unsafe { ::std::mem::transmute(frame_tolerance_mode) };
1603			frame_tolerance_mode as u64
1604		});
1605		__bindgen_bitfield_unit.set(20usize, 12u8, {
1606			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
1607			reserved as u64
1608		});
1609		__bindgen_bitfield_unit
1610	}
1611}
1612impl Default for _VAEncMiscParameterRateControl__bindgen_ty_1 {
1613	fn default() -> Self {
1614		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1615		unsafe {
1616			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1617			s.assume_init()
1618		}
1619	}
1620}
1621impl Default for _VAEncMiscParameterRateControl {
1622	fn default() -> Self {
1623		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1624		unsafe {
1625			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1626			s.assume_init()
1627		}
1628	}
1629}
1630#[doc = " \\brief Rate control parameters"]
1631pub type VAEncMiscParameterRateControl = _VAEncMiscParameterRateControl;
1632#[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)."]
1633#[repr(C)]
1634#[derive(Copy, Clone)]
1635pub struct _VAEncMiscParameterFrameRate {
1636	#[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."]
1637	pub framerate: u32,
1638	pub framerate_flags: _VAEncMiscParameterFrameRate__bindgen_ty_1,
1639	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1640	pub va_reserved: [u32; 4usize],
1641}
1642#[repr(C)]
1643#[derive(Copy, Clone)]
1644pub union _VAEncMiscParameterFrameRate__bindgen_ty_1 {
1645	pub bits: _VAEncMiscParameterFrameRate__bindgen_ty_1__bindgen_ty_1,
1646	pub value: u32,
1647}
1648#[repr(C)]
1649#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1650pub struct _VAEncMiscParameterFrameRate__bindgen_ty_1__bindgen_ty_1 {
1651	pub _bitfield_align_1: [u32; 0],
1652	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
1653}
1654impl _VAEncMiscParameterFrameRate__bindgen_ty_1__bindgen_ty_1 {
1655	#[inline]
1656	pub fn temporal_id(&self) -> u32 {
1657		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
1658	}
1659	#[inline]
1660	pub fn set_temporal_id(&mut self, val: u32) {
1661		unsafe {
1662			let val: u32 = ::std::mem::transmute(val);
1663			self._bitfield_1.set(0usize, 8u8, val as u64)
1664		}
1665	}
1666	#[inline]
1667	pub unsafe fn temporal_id_raw(this: *const Self) -> u32 {
1668		unsafe {
1669			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1670				::std::ptr::addr_of!((*this)._bitfield_1),
1671				0usize,
1672				8u8,
1673			) as u32)
1674		}
1675	}
1676	#[inline]
1677	pub unsafe fn set_temporal_id_raw(this: *mut Self, val: u32) {
1678		unsafe {
1679			let val: u32 = ::std::mem::transmute(val);
1680			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1681				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1682				0usize,
1683				8u8,
1684				val as u64,
1685			)
1686		}
1687	}
1688	#[inline]
1689	pub fn reserved(&self) -> u32 {
1690		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 24u8) as u32) }
1691	}
1692	#[inline]
1693	pub fn set_reserved(&mut self, val: u32) {
1694		unsafe {
1695			let val: u32 = ::std::mem::transmute(val);
1696			self._bitfield_1.set(8usize, 24u8, val as u64)
1697		}
1698	}
1699	#[inline]
1700	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
1701		unsafe {
1702			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1703				::std::ptr::addr_of!((*this)._bitfield_1),
1704				8usize,
1705				24u8,
1706			) as u32)
1707		}
1708	}
1709	#[inline]
1710	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
1711		unsafe {
1712			let val: u32 = ::std::mem::transmute(val);
1713			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1714				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1715				8usize,
1716				24u8,
1717				val as u64,
1718			)
1719		}
1720	}
1721	#[inline]
1722	pub fn new_bitfield_1(temporal_id: u32, reserved: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
1723		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
1724		__bindgen_bitfield_unit.set(0usize, 8u8, {
1725			let temporal_id: u32 = unsafe { ::std::mem::transmute(temporal_id) };
1726			temporal_id as u64
1727		});
1728		__bindgen_bitfield_unit.set(8usize, 24u8, {
1729			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
1730			reserved as u64
1731		});
1732		__bindgen_bitfield_unit
1733	}
1734}
1735impl Default for _VAEncMiscParameterFrameRate__bindgen_ty_1 {
1736	fn default() -> Self {
1737		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1738		unsafe {
1739			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1740			s.assume_init()
1741		}
1742	}
1743}
1744impl Default for _VAEncMiscParameterFrameRate {
1745	fn default() -> Self {
1746		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1747		unsafe {
1748			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1749			s.assume_init()
1750		}
1751	}
1752}
1753#[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)."]
1754pub type VAEncMiscParameterFrameRate = _VAEncMiscParameterFrameRate;
1755#[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"]
1756#[repr(C)]
1757#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1758pub struct _VAEncMiscParameterMaxSliceSize {
1759	pub max_slice_size: u32,
1760	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1761	pub va_reserved: [u32; 4usize],
1762}
1763#[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"]
1764pub type VAEncMiscParameterMaxSliceSize = _VAEncMiscParameterMaxSliceSize;
1765#[repr(C)]
1766#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1767pub struct _VAEncMiscParameterAIR {
1768	pub air_num_mbs: u32,
1769	pub air_threshold: u32,
1770	pub air_auto: u32,
1771	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1772	pub va_reserved: [u32; 4usize],
1773}
1774pub type VAEncMiscParameterAIR = _VAEncMiscParameterAIR;
1775#[repr(C)]
1776#[derive(Copy, Clone)]
1777pub struct _VAEncMiscParameterRIR {
1778	pub rir_flags: _VAEncMiscParameterRIR__bindgen_ty_1,
1779	#[doc = " \\brief Indicates the column or row location in MB. It is ignored if\n rir_flags is 0."]
1780	pub intra_insertion_location: u16,
1781	#[doc = " \\brief Indicates the number of columns or rows in MB. It is ignored if\n rir_flags is 0."]
1782	pub intra_insert_size: u16,
1783	#[doc = " \\brief indicates the Qp difference for inserted intra columns or rows.\n App can use this to adjust intra Qp based on bitrate & max frame size."]
1784	pub qp_delta_for_inserted_intra: u8,
1785	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1786	pub va_reserved: [u32; 4usize],
1787}
1788#[repr(C)]
1789#[derive(Copy, Clone)]
1790pub union _VAEncMiscParameterRIR__bindgen_ty_1 {
1791	pub bits: _VAEncMiscParameterRIR__bindgen_ty_1__bindgen_ty_1,
1792	pub value: u32,
1793}
1794#[repr(C)]
1795#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1796pub struct _VAEncMiscParameterRIR__bindgen_ty_1__bindgen_ty_1 {
1797	pub _bitfield_align_1: [u32; 0],
1798	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
1799}
1800impl _VAEncMiscParameterRIR__bindgen_ty_1__bindgen_ty_1 {
1801	#[inline]
1802	pub fn enable_rir_column(&self) -> u32 {
1803		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1804	}
1805	#[inline]
1806	pub fn set_enable_rir_column(&mut self, val: u32) {
1807		unsafe {
1808			let val: u32 = ::std::mem::transmute(val);
1809			self._bitfield_1.set(0usize, 1u8, val as u64)
1810		}
1811	}
1812	#[inline]
1813	pub unsafe fn enable_rir_column_raw(this: *const Self) -> u32 {
1814		unsafe {
1815			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1816				::std::ptr::addr_of!((*this)._bitfield_1),
1817				0usize,
1818				1u8,
1819			) as u32)
1820		}
1821	}
1822	#[inline]
1823	pub unsafe fn set_enable_rir_column_raw(this: *mut Self, val: u32) {
1824		unsafe {
1825			let val: u32 = ::std::mem::transmute(val);
1826			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1827				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1828				0usize,
1829				1u8,
1830				val as u64,
1831			)
1832		}
1833	}
1834	#[inline]
1835	pub fn enable_rir_row(&self) -> u32 {
1836		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1837	}
1838	#[inline]
1839	pub fn set_enable_rir_row(&mut self, val: u32) {
1840		unsafe {
1841			let val: u32 = ::std::mem::transmute(val);
1842			self._bitfield_1.set(1usize, 1u8, val as u64)
1843		}
1844	}
1845	#[inline]
1846	pub unsafe fn enable_rir_row_raw(this: *const Self) -> u32 {
1847		unsafe {
1848			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1849				::std::ptr::addr_of!((*this)._bitfield_1),
1850				1usize,
1851				1u8,
1852			) as u32)
1853		}
1854	}
1855	#[inline]
1856	pub unsafe fn set_enable_rir_row_raw(this: *mut Self, val: u32) {
1857		unsafe {
1858			let val: u32 = ::std::mem::transmute(val);
1859			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1860				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1861				1usize,
1862				1u8,
1863				val as u64,
1864			)
1865		}
1866	}
1867	#[inline]
1868	pub fn reserved(&self) -> u32 {
1869		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
1870	}
1871	#[inline]
1872	pub fn set_reserved(&mut self, val: u32) {
1873		unsafe {
1874			let val: u32 = ::std::mem::transmute(val);
1875			self._bitfield_1.set(2usize, 30u8, val as u64)
1876		}
1877	}
1878	#[inline]
1879	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
1880		unsafe {
1881			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
1882				::std::ptr::addr_of!((*this)._bitfield_1),
1883				2usize,
1884				30u8,
1885			) as u32)
1886		}
1887	}
1888	#[inline]
1889	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
1890		unsafe {
1891			let val: u32 = ::std::mem::transmute(val);
1892			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
1893				::std::ptr::addr_of_mut!((*this)._bitfield_1),
1894				2usize,
1895				30u8,
1896				val as u64,
1897			)
1898		}
1899	}
1900	#[inline]
1901	pub fn new_bitfield_1(
1902		enable_rir_column: u32,
1903		enable_rir_row: u32,
1904		reserved: u32,
1905	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
1906		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
1907		__bindgen_bitfield_unit.set(0usize, 1u8, {
1908			let enable_rir_column: u32 = unsafe { ::std::mem::transmute(enable_rir_column) };
1909			enable_rir_column as u64
1910		});
1911		__bindgen_bitfield_unit.set(1usize, 1u8, {
1912			let enable_rir_row: u32 = unsafe { ::std::mem::transmute(enable_rir_row) };
1913			enable_rir_row as u64
1914		});
1915		__bindgen_bitfield_unit.set(2usize, 30u8, {
1916			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
1917			reserved as u64
1918		});
1919		__bindgen_bitfield_unit
1920	}
1921}
1922impl Default for _VAEncMiscParameterRIR__bindgen_ty_1 {
1923	fn default() -> Self {
1924		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1925		unsafe {
1926			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1927			s.assume_init()
1928		}
1929	}
1930}
1931impl Default for _VAEncMiscParameterRIR {
1932	fn default() -> Self {
1933		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1934		unsafe {
1935			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1936			s.assume_init()
1937		}
1938	}
1939}
1940pub type VAEncMiscParameterRIR = _VAEncMiscParameterRIR;
1941#[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."]
1942#[repr(C)]
1943#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1944pub struct _VAEncMiscParameterHRD {
1945	#[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."]
1946	pub initial_buffer_fullness: u32,
1947	#[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."]
1948	pub buffer_size: u32,
1949	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1950	pub va_reserved: [u32; 4usize],
1951}
1952#[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."]
1953pub type VAEncMiscParameterHRD = _VAEncMiscParameterHRD;
1954#[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."]
1955#[repr(C)]
1956#[derive(Debug, Copy, Clone, PartialEq, Eq)]
1957pub struct _VAEncMiscParameterBufferMaxFrameSize {
1958	#[doc = " \\brief Type. Shall be set to #VAEncMiscParameterTypeMaxFrameSize. */\n/** duplicated with VAEncMiscParameterBuffer, should be deprecated"]
1959	pub type_: VAEncMiscParameterType::Type,
1960	#[doc = " \\brief Maximum size of a frame (in bits)."]
1961	pub max_frame_size: u32,
1962	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1963	pub va_reserved: [u32; 4usize],
1964}
1965impl Default for _VAEncMiscParameterBufferMaxFrameSize {
1966	fn default() -> Self {
1967		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1968		unsafe {
1969			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1970			s.assume_init()
1971		}
1972	}
1973}
1974#[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."]
1975pub type VAEncMiscParameterBufferMaxFrameSize = _VAEncMiscParameterBufferMaxFrameSize;
1976#[doc = " \\brief Maximum frame size (in bytes) settings for multiple pass.\n\n This misc parameter buffer defines the maximum size of a frame (in\n bytes) settings for multiple pass. currently only AVC encoder can\n support this settings in multiple pass case. If the frame size exceeds\n this size, the encoder will do more pak passes to adjust the QP value\n to control the frame size."]
1977#[repr(C)]
1978#[derive(Debug, Copy, Clone, PartialEq, Eq)]
1979pub struct _VAEncMiscParameterBufferMultiPassFrameSize {
1980	#[doc = " \\brief Type. Shall be set to #VAEncMiscParameterTypeMultiPassMaxFrameSize. */\n/** duplicated with VAEncMiscParameterBuffer, should be deprecated"]
1981	pub type_: VAEncMiscParameterType::Type,
1982	#[doc = " \\brief Maximum size of a frame (in byte)"]
1983	pub max_frame_size: u32,
1984	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1985	pub reserved: u32,
1986	#[doc = " \\brief number of passes, every pass has different QP, currently AVC encoder can support up to 4 passes"]
1987	pub num_passes: u8,
1988	#[doc = " \\brief delta QP list for every pass"]
1989	pub delta_qp: *mut u8,
1990	#[doc = " \\brief Reserved bytes for future use, must be zero"]
1991	pub va_reserved: [::std::os::raw::c_ulong; 4usize],
1992}
1993impl Default for _VAEncMiscParameterBufferMultiPassFrameSize {
1994	fn default() -> Self {
1995		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1996		unsafe {
1997			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1998			s.assume_init()
1999		}
2000	}
2001}
2002#[doc = " \\brief Maximum frame size (in bytes) settings for multiple pass.\n\n This misc parameter buffer defines the maximum size of a frame (in\n bytes) settings for multiple pass. currently only AVC encoder can\n support this settings in multiple pass case. If the frame size exceeds\n this size, the encoder will do more pak passes to adjust the QP value\n to control the frame size."]
2003pub type VAEncMiscParameterBufferMultiPassFrameSize = _VAEncMiscParameterBufferMultiPassFrameSize;
2004#[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."]
2005#[repr(C)]
2006#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2007pub struct _VAEncMiscParameterBufferQualityLevel {
2008	#[doc = " \\brief Encoding quality level setting. When set to 0, default quality\n level is used."]
2009	pub quality_level: u32,
2010	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2011	pub va_reserved: [u32; 4usize],
2012}
2013#[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."]
2014pub type VAEncMiscParameterBufferQualityLevel = _VAEncMiscParameterBufferQualityLevel;
2015#[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."]
2016#[repr(C)]
2017#[derive(Copy, Clone)]
2018pub struct _VAEncMiscParameterQuantization {
2019	pub quantization_flags: _VAEncMiscParameterQuantization__bindgen_ty_1,
2020	pub va_reserved: u32,
2021}
2022#[repr(C)]
2023#[derive(Copy, Clone)]
2024pub union _VAEncMiscParameterQuantization__bindgen_ty_1 {
2025	pub bits: _VAEncMiscParameterQuantization__bindgen_ty_1__bindgen_ty_1,
2026	pub value: u32,
2027}
2028#[repr(C)]
2029#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2030pub struct _VAEncMiscParameterQuantization__bindgen_ty_1__bindgen_ty_1 {
2031	pub _bitfield_align_1: [u32; 0],
2032	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
2033}
2034impl _VAEncMiscParameterQuantization__bindgen_ty_1__bindgen_ty_1 {
2035	#[inline]
2036	pub fn disable_trellis(&self) -> u32 {
2037		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2038	}
2039	#[inline]
2040	pub fn set_disable_trellis(&mut self, val: u32) {
2041		unsafe {
2042			let val: u32 = ::std::mem::transmute(val);
2043			self._bitfield_1.set(0usize, 1u8, val as u64)
2044		}
2045	}
2046	#[inline]
2047	pub unsafe fn disable_trellis_raw(this: *const Self) -> u32 {
2048		unsafe {
2049			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2050				::std::ptr::addr_of!((*this)._bitfield_1),
2051				0usize,
2052				1u8,
2053			) as u32)
2054		}
2055	}
2056	#[inline]
2057	pub unsafe fn set_disable_trellis_raw(this: *mut Self, val: u32) {
2058		unsafe {
2059			let val: u32 = ::std::mem::transmute(val);
2060			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2061				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2062				0usize,
2063				1u8,
2064				val as u64,
2065			)
2066		}
2067	}
2068	#[inline]
2069	pub fn enable_trellis_I(&self) -> u32 {
2070		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2071	}
2072	#[inline]
2073	pub fn set_enable_trellis_I(&mut self, val: u32) {
2074		unsafe {
2075			let val: u32 = ::std::mem::transmute(val);
2076			self._bitfield_1.set(1usize, 1u8, val as u64)
2077		}
2078	}
2079	#[inline]
2080	pub unsafe fn enable_trellis_I_raw(this: *const Self) -> u32 {
2081		unsafe {
2082			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2083				::std::ptr::addr_of!((*this)._bitfield_1),
2084				1usize,
2085				1u8,
2086			) as u32)
2087		}
2088	}
2089	#[inline]
2090	pub unsafe fn set_enable_trellis_I_raw(this: *mut Self, val: u32) {
2091		unsafe {
2092			let val: u32 = ::std::mem::transmute(val);
2093			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2094				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2095				1usize,
2096				1u8,
2097				val as u64,
2098			)
2099		}
2100	}
2101	#[inline]
2102	pub fn enable_trellis_P(&self) -> u32 {
2103		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2104	}
2105	#[inline]
2106	pub fn set_enable_trellis_P(&mut self, val: u32) {
2107		unsafe {
2108			let val: u32 = ::std::mem::transmute(val);
2109			self._bitfield_1.set(2usize, 1u8, val as u64)
2110		}
2111	}
2112	#[inline]
2113	pub unsafe fn enable_trellis_P_raw(this: *const Self) -> u32 {
2114		unsafe {
2115			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2116				::std::ptr::addr_of!((*this)._bitfield_1),
2117				2usize,
2118				1u8,
2119			) as u32)
2120		}
2121	}
2122	#[inline]
2123	pub unsafe fn set_enable_trellis_P_raw(this: *mut Self, val: u32) {
2124		unsafe {
2125			let val: u32 = ::std::mem::transmute(val);
2126			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2127				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2128				2usize,
2129				1u8,
2130				val as u64,
2131			)
2132		}
2133	}
2134	#[inline]
2135	pub fn enable_trellis_B(&self) -> u32 {
2136		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2137	}
2138	#[inline]
2139	pub fn set_enable_trellis_B(&mut self, val: u32) {
2140		unsafe {
2141			let val: u32 = ::std::mem::transmute(val);
2142			self._bitfield_1.set(3usize, 1u8, val as u64)
2143		}
2144	}
2145	#[inline]
2146	pub unsafe fn enable_trellis_B_raw(this: *const Self) -> u32 {
2147		unsafe {
2148			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2149				::std::ptr::addr_of!((*this)._bitfield_1),
2150				3usize,
2151				1u8,
2152			) as u32)
2153		}
2154	}
2155	#[inline]
2156	pub unsafe fn set_enable_trellis_B_raw(this: *mut Self, val: u32) {
2157		unsafe {
2158			let val: u32 = ::std::mem::transmute(val);
2159			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2160				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2161				3usize,
2162				1u8,
2163				val as u64,
2164			)
2165		}
2166	}
2167	#[inline]
2168	pub fn reserved(&self) -> u32 {
2169		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) }
2170	}
2171	#[inline]
2172	pub fn set_reserved(&mut self, val: u32) {
2173		unsafe {
2174			let val: u32 = ::std::mem::transmute(val);
2175			self._bitfield_1.set(4usize, 28u8, val as u64)
2176		}
2177	}
2178	#[inline]
2179	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
2180		unsafe {
2181			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2182				::std::ptr::addr_of!((*this)._bitfield_1),
2183				4usize,
2184				28u8,
2185			) as u32)
2186		}
2187	}
2188	#[inline]
2189	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
2190		unsafe {
2191			let val: u32 = ::std::mem::transmute(val);
2192			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2193				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2194				4usize,
2195				28u8,
2196				val as u64,
2197			)
2198		}
2199	}
2200	#[inline]
2201	pub fn new_bitfield_1(
2202		disable_trellis: u32,
2203		enable_trellis_I: u32,
2204		enable_trellis_P: u32,
2205		enable_trellis_B: u32,
2206		reserved: u32,
2207	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
2208		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
2209		__bindgen_bitfield_unit.set(0usize, 1u8, {
2210			let disable_trellis: u32 = unsafe { ::std::mem::transmute(disable_trellis) };
2211			disable_trellis as u64
2212		});
2213		__bindgen_bitfield_unit.set(1usize, 1u8, {
2214			let enable_trellis_I: u32 = unsafe { ::std::mem::transmute(enable_trellis_I) };
2215			enable_trellis_I as u64
2216		});
2217		__bindgen_bitfield_unit.set(2usize, 1u8, {
2218			let enable_trellis_P: u32 = unsafe { ::std::mem::transmute(enable_trellis_P) };
2219			enable_trellis_P as u64
2220		});
2221		__bindgen_bitfield_unit.set(3usize, 1u8, {
2222			let enable_trellis_B: u32 = unsafe { ::std::mem::transmute(enable_trellis_B) };
2223			enable_trellis_B as u64
2224		});
2225		__bindgen_bitfield_unit.set(4usize, 28u8, {
2226			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
2227			reserved as u64
2228		});
2229		__bindgen_bitfield_unit
2230	}
2231}
2232impl Default for _VAEncMiscParameterQuantization__bindgen_ty_1 {
2233	fn default() -> Self {
2234		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2235		unsafe {
2236			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2237			s.assume_init()
2238		}
2239	}
2240}
2241impl Default for _VAEncMiscParameterQuantization {
2242	fn default() -> Self {
2243		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2244		unsafe {
2245			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2246			s.assume_init()
2247		}
2248	}
2249}
2250#[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."]
2251pub type VAEncMiscParameterQuantization = _VAEncMiscParameterQuantization;
2252#[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)."]
2253#[repr(C)]
2254#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2255pub struct _VAEncMiscParameterSkipFrame {
2256	#[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)."]
2257	pub skip_frame_flag: u8,
2258	#[doc = " \\brief The number of frames skipped prior to the current frame.  Valid when skip_frame_flag = 1."]
2259	pub num_skip_frames: u8,
2260	#[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."]
2261	pub size_skip_frames: u32,
2262	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2263	pub va_reserved: [u32; 4usize],
2264}
2265#[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)."]
2266pub type VAEncMiscParameterSkipFrame = _VAEncMiscParameterSkipFrame;
2267#[doc = " \\brief Encoding region-of-interest (ROI).\n\n The encoding ROI can be set through VAEncMiscParameterBufferROI, if the implementation\n supports ROI input. The ROI set through this structure is applicable only to the\n current frame or field, so must be sent every frame or field to be applied.  The number of\n supported ROIs can be queried through the VAConfigAttribEncROI.  The encoder will use the\n ROI information to adjust the QP values of the MB's that fall within the ROIs."]
2268#[repr(C)]
2269#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2270pub struct _VAEncROI {
2271	#[doc = " \\brief Defines the ROI boundary in pixels, the driver will map it to appropriate\n  codec coding units.  It is relative to frame coordinates for the frame case and\n  to field coordinates for the field case."]
2272	pub roi_rectangle: VARectangle,
2273	#[doc = " \\brief ROI value\n\n \\ref roi_value specifies ROI delta QP or ROI priority.\n --  ROI delta QP is the value that will be added on top of the frame level QP.\n --  ROI priority specifies the priority of a region, it can be positive (more important)\n or negative (less important) values and is compared with non-ROI region (taken as value 0),\n E.g. ROI region with \\ref roi_value -3 is less important than the non-ROI region (\\ref roi_value\n implied to be 0) which is less important than ROI region with roi_value +2. For overlapping\n regions, the roi_value that is first in the ROI array will have priority.\n\n \\ref roi_value always specifes ROI delta QP when VAConfigAttribRateControl == VA_RC_CQP, no matter\n the value of \\c roi_value_is_qp_delta in #VAEncMiscParameterBufferROI.\n\n \\ref roi_value depends on \\c roi_value_is_qp_delta in #VAEncMiscParameterBufferROI when\n VAConfigAttribRateControl != VA_RC_CQP. \\ref roi_value specifies ROI_delta QP if \\c roi_value_is_qp_delta\n in VAEncMiscParameterBufferROI is 1, otherwise \\ref roi_value specifies ROI priority."]
2274	pub roi_value: i8,
2275}
2276#[doc = " \\brief Encoding region-of-interest (ROI).\n\n The encoding ROI can be set through VAEncMiscParameterBufferROI, if the implementation\n supports ROI input. The ROI set through this structure is applicable only to the\n current frame or field, so must be sent every frame or field to be applied.  The number of\n supported ROIs can be queried through the VAConfigAttribEncROI.  The encoder will use the\n ROI information to adjust the QP values of the MB's that fall within the ROIs."]
2277pub type VAEncROI = _VAEncROI;
2278#[repr(C)]
2279#[derive(Copy, Clone)]
2280pub struct _VAEncMiscParameterBufferROI {
2281	#[doc = " \\brief Number of ROIs being sent."]
2282	pub num_roi: u32,
2283	#[doc = " \\brief Valid when VAConfigAttribRateControl != VA_RC_CQP, then the encoder's\n  rate control will determine actual delta QPs.  Specifies the max/min allowed delta\n  QPs."]
2284	pub max_delta_qp: i8,
2285	pub min_delta_qp: i8,
2286	#[doc = " \\brief Pointer to a VAEncROI array with num_roi elements.  It is relative to frame\n  coordinates for the frame case and to field coordinates for the field case."]
2287	pub roi: *mut VAEncROI,
2288	pub roi_flags: _VAEncMiscParameterBufferROI__bindgen_ty_1,
2289	#[doc = " \\brief Reserved bytes for future use, must be zero"]
2290	pub va_reserved: [u32; 4usize],
2291}
2292#[repr(C)]
2293#[derive(Copy, Clone)]
2294pub union _VAEncMiscParameterBufferROI__bindgen_ty_1 {
2295	pub bits: _VAEncMiscParameterBufferROI__bindgen_ty_1__bindgen_ty_1,
2296	pub value: u32,
2297}
2298#[repr(C)]
2299#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2300pub struct _VAEncMiscParameterBufferROI__bindgen_ty_1__bindgen_ty_1 {
2301	pub _bitfield_align_1: [u32; 0],
2302	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
2303}
2304impl _VAEncMiscParameterBufferROI__bindgen_ty_1__bindgen_ty_1 {
2305	#[inline]
2306	pub fn roi_value_is_qp_delta(&self) -> u32 {
2307		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2308	}
2309	#[inline]
2310	pub fn set_roi_value_is_qp_delta(&mut self, val: u32) {
2311		unsafe {
2312			let val: u32 = ::std::mem::transmute(val);
2313			self._bitfield_1.set(0usize, 1u8, val as u64)
2314		}
2315	}
2316	#[inline]
2317	pub unsafe fn roi_value_is_qp_delta_raw(this: *const Self) -> u32 {
2318		unsafe {
2319			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2320				::std::ptr::addr_of!((*this)._bitfield_1),
2321				0usize,
2322				1u8,
2323			) as u32)
2324		}
2325	}
2326	#[inline]
2327	pub unsafe fn set_roi_value_is_qp_delta_raw(this: *mut Self, val: u32) {
2328		unsafe {
2329			let val: u32 = ::std::mem::transmute(val);
2330			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2331				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2332				0usize,
2333				1u8,
2334				val as u64,
2335			)
2336		}
2337	}
2338	#[inline]
2339	pub fn reserved(&self) -> u32 {
2340		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) }
2341	}
2342	#[inline]
2343	pub fn set_reserved(&mut self, val: u32) {
2344		unsafe {
2345			let val: u32 = ::std::mem::transmute(val);
2346			self._bitfield_1.set(1usize, 31u8, val as u64)
2347		}
2348	}
2349	#[inline]
2350	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
2351		unsafe {
2352			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
2353				::std::ptr::addr_of!((*this)._bitfield_1),
2354				1usize,
2355				31u8,
2356			) as u32)
2357		}
2358	}
2359	#[inline]
2360	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
2361		unsafe {
2362			let val: u32 = ::std::mem::transmute(val);
2363			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
2364				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2365				1usize,
2366				31u8,
2367				val as u64,
2368			)
2369		}
2370	}
2371	#[inline]
2372	pub fn new_bitfield_1(roi_value_is_qp_delta: u32, reserved: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
2373		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
2374		__bindgen_bitfield_unit.set(0usize, 1u8, {
2375			let roi_value_is_qp_delta: u32 = unsafe { ::std::mem::transmute(roi_value_is_qp_delta) };
2376			roi_value_is_qp_delta as u64
2377		});
2378		__bindgen_bitfield_unit.set(1usize, 31u8, {
2379			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
2380			reserved as u64
2381		});
2382		__bindgen_bitfield_unit
2383	}
2384}
2385impl Default for _VAEncMiscParameterBufferROI__bindgen_ty_1 {
2386	fn default() -> Self {
2387		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2388		unsafe {
2389			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2390			s.assume_init()
2391		}
2392	}
2393}
2394impl Default for _VAEncMiscParameterBufferROI {
2395	fn default() -> Self {
2396		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2397		unsafe {
2398			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2399			s.assume_init()
2400		}
2401	}
2402}
2403pub type VAEncMiscParameterBufferROI = _VAEncMiscParameterBufferROI;
2404#[repr(C)]
2405#[derive(Debug, Copy, Clone, PartialEq, Eq)]
2406pub struct _VAEncMiscParameterBufferDirtyRect {
2407	#[doc = " \\brief Number of Rectangle being sent."]
2408	pub num_roi_rectangle: u32,
2409	#[doc = " \\brief Pointer to a VARectangle array with num_roi_rectangle elements."]
2410	pub roi_rectangle: *mut VARectangle,
2411}
2412impl Default for _VAEncMiscParameterBufferDirtyRect {
2413	fn default() -> Self {
2414		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2415		unsafe {
2416			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2417			s.assume_init()
2418		}
2419	}
2420}
2421pub type VAEncMiscParameterBufferDirtyRect = _VAEncMiscParameterBufferDirtyRect;
2422#[doc = " \\brief Attribute value for VAConfigAttribEncParallelRateControl"]
2423#[repr(C)]
2424#[derive(Debug, Copy, Clone, PartialEq, Eq)]
2425pub struct _VAEncMiscParameterParallelRateControl {
2426	#[doc = " brief Number of layers"]
2427	pub num_layers: u32,
2428	#[doc = " brief Number of B frames per layer per GOP.\n\n it should be allocated by application, and the is num_layers.\n  num_b_in_gop[0] is the number of regular B which refers to only I or P frames."]
2429	pub num_b_in_gop: *mut u32,
2430}
2431impl Default for _VAEncMiscParameterParallelRateControl {
2432	fn default() -> Self {
2433		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
2434		unsafe {
2435			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
2436			s.assume_init()
2437		}
2438	}
2439}
2440#[doc = " \\brief Attribute value for VAConfigAttribEncParallelRateControl"]
2441pub type VAEncMiscParameterParallelRateControl = _VAEncMiscParameterParallelRateControl;
2442#[doc = " per frame encoder quality controls, once set they will persist for all future frames\ntill it is updated again."]
2443#[repr(C)]
2444#[derive(Copy, Clone)]
2445pub struct _VAEncMiscParameterEncQuality {
2446	pub __bindgen_anon_1: _VAEncMiscParameterEncQuality__bindgen_ty_1,
2447	#[doc = " Maps QP to skip thresholds when FTQ is enabled.  Valid range is 0-255."]
2448	pub FTQSkipThresholdLUT: [u8; 52usize],
2449	#[doc = " Maps QP to skip thresholds when FTQ is disabled.  Valid range is 0-65535."]
2450	pub NonFTQSkipThresholdLUT: [u16; 52usize],
2451	pub reserved: [u32; 16usize],
2452}
2453#[repr(C)]
2454#[derive(Copy, Clone)]
2455pub union _VAEncMiscParameterEncQuality__bindgen_ty_1 {
2456	pub __bindgen_anon_1: _VAEncMiscParameterEncQuality__bindgen_ty_1__bindgen_ty_1,
2457	pub encControls: u32,
2458}
2459#[repr(C)]
2460#[repr(align(4))]
2461#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
2462pub struct _VAEncMiscParameterEncQuality__bindgen_ty_1__bindgen_ty_1 {
2463	pub _bitfield_align_1: [u8; 0],
2464	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
2465	pub __bindgen_padding_0: u8,
2466}
2467impl _VAEncMiscParameterEncQuality__bindgen_ty_1__bindgen_ty_1 {
2468	#[inline]
2469	pub fn useRawPicForRef(&self) -> u32 {
2470		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2471	}
2472	#[inline]
2473	pub fn set_useRawPicForRef(&mut self, val: u32) {
2474		unsafe {
2475			let val: u32 = ::std::mem::transmute(val);
2476			self._bitfield_1.set(0usize, 1u8, val as u64)
2477		}
2478	}
2479	#[inline]
2480	pub unsafe fn useRawPicForRef_raw(this: *const Self) -> u32 {
2481		unsafe {
2482			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2483				::std::ptr::addr_of!((*this)._bitfield_1),
2484				0usize,
2485				1u8,
2486			) as u32)
2487		}
2488	}
2489	#[inline]
2490	pub unsafe fn set_useRawPicForRef_raw(this: *mut Self, val: u32) {
2491		unsafe {
2492			let val: u32 = ::std::mem::transmute(val);
2493			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2494				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2495				0usize,
2496				1u8,
2497				val as u64,
2498			)
2499		}
2500	}
2501	#[inline]
2502	pub fn skipCheckDisable(&self) -> u32 {
2503		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2504	}
2505	#[inline]
2506	pub fn set_skipCheckDisable(&mut self, val: u32) {
2507		unsafe {
2508			let val: u32 = ::std::mem::transmute(val);
2509			self._bitfield_1.set(1usize, 1u8, val as u64)
2510		}
2511	}
2512	#[inline]
2513	pub unsafe fn skipCheckDisable_raw(this: *const Self) -> u32 {
2514		unsafe {
2515			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2516				::std::ptr::addr_of!((*this)._bitfield_1),
2517				1usize,
2518				1u8,
2519			) as u32)
2520		}
2521	}
2522	#[inline]
2523	pub unsafe fn set_skipCheckDisable_raw(this: *mut Self, val: u32) {
2524		unsafe {
2525			let val: u32 = ::std::mem::transmute(val);
2526			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2527				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2528				1usize,
2529				1u8,
2530				val as u64,
2531			)
2532		}
2533	}
2534	#[inline]
2535	pub fn FTQOverride(&self) -> u32 {
2536		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2537	}
2538	#[inline]
2539	pub fn set_FTQOverride(&mut self, val: u32) {
2540		unsafe {
2541			let val: u32 = ::std::mem::transmute(val);
2542			self._bitfield_1.set(2usize, 1u8, val as u64)
2543		}
2544	}
2545	#[inline]
2546	pub unsafe fn FTQOverride_raw(this: *const Self) -> u32 {
2547		unsafe {
2548			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2549				::std::ptr::addr_of!((*this)._bitfield_1),
2550				2usize,
2551				1u8,
2552			) as u32)
2553		}
2554	}
2555	#[inline]
2556	pub unsafe fn set_FTQOverride_raw(this: *mut Self, val: u32) {
2557		unsafe {
2558			let val: u32 = ::std::mem::transmute(val);
2559			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2560				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2561				2usize,
2562				1u8,
2563				val as u64,
2564			)
2565		}
2566	}
2567	#[inline]
2568	pub fn FTQEnable(&self) -> u32 {
2569		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2570	}
2571	#[inline]
2572	pub fn set_FTQEnable(&mut self, val: u32) {
2573		unsafe {
2574			let val: u32 = ::std::mem::transmute(val);
2575			self._bitfield_1.set(3usize, 1u8, val as u64)
2576		}
2577	}
2578	#[inline]
2579	pub unsafe fn FTQEnable_raw(this: *const Self) -> u32 {
2580		unsafe {
2581			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2582				::std::ptr::addr_of!((*this)._bitfield_1),
2583				3usize,
2584				1u8,
2585			) as u32)
2586		}
2587	}
2588	#[inline]
2589	pub unsafe fn set_FTQEnable_raw(this: *mut Self, val: u32) {
2590		unsafe {
2591			let val: u32 = ::std::mem::transmute(val);
2592			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2593				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2594				3usize,
2595				1u8,
2596				val as u64,
2597			)
2598		}
2599	}
2600	#[inline]
2601	pub fn FTQSkipThresholdLUTInput(&self) -> u32 {
2602		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2603	}
2604	#[inline]
2605	pub fn set_FTQSkipThresholdLUTInput(&mut self, val: u32) {
2606		unsafe {
2607			let val: u32 = ::std::mem::transmute(val);
2608			self._bitfield_1.set(4usize, 1u8, val as u64)
2609		}
2610	}
2611	#[inline]
2612	pub unsafe fn FTQSkipThresholdLUTInput_raw(this: *const Self) -> u32 {
2613		unsafe {
2614			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2615				::std::ptr::addr_of!((*this)._bitfield_1),
2616				4usize,
2617				1u8,
2618			) as u32)
2619		}
2620	}
2621	#[inline]
2622	pub unsafe fn set_FTQSkipThresholdLUTInput_raw(this: *mut Self, val: u32) {
2623		unsafe {
2624			let val: u32 = ::std::mem::transmute(val);
2625			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2626				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2627				4usize,
2628				1u8,
2629				val as u64,
2630			)
2631		}
2632	}
2633	#[inline]
2634	pub fn NonFTQSkipThresholdLUTInput(&self) -> u32 {
2635		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2636	}
2637	#[inline]
2638	pub fn set_NonFTQSkipThresholdLUTInput(&mut self, val: u32) {
2639		unsafe {
2640			let val: u32 = ::std::mem::transmute(val);
2641			self._bitfield_1.set(5usize, 1u8, val as u64)
2642		}
2643	}
2644	#[inline]
2645	pub unsafe fn NonFTQSkipThresholdLUTInput_raw(this: *const Self) -> u32 {
2646		unsafe {
2647			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2648				::std::ptr::addr_of!((*this)._bitfield_1),
2649				5usize,
2650				1u8,
2651			) as u32)
2652		}
2653	}
2654	#[inline]
2655	pub unsafe fn set_NonFTQSkipThresholdLUTInput_raw(this: *mut Self, val: u32) {
2656		unsafe {
2657			let val: u32 = ::std::mem::transmute(val);
2658			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2659				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2660				5usize,
2661				1u8,
2662				val as u64,
2663			)
2664		}
2665	}
2666	#[inline]
2667	pub fn ReservedBit(&self) -> u32 {
2668		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2669	}
2670	#[inline]
2671	pub fn set_ReservedBit(&mut self, val: u32) {
2672		unsafe {
2673			let val: u32 = ::std::mem::transmute(val);
2674			self._bitfield_1.set(6usize, 1u8, val as u64)
2675		}
2676	}
2677	#[inline]
2678	pub unsafe fn ReservedBit_raw(this: *const Self) -> u32 {
2679		unsafe {
2680			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2681				::std::ptr::addr_of!((*this)._bitfield_1),
2682				6usize,
2683				1u8,
2684			) as u32)
2685		}
2686	}
2687	#[inline]
2688	pub unsafe fn set_ReservedBit_raw(this: *mut Self, val: u32) {
2689		unsafe {
2690			let val: u32 = ::std::mem::transmute(val);
2691			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2692				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2693				6usize,
2694				1u8,
2695				val as u64,
2696			)
2697		}
2698	}
2699	#[inline]
2700	pub fn directBiasAdjustmentEnable(&self) -> u32 {
2701		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
2702	}
2703	#[inline]
2704	pub fn set_directBiasAdjustmentEnable(&mut self, val: u32) {
2705		unsafe {
2706			let val: u32 = ::std::mem::transmute(val);
2707			self._bitfield_1.set(7usize, 1u8, val as u64)
2708		}
2709	}
2710	#[inline]
2711	pub unsafe fn directBiasAdjustmentEnable_raw(this: *const Self) -> u32 {
2712		unsafe {
2713			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2714				::std::ptr::addr_of!((*this)._bitfield_1),
2715				7usize,
2716				1u8,
2717			) as u32)
2718		}
2719	}
2720	#[inline]
2721	pub unsafe fn set_directBiasAdjustmentEnable_raw(this: *mut Self, val: u32) {
2722		unsafe {
2723			let val: u32 = ::std::mem::transmute(val);
2724			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2725				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2726				7usize,
2727				1u8,
2728				val as u64,
2729			)
2730		}
2731	}
2732	#[inline]
2733	pub fn globalMotionBiasAdjustmentEnable(&self) -> u32 {
2734		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
2735	}
2736	#[inline]
2737	pub fn set_globalMotionBiasAdjustmentEnable(&mut self, val: u32) {
2738		unsafe {
2739			let val: u32 = ::std::mem::transmute(val);
2740			self._bitfield_1.set(8usize, 1u8, val as u64)
2741		}
2742	}
2743	#[inline]
2744	pub unsafe fn globalMotionBiasAdjustmentEnable_raw(this: *const Self) -> u32 {
2745		unsafe {
2746			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2747				::std::ptr::addr_of!((*this)._bitfield_1),
2748				8usize,
2749				1u8,
2750			) as u32)
2751		}
2752	}
2753	#[inline]
2754	pub unsafe fn set_globalMotionBiasAdjustmentEnable_raw(this: *mut Self, val: u32) {
2755		unsafe {
2756			let val: u32 = ::std::mem::transmute(val);
2757			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2758				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2759				8usize,
2760				1u8,
2761				val as u64,
2762			)
2763		}
2764	}
2765	#[inline]
2766	pub fn HMEMVCostScalingFactor(&self) -> u32 {
2767		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u32) }
2768	}
2769	#[inline]
2770	pub fn set_HMEMVCostScalingFactor(&mut self, val: u32) {
2771		unsafe {
2772			let val: u32 = ::std::mem::transmute(val);
2773			self._bitfield_1.set(9usize, 2u8, val as u64)
2774		}
2775	}
2776	#[inline]
2777	pub unsafe fn HMEMVCostScalingFactor_raw(this: *const Self) -> u32 {
2778		unsafe {
2779			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2780				::std::ptr::addr_of!((*this)._bitfield_1),
2781				9usize,
2782				2u8,
2783			) as u32)
2784		}
2785	}
2786	#[inline]
2787	pub unsafe fn set_HMEMVCostScalingFactor_raw(this: *mut Self, val: u32) {
2788		unsafe {
2789			let val: u32 = ::std::mem::transmute(val);
2790			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2791				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2792				9usize,
2793				2u8,
2794				val as u64,
2795			)
2796		}
2797	}
2798	#[inline]
2799	pub fn HMEDisable(&self) -> u32 {
2800		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
2801	}
2802	#[inline]
2803	pub fn set_HMEDisable(&mut self, val: u32) {
2804		unsafe {
2805			let val: u32 = ::std::mem::transmute(val);
2806			self._bitfield_1.set(11usize, 1u8, val as u64)
2807		}
2808	}
2809	#[inline]
2810	pub unsafe fn HMEDisable_raw(this: *const Self) -> u32 {
2811		unsafe {
2812			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2813				::std::ptr::addr_of!((*this)._bitfield_1),
2814				11usize,
2815				1u8,
2816			) as u32)
2817		}
2818	}
2819	#[inline]
2820	pub unsafe fn set_HMEDisable_raw(this: *mut Self, val: u32) {
2821		unsafe {
2822			let val: u32 = ::std::mem::transmute(val);
2823			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2824				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2825				11usize,
2826				1u8,
2827				val as u64,
2828			)
2829		}
2830	}
2831	#[inline]
2832	pub fn SuperHMEDisable(&self) -> u32 {
2833		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
2834	}
2835	#[inline]
2836	pub fn set_SuperHMEDisable(&mut self, val: u32) {
2837		unsafe {
2838			let val: u32 = ::std::mem::transmute(val);
2839			self._bitfield_1.set(12usize, 1u8, val as u64)
2840		}
2841	}
2842	#[inline]
2843	pub unsafe fn SuperHMEDisable_raw(this: *const Self) -> u32 {
2844		unsafe {
2845			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2846				::std::ptr::addr_of!((*this)._bitfield_1),
2847				12usize,
2848				1u8,
2849			) as u32)
2850		}
2851	}
2852	#[inline]
2853	pub unsafe fn set_SuperHMEDisable_raw(this: *mut Self, val: u32) {
2854		unsafe {
2855			let val: u32 = ::std::mem::transmute(val);
2856			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2857				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2858				12usize,
2859				1u8,
2860				val as u64,
2861			)
2862		}
2863	}
2864	#[inline]
2865	pub fn UltraHMEDisable(&self) -> u32 {
2866		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
2867	}
2868	#[inline]
2869	pub fn set_UltraHMEDisable(&mut self, val: u32) {
2870		unsafe {
2871			let val: u32 = ::std::mem::transmute(val);
2872			self._bitfield_1.set(13usize, 1u8, val as u64)
2873		}
2874	}
2875	#[inline]
2876	pub unsafe fn UltraHMEDisable_raw(this: *const Self) -> u32 {
2877		unsafe {
2878			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2879				::std::ptr::addr_of!((*this)._bitfield_1),
2880				13usize,
2881				1u8,
2882			) as u32)
2883		}
2884	}
2885	#[inline]
2886	pub unsafe fn set_UltraHMEDisable_raw(this: *mut Self, val: u32) {
2887		unsafe {
2888			let val: u32 = ::std::mem::transmute(val);
2889			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2890				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2891				13usize,
2892				1u8,
2893				val as u64,
2894			)
2895		}
2896	}
2897	#[inline]
2898	pub fn PanicModeDisable(&self) -> u32 {
2899		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
2900	}
2901	#[inline]
2902	pub fn set_PanicModeDisable(&mut self, val: u32) {
2903		unsafe {
2904			let val: u32 = ::std::mem::transmute(val);
2905			self._bitfield_1.set(14usize, 1u8, val as u64)
2906		}
2907	}
2908	#[inline]
2909	pub unsafe fn PanicModeDisable_raw(this: *const Self) -> u32 {
2910		unsafe {
2911			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2912				::std::ptr::addr_of!((*this)._bitfield_1),
2913				14usize,
2914				1u8,
2915			) as u32)
2916		}
2917	}
2918	#[inline]
2919	pub unsafe fn set_PanicModeDisable_raw(this: *mut Self, val: u32) {
2920		unsafe {
2921			let val: u32 = ::std::mem::transmute(val);
2922			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2923				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2924				14usize,
2925				1u8,
2926				val as u64,
2927			)
2928		}
2929	}
2930	#[inline]
2931	pub fn ForceRepartitionCheck(&self) -> u32 {
2932		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) }
2933	}
2934	#[inline]
2935	pub fn set_ForceRepartitionCheck(&mut self, val: u32) {
2936		unsafe {
2937			let val: u32 = ::std::mem::transmute(val);
2938			self._bitfield_1.set(15usize, 2u8, val as u64)
2939		}
2940	}
2941	#[inline]
2942	pub unsafe fn ForceRepartitionCheck_raw(this: *const Self) -> u32 {
2943		unsafe {
2944			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
2945				::std::ptr::addr_of!((*this)._bitfield_1),
2946				15usize,
2947				2u8,
2948			) as u32)
2949		}
2950	}
2951	#[inline]
2952	pub unsafe fn set_ForceRepartitionCheck_raw(this: *mut Self, val: u32) {
2953		unsafe {
2954			let val: u32 = ::std::mem::transmute(val);
2955			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
2956				::std::ptr::addr_of_mut!((*this)._bitfield_1),
2957				15usize,
2958				2u8,
2959				val as u64,
2960			)
2961		}
2962	}
2963	#[inline]
2964	pub fn new_bitfield_1(
2965		useRawPicForRef: u32,
2966		skipCheckDisable: u32,
2967		FTQOverride: u32,
2968		FTQEnable: u32,
2969		FTQSkipThresholdLUTInput: u32,
2970		NonFTQSkipThresholdLUTInput: u32,
2971		ReservedBit: u32,
2972		directBiasAdjustmentEnable: u32,
2973		globalMotionBiasAdjustmentEnable: u32,
2974		HMEMVCostScalingFactor: u32,
2975		HMEDisable: u32,
2976		SuperHMEDisable: u32,
2977		UltraHMEDisable: u32,
2978		PanicModeDisable: u32,
2979		ForceRepartitionCheck: u32,
2980	) -> __BindgenBitfieldUnit<[u8; 3usize]> {
2981		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
2982		__bindgen_bitfield_unit.set(0usize, 1u8, {
2983			let useRawPicForRef: u32 = unsafe { ::std::mem::transmute(useRawPicForRef) };
2984			useRawPicForRef as u64
2985		});
2986		__bindgen_bitfield_unit.set(1usize, 1u8, {
2987			let skipCheckDisable: u32 = unsafe { ::std::mem::transmute(skipCheckDisable) };
2988			skipCheckDisable as u64
2989		});
2990		__bindgen_bitfield_unit.set(2usize, 1u8, {
2991			let FTQOverride: u32 = unsafe { ::std::mem::transmute(FTQOverride) };
2992			FTQOverride as u64
2993		});
2994		__bindgen_bitfield_unit.set(3usize, 1u8, {
2995			let FTQEnable: u32 = unsafe { ::std::mem::transmute(FTQEnable) };
2996			FTQEnable as u64
2997		});
2998		__bindgen_bitfield_unit.set(4usize, 1u8, {
2999			let FTQSkipThresholdLUTInput: u32 = unsafe { ::std::mem::transmute(FTQSkipThresholdLUTInput) };
3000			FTQSkipThresholdLUTInput as u64
3001		});
3002		__bindgen_bitfield_unit.set(5usize, 1u8, {
3003			let NonFTQSkipThresholdLUTInput: u32 = unsafe { ::std::mem::transmute(NonFTQSkipThresholdLUTInput) };
3004			NonFTQSkipThresholdLUTInput as u64
3005		});
3006		__bindgen_bitfield_unit.set(6usize, 1u8, {
3007			let ReservedBit: u32 = unsafe { ::std::mem::transmute(ReservedBit) };
3008			ReservedBit as u64
3009		});
3010		__bindgen_bitfield_unit.set(7usize, 1u8, {
3011			let directBiasAdjustmentEnable: u32 = unsafe { ::std::mem::transmute(directBiasAdjustmentEnable) };
3012			directBiasAdjustmentEnable as u64
3013		});
3014		__bindgen_bitfield_unit.set(8usize, 1u8, {
3015			let globalMotionBiasAdjustmentEnable: u32 =
3016				unsafe { ::std::mem::transmute(globalMotionBiasAdjustmentEnable) };
3017			globalMotionBiasAdjustmentEnable as u64
3018		});
3019		__bindgen_bitfield_unit.set(9usize, 2u8, {
3020			let HMEMVCostScalingFactor: u32 = unsafe { ::std::mem::transmute(HMEMVCostScalingFactor) };
3021			HMEMVCostScalingFactor as u64
3022		});
3023		__bindgen_bitfield_unit.set(11usize, 1u8, {
3024			let HMEDisable: u32 = unsafe { ::std::mem::transmute(HMEDisable) };
3025			HMEDisable as u64
3026		});
3027		__bindgen_bitfield_unit.set(12usize, 1u8, {
3028			let SuperHMEDisable: u32 = unsafe { ::std::mem::transmute(SuperHMEDisable) };
3029			SuperHMEDisable as u64
3030		});
3031		__bindgen_bitfield_unit.set(13usize, 1u8, {
3032			let UltraHMEDisable: u32 = unsafe { ::std::mem::transmute(UltraHMEDisable) };
3033			UltraHMEDisable as u64
3034		});
3035		__bindgen_bitfield_unit.set(14usize, 1u8, {
3036			let PanicModeDisable: u32 = unsafe { ::std::mem::transmute(PanicModeDisable) };
3037			PanicModeDisable as u64
3038		});
3039		__bindgen_bitfield_unit.set(15usize, 2u8, {
3040			let ForceRepartitionCheck: u32 = unsafe { ::std::mem::transmute(ForceRepartitionCheck) };
3041			ForceRepartitionCheck as u64
3042		});
3043		__bindgen_bitfield_unit
3044	}
3045}
3046impl Default for _VAEncMiscParameterEncQuality__bindgen_ty_1 {
3047	fn default() -> Self {
3048		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3049		unsafe {
3050			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3051			s.assume_init()
3052		}
3053	}
3054}
3055impl Default for _VAEncMiscParameterEncQuality {
3056	fn default() -> Self {
3057		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3058		unsafe {
3059			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3060			s.assume_init()
3061		}
3062	}
3063}
3064#[doc = " per frame encoder quality controls, once set they will persist for all future frames\ntill it is updated again."]
3065pub type VAEncMiscParameterEncQuality = _VAEncMiscParameterEncQuality;
3066#[doc = "  \\brief Custom Encoder Rounding Offset Control.\n  Application may use this structure to set customized rounding\n  offset parameters for quantization.\n  Valid when \\c VAConfigAttribCustomRoundingControl equals 1."]
3067#[repr(C)]
3068#[derive(Copy, Clone)]
3069pub struct _VAEncMiscParameterCustomRoundingControl {
3070	pub rounding_offset_setting: _VAEncMiscParameterCustomRoundingControl__bindgen_ty_1,
3071}
3072#[repr(C)]
3073#[derive(Copy, Clone)]
3074pub union _VAEncMiscParameterCustomRoundingControl__bindgen_ty_1 {
3075	pub bits: _VAEncMiscParameterCustomRoundingControl__bindgen_ty_1__bindgen_ty_1,
3076	pub value: u32,
3077}
3078#[repr(C)]
3079#[repr(align(4))]
3080#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
3081pub struct _VAEncMiscParameterCustomRoundingControl__bindgen_ty_1__bindgen_ty_1 {
3082	pub _bitfield_align_1: [u16; 0],
3083	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
3084}
3085impl _VAEncMiscParameterCustomRoundingControl__bindgen_ty_1__bindgen_ty_1 {
3086	#[inline]
3087	pub fn enable_custom_rouding_intra(&self) -> u32 {
3088		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3089	}
3090	#[inline]
3091	pub fn set_enable_custom_rouding_intra(&mut self, val: u32) {
3092		unsafe {
3093			let val: u32 = ::std::mem::transmute(val);
3094			self._bitfield_1.set(0usize, 1u8, val as u64)
3095		}
3096	}
3097	#[inline]
3098	pub unsafe fn enable_custom_rouding_intra_raw(this: *const Self) -> u32 {
3099		unsafe {
3100			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3101				::std::ptr::addr_of!((*this)._bitfield_1),
3102				0usize,
3103				1u8,
3104			) as u32)
3105		}
3106	}
3107	#[inline]
3108	pub unsafe fn set_enable_custom_rouding_intra_raw(this: *mut Self, val: u32) {
3109		unsafe {
3110			let val: u32 = ::std::mem::transmute(val);
3111			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3112				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3113				0usize,
3114				1u8,
3115				val as u64,
3116			)
3117		}
3118	}
3119	#[inline]
3120	pub fn rounding_offset_intra(&self) -> u32 {
3121		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 7u8) as u32) }
3122	}
3123	#[inline]
3124	pub fn set_rounding_offset_intra(&mut self, val: u32) {
3125		unsafe {
3126			let val: u32 = ::std::mem::transmute(val);
3127			self._bitfield_1.set(1usize, 7u8, val as u64)
3128		}
3129	}
3130	#[inline]
3131	pub unsafe fn rounding_offset_intra_raw(this: *const Self) -> u32 {
3132		unsafe {
3133			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3134				::std::ptr::addr_of!((*this)._bitfield_1),
3135				1usize,
3136				7u8,
3137			) as u32)
3138		}
3139	}
3140	#[inline]
3141	pub unsafe fn set_rounding_offset_intra_raw(this: *mut Self, val: u32) {
3142		unsafe {
3143			let val: u32 = ::std::mem::transmute(val);
3144			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3145				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3146				1usize,
3147				7u8,
3148				val as u64,
3149			)
3150		}
3151	}
3152	#[inline]
3153	pub fn enable_custom_rounding_inter(&self) -> u32 {
3154		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3155	}
3156	#[inline]
3157	pub fn set_enable_custom_rounding_inter(&mut self, val: u32) {
3158		unsafe {
3159			let val: u32 = ::std::mem::transmute(val);
3160			self._bitfield_1.set(8usize, 1u8, val as u64)
3161		}
3162	}
3163	#[inline]
3164	pub unsafe fn enable_custom_rounding_inter_raw(this: *const Self) -> u32 {
3165		unsafe {
3166			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3167				::std::ptr::addr_of!((*this)._bitfield_1),
3168				8usize,
3169				1u8,
3170			) as u32)
3171		}
3172	}
3173	#[inline]
3174	pub unsafe fn set_enable_custom_rounding_inter_raw(this: *mut Self, val: u32) {
3175		unsafe {
3176			let val: u32 = ::std::mem::transmute(val);
3177			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3178				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3179				8usize,
3180				1u8,
3181				val as u64,
3182			)
3183		}
3184	}
3185	#[inline]
3186	pub fn rounding_offset_inter(&self) -> u32 {
3187		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 7u8) as u32) }
3188	}
3189	#[inline]
3190	pub fn set_rounding_offset_inter(&mut self, val: u32) {
3191		unsafe {
3192			let val: u32 = ::std::mem::transmute(val);
3193			self._bitfield_1.set(9usize, 7u8, val as u64)
3194		}
3195	}
3196	#[inline]
3197	pub unsafe fn rounding_offset_inter_raw(this: *const Self) -> u32 {
3198		unsafe {
3199			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3200				::std::ptr::addr_of!((*this)._bitfield_1),
3201				9usize,
3202				7u8,
3203			) as u32)
3204		}
3205	}
3206	#[inline]
3207	pub unsafe fn set_rounding_offset_inter_raw(this: *mut Self, val: u32) {
3208		unsafe {
3209			let val: u32 = ::std::mem::transmute(val);
3210			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3211				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3212				9usize,
3213				7u8,
3214				val as u64,
3215			)
3216		}
3217	}
3218	#[inline]
3219	pub fn reserved(&self) -> u32 {
3220		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
3221	}
3222	#[inline]
3223	pub fn set_reserved(&mut self, val: u32) {
3224		unsafe {
3225			let val: u32 = ::std::mem::transmute(val);
3226			self._bitfield_1.set(16usize, 16u8, val as u64)
3227		}
3228	}
3229	#[inline]
3230	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
3231		unsafe {
3232			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
3233				::std::ptr::addr_of!((*this)._bitfield_1),
3234				16usize,
3235				16u8,
3236			) as u32)
3237		}
3238	}
3239	#[inline]
3240	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
3241		unsafe {
3242			let val: u32 = ::std::mem::transmute(val);
3243			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
3244				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3245				16usize,
3246				16u8,
3247				val as u64,
3248			)
3249		}
3250	}
3251	#[inline]
3252	pub fn new_bitfield_1(
3253		enable_custom_rouding_intra: u32,
3254		rounding_offset_intra: u32,
3255		enable_custom_rounding_inter: u32,
3256		rounding_offset_inter: u32,
3257		reserved: u32,
3258	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
3259		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
3260		__bindgen_bitfield_unit.set(0usize, 1u8, {
3261			let enable_custom_rouding_intra: u32 = unsafe { ::std::mem::transmute(enable_custom_rouding_intra) };
3262			enable_custom_rouding_intra as u64
3263		});
3264		__bindgen_bitfield_unit.set(1usize, 7u8, {
3265			let rounding_offset_intra: u32 = unsafe { ::std::mem::transmute(rounding_offset_intra) };
3266			rounding_offset_intra as u64
3267		});
3268		__bindgen_bitfield_unit.set(8usize, 1u8, {
3269			let enable_custom_rounding_inter: u32 = unsafe { ::std::mem::transmute(enable_custom_rounding_inter) };
3270			enable_custom_rounding_inter as u64
3271		});
3272		__bindgen_bitfield_unit.set(9usize, 7u8, {
3273			let rounding_offset_inter: u32 = unsafe { ::std::mem::transmute(rounding_offset_inter) };
3274			rounding_offset_inter as u64
3275		});
3276		__bindgen_bitfield_unit.set(16usize, 16u8, {
3277			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
3278			reserved as u64
3279		});
3280		__bindgen_bitfield_unit
3281	}
3282}
3283impl Default for _VAEncMiscParameterCustomRoundingControl__bindgen_ty_1 {
3284	fn default() -> Self {
3285		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3286		unsafe {
3287			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3288			s.assume_init()
3289		}
3290	}
3291}
3292impl Default for _VAEncMiscParameterCustomRoundingControl {
3293	fn default() -> Self {
3294		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3295		unsafe {
3296			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3297			s.assume_init()
3298		}
3299	}
3300}
3301#[doc = "  \\brief Custom Encoder Rounding Offset Control.\n  Application may use this structure to set customized rounding\n  offset parameters for quantization.\n  Valid when \\c VAConfigAttribCustomRoundingControl equals 1."]
3302pub type VAEncMiscParameterCustomRoundingControl = _VAEncMiscParameterCustomRoundingControl;
3303#[doc = " H.264/AVC data structures"]
3304#[repr(C)]
3305#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
3306pub struct _VAPictureH264 {
3307	pub picture_id: VASurfaceID,
3308	pub frame_idx: u32,
3309	pub flags: u32,
3310	pub TopFieldOrderCnt: i32,
3311	pub BottomFieldOrderCnt: i32,
3312	#[doc = " \\brief Reserved bytes for future use, must be zero"]
3313	pub va_reserved: [u32; 4usize],
3314}
3315#[doc = " H.264/AVC data structures"]
3316pub type VAPictureH264 = _VAPictureH264;
3317#[doc = " H.264 Picture Parameter Buffer"]
3318#[repr(C)]
3319#[derive(Copy, Clone)]
3320pub struct _VAPictureParameterBufferH264 {
3321	pub CurrPic: VAPictureH264,
3322	pub ReferenceFrames: [VAPictureH264; 16usize],
3323	pub picture_width_in_mbs_minus1: u16,
3324	pub picture_height_in_mbs_minus1: u16,
3325	pub bit_depth_luma_minus8: u8,
3326	pub bit_depth_chroma_minus8: u8,
3327	pub num_ref_frames: u8,
3328	pub seq_fields: _VAPictureParameterBufferH264__bindgen_ty_1,
3329	pub num_slice_groups_minus1: u8,
3330	pub slice_group_map_type: u8,
3331	pub slice_group_change_rate_minus1: u16,
3332	pub pic_init_qp_minus26: i8,
3333	pub pic_init_qs_minus26: i8,
3334	pub chroma_qp_index_offset: i8,
3335	pub second_chroma_qp_index_offset: i8,
3336	pub pic_fields: _VAPictureParameterBufferH264__bindgen_ty_2,
3337	pub frame_num: u16,
3338	#[doc = " \\brief Reserved bytes for future use, must be zero"]
3339	pub va_reserved: [u32; 8usize],
3340}
3341#[repr(C)]
3342#[derive(Copy, Clone)]
3343pub union _VAPictureParameterBufferH264__bindgen_ty_1 {
3344	pub bits: _VAPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
3345	pub value: u32,
3346}
3347#[repr(C)]
3348#[repr(align(4))]
3349#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
3350pub struct _VAPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
3351	pub _bitfield_align_1: [u8; 0],
3352	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
3353	pub __bindgen_padding_0: u8,
3354}
3355impl _VAPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
3356	#[inline]
3357	pub fn chroma_format_idc(&self) -> u32 {
3358		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
3359	}
3360	#[inline]
3361	pub fn set_chroma_format_idc(&mut self, val: u32) {
3362		unsafe {
3363			let val: u32 = ::std::mem::transmute(val);
3364			self._bitfield_1.set(0usize, 2u8, val as u64)
3365		}
3366	}
3367	#[inline]
3368	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
3369		unsafe {
3370			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3371				::std::ptr::addr_of!((*this)._bitfield_1),
3372				0usize,
3373				2u8,
3374			) as u32)
3375		}
3376	}
3377	#[inline]
3378	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
3379		unsafe {
3380			let val: u32 = ::std::mem::transmute(val);
3381			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3382				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3383				0usize,
3384				2u8,
3385				val as u64,
3386			)
3387		}
3388	}
3389	#[inline]
3390	pub fn residual_colour_transform_flag(&self) -> u32 {
3391		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3392	}
3393	#[inline]
3394	pub fn set_residual_colour_transform_flag(&mut self, val: u32) {
3395		unsafe {
3396			let val: u32 = ::std::mem::transmute(val);
3397			self._bitfield_1.set(2usize, 1u8, val as u64)
3398		}
3399	}
3400	#[inline]
3401	pub unsafe fn residual_colour_transform_flag_raw(this: *const Self) -> u32 {
3402		unsafe {
3403			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3404				::std::ptr::addr_of!((*this)._bitfield_1),
3405				2usize,
3406				1u8,
3407			) as u32)
3408		}
3409	}
3410	#[inline]
3411	pub unsafe fn set_residual_colour_transform_flag_raw(this: *mut Self, val: u32) {
3412		unsafe {
3413			let val: u32 = ::std::mem::transmute(val);
3414			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3415				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3416				2usize,
3417				1u8,
3418				val as u64,
3419			)
3420		}
3421	}
3422	#[inline]
3423	pub fn gaps_in_frame_num_value_allowed_flag(&self) -> u32 {
3424		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3425	}
3426	#[inline]
3427	pub fn set_gaps_in_frame_num_value_allowed_flag(&mut self, val: u32) {
3428		unsafe {
3429			let val: u32 = ::std::mem::transmute(val);
3430			self._bitfield_1.set(3usize, 1u8, val as u64)
3431		}
3432	}
3433	#[inline]
3434	pub unsafe fn gaps_in_frame_num_value_allowed_flag_raw(this: *const Self) -> u32 {
3435		unsafe {
3436			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3437				::std::ptr::addr_of!((*this)._bitfield_1),
3438				3usize,
3439				1u8,
3440			) as u32)
3441		}
3442	}
3443	#[inline]
3444	pub unsafe fn set_gaps_in_frame_num_value_allowed_flag_raw(this: *mut Self, val: u32) {
3445		unsafe {
3446			let val: u32 = ::std::mem::transmute(val);
3447			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3448				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3449				3usize,
3450				1u8,
3451				val as u64,
3452			)
3453		}
3454	}
3455	#[inline]
3456	pub fn frame_mbs_only_flag(&self) -> u32 {
3457		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3458	}
3459	#[inline]
3460	pub fn set_frame_mbs_only_flag(&mut self, val: u32) {
3461		unsafe {
3462			let val: u32 = ::std::mem::transmute(val);
3463			self._bitfield_1.set(4usize, 1u8, val as u64)
3464		}
3465	}
3466	#[inline]
3467	pub unsafe fn frame_mbs_only_flag_raw(this: *const Self) -> u32 {
3468		unsafe {
3469			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3470				::std::ptr::addr_of!((*this)._bitfield_1),
3471				4usize,
3472				1u8,
3473			) as u32)
3474		}
3475	}
3476	#[inline]
3477	pub unsafe fn set_frame_mbs_only_flag_raw(this: *mut Self, val: u32) {
3478		unsafe {
3479			let val: u32 = ::std::mem::transmute(val);
3480			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3481				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3482				4usize,
3483				1u8,
3484				val as u64,
3485			)
3486		}
3487	}
3488	#[inline]
3489	pub fn mb_adaptive_frame_field_flag(&self) -> u32 {
3490		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3491	}
3492	#[inline]
3493	pub fn set_mb_adaptive_frame_field_flag(&mut self, val: u32) {
3494		unsafe {
3495			let val: u32 = ::std::mem::transmute(val);
3496			self._bitfield_1.set(5usize, 1u8, val as u64)
3497		}
3498	}
3499	#[inline]
3500	pub unsafe fn mb_adaptive_frame_field_flag_raw(this: *const Self) -> u32 {
3501		unsafe {
3502			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3503				::std::ptr::addr_of!((*this)._bitfield_1),
3504				5usize,
3505				1u8,
3506			) as u32)
3507		}
3508	}
3509	#[inline]
3510	pub unsafe fn set_mb_adaptive_frame_field_flag_raw(this: *mut Self, val: u32) {
3511		unsafe {
3512			let val: u32 = ::std::mem::transmute(val);
3513			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3514				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3515				5usize,
3516				1u8,
3517				val as u64,
3518			)
3519		}
3520	}
3521	#[inline]
3522	pub fn direct_8x8_inference_flag(&self) -> u32 {
3523		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3524	}
3525	#[inline]
3526	pub fn set_direct_8x8_inference_flag(&mut self, val: u32) {
3527		unsafe {
3528			let val: u32 = ::std::mem::transmute(val);
3529			self._bitfield_1.set(6usize, 1u8, val as u64)
3530		}
3531	}
3532	#[inline]
3533	pub unsafe fn direct_8x8_inference_flag_raw(this: *const Self) -> u32 {
3534		unsafe {
3535			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3536				::std::ptr::addr_of!((*this)._bitfield_1),
3537				6usize,
3538				1u8,
3539			) as u32)
3540		}
3541	}
3542	#[inline]
3543	pub unsafe fn set_direct_8x8_inference_flag_raw(this: *mut Self, val: u32) {
3544		unsafe {
3545			let val: u32 = ::std::mem::transmute(val);
3546			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3547				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3548				6usize,
3549				1u8,
3550				val as u64,
3551			)
3552		}
3553	}
3554	#[inline]
3555	pub fn MinLumaBiPredSize8x8(&self) -> u32 {
3556		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3557	}
3558	#[inline]
3559	pub fn set_MinLumaBiPredSize8x8(&mut self, val: u32) {
3560		unsafe {
3561			let val: u32 = ::std::mem::transmute(val);
3562			self._bitfield_1.set(7usize, 1u8, val as u64)
3563		}
3564	}
3565	#[inline]
3566	pub unsafe fn MinLumaBiPredSize8x8_raw(this: *const Self) -> u32 {
3567		unsafe {
3568			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3569				::std::ptr::addr_of!((*this)._bitfield_1),
3570				7usize,
3571				1u8,
3572			) as u32)
3573		}
3574	}
3575	#[inline]
3576	pub unsafe fn set_MinLumaBiPredSize8x8_raw(this: *mut Self, val: u32) {
3577		unsafe {
3578			let val: u32 = ::std::mem::transmute(val);
3579			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3580				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3581				7usize,
3582				1u8,
3583				val as u64,
3584			)
3585		}
3586	}
3587	#[inline]
3588	pub fn log2_max_frame_num_minus4(&self) -> u32 {
3589		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 4u8) as u32) }
3590	}
3591	#[inline]
3592	pub fn set_log2_max_frame_num_minus4(&mut self, val: u32) {
3593		unsafe {
3594			let val: u32 = ::std::mem::transmute(val);
3595			self._bitfield_1.set(8usize, 4u8, val as u64)
3596		}
3597	}
3598	#[inline]
3599	pub unsafe fn log2_max_frame_num_minus4_raw(this: *const Self) -> u32 {
3600		unsafe {
3601			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3602				::std::ptr::addr_of!((*this)._bitfield_1),
3603				8usize,
3604				4u8,
3605			) as u32)
3606		}
3607	}
3608	#[inline]
3609	pub unsafe fn set_log2_max_frame_num_minus4_raw(this: *mut Self, val: u32) {
3610		unsafe {
3611			let val: u32 = ::std::mem::transmute(val);
3612			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3613				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3614				8usize,
3615				4u8,
3616				val as u64,
3617			)
3618		}
3619	}
3620	#[inline]
3621	pub fn pic_order_cnt_type(&self) -> u32 {
3622		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
3623	}
3624	#[inline]
3625	pub fn set_pic_order_cnt_type(&mut self, val: u32) {
3626		unsafe {
3627			let val: u32 = ::std::mem::transmute(val);
3628			self._bitfield_1.set(12usize, 2u8, val as u64)
3629		}
3630	}
3631	#[inline]
3632	pub unsafe fn pic_order_cnt_type_raw(this: *const Self) -> u32 {
3633		unsafe {
3634			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3635				::std::ptr::addr_of!((*this)._bitfield_1),
3636				12usize,
3637				2u8,
3638			) as u32)
3639		}
3640	}
3641	#[inline]
3642	pub unsafe fn set_pic_order_cnt_type_raw(this: *mut Self, val: u32) {
3643		unsafe {
3644			let val: u32 = ::std::mem::transmute(val);
3645			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3646				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3647				12usize,
3648				2u8,
3649				val as u64,
3650			)
3651		}
3652	}
3653	#[inline]
3654	pub fn log2_max_pic_order_cnt_lsb_minus4(&self) -> u32 {
3655		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 4u8) as u32) }
3656	}
3657	#[inline]
3658	pub fn set_log2_max_pic_order_cnt_lsb_minus4(&mut self, val: u32) {
3659		unsafe {
3660			let val: u32 = ::std::mem::transmute(val);
3661			self._bitfield_1.set(14usize, 4u8, val as u64)
3662		}
3663	}
3664	#[inline]
3665	pub unsafe fn log2_max_pic_order_cnt_lsb_minus4_raw(this: *const Self) -> u32 {
3666		unsafe {
3667			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3668				::std::ptr::addr_of!((*this)._bitfield_1),
3669				14usize,
3670				4u8,
3671			) as u32)
3672		}
3673	}
3674	#[inline]
3675	pub unsafe fn set_log2_max_pic_order_cnt_lsb_minus4_raw(this: *mut Self, val: u32) {
3676		unsafe {
3677			let val: u32 = ::std::mem::transmute(val);
3678			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3679				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3680				14usize,
3681				4u8,
3682				val as u64,
3683			)
3684		}
3685	}
3686	#[inline]
3687	pub fn delta_pic_order_always_zero_flag(&self) -> u32 {
3688		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
3689	}
3690	#[inline]
3691	pub fn set_delta_pic_order_always_zero_flag(&mut self, val: u32) {
3692		unsafe {
3693			let val: u32 = ::std::mem::transmute(val);
3694			self._bitfield_1.set(18usize, 1u8, val as u64)
3695		}
3696	}
3697	#[inline]
3698	pub unsafe fn delta_pic_order_always_zero_flag_raw(this: *const Self) -> u32 {
3699		unsafe {
3700			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
3701				::std::ptr::addr_of!((*this)._bitfield_1),
3702				18usize,
3703				1u8,
3704			) as u32)
3705		}
3706	}
3707	#[inline]
3708	pub unsafe fn set_delta_pic_order_always_zero_flag_raw(this: *mut Self, val: u32) {
3709		unsafe {
3710			let val: u32 = ::std::mem::transmute(val);
3711			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
3712				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3713				18usize,
3714				1u8,
3715				val as u64,
3716			)
3717		}
3718	}
3719	#[inline]
3720	pub fn new_bitfield_1(
3721		chroma_format_idc: u32,
3722		residual_colour_transform_flag: u32,
3723		gaps_in_frame_num_value_allowed_flag: u32,
3724		frame_mbs_only_flag: u32,
3725		mb_adaptive_frame_field_flag: u32,
3726		direct_8x8_inference_flag: u32,
3727		MinLumaBiPredSize8x8: u32,
3728		log2_max_frame_num_minus4: u32,
3729		pic_order_cnt_type: u32,
3730		log2_max_pic_order_cnt_lsb_minus4: u32,
3731		delta_pic_order_always_zero_flag: u32,
3732	) -> __BindgenBitfieldUnit<[u8; 3usize]> {
3733		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
3734		__bindgen_bitfield_unit.set(0usize, 2u8, {
3735			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
3736			chroma_format_idc as u64
3737		});
3738		__bindgen_bitfield_unit.set(2usize, 1u8, {
3739			let residual_colour_transform_flag: u32 = unsafe { ::std::mem::transmute(residual_colour_transform_flag) };
3740			residual_colour_transform_flag as u64
3741		});
3742		__bindgen_bitfield_unit.set(3usize, 1u8, {
3743			let gaps_in_frame_num_value_allowed_flag: u32 =
3744				unsafe { ::std::mem::transmute(gaps_in_frame_num_value_allowed_flag) };
3745			gaps_in_frame_num_value_allowed_flag as u64
3746		});
3747		__bindgen_bitfield_unit.set(4usize, 1u8, {
3748			let frame_mbs_only_flag: u32 = unsafe { ::std::mem::transmute(frame_mbs_only_flag) };
3749			frame_mbs_only_flag as u64
3750		});
3751		__bindgen_bitfield_unit.set(5usize, 1u8, {
3752			let mb_adaptive_frame_field_flag: u32 = unsafe { ::std::mem::transmute(mb_adaptive_frame_field_flag) };
3753			mb_adaptive_frame_field_flag as u64
3754		});
3755		__bindgen_bitfield_unit.set(6usize, 1u8, {
3756			let direct_8x8_inference_flag: u32 = unsafe { ::std::mem::transmute(direct_8x8_inference_flag) };
3757			direct_8x8_inference_flag as u64
3758		});
3759		__bindgen_bitfield_unit.set(7usize, 1u8, {
3760			let MinLumaBiPredSize8x8: u32 = unsafe { ::std::mem::transmute(MinLumaBiPredSize8x8) };
3761			MinLumaBiPredSize8x8 as u64
3762		});
3763		__bindgen_bitfield_unit.set(8usize, 4u8, {
3764			let log2_max_frame_num_minus4: u32 = unsafe { ::std::mem::transmute(log2_max_frame_num_minus4) };
3765			log2_max_frame_num_minus4 as u64
3766		});
3767		__bindgen_bitfield_unit.set(12usize, 2u8, {
3768			let pic_order_cnt_type: u32 = unsafe { ::std::mem::transmute(pic_order_cnt_type) };
3769			pic_order_cnt_type as u64
3770		});
3771		__bindgen_bitfield_unit.set(14usize, 4u8, {
3772			let log2_max_pic_order_cnt_lsb_minus4: u32 =
3773				unsafe { ::std::mem::transmute(log2_max_pic_order_cnt_lsb_minus4) };
3774			log2_max_pic_order_cnt_lsb_minus4 as u64
3775		});
3776		__bindgen_bitfield_unit.set(18usize, 1u8, {
3777			let delta_pic_order_always_zero_flag: u32 =
3778				unsafe { ::std::mem::transmute(delta_pic_order_always_zero_flag) };
3779			delta_pic_order_always_zero_flag as u64
3780		});
3781		__bindgen_bitfield_unit
3782	}
3783}
3784impl Default for _VAPictureParameterBufferH264__bindgen_ty_1 {
3785	fn default() -> Self {
3786		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
3787		unsafe {
3788			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
3789			s.assume_init()
3790		}
3791	}
3792}
3793#[repr(C)]
3794#[derive(Copy, Clone)]
3795pub union _VAPictureParameterBufferH264__bindgen_ty_2 {
3796	pub bits: _VAPictureParameterBufferH264__bindgen_ty_2__bindgen_ty_1,
3797	pub value: u32,
3798}
3799#[repr(C)]
3800#[repr(align(4))]
3801#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
3802pub struct _VAPictureParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
3803	pub _bitfield_align_1: [u8; 0],
3804	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
3805	pub __bindgen_padding_0: u16,
3806}
3807impl _VAPictureParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
3808	#[inline]
3809	pub fn entropy_coding_mode_flag(&self) -> u32 {
3810		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
3811	}
3812	#[inline]
3813	pub fn set_entropy_coding_mode_flag(&mut self, val: u32) {
3814		unsafe {
3815			let val: u32 = ::std::mem::transmute(val);
3816			self._bitfield_1.set(0usize, 1u8, val as u64)
3817		}
3818	}
3819	#[inline]
3820	pub unsafe fn entropy_coding_mode_flag_raw(this: *const Self) -> u32 {
3821		unsafe {
3822			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3823				::std::ptr::addr_of!((*this)._bitfield_1),
3824				0usize,
3825				1u8,
3826			) as u32)
3827		}
3828	}
3829	#[inline]
3830	pub unsafe fn set_entropy_coding_mode_flag_raw(this: *mut Self, val: u32) {
3831		unsafe {
3832			let val: u32 = ::std::mem::transmute(val);
3833			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3834				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3835				0usize,
3836				1u8,
3837				val as u64,
3838			)
3839		}
3840	}
3841	#[inline]
3842	pub fn weighted_pred_flag(&self) -> u32 {
3843		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
3844	}
3845	#[inline]
3846	pub fn set_weighted_pred_flag(&mut self, val: u32) {
3847		unsafe {
3848			let val: u32 = ::std::mem::transmute(val);
3849			self._bitfield_1.set(1usize, 1u8, val as u64)
3850		}
3851	}
3852	#[inline]
3853	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
3854		unsafe {
3855			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3856				::std::ptr::addr_of!((*this)._bitfield_1),
3857				1usize,
3858				1u8,
3859			) as u32)
3860		}
3861	}
3862	#[inline]
3863	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
3864		unsafe {
3865			let val: u32 = ::std::mem::transmute(val);
3866			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3867				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3868				1usize,
3869				1u8,
3870				val as u64,
3871			)
3872		}
3873	}
3874	#[inline]
3875	pub fn weighted_bipred_idc(&self) -> u32 {
3876		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
3877	}
3878	#[inline]
3879	pub fn set_weighted_bipred_idc(&mut self, val: u32) {
3880		unsafe {
3881			let val: u32 = ::std::mem::transmute(val);
3882			self._bitfield_1.set(2usize, 2u8, val as u64)
3883		}
3884	}
3885	#[inline]
3886	pub unsafe fn weighted_bipred_idc_raw(this: *const Self) -> u32 {
3887		unsafe {
3888			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3889				::std::ptr::addr_of!((*this)._bitfield_1),
3890				2usize,
3891				2u8,
3892			) as u32)
3893		}
3894	}
3895	#[inline]
3896	pub unsafe fn set_weighted_bipred_idc_raw(this: *mut Self, val: u32) {
3897		unsafe {
3898			let val: u32 = ::std::mem::transmute(val);
3899			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3900				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3901				2usize,
3902				2u8,
3903				val as u64,
3904			)
3905		}
3906	}
3907	#[inline]
3908	pub fn transform_8x8_mode_flag(&self) -> u32 {
3909		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3910	}
3911	#[inline]
3912	pub fn set_transform_8x8_mode_flag(&mut self, val: u32) {
3913		unsafe {
3914			let val: u32 = ::std::mem::transmute(val);
3915			self._bitfield_1.set(4usize, 1u8, val as u64)
3916		}
3917	}
3918	#[inline]
3919	pub unsafe fn transform_8x8_mode_flag_raw(this: *const Self) -> u32 {
3920		unsafe {
3921			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3922				::std::ptr::addr_of!((*this)._bitfield_1),
3923				4usize,
3924				1u8,
3925			) as u32)
3926		}
3927	}
3928	#[inline]
3929	pub unsafe fn set_transform_8x8_mode_flag_raw(this: *mut Self, val: u32) {
3930		unsafe {
3931			let val: u32 = ::std::mem::transmute(val);
3932			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3933				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3934				4usize,
3935				1u8,
3936				val as u64,
3937			)
3938		}
3939	}
3940	#[inline]
3941	pub fn field_pic_flag(&self) -> u32 {
3942		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3943	}
3944	#[inline]
3945	pub fn set_field_pic_flag(&mut self, val: u32) {
3946		unsafe {
3947			let val: u32 = ::std::mem::transmute(val);
3948			self._bitfield_1.set(5usize, 1u8, val as u64)
3949		}
3950	}
3951	#[inline]
3952	pub unsafe fn field_pic_flag_raw(this: *const Self) -> u32 {
3953		unsafe {
3954			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3955				::std::ptr::addr_of!((*this)._bitfield_1),
3956				5usize,
3957				1u8,
3958			) as u32)
3959		}
3960	}
3961	#[inline]
3962	pub unsafe fn set_field_pic_flag_raw(this: *mut Self, val: u32) {
3963		unsafe {
3964			let val: u32 = ::std::mem::transmute(val);
3965			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3966				::std::ptr::addr_of_mut!((*this)._bitfield_1),
3967				5usize,
3968				1u8,
3969				val as u64,
3970			)
3971		}
3972	}
3973	#[inline]
3974	pub fn constrained_intra_pred_flag(&self) -> u32 {
3975		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3976	}
3977	#[inline]
3978	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
3979		unsafe {
3980			let val: u32 = ::std::mem::transmute(val);
3981			self._bitfield_1.set(6usize, 1u8, val as u64)
3982		}
3983	}
3984	#[inline]
3985	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
3986		unsafe {
3987			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3988				::std::ptr::addr_of!((*this)._bitfield_1),
3989				6usize,
3990				1u8,
3991			) as u32)
3992		}
3993	}
3994	#[inline]
3995	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
3996		unsafe {
3997			let val: u32 = ::std::mem::transmute(val);
3998			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3999				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4000				6usize,
4001				1u8,
4002				val as u64,
4003			)
4004		}
4005	}
4006	#[inline]
4007	pub fn pic_order_present_flag(&self) -> u32 {
4008		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
4009	}
4010	#[inline]
4011	pub fn set_pic_order_present_flag(&mut self, val: u32) {
4012		unsafe {
4013			let val: u32 = ::std::mem::transmute(val);
4014			self._bitfield_1.set(7usize, 1u8, val as u64)
4015		}
4016	}
4017	#[inline]
4018	pub unsafe fn pic_order_present_flag_raw(this: *const Self) -> u32 {
4019		unsafe {
4020			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
4021				::std::ptr::addr_of!((*this)._bitfield_1),
4022				7usize,
4023				1u8,
4024			) as u32)
4025		}
4026	}
4027	#[inline]
4028	pub unsafe fn set_pic_order_present_flag_raw(this: *mut Self, val: u32) {
4029		unsafe {
4030			let val: u32 = ::std::mem::transmute(val);
4031			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
4032				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4033				7usize,
4034				1u8,
4035				val as u64,
4036			)
4037		}
4038	}
4039	#[inline]
4040	pub fn deblocking_filter_control_present_flag(&self) -> u32 {
4041		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
4042	}
4043	#[inline]
4044	pub fn set_deblocking_filter_control_present_flag(&mut self, val: u32) {
4045		unsafe {
4046			let val: u32 = ::std::mem::transmute(val);
4047			self._bitfield_1.set(8usize, 1u8, val as u64)
4048		}
4049	}
4050	#[inline]
4051	pub unsafe fn deblocking_filter_control_present_flag_raw(this: *const Self) -> u32 {
4052		unsafe {
4053			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
4054				::std::ptr::addr_of!((*this)._bitfield_1),
4055				8usize,
4056				1u8,
4057			) as u32)
4058		}
4059	}
4060	#[inline]
4061	pub unsafe fn set_deblocking_filter_control_present_flag_raw(this: *mut Self, val: u32) {
4062		unsafe {
4063			let val: u32 = ::std::mem::transmute(val);
4064			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
4065				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4066				8usize,
4067				1u8,
4068				val as u64,
4069			)
4070		}
4071	}
4072	#[inline]
4073	pub fn redundant_pic_cnt_present_flag(&self) -> u32 {
4074		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
4075	}
4076	#[inline]
4077	pub fn set_redundant_pic_cnt_present_flag(&mut self, val: u32) {
4078		unsafe {
4079			let val: u32 = ::std::mem::transmute(val);
4080			self._bitfield_1.set(9usize, 1u8, val as u64)
4081		}
4082	}
4083	#[inline]
4084	pub unsafe fn redundant_pic_cnt_present_flag_raw(this: *const Self) -> u32 {
4085		unsafe {
4086			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
4087				::std::ptr::addr_of!((*this)._bitfield_1),
4088				9usize,
4089				1u8,
4090			) as u32)
4091		}
4092	}
4093	#[inline]
4094	pub unsafe fn set_redundant_pic_cnt_present_flag_raw(this: *mut Self, val: u32) {
4095		unsafe {
4096			let val: u32 = ::std::mem::transmute(val);
4097			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
4098				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4099				9usize,
4100				1u8,
4101				val as u64,
4102			)
4103		}
4104	}
4105	#[inline]
4106	pub fn reference_pic_flag(&self) -> u32 {
4107		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
4108	}
4109	#[inline]
4110	pub fn set_reference_pic_flag(&mut self, val: u32) {
4111		unsafe {
4112			let val: u32 = ::std::mem::transmute(val);
4113			self._bitfield_1.set(10usize, 1u8, val as u64)
4114		}
4115	}
4116	#[inline]
4117	pub unsafe fn reference_pic_flag_raw(this: *const Self) -> u32 {
4118		unsafe {
4119			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
4120				::std::ptr::addr_of!((*this)._bitfield_1),
4121				10usize,
4122				1u8,
4123			) as u32)
4124		}
4125	}
4126	#[inline]
4127	pub unsafe fn set_reference_pic_flag_raw(this: *mut Self, val: u32) {
4128		unsafe {
4129			let val: u32 = ::std::mem::transmute(val);
4130			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
4131				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4132				10usize,
4133				1u8,
4134				val as u64,
4135			)
4136		}
4137	}
4138	#[inline]
4139	pub fn new_bitfield_1(
4140		entropy_coding_mode_flag: u32,
4141		weighted_pred_flag: u32,
4142		weighted_bipred_idc: u32,
4143		transform_8x8_mode_flag: u32,
4144		field_pic_flag: u32,
4145		constrained_intra_pred_flag: u32,
4146		pic_order_present_flag: u32,
4147		deblocking_filter_control_present_flag: u32,
4148		redundant_pic_cnt_present_flag: u32,
4149		reference_pic_flag: u32,
4150	) -> __BindgenBitfieldUnit<[u8; 2usize]> {
4151		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
4152		__bindgen_bitfield_unit.set(0usize, 1u8, {
4153			let entropy_coding_mode_flag: u32 = unsafe { ::std::mem::transmute(entropy_coding_mode_flag) };
4154			entropy_coding_mode_flag as u64
4155		});
4156		__bindgen_bitfield_unit.set(1usize, 1u8, {
4157			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
4158			weighted_pred_flag as u64
4159		});
4160		__bindgen_bitfield_unit.set(2usize, 2u8, {
4161			let weighted_bipred_idc: u32 = unsafe { ::std::mem::transmute(weighted_bipred_idc) };
4162			weighted_bipred_idc as u64
4163		});
4164		__bindgen_bitfield_unit.set(4usize, 1u8, {
4165			let transform_8x8_mode_flag: u32 = unsafe { ::std::mem::transmute(transform_8x8_mode_flag) };
4166			transform_8x8_mode_flag as u64
4167		});
4168		__bindgen_bitfield_unit.set(5usize, 1u8, {
4169			let field_pic_flag: u32 = unsafe { ::std::mem::transmute(field_pic_flag) };
4170			field_pic_flag as u64
4171		});
4172		__bindgen_bitfield_unit.set(6usize, 1u8, {
4173			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
4174			constrained_intra_pred_flag as u64
4175		});
4176		__bindgen_bitfield_unit.set(7usize, 1u8, {
4177			let pic_order_present_flag: u32 = unsafe { ::std::mem::transmute(pic_order_present_flag) };
4178			pic_order_present_flag as u64
4179		});
4180		__bindgen_bitfield_unit.set(8usize, 1u8, {
4181			let deblocking_filter_control_present_flag: u32 =
4182				unsafe { ::std::mem::transmute(deblocking_filter_control_present_flag) };
4183			deblocking_filter_control_present_flag as u64
4184		});
4185		__bindgen_bitfield_unit.set(9usize, 1u8, {
4186			let redundant_pic_cnt_present_flag: u32 = unsafe { ::std::mem::transmute(redundant_pic_cnt_present_flag) };
4187			redundant_pic_cnt_present_flag as u64
4188		});
4189		__bindgen_bitfield_unit.set(10usize, 1u8, {
4190			let reference_pic_flag: u32 = unsafe { ::std::mem::transmute(reference_pic_flag) };
4191			reference_pic_flag as u64
4192		});
4193		__bindgen_bitfield_unit
4194	}
4195}
4196impl Default for _VAPictureParameterBufferH264__bindgen_ty_2 {
4197	fn default() -> Self {
4198		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4199		unsafe {
4200			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4201			s.assume_init()
4202		}
4203	}
4204}
4205impl Default for _VAPictureParameterBufferH264 {
4206	fn default() -> Self {
4207		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4208		unsafe {
4209			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4210			s.assume_init()
4211		}
4212	}
4213}
4214#[doc = " H.264 Picture Parameter Buffer"]
4215pub type VAPictureParameterBufferH264 = _VAPictureParameterBufferH264;
4216#[doc = " H.264 Inverse Quantization Matrix Buffer"]
4217#[repr(C)]
4218#[derive(Debug, Copy, Clone, PartialEq, Eq)]
4219pub struct _VAIQMatrixBufferH264 {
4220	#[doc = " \\brief 4x4 scaling list, in raster scan order."]
4221	pub ScalingList4x4: [[u8; 16usize]; 6usize],
4222	#[doc = " \\brief 8x8 scaling list, in raster scan order."]
4223	pub ScalingList8x8: [[u8; 64usize]; 2usize],
4224	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4225	pub va_reserved: [u32; 4usize],
4226}
4227impl Default for _VAIQMatrixBufferH264 {
4228	fn default() -> Self {
4229		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4230		unsafe {
4231			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4232			s.assume_init()
4233		}
4234	}
4235}
4236#[doc = " H.264 Inverse Quantization Matrix Buffer"]
4237pub type VAIQMatrixBufferH264 = _VAIQMatrixBufferH264;
4238#[doc = " H.264 Slice Parameter Buffer"]
4239#[repr(C)]
4240#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4241pub struct _VASliceParameterBufferH264 {
4242	pub slice_data_size: u32,
4243	#[doc = " \\brief Byte offset to the NAL Header Unit for this slice."]
4244	pub slice_data_offset: u32,
4245	pub slice_data_flag: u32,
4246	#[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."]
4247	pub slice_data_bit_offset: u16,
4248	pub first_mb_in_slice: u16,
4249	pub slice_type: u8,
4250	pub direct_spatial_mv_pred_flag: u8,
4251	#[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."]
4252	pub num_ref_idx_l0_active_minus1: u8,
4253	#[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."]
4254	pub num_ref_idx_l1_active_minus1: u8,
4255	pub cabac_init_idc: u8,
4256	pub slice_qp_delta: i8,
4257	pub disable_deblocking_filter_idc: u8,
4258	pub slice_alpha_c0_offset_div2: i8,
4259	pub slice_beta_offset_div2: i8,
4260	pub RefPicList0: [VAPictureH264; 32usize],
4261	pub RefPicList1: [VAPictureH264; 32usize],
4262	pub luma_log2_weight_denom: u8,
4263	pub chroma_log2_weight_denom: u8,
4264	pub luma_weight_l0_flag: u8,
4265	pub luma_weight_l0: [i16; 32usize],
4266	pub luma_offset_l0: [i16; 32usize],
4267	pub chroma_weight_l0_flag: u8,
4268	pub chroma_weight_l0: [[i16; 2usize]; 32usize],
4269	pub chroma_offset_l0: [[i16; 2usize]; 32usize],
4270	pub luma_weight_l1_flag: u8,
4271	pub luma_weight_l1: [i16; 32usize],
4272	pub luma_offset_l1: [i16; 32usize],
4273	pub chroma_weight_l1_flag: u8,
4274	pub chroma_weight_l1: [[i16; 2usize]; 32usize],
4275	pub chroma_offset_l1: [[i16; 2usize]; 32usize],
4276	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4277	pub va_reserved: [u32; 4usize],
4278}
4279#[doc = " H.264 Slice Parameter Buffer"]
4280pub type VASliceParameterBufferH264 = _VASliceParameterBufferH264;
4281#[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."]
4282#[repr(C)]
4283#[derive(Debug, Copy, Clone, PartialEq, Eq)]
4284pub struct _VACodedBufferSegment {
4285	#[doc = " \\brief Size of the data buffer in this segment (in bytes)."]
4286	pub size: u32,
4287	#[doc = " \\brief Bit offset into the data buffer where the video data starts."]
4288	pub bit_offset: u32,
4289	#[doc = " \\brief Status set by the driver. See \\c VA_CODED_BUF_STATUS_*."]
4290	pub status: u32,
4291	#[doc = " \\brief Reserved for future use."]
4292	pub reserved: u32,
4293	#[doc = " \\brief Pointer to the start of the data buffer."]
4294	pub buf: *mut ::std::os::raw::c_void,
4295	#[doc = " \\brief Pointer to the next #VACodedBufferSegment element,\n or \\c NULL if there is none."]
4296	pub next: *mut ::std::os::raw::c_void,
4297	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4298	pub va_reserved: [u32; 4usize],
4299}
4300impl Default for _VACodedBufferSegment {
4301	fn default() -> Self {
4302		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4303		unsafe {
4304			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4305			s.assume_init()
4306		}
4307	}
4308}
4309#[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."]
4310pub type VACodedBufferSegment = _VACodedBufferSegment;
4311#[doc = " \\brief VA buffer information"]
4312#[repr(C)]
4313#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4314pub struct VABufferInfo {
4315	#[doc = " \\brief Buffer handle"]
4316	pub handle: usize,
4317	#[doc = " \\brief Buffer type (See \\ref VABufferType)."]
4318	pub type_: u32,
4319	#[doc = " \\brief Buffer memory type (See \\ref VASurfaceAttribMemoryType).\n\n On input to vaAcquireBufferHandle(), this field can serve as a hint\n to specify the set of memory types the caller is interested in.\n On successful return from vaAcquireBufferHandle(), the field is\n updated with the best matching memory type."]
4320	pub mem_type: u32,
4321	#[doc = " \\brief Size of the underlying buffer."]
4322	pub mem_size: usize,
4323	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4324	pub va_reserved: [u32; 4usize],
4325}
4326pub mod VASurfaceStatus {
4327	pub type Type = ::std::os::raw::c_uint;
4328	pub const VASurfaceRendering: Type = 1;
4329	pub const VASurfaceDisplaying: Type = 2;
4330	pub const VASurfaceReady: Type = 4;
4331	pub const VASurfaceSkipped: Type = 8;
4332}
4333pub mod VADecodeErrorType {
4334	pub type Type = ::std::os::raw::c_uint;
4335	pub const VADecodeSliceMissing: Type = 0;
4336	pub const VADecodeMBError: Type = 1;
4337	pub const VADecodeReset: Type = 2;
4338}
4339#[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"]
4340#[repr(C)]
4341#[derive(Debug, Copy, Clone, PartialEq, Eq)]
4342pub struct _VASurfaceDecodeMBErrors {
4343	pub status: i32,
4344	pub start_mb: u32,
4345	pub end_mb: u32,
4346	pub decode_error_type: VADecodeErrorType::Type,
4347	pub num_mb: u32,
4348	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4349	pub va_reserved: [u32; 3usize],
4350}
4351impl Default for _VASurfaceDecodeMBErrors {
4352	fn default() -> Self {
4353		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4354		unsafe {
4355			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4356			s.assume_init()
4357		}
4358	}
4359}
4360#[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"]
4361pub type VASurfaceDecodeMBErrors = _VASurfaceDecodeMBErrors;
4362#[repr(C)]
4363#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4364pub struct _VAImageFormat {
4365	pub fourcc: u32,
4366	pub byte_order: u32,
4367	pub bits_per_pixel: u32,
4368	pub depth: u32,
4369	pub red_mask: u32,
4370	pub green_mask: u32,
4371	pub blue_mask: u32,
4372	pub alpha_mask: u32,
4373	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4374	pub va_reserved: [u32; 4usize],
4375}
4376pub type VAImageFormat = _VAImageFormat;
4377pub type VAImageID = VAGenericID;
4378#[repr(C)]
4379#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4380pub struct _VAImage {
4381	pub image_id: VAImageID,
4382	pub format: VAImageFormat,
4383	pub buf: VABufferID,
4384	pub width: u16,
4385	pub height: u16,
4386	pub data_size: u32,
4387	pub num_planes: u32,
4388	pub pitches: [u32; 3usize],
4389	pub offsets: [u32; 3usize],
4390	pub num_palette_entries: i32,
4391	pub entry_bytes: i32,
4392	pub component_order: [i8; 4usize],
4393	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4394	pub va_reserved: [u32; 4usize],
4395}
4396pub type VAImage = _VAImage;
4397#[doc = " Subpictures\n Subpicture is a special type of image that can be blended\n with a surface during vaPutSurface(). Subpicture can be used to render\n DVD sub-titles or closed captioning text etc."]
4398pub type VASubpictureID = VAGenericID;
4399pub mod VADisplayAttribType {
4400	#[doc = " Currently defined display attribute types"]
4401	pub type Type = ::std::os::raw::c_uint;
4402	pub const VADisplayAttribBrightness: Type = 0;
4403	pub const VADisplayAttribContrast: Type = 1;
4404	pub const VADisplayAttribHue: Type = 2;
4405	pub const VADisplayAttribSaturation: Type = 3;
4406	pub const VADisplayAttribBackgroundColor: Type = 4;
4407	pub const VADisplayAttribDirectSurface: Type = 5;
4408	pub const VADisplayAttribRotation: Type = 6;
4409	pub const VADisplayAttribOutofLoopDeblock: Type = 7;
4410	pub const VADisplayAttribBLEBlackMode: Type = 8;
4411	pub const VADisplayAttribBLEWhiteMode: Type = 9;
4412	pub const VADisplayAttribBlueStretch: Type = 10;
4413	pub const VADisplayAttribSkinColorCorrection: Type = 11;
4414	pub const VADisplayAttribCSCMatrix: Type = 12;
4415	pub const VADisplayAttribBlendColor: Type = 13;
4416	pub const VADisplayAttribOverlayAutoPaintColorKey: Type = 14;
4417	pub const VADisplayAttribOverlayColorKey: Type = 15;
4418	pub const VADisplayAttribRenderMode: Type = 16;
4419	pub const VADisplayAttribRenderDevice: Type = 17;
4420	pub const VADisplayAttribRenderRect: Type = 18;
4421	pub const VADisplayAttribSubDevice: Type = 19;
4422	pub const VADisplayAttribCopy: Type = 20;
4423	pub const VADisplayPCIID: Type = 21;
4424}
4425#[repr(C)]
4426#[derive(Debug, Copy, Clone, PartialEq, Eq)]
4427pub struct _VADisplayAttribute {
4428	pub type_: VADisplayAttribType::Type,
4429	pub min_value: i32,
4430	pub max_value: i32,
4431	pub value: i32,
4432	pub flags: u32,
4433	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4434	pub va_reserved: [u32; 4usize],
4435}
4436impl Default for _VADisplayAttribute {
4437	fn default() -> Self {
4438		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4439		unsafe {
4440			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4441			s.assume_init()
4442		}
4443	}
4444}
4445pub type VADisplayAttribute = _VADisplayAttribute;
4446#[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."]
4447#[repr(C)]
4448#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4449pub struct _VAPictureHEVC {
4450	#[doc = " \\brief reconstructed picture buffer surface index\n invalid when taking value VA_INVALID_SURFACE."]
4451	pub picture_id: VASurfaceID,
4452	#[doc = " \\brief picture order count.\n in HEVC, POCs for top and bottom fields of same picture should\n take different values."]
4453	pub pic_order_cnt: i32,
4454	pub flags: u32,
4455	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4456	pub va_reserved: [u32; 4usize],
4457}
4458#[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."]
4459pub type VAPictureHEVC = _VAPictureHEVC;
4460pub mod VACopyObjectType {
4461	pub type Type = ::std::os::raw::c_uint;
4462	pub const VACopyObjectSurface: Type = 0;
4463	pub const VACopyObjectBuffer: Type = 1;
4464}
4465#[repr(C)]
4466#[derive(Copy, Clone)]
4467pub struct _VACopyObject {
4468	pub obj_type: VACopyObjectType::Type,
4469	pub object: _VACopyObject__bindgen_ty_1,
4470	pub va_reserved: [u32; 8usize],
4471}
4472#[repr(C)]
4473#[derive(Copy, Clone)]
4474pub union _VACopyObject__bindgen_ty_1 {
4475	pub surface_id: VASurfaceID,
4476	pub buffer_id: VABufferID,
4477}
4478impl Default for _VACopyObject__bindgen_ty_1 {
4479	fn default() -> Self {
4480		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4481		unsafe {
4482			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4483			s.assume_init()
4484		}
4485	}
4486}
4487impl Default for _VACopyObject {
4488	fn default() -> Self {
4489		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4490		unsafe {
4491			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4492			s.assume_init()
4493		}
4494	}
4495}
4496pub type VACopyObject = _VACopyObject;
4497#[repr(C)]
4498#[derive(Copy, Clone)]
4499pub union _VACopyOption {
4500	pub bits: _VACopyOption__bindgen_ty_1,
4501	pub value: u32,
4502}
4503#[repr(C)]
4504#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4505pub struct _VACopyOption__bindgen_ty_1 {
4506	pub _bitfield_align_1: [u32; 0],
4507	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
4508}
4509impl _VACopyOption__bindgen_ty_1 {
4510	#[inline]
4511	pub fn va_copy_sync(&self) -> u32 {
4512		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
4513	}
4514	#[inline]
4515	pub fn set_va_copy_sync(&mut self, val: u32) {
4516		unsafe {
4517			let val: u32 = ::std::mem::transmute(val);
4518			self._bitfield_1.set(0usize, 2u8, val as u64)
4519		}
4520	}
4521	#[inline]
4522	pub unsafe fn va_copy_sync_raw(this: *const Self) -> u32 {
4523		unsafe {
4524			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4525				::std::ptr::addr_of!((*this)._bitfield_1),
4526				0usize,
4527				2u8,
4528			) as u32)
4529		}
4530	}
4531	#[inline]
4532	pub unsafe fn set_va_copy_sync_raw(this: *mut Self, val: u32) {
4533		unsafe {
4534			let val: u32 = ::std::mem::transmute(val);
4535			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4536				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4537				0usize,
4538				2u8,
4539				val as u64,
4540			)
4541		}
4542	}
4543	#[inline]
4544	pub fn va_copy_mode(&self) -> u32 {
4545		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 4u8) as u32) }
4546	}
4547	#[inline]
4548	pub fn set_va_copy_mode(&mut self, val: u32) {
4549		unsafe {
4550			let val: u32 = ::std::mem::transmute(val);
4551			self._bitfield_1.set(2usize, 4u8, val as u64)
4552		}
4553	}
4554	#[inline]
4555	pub unsafe fn va_copy_mode_raw(this: *const Self) -> u32 {
4556		unsafe {
4557			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4558				::std::ptr::addr_of!((*this)._bitfield_1),
4559				2usize,
4560				4u8,
4561			) as u32)
4562		}
4563	}
4564	#[inline]
4565	pub unsafe fn set_va_copy_mode_raw(this: *mut Self, val: u32) {
4566		unsafe {
4567			let val: u32 = ::std::mem::transmute(val);
4568			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4569				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4570				2usize,
4571				4u8,
4572				val as u64,
4573			)
4574		}
4575	}
4576	#[inline]
4577	pub fn reserved(&self) -> u32 {
4578		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 26u8) as u32) }
4579	}
4580	#[inline]
4581	pub fn set_reserved(&mut self, val: u32) {
4582		unsafe {
4583			let val: u32 = ::std::mem::transmute(val);
4584			self._bitfield_1.set(6usize, 26u8, val as u64)
4585		}
4586	}
4587	#[inline]
4588	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
4589		unsafe {
4590			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4591				::std::ptr::addr_of!((*this)._bitfield_1),
4592				6usize,
4593				26u8,
4594			) as u32)
4595		}
4596	}
4597	#[inline]
4598	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
4599		unsafe {
4600			let val: u32 = ::std::mem::transmute(val);
4601			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4602				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4603				6usize,
4604				26u8,
4605				val as u64,
4606			)
4607		}
4608	}
4609	#[inline]
4610	pub fn new_bitfield_1(va_copy_sync: u32, va_copy_mode: u32, reserved: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
4611		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
4612		__bindgen_bitfield_unit.set(0usize, 2u8, {
4613			let va_copy_sync: u32 = unsafe { ::std::mem::transmute(va_copy_sync) };
4614			va_copy_sync as u64
4615		});
4616		__bindgen_bitfield_unit.set(2usize, 4u8, {
4617			let va_copy_mode: u32 = unsafe { ::std::mem::transmute(va_copy_mode) };
4618			va_copy_mode as u64
4619		});
4620		__bindgen_bitfield_unit.set(6usize, 26u8, {
4621			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
4622			reserved as u64
4623		});
4624		__bindgen_bitfield_unit
4625	}
4626}
4627impl Default for _VACopyOption {
4628	fn default() -> Self {
4629		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
4630		unsafe {
4631			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
4632			s.assume_init()
4633		}
4634	}
4635}
4636pub type VACopyOption = _VACopyOption;
4637#[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"]
4638#[repr(C)]
4639#[derive(Copy, Clone)]
4640pub struct _VAPictureParameterBufferHEVC {
4641	#[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."]
4642	pub CurrPic: VAPictureHEVC,
4643	#[doc = " \\brief buffer description of reference frames in DPB"]
4644	pub ReferenceFrames: [VAPictureHEVC; 15usize],
4645	#[doc = " \\brief picture width, shall be integer multiple of minimum CB size."]
4646	pub pic_width_in_luma_samples: u16,
4647	#[doc = " \\brief picture height, shall be integer multiple of minimum CB size."]
4648	pub pic_height_in_luma_samples: u16,
4649	pub pic_fields: _VAPictureParameterBufferHEVC__bindgen_ty_1,
4650	#[doc = " following parameters have same syntax with those in HEVC spec */\n/** \\brief DPB size for current temporal layer"]
4651	pub sps_max_dec_pic_buffering_minus1: u8,
4652	pub bit_depth_luma_minus8: u8,
4653	pub bit_depth_chroma_minus8: u8,
4654	pub pcm_sample_bit_depth_luma_minus1: u8,
4655	pub pcm_sample_bit_depth_chroma_minus1: u8,
4656	pub log2_min_luma_coding_block_size_minus3: u8,
4657	pub log2_diff_max_min_luma_coding_block_size: u8,
4658	pub log2_min_transform_block_size_minus2: u8,
4659	pub log2_diff_max_min_transform_block_size: u8,
4660	pub log2_min_pcm_luma_coding_block_size_minus3: u8,
4661	pub log2_diff_max_min_pcm_luma_coding_block_size: u8,
4662	pub max_transform_hierarchy_depth_intra: u8,
4663	pub max_transform_hierarchy_depth_inter: u8,
4664	pub init_qp_minus26: i8,
4665	pub diff_cu_qp_delta_depth: u8,
4666	pub pps_cb_qp_offset: i8,
4667	pub pps_cr_qp_offset: i8,
4668	pub log2_parallel_merge_level_minus2: u8,
4669	pub num_tile_columns_minus1: u8,
4670	pub num_tile_rows_minus1: u8,
4671	#[doc = " when uniform_spacing_flag equals 1, application should populate\n column_width_minus[], and row_height_minus1[] with approperiate values."]
4672	pub column_width_minus1: [u16; 19usize],
4673	pub row_height_minus1: [u16; 21usize],
4674	pub slice_parsing_fields: _VAPictureParameterBufferHEVC__bindgen_ty_2,
4675	#[doc = " following parameters have same syntax with those in HEVC spec"]
4676	pub log2_max_pic_order_cnt_lsb_minus4: u8,
4677	pub num_short_term_ref_pic_sets: u8,
4678	pub num_long_term_ref_pic_sps: u8,
4679	pub num_ref_idx_l0_default_active_minus1: u8,
4680	pub num_ref_idx_l1_default_active_minus1: u8,
4681	pub pps_beta_offset_div2: i8,
4682	pub pps_tc_offset_div2: i8,
4683	pub num_extra_slice_header_bits: u8,
4684	#[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."]
4685	pub st_rps_bits: u32,
4686	#[doc = " \\brief Reserved bytes for future use, must be zero"]
4687	pub va_reserved: [u32; 8usize],
4688}
4689#[repr(C)]
4690#[derive(Copy, Clone)]
4691pub union _VAPictureParameterBufferHEVC__bindgen_ty_1 {
4692	pub bits: _VAPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
4693	pub value: u32,
4694}
4695#[repr(C)]
4696#[repr(align(4))]
4697#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
4698pub struct _VAPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
4699	pub _bitfield_align_1: [u16; 0],
4700	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
4701}
4702impl _VAPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
4703	#[inline]
4704	pub fn chroma_format_idc(&self) -> u32 {
4705		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
4706	}
4707	#[inline]
4708	pub fn set_chroma_format_idc(&mut self, val: u32) {
4709		unsafe {
4710			let val: u32 = ::std::mem::transmute(val);
4711			self._bitfield_1.set(0usize, 2u8, val as u64)
4712		}
4713	}
4714	#[inline]
4715	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
4716		unsafe {
4717			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4718				::std::ptr::addr_of!((*this)._bitfield_1),
4719				0usize,
4720				2u8,
4721			) as u32)
4722		}
4723	}
4724	#[inline]
4725	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
4726		unsafe {
4727			let val: u32 = ::std::mem::transmute(val);
4728			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4729				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4730				0usize,
4731				2u8,
4732				val as u64,
4733			)
4734		}
4735	}
4736	#[inline]
4737	pub fn separate_colour_plane_flag(&self) -> u32 {
4738		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
4739	}
4740	#[inline]
4741	pub fn set_separate_colour_plane_flag(&mut self, val: u32) {
4742		unsafe {
4743			let val: u32 = ::std::mem::transmute(val);
4744			self._bitfield_1.set(2usize, 1u8, val as u64)
4745		}
4746	}
4747	#[inline]
4748	pub unsafe fn separate_colour_plane_flag_raw(this: *const Self) -> u32 {
4749		unsafe {
4750			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4751				::std::ptr::addr_of!((*this)._bitfield_1),
4752				2usize,
4753				1u8,
4754			) as u32)
4755		}
4756	}
4757	#[inline]
4758	pub unsafe fn set_separate_colour_plane_flag_raw(this: *mut Self, val: u32) {
4759		unsafe {
4760			let val: u32 = ::std::mem::transmute(val);
4761			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4762				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4763				2usize,
4764				1u8,
4765				val as u64,
4766			)
4767		}
4768	}
4769	#[inline]
4770	pub fn pcm_enabled_flag(&self) -> u32 {
4771		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
4772	}
4773	#[inline]
4774	pub fn set_pcm_enabled_flag(&mut self, val: u32) {
4775		unsafe {
4776			let val: u32 = ::std::mem::transmute(val);
4777			self._bitfield_1.set(3usize, 1u8, val as u64)
4778		}
4779	}
4780	#[inline]
4781	pub unsafe fn pcm_enabled_flag_raw(this: *const Self) -> u32 {
4782		unsafe {
4783			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4784				::std::ptr::addr_of!((*this)._bitfield_1),
4785				3usize,
4786				1u8,
4787			) as u32)
4788		}
4789	}
4790	#[inline]
4791	pub unsafe fn set_pcm_enabled_flag_raw(this: *mut Self, val: u32) {
4792		unsafe {
4793			let val: u32 = ::std::mem::transmute(val);
4794			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4795				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4796				3usize,
4797				1u8,
4798				val as u64,
4799			)
4800		}
4801	}
4802	#[inline]
4803	pub fn scaling_list_enabled_flag(&self) -> u32 {
4804		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
4805	}
4806	#[inline]
4807	pub fn set_scaling_list_enabled_flag(&mut self, val: u32) {
4808		unsafe {
4809			let val: u32 = ::std::mem::transmute(val);
4810			self._bitfield_1.set(4usize, 1u8, val as u64)
4811		}
4812	}
4813	#[inline]
4814	pub unsafe fn scaling_list_enabled_flag_raw(this: *const Self) -> u32 {
4815		unsafe {
4816			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4817				::std::ptr::addr_of!((*this)._bitfield_1),
4818				4usize,
4819				1u8,
4820			) as u32)
4821		}
4822	}
4823	#[inline]
4824	pub unsafe fn set_scaling_list_enabled_flag_raw(this: *mut Self, val: u32) {
4825		unsafe {
4826			let val: u32 = ::std::mem::transmute(val);
4827			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4828				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4829				4usize,
4830				1u8,
4831				val as u64,
4832			)
4833		}
4834	}
4835	#[inline]
4836	pub fn transform_skip_enabled_flag(&self) -> u32 {
4837		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
4838	}
4839	#[inline]
4840	pub fn set_transform_skip_enabled_flag(&mut self, val: u32) {
4841		unsafe {
4842			let val: u32 = ::std::mem::transmute(val);
4843			self._bitfield_1.set(5usize, 1u8, val as u64)
4844		}
4845	}
4846	#[inline]
4847	pub unsafe fn transform_skip_enabled_flag_raw(this: *const Self) -> u32 {
4848		unsafe {
4849			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4850				::std::ptr::addr_of!((*this)._bitfield_1),
4851				5usize,
4852				1u8,
4853			) as u32)
4854		}
4855	}
4856	#[inline]
4857	pub unsafe fn set_transform_skip_enabled_flag_raw(this: *mut Self, val: u32) {
4858		unsafe {
4859			let val: u32 = ::std::mem::transmute(val);
4860			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4861				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4862				5usize,
4863				1u8,
4864				val as u64,
4865			)
4866		}
4867	}
4868	#[inline]
4869	pub fn amp_enabled_flag(&self) -> u32 {
4870		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
4871	}
4872	#[inline]
4873	pub fn set_amp_enabled_flag(&mut self, val: u32) {
4874		unsafe {
4875			let val: u32 = ::std::mem::transmute(val);
4876			self._bitfield_1.set(6usize, 1u8, val as u64)
4877		}
4878	}
4879	#[inline]
4880	pub unsafe fn amp_enabled_flag_raw(this: *const Self) -> u32 {
4881		unsafe {
4882			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4883				::std::ptr::addr_of!((*this)._bitfield_1),
4884				6usize,
4885				1u8,
4886			) as u32)
4887		}
4888	}
4889	#[inline]
4890	pub unsafe fn set_amp_enabled_flag_raw(this: *mut Self, val: u32) {
4891		unsafe {
4892			let val: u32 = ::std::mem::transmute(val);
4893			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4894				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4895				6usize,
4896				1u8,
4897				val as u64,
4898			)
4899		}
4900	}
4901	#[inline]
4902	pub fn strong_intra_smoothing_enabled_flag(&self) -> u32 {
4903		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
4904	}
4905	#[inline]
4906	pub fn set_strong_intra_smoothing_enabled_flag(&mut self, val: u32) {
4907		unsafe {
4908			let val: u32 = ::std::mem::transmute(val);
4909			self._bitfield_1.set(7usize, 1u8, val as u64)
4910		}
4911	}
4912	#[inline]
4913	pub unsafe fn strong_intra_smoothing_enabled_flag_raw(this: *const Self) -> u32 {
4914		unsafe {
4915			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4916				::std::ptr::addr_of!((*this)._bitfield_1),
4917				7usize,
4918				1u8,
4919			) as u32)
4920		}
4921	}
4922	#[inline]
4923	pub unsafe fn set_strong_intra_smoothing_enabled_flag_raw(this: *mut Self, val: u32) {
4924		unsafe {
4925			let val: u32 = ::std::mem::transmute(val);
4926			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4927				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4928				7usize,
4929				1u8,
4930				val as u64,
4931			)
4932		}
4933	}
4934	#[inline]
4935	pub fn sign_data_hiding_enabled_flag(&self) -> u32 {
4936		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
4937	}
4938	#[inline]
4939	pub fn set_sign_data_hiding_enabled_flag(&mut self, val: u32) {
4940		unsafe {
4941			let val: u32 = ::std::mem::transmute(val);
4942			self._bitfield_1.set(8usize, 1u8, val as u64)
4943		}
4944	}
4945	#[inline]
4946	pub unsafe fn sign_data_hiding_enabled_flag_raw(this: *const Self) -> u32 {
4947		unsafe {
4948			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4949				::std::ptr::addr_of!((*this)._bitfield_1),
4950				8usize,
4951				1u8,
4952			) as u32)
4953		}
4954	}
4955	#[inline]
4956	pub unsafe fn set_sign_data_hiding_enabled_flag_raw(this: *mut Self, val: u32) {
4957		unsafe {
4958			let val: u32 = ::std::mem::transmute(val);
4959			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4960				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4961				8usize,
4962				1u8,
4963				val as u64,
4964			)
4965		}
4966	}
4967	#[inline]
4968	pub fn constrained_intra_pred_flag(&self) -> u32 {
4969		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
4970	}
4971	#[inline]
4972	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
4973		unsafe {
4974			let val: u32 = ::std::mem::transmute(val);
4975			self._bitfield_1.set(9usize, 1u8, val as u64)
4976		}
4977	}
4978	#[inline]
4979	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
4980		unsafe {
4981			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
4982				::std::ptr::addr_of!((*this)._bitfield_1),
4983				9usize,
4984				1u8,
4985			) as u32)
4986		}
4987	}
4988	#[inline]
4989	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
4990		unsafe {
4991			let val: u32 = ::std::mem::transmute(val);
4992			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
4993				::std::ptr::addr_of_mut!((*this)._bitfield_1),
4994				9usize,
4995				1u8,
4996				val as u64,
4997			)
4998		}
4999	}
5000	#[inline]
5001	pub fn cu_qp_delta_enabled_flag(&self) -> u32 {
5002		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
5003	}
5004	#[inline]
5005	pub fn set_cu_qp_delta_enabled_flag(&mut self, val: u32) {
5006		unsafe {
5007			let val: u32 = ::std::mem::transmute(val);
5008			self._bitfield_1.set(10usize, 1u8, val as u64)
5009		}
5010	}
5011	#[inline]
5012	pub unsafe fn cu_qp_delta_enabled_flag_raw(this: *const Self) -> u32 {
5013		unsafe {
5014			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5015				::std::ptr::addr_of!((*this)._bitfield_1),
5016				10usize,
5017				1u8,
5018			) as u32)
5019		}
5020	}
5021	#[inline]
5022	pub unsafe fn set_cu_qp_delta_enabled_flag_raw(this: *mut Self, val: u32) {
5023		unsafe {
5024			let val: u32 = ::std::mem::transmute(val);
5025			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5026				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5027				10usize,
5028				1u8,
5029				val as u64,
5030			)
5031		}
5032	}
5033	#[inline]
5034	pub fn weighted_pred_flag(&self) -> u32 {
5035		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
5036	}
5037	#[inline]
5038	pub fn set_weighted_pred_flag(&mut self, val: u32) {
5039		unsafe {
5040			let val: u32 = ::std::mem::transmute(val);
5041			self._bitfield_1.set(11usize, 1u8, val as u64)
5042		}
5043	}
5044	#[inline]
5045	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
5046		unsafe {
5047			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5048				::std::ptr::addr_of!((*this)._bitfield_1),
5049				11usize,
5050				1u8,
5051			) as u32)
5052		}
5053	}
5054	#[inline]
5055	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
5056		unsafe {
5057			let val: u32 = ::std::mem::transmute(val);
5058			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5059				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5060				11usize,
5061				1u8,
5062				val as u64,
5063			)
5064		}
5065	}
5066	#[inline]
5067	pub fn weighted_bipred_flag(&self) -> u32 {
5068		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
5069	}
5070	#[inline]
5071	pub fn set_weighted_bipred_flag(&mut self, val: u32) {
5072		unsafe {
5073			let val: u32 = ::std::mem::transmute(val);
5074			self._bitfield_1.set(12usize, 1u8, val as u64)
5075		}
5076	}
5077	#[inline]
5078	pub unsafe fn weighted_bipred_flag_raw(this: *const Self) -> u32 {
5079		unsafe {
5080			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5081				::std::ptr::addr_of!((*this)._bitfield_1),
5082				12usize,
5083				1u8,
5084			) as u32)
5085		}
5086	}
5087	#[inline]
5088	pub unsafe fn set_weighted_bipred_flag_raw(this: *mut Self, val: u32) {
5089		unsafe {
5090			let val: u32 = ::std::mem::transmute(val);
5091			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5092				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5093				12usize,
5094				1u8,
5095				val as u64,
5096			)
5097		}
5098	}
5099	#[inline]
5100	pub fn transquant_bypass_enabled_flag(&self) -> u32 {
5101		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
5102	}
5103	#[inline]
5104	pub fn set_transquant_bypass_enabled_flag(&mut self, val: u32) {
5105		unsafe {
5106			let val: u32 = ::std::mem::transmute(val);
5107			self._bitfield_1.set(13usize, 1u8, val as u64)
5108		}
5109	}
5110	#[inline]
5111	pub unsafe fn transquant_bypass_enabled_flag_raw(this: *const Self) -> u32 {
5112		unsafe {
5113			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5114				::std::ptr::addr_of!((*this)._bitfield_1),
5115				13usize,
5116				1u8,
5117			) as u32)
5118		}
5119	}
5120	#[inline]
5121	pub unsafe fn set_transquant_bypass_enabled_flag_raw(this: *mut Self, val: u32) {
5122		unsafe {
5123			let val: u32 = ::std::mem::transmute(val);
5124			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5125				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5126				13usize,
5127				1u8,
5128				val as u64,
5129			)
5130		}
5131	}
5132	#[inline]
5133	pub fn tiles_enabled_flag(&self) -> u32 {
5134		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
5135	}
5136	#[inline]
5137	pub fn set_tiles_enabled_flag(&mut self, val: u32) {
5138		unsafe {
5139			let val: u32 = ::std::mem::transmute(val);
5140			self._bitfield_1.set(14usize, 1u8, val as u64)
5141		}
5142	}
5143	#[inline]
5144	pub unsafe fn tiles_enabled_flag_raw(this: *const Self) -> u32 {
5145		unsafe {
5146			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5147				::std::ptr::addr_of!((*this)._bitfield_1),
5148				14usize,
5149				1u8,
5150			) as u32)
5151		}
5152	}
5153	#[inline]
5154	pub unsafe fn set_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
5155		unsafe {
5156			let val: u32 = ::std::mem::transmute(val);
5157			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5158				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5159				14usize,
5160				1u8,
5161				val as u64,
5162			)
5163		}
5164	}
5165	#[inline]
5166	pub fn entropy_coding_sync_enabled_flag(&self) -> u32 {
5167		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
5168	}
5169	#[inline]
5170	pub fn set_entropy_coding_sync_enabled_flag(&mut self, val: u32) {
5171		unsafe {
5172			let val: u32 = ::std::mem::transmute(val);
5173			self._bitfield_1.set(15usize, 1u8, val as u64)
5174		}
5175	}
5176	#[inline]
5177	pub unsafe fn entropy_coding_sync_enabled_flag_raw(this: *const Self) -> u32 {
5178		unsafe {
5179			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5180				::std::ptr::addr_of!((*this)._bitfield_1),
5181				15usize,
5182				1u8,
5183			) as u32)
5184		}
5185	}
5186	#[inline]
5187	pub unsafe fn set_entropy_coding_sync_enabled_flag_raw(this: *mut Self, val: u32) {
5188		unsafe {
5189			let val: u32 = ::std::mem::transmute(val);
5190			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5191				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5192				15usize,
5193				1u8,
5194				val as u64,
5195			)
5196		}
5197	}
5198	#[inline]
5199	pub fn pps_loop_filter_across_slices_enabled_flag(&self) -> u32 {
5200		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
5201	}
5202	#[inline]
5203	pub fn set_pps_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
5204		unsafe {
5205			let val: u32 = ::std::mem::transmute(val);
5206			self._bitfield_1.set(16usize, 1u8, val as u64)
5207		}
5208	}
5209	#[inline]
5210	pub unsafe fn pps_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
5211		unsafe {
5212			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5213				::std::ptr::addr_of!((*this)._bitfield_1),
5214				16usize,
5215				1u8,
5216			) as u32)
5217		}
5218	}
5219	#[inline]
5220	pub unsafe fn set_pps_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
5221		unsafe {
5222			let val: u32 = ::std::mem::transmute(val);
5223			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5224				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5225				16usize,
5226				1u8,
5227				val as u64,
5228			)
5229		}
5230	}
5231	#[inline]
5232	pub fn loop_filter_across_tiles_enabled_flag(&self) -> u32 {
5233		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
5234	}
5235	#[inline]
5236	pub fn set_loop_filter_across_tiles_enabled_flag(&mut self, val: u32) {
5237		unsafe {
5238			let val: u32 = ::std::mem::transmute(val);
5239			self._bitfield_1.set(17usize, 1u8, val as u64)
5240		}
5241	}
5242	#[inline]
5243	pub unsafe fn loop_filter_across_tiles_enabled_flag_raw(this: *const Self) -> u32 {
5244		unsafe {
5245			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5246				::std::ptr::addr_of!((*this)._bitfield_1),
5247				17usize,
5248				1u8,
5249			) as u32)
5250		}
5251	}
5252	#[inline]
5253	pub unsafe fn set_loop_filter_across_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
5254		unsafe {
5255			let val: u32 = ::std::mem::transmute(val);
5256			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5257				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5258				17usize,
5259				1u8,
5260				val as u64,
5261			)
5262		}
5263	}
5264	#[inline]
5265	pub fn pcm_loop_filter_disabled_flag(&self) -> u32 {
5266		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
5267	}
5268	#[inline]
5269	pub fn set_pcm_loop_filter_disabled_flag(&mut self, val: u32) {
5270		unsafe {
5271			let val: u32 = ::std::mem::transmute(val);
5272			self._bitfield_1.set(18usize, 1u8, val as u64)
5273		}
5274	}
5275	#[inline]
5276	pub unsafe fn pcm_loop_filter_disabled_flag_raw(this: *const Self) -> u32 {
5277		unsafe {
5278			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5279				::std::ptr::addr_of!((*this)._bitfield_1),
5280				18usize,
5281				1u8,
5282			) as u32)
5283		}
5284	}
5285	#[inline]
5286	pub unsafe fn set_pcm_loop_filter_disabled_flag_raw(this: *mut Self, val: u32) {
5287		unsafe {
5288			let val: u32 = ::std::mem::transmute(val);
5289			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5290				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5291				18usize,
5292				1u8,
5293				val as u64,
5294			)
5295		}
5296	}
5297	#[inline]
5298	pub fn NoPicReorderingFlag(&self) -> u32 {
5299		unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) }
5300	}
5301	#[inline]
5302	pub fn set_NoPicReorderingFlag(&mut self, val: u32) {
5303		unsafe {
5304			let val: u32 = ::std::mem::transmute(val);
5305			self._bitfield_1.set(19usize, 1u8, val as u64)
5306		}
5307	}
5308	#[inline]
5309	pub unsafe fn NoPicReorderingFlag_raw(this: *const Self) -> u32 {
5310		unsafe {
5311			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5312				::std::ptr::addr_of!((*this)._bitfield_1),
5313				19usize,
5314				1u8,
5315			) as u32)
5316		}
5317	}
5318	#[inline]
5319	pub unsafe fn set_NoPicReorderingFlag_raw(this: *mut Self, val: u32) {
5320		unsafe {
5321			let val: u32 = ::std::mem::transmute(val);
5322			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5323				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5324				19usize,
5325				1u8,
5326				val as u64,
5327			)
5328		}
5329	}
5330	#[inline]
5331	pub fn NoBiPredFlag(&self) -> u32 {
5332		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) }
5333	}
5334	#[inline]
5335	pub fn set_NoBiPredFlag(&mut self, val: u32) {
5336		unsafe {
5337			let val: u32 = ::std::mem::transmute(val);
5338			self._bitfield_1.set(20usize, 1u8, val as u64)
5339		}
5340	}
5341	#[inline]
5342	pub unsafe fn NoBiPredFlag_raw(this: *const Self) -> u32 {
5343		unsafe {
5344			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5345				::std::ptr::addr_of!((*this)._bitfield_1),
5346				20usize,
5347				1u8,
5348			) as u32)
5349		}
5350	}
5351	#[inline]
5352	pub unsafe fn set_NoBiPredFlag_raw(this: *mut Self, val: u32) {
5353		unsafe {
5354			let val: u32 = ::std::mem::transmute(val);
5355			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5356				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5357				20usize,
5358				1u8,
5359				val as u64,
5360			)
5361		}
5362	}
5363	#[inline]
5364	pub fn ReservedBits(&self) -> u32 {
5365		unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 11u8) as u32) }
5366	}
5367	#[inline]
5368	pub fn set_ReservedBits(&mut self, val: u32) {
5369		unsafe {
5370			let val: u32 = ::std::mem::transmute(val);
5371			self._bitfield_1.set(21usize, 11u8, val as u64)
5372		}
5373	}
5374	#[inline]
5375	pub unsafe fn ReservedBits_raw(this: *const Self) -> u32 {
5376		unsafe {
5377			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5378				::std::ptr::addr_of!((*this)._bitfield_1),
5379				21usize,
5380				11u8,
5381			) as u32)
5382		}
5383	}
5384	#[inline]
5385	pub unsafe fn set_ReservedBits_raw(this: *mut Self, val: u32) {
5386		unsafe {
5387			let val: u32 = ::std::mem::transmute(val);
5388			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5389				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5390				21usize,
5391				11u8,
5392				val as u64,
5393			)
5394		}
5395	}
5396	#[inline]
5397	pub fn new_bitfield_1(
5398		chroma_format_idc: u32,
5399		separate_colour_plane_flag: u32,
5400		pcm_enabled_flag: u32,
5401		scaling_list_enabled_flag: u32,
5402		transform_skip_enabled_flag: u32,
5403		amp_enabled_flag: u32,
5404		strong_intra_smoothing_enabled_flag: u32,
5405		sign_data_hiding_enabled_flag: u32,
5406		constrained_intra_pred_flag: u32,
5407		cu_qp_delta_enabled_flag: u32,
5408		weighted_pred_flag: u32,
5409		weighted_bipred_flag: u32,
5410		transquant_bypass_enabled_flag: u32,
5411		tiles_enabled_flag: u32,
5412		entropy_coding_sync_enabled_flag: u32,
5413		pps_loop_filter_across_slices_enabled_flag: u32,
5414		loop_filter_across_tiles_enabled_flag: u32,
5415		pcm_loop_filter_disabled_flag: u32,
5416		NoPicReorderingFlag: u32,
5417		NoBiPredFlag: u32,
5418		ReservedBits: u32,
5419	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
5420		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
5421		__bindgen_bitfield_unit.set(0usize, 2u8, {
5422			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
5423			chroma_format_idc as u64
5424		});
5425		__bindgen_bitfield_unit.set(2usize, 1u8, {
5426			let separate_colour_plane_flag: u32 = unsafe { ::std::mem::transmute(separate_colour_plane_flag) };
5427			separate_colour_plane_flag as u64
5428		});
5429		__bindgen_bitfield_unit.set(3usize, 1u8, {
5430			let pcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_enabled_flag) };
5431			pcm_enabled_flag as u64
5432		});
5433		__bindgen_bitfield_unit.set(4usize, 1u8, {
5434			let scaling_list_enabled_flag: u32 = unsafe { ::std::mem::transmute(scaling_list_enabled_flag) };
5435			scaling_list_enabled_flag as u64
5436		});
5437		__bindgen_bitfield_unit.set(5usize, 1u8, {
5438			let transform_skip_enabled_flag: u32 = unsafe { ::std::mem::transmute(transform_skip_enabled_flag) };
5439			transform_skip_enabled_flag as u64
5440		});
5441		__bindgen_bitfield_unit.set(6usize, 1u8, {
5442			let amp_enabled_flag: u32 = unsafe { ::std::mem::transmute(amp_enabled_flag) };
5443			amp_enabled_flag as u64
5444		});
5445		__bindgen_bitfield_unit.set(7usize, 1u8, {
5446			let strong_intra_smoothing_enabled_flag: u32 =
5447				unsafe { ::std::mem::transmute(strong_intra_smoothing_enabled_flag) };
5448			strong_intra_smoothing_enabled_flag as u64
5449		});
5450		__bindgen_bitfield_unit.set(8usize, 1u8, {
5451			let sign_data_hiding_enabled_flag: u32 = unsafe { ::std::mem::transmute(sign_data_hiding_enabled_flag) };
5452			sign_data_hiding_enabled_flag as u64
5453		});
5454		__bindgen_bitfield_unit.set(9usize, 1u8, {
5455			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
5456			constrained_intra_pred_flag as u64
5457		});
5458		__bindgen_bitfield_unit.set(10usize, 1u8, {
5459			let cu_qp_delta_enabled_flag: u32 = unsafe { ::std::mem::transmute(cu_qp_delta_enabled_flag) };
5460			cu_qp_delta_enabled_flag as u64
5461		});
5462		__bindgen_bitfield_unit.set(11usize, 1u8, {
5463			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
5464			weighted_pred_flag as u64
5465		});
5466		__bindgen_bitfield_unit.set(12usize, 1u8, {
5467			let weighted_bipred_flag: u32 = unsafe { ::std::mem::transmute(weighted_bipred_flag) };
5468			weighted_bipred_flag as u64
5469		});
5470		__bindgen_bitfield_unit.set(13usize, 1u8, {
5471			let transquant_bypass_enabled_flag: u32 = unsafe { ::std::mem::transmute(transquant_bypass_enabled_flag) };
5472			transquant_bypass_enabled_flag as u64
5473		});
5474		__bindgen_bitfield_unit.set(14usize, 1u8, {
5475			let tiles_enabled_flag: u32 = unsafe { ::std::mem::transmute(tiles_enabled_flag) };
5476			tiles_enabled_flag as u64
5477		});
5478		__bindgen_bitfield_unit.set(15usize, 1u8, {
5479			let entropy_coding_sync_enabled_flag: u32 =
5480				unsafe { ::std::mem::transmute(entropy_coding_sync_enabled_flag) };
5481			entropy_coding_sync_enabled_flag as u64
5482		});
5483		__bindgen_bitfield_unit.set(16usize, 1u8, {
5484			let pps_loop_filter_across_slices_enabled_flag: u32 =
5485				unsafe { ::std::mem::transmute(pps_loop_filter_across_slices_enabled_flag) };
5486			pps_loop_filter_across_slices_enabled_flag as u64
5487		});
5488		__bindgen_bitfield_unit.set(17usize, 1u8, {
5489			let loop_filter_across_tiles_enabled_flag: u32 =
5490				unsafe { ::std::mem::transmute(loop_filter_across_tiles_enabled_flag) };
5491			loop_filter_across_tiles_enabled_flag as u64
5492		});
5493		__bindgen_bitfield_unit.set(18usize, 1u8, {
5494			let pcm_loop_filter_disabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_loop_filter_disabled_flag) };
5495			pcm_loop_filter_disabled_flag as u64
5496		});
5497		__bindgen_bitfield_unit.set(19usize, 1u8, {
5498			let NoPicReorderingFlag: u32 = unsafe { ::std::mem::transmute(NoPicReorderingFlag) };
5499			NoPicReorderingFlag as u64
5500		});
5501		__bindgen_bitfield_unit.set(20usize, 1u8, {
5502			let NoBiPredFlag: u32 = unsafe { ::std::mem::transmute(NoBiPredFlag) };
5503			NoBiPredFlag as u64
5504		});
5505		__bindgen_bitfield_unit.set(21usize, 11u8, {
5506			let ReservedBits: u32 = unsafe { ::std::mem::transmute(ReservedBits) };
5507			ReservedBits as u64
5508		});
5509		__bindgen_bitfield_unit
5510	}
5511}
5512impl Default for _VAPictureParameterBufferHEVC__bindgen_ty_1 {
5513	fn default() -> Self {
5514		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
5515		unsafe {
5516			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
5517			s.assume_init()
5518		}
5519	}
5520}
5521#[doc = " \\brief Parameters needed for parsing slice segment headers"]
5522#[repr(C)]
5523#[derive(Copy, Clone)]
5524pub union _VAPictureParameterBufferHEVC__bindgen_ty_2 {
5525	pub bits: _VAPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1,
5526	pub value: u32,
5527}
5528#[repr(C)]
5529#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
5530pub struct _VAPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
5531	pub _bitfield_align_1: [u32; 0],
5532	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
5533}
5534impl _VAPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
5535	#[inline]
5536	pub fn lists_modification_present_flag(&self) -> u32 {
5537		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
5538	}
5539	#[inline]
5540	pub fn set_lists_modification_present_flag(&mut self, val: u32) {
5541		unsafe {
5542			let val: u32 = ::std::mem::transmute(val);
5543			self._bitfield_1.set(0usize, 1u8, val as u64)
5544		}
5545	}
5546	#[inline]
5547	pub unsafe fn lists_modification_present_flag_raw(this: *const Self) -> u32 {
5548		unsafe {
5549			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5550				::std::ptr::addr_of!((*this)._bitfield_1),
5551				0usize,
5552				1u8,
5553			) as u32)
5554		}
5555	}
5556	#[inline]
5557	pub unsafe fn set_lists_modification_present_flag_raw(this: *mut Self, val: u32) {
5558		unsafe {
5559			let val: u32 = ::std::mem::transmute(val);
5560			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5561				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5562				0usize,
5563				1u8,
5564				val as u64,
5565			)
5566		}
5567	}
5568	#[inline]
5569	pub fn long_term_ref_pics_present_flag(&self) -> u32 {
5570		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
5571	}
5572	#[inline]
5573	pub fn set_long_term_ref_pics_present_flag(&mut self, val: u32) {
5574		unsafe {
5575			let val: u32 = ::std::mem::transmute(val);
5576			self._bitfield_1.set(1usize, 1u8, val as u64)
5577		}
5578	}
5579	#[inline]
5580	pub unsafe fn long_term_ref_pics_present_flag_raw(this: *const Self) -> u32 {
5581		unsafe {
5582			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5583				::std::ptr::addr_of!((*this)._bitfield_1),
5584				1usize,
5585				1u8,
5586			) as u32)
5587		}
5588	}
5589	#[inline]
5590	pub unsafe fn set_long_term_ref_pics_present_flag_raw(this: *mut Self, val: u32) {
5591		unsafe {
5592			let val: u32 = ::std::mem::transmute(val);
5593			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5594				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5595				1usize,
5596				1u8,
5597				val as u64,
5598			)
5599		}
5600	}
5601	#[inline]
5602	pub fn sps_temporal_mvp_enabled_flag(&self) -> u32 {
5603		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
5604	}
5605	#[inline]
5606	pub fn set_sps_temporal_mvp_enabled_flag(&mut self, val: u32) {
5607		unsafe {
5608			let val: u32 = ::std::mem::transmute(val);
5609			self._bitfield_1.set(2usize, 1u8, val as u64)
5610		}
5611	}
5612	#[inline]
5613	pub unsafe fn sps_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
5614		unsafe {
5615			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5616				::std::ptr::addr_of!((*this)._bitfield_1),
5617				2usize,
5618				1u8,
5619			) as u32)
5620		}
5621	}
5622	#[inline]
5623	pub unsafe fn set_sps_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
5624		unsafe {
5625			let val: u32 = ::std::mem::transmute(val);
5626			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5627				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5628				2usize,
5629				1u8,
5630				val as u64,
5631			)
5632		}
5633	}
5634	#[inline]
5635	pub fn cabac_init_present_flag(&self) -> u32 {
5636		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
5637	}
5638	#[inline]
5639	pub fn set_cabac_init_present_flag(&mut self, val: u32) {
5640		unsafe {
5641			let val: u32 = ::std::mem::transmute(val);
5642			self._bitfield_1.set(3usize, 1u8, val as u64)
5643		}
5644	}
5645	#[inline]
5646	pub unsafe fn cabac_init_present_flag_raw(this: *const Self) -> u32 {
5647		unsafe {
5648			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5649				::std::ptr::addr_of!((*this)._bitfield_1),
5650				3usize,
5651				1u8,
5652			) as u32)
5653		}
5654	}
5655	#[inline]
5656	pub unsafe fn set_cabac_init_present_flag_raw(this: *mut Self, val: u32) {
5657		unsafe {
5658			let val: u32 = ::std::mem::transmute(val);
5659			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5660				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5661				3usize,
5662				1u8,
5663				val as u64,
5664			)
5665		}
5666	}
5667	#[inline]
5668	pub fn output_flag_present_flag(&self) -> u32 {
5669		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
5670	}
5671	#[inline]
5672	pub fn set_output_flag_present_flag(&mut self, val: u32) {
5673		unsafe {
5674			let val: u32 = ::std::mem::transmute(val);
5675			self._bitfield_1.set(4usize, 1u8, val as u64)
5676		}
5677	}
5678	#[inline]
5679	pub unsafe fn output_flag_present_flag_raw(this: *const Self) -> u32 {
5680		unsafe {
5681			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5682				::std::ptr::addr_of!((*this)._bitfield_1),
5683				4usize,
5684				1u8,
5685			) as u32)
5686		}
5687	}
5688	#[inline]
5689	pub unsafe fn set_output_flag_present_flag_raw(this: *mut Self, val: u32) {
5690		unsafe {
5691			let val: u32 = ::std::mem::transmute(val);
5692			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5693				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5694				4usize,
5695				1u8,
5696				val as u64,
5697			)
5698		}
5699	}
5700	#[inline]
5701	pub fn dependent_slice_segments_enabled_flag(&self) -> u32 {
5702		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
5703	}
5704	#[inline]
5705	pub fn set_dependent_slice_segments_enabled_flag(&mut self, val: u32) {
5706		unsafe {
5707			let val: u32 = ::std::mem::transmute(val);
5708			self._bitfield_1.set(5usize, 1u8, val as u64)
5709		}
5710	}
5711	#[inline]
5712	pub unsafe fn dependent_slice_segments_enabled_flag_raw(this: *const Self) -> u32 {
5713		unsafe {
5714			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5715				::std::ptr::addr_of!((*this)._bitfield_1),
5716				5usize,
5717				1u8,
5718			) as u32)
5719		}
5720	}
5721	#[inline]
5722	pub unsafe fn set_dependent_slice_segments_enabled_flag_raw(this: *mut Self, val: u32) {
5723		unsafe {
5724			let val: u32 = ::std::mem::transmute(val);
5725			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5726				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5727				5usize,
5728				1u8,
5729				val as u64,
5730			)
5731		}
5732	}
5733	#[inline]
5734	pub fn pps_slice_chroma_qp_offsets_present_flag(&self) -> u32 {
5735		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
5736	}
5737	#[inline]
5738	pub fn set_pps_slice_chroma_qp_offsets_present_flag(&mut self, val: u32) {
5739		unsafe {
5740			let val: u32 = ::std::mem::transmute(val);
5741			self._bitfield_1.set(6usize, 1u8, val as u64)
5742		}
5743	}
5744	#[inline]
5745	pub unsafe fn pps_slice_chroma_qp_offsets_present_flag_raw(this: *const Self) -> u32 {
5746		unsafe {
5747			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5748				::std::ptr::addr_of!((*this)._bitfield_1),
5749				6usize,
5750				1u8,
5751			) as u32)
5752		}
5753	}
5754	#[inline]
5755	pub unsafe fn set_pps_slice_chroma_qp_offsets_present_flag_raw(this: *mut Self, val: u32) {
5756		unsafe {
5757			let val: u32 = ::std::mem::transmute(val);
5758			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5759				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5760				6usize,
5761				1u8,
5762				val as u64,
5763			)
5764		}
5765	}
5766	#[inline]
5767	pub fn sample_adaptive_offset_enabled_flag(&self) -> u32 {
5768		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
5769	}
5770	#[inline]
5771	pub fn set_sample_adaptive_offset_enabled_flag(&mut self, val: u32) {
5772		unsafe {
5773			let val: u32 = ::std::mem::transmute(val);
5774			self._bitfield_1.set(7usize, 1u8, val as u64)
5775		}
5776	}
5777	#[inline]
5778	pub unsafe fn sample_adaptive_offset_enabled_flag_raw(this: *const Self) -> u32 {
5779		unsafe {
5780			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5781				::std::ptr::addr_of!((*this)._bitfield_1),
5782				7usize,
5783				1u8,
5784			) as u32)
5785		}
5786	}
5787	#[inline]
5788	pub unsafe fn set_sample_adaptive_offset_enabled_flag_raw(this: *mut Self, val: u32) {
5789		unsafe {
5790			let val: u32 = ::std::mem::transmute(val);
5791			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5792				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5793				7usize,
5794				1u8,
5795				val as u64,
5796			)
5797		}
5798	}
5799	#[inline]
5800	pub fn deblocking_filter_override_enabled_flag(&self) -> u32 {
5801		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
5802	}
5803	#[inline]
5804	pub fn set_deblocking_filter_override_enabled_flag(&mut self, val: u32) {
5805		unsafe {
5806			let val: u32 = ::std::mem::transmute(val);
5807			self._bitfield_1.set(8usize, 1u8, val as u64)
5808		}
5809	}
5810	#[inline]
5811	pub unsafe fn deblocking_filter_override_enabled_flag_raw(this: *const Self) -> u32 {
5812		unsafe {
5813			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5814				::std::ptr::addr_of!((*this)._bitfield_1),
5815				8usize,
5816				1u8,
5817			) as u32)
5818		}
5819	}
5820	#[inline]
5821	pub unsafe fn set_deblocking_filter_override_enabled_flag_raw(this: *mut Self, val: u32) {
5822		unsafe {
5823			let val: u32 = ::std::mem::transmute(val);
5824			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5825				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5826				8usize,
5827				1u8,
5828				val as u64,
5829			)
5830		}
5831	}
5832	#[inline]
5833	pub fn pps_disable_deblocking_filter_flag(&self) -> u32 {
5834		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
5835	}
5836	#[inline]
5837	pub fn set_pps_disable_deblocking_filter_flag(&mut self, val: u32) {
5838		unsafe {
5839			let val: u32 = ::std::mem::transmute(val);
5840			self._bitfield_1.set(9usize, 1u8, val as u64)
5841		}
5842	}
5843	#[inline]
5844	pub unsafe fn pps_disable_deblocking_filter_flag_raw(this: *const Self) -> u32 {
5845		unsafe {
5846			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5847				::std::ptr::addr_of!((*this)._bitfield_1),
5848				9usize,
5849				1u8,
5850			) as u32)
5851		}
5852	}
5853	#[inline]
5854	pub unsafe fn set_pps_disable_deblocking_filter_flag_raw(this: *mut Self, val: u32) {
5855		unsafe {
5856			let val: u32 = ::std::mem::transmute(val);
5857			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5858				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5859				9usize,
5860				1u8,
5861				val as u64,
5862			)
5863		}
5864	}
5865	#[inline]
5866	pub fn slice_segment_header_extension_present_flag(&self) -> u32 {
5867		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
5868	}
5869	#[inline]
5870	pub fn set_slice_segment_header_extension_present_flag(&mut self, val: u32) {
5871		unsafe {
5872			let val: u32 = ::std::mem::transmute(val);
5873			self._bitfield_1.set(10usize, 1u8, val as u64)
5874		}
5875	}
5876	#[inline]
5877	pub unsafe fn slice_segment_header_extension_present_flag_raw(this: *const Self) -> u32 {
5878		unsafe {
5879			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5880				::std::ptr::addr_of!((*this)._bitfield_1),
5881				10usize,
5882				1u8,
5883			) as u32)
5884		}
5885	}
5886	#[inline]
5887	pub unsafe fn set_slice_segment_header_extension_present_flag_raw(this: *mut Self, val: u32) {
5888		unsafe {
5889			let val: u32 = ::std::mem::transmute(val);
5890			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5891				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5892				10usize,
5893				1u8,
5894				val as u64,
5895			)
5896		}
5897	}
5898	#[inline]
5899	pub fn RapPicFlag(&self) -> u32 {
5900		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
5901	}
5902	#[inline]
5903	pub fn set_RapPicFlag(&mut self, val: u32) {
5904		unsafe {
5905			let val: u32 = ::std::mem::transmute(val);
5906			self._bitfield_1.set(11usize, 1u8, val as u64)
5907		}
5908	}
5909	#[inline]
5910	pub unsafe fn RapPicFlag_raw(this: *const Self) -> u32 {
5911		unsafe {
5912			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5913				::std::ptr::addr_of!((*this)._bitfield_1),
5914				11usize,
5915				1u8,
5916			) as u32)
5917		}
5918	}
5919	#[inline]
5920	pub unsafe fn set_RapPicFlag_raw(this: *mut Self, val: u32) {
5921		unsafe {
5922			let val: u32 = ::std::mem::transmute(val);
5923			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5924				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5925				11usize,
5926				1u8,
5927				val as u64,
5928			)
5929		}
5930	}
5931	#[inline]
5932	pub fn IdrPicFlag(&self) -> u32 {
5933		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
5934	}
5935	#[inline]
5936	pub fn set_IdrPicFlag(&mut self, val: u32) {
5937		unsafe {
5938			let val: u32 = ::std::mem::transmute(val);
5939			self._bitfield_1.set(12usize, 1u8, val as u64)
5940		}
5941	}
5942	#[inline]
5943	pub unsafe fn IdrPicFlag_raw(this: *const Self) -> u32 {
5944		unsafe {
5945			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5946				::std::ptr::addr_of!((*this)._bitfield_1),
5947				12usize,
5948				1u8,
5949			) as u32)
5950		}
5951	}
5952	#[inline]
5953	pub unsafe fn set_IdrPicFlag_raw(this: *mut Self, val: u32) {
5954		unsafe {
5955			let val: u32 = ::std::mem::transmute(val);
5956			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5957				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5958				12usize,
5959				1u8,
5960				val as u64,
5961			)
5962		}
5963	}
5964	#[inline]
5965	pub fn IntraPicFlag(&self) -> u32 {
5966		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
5967	}
5968	#[inline]
5969	pub fn set_IntraPicFlag(&mut self, val: u32) {
5970		unsafe {
5971			let val: u32 = ::std::mem::transmute(val);
5972			self._bitfield_1.set(13usize, 1u8, val as u64)
5973		}
5974	}
5975	#[inline]
5976	pub unsafe fn IntraPicFlag_raw(this: *const Self) -> u32 {
5977		unsafe {
5978			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
5979				::std::ptr::addr_of!((*this)._bitfield_1),
5980				13usize,
5981				1u8,
5982			) as u32)
5983		}
5984	}
5985	#[inline]
5986	pub unsafe fn set_IntraPicFlag_raw(this: *mut Self, val: u32) {
5987		unsafe {
5988			let val: u32 = ::std::mem::transmute(val);
5989			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
5990				::std::ptr::addr_of_mut!((*this)._bitfield_1),
5991				13usize,
5992				1u8,
5993				val as u64,
5994			)
5995		}
5996	}
5997	#[inline]
5998	pub fn ReservedBits(&self) -> u32 {
5999		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 18u8) as u32) }
6000	}
6001	#[inline]
6002	pub fn set_ReservedBits(&mut self, val: u32) {
6003		unsafe {
6004			let val: u32 = ::std::mem::transmute(val);
6005			self._bitfield_1.set(14usize, 18u8, val as u64)
6006		}
6007	}
6008	#[inline]
6009	pub unsafe fn ReservedBits_raw(this: *const Self) -> u32 {
6010		unsafe {
6011			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6012				::std::ptr::addr_of!((*this)._bitfield_1),
6013				14usize,
6014				18u8,
6015			) as u32)
6016		}
6017	}
6018	#[inline]
6019	pub unsafe fn set_ReservedBits_raw(this: *mut Self, val: u32) {
6020		unsafe {
6021			let val: u32 = ::std::mem::transmute(val);
6022			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6023				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6024				14usize,
6025				18u8,
6026				val as u64,
6027			)
6028		}
6029	}
6030	#[inline]
6031	pub fn new_bitfield_1(
6032		lists_modification_present_flag: u32,
6033		long_term_ref_pics_present_flag: u32,
6034		sps_temporal_mvp_enabled_flag: u32,
6035		cabac_init_present_flag: u32,
6036		output_flag_present_flag: u32,
6037		dependent_slice_segments_enabled_flag: u32,
6038		pps_slice_chroma_qp_offsets_present_flag: u32,
6039		sample_adaptive_offset_enabled_flag: u32,
6040		deblocking_filter_override_enabled_flag: u32,
6041		pps_disable_deblocking_filter_flag: u32,
6042		slice_segment_header_extension_present_flag: u32,
6043		RapPicFlag: u32,
6044		IdrPicFlag: u32,
6045		IntraPicFlag: u32,
6046		ReservedBits: u32,
6047	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
6048		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
6049		__bindgen_bitfield_unit.set(0usize, 1u8, {
6050			let lists_modification_present_flag: u32 =
6051				unsafe { ::std::mem::transmute(lists_modification_present_flag) };
6052			lists_modification_present_flag as u64
6053		});
6054		__bindgen_bitfield_unit.set(1usize, 1u8, {
6055			let long_term_ref_pics_present_flag: u32 =
6056				unsafe { ::std::mem::transmute(long_term_ref_pics_present_flag) };
6057			long_term_ref_pics_present_flag as u64
6058		});
6059		__bindgen_bitfield_unit.set(2usize, 1u8, {
6060			let sps_temporal_mvp_enabled_flag: u32 = unsafe { ::std::mem::transmute(sps_temporal_mvp_enabled_flag) };
6061			sps_temporal_mvp_enabled_flag as u64
6062		});
6063		__bindgen_bitfield_unit.set(3usize, 1u8, {
6064			let cabac_init_present_flag: u32 = unsafe { ::std::mem::transmute(cabac_init_present_flag) };
6065			cabac_init_present_flag as u64
6066		});
6067		__bindgen_bitfield_unit.set(4usize, 1u8, {
6068			let output_flag_present_flag: u32 = unsafe { ::std::mem::transmute(output_flag_present_flag) };
6069			output_flag_present_flag as u64
6070		});
6071		__bindgen_bitfield_unit.set(5usize, 1u8, {
6072			let dependent_slice_segments_enabled_flag: u32 =
6073				unsafe { ::std::mem::transmute(dependent_slice_segments_enabled_flag) };
6074			dependent_slice_segments_enabled_flag as u64
6075		});
6076		__bindgen_bitfield_unit.set(6usize, 1u8, {
6077			let pps_slice_chroma_qp_offsets_present_flag: u32 =
6078				unsafe { ::std::mem::transmute(pps_slice_chroma_qp_offsets_present_flag) };
6079			pps_slice_chroma_qp_offsets_present_flag as u64
6080		});
6081		__bindgen_bitfield_unit.set(7usize, 1u8, {
6082			let sample_adaptive_offset_enabled_flag: u32 =
6083				unsafe { ::std::mem::transmute(sample_adaptive_offset_enabled_flag) };
6084			sample_adaptive_offset_enabled_flag as u64
6085		});
6086		__bindgen_bitfield_unit.set(8usize, 1u8, {
6087			let deblocking_filter_override_enabled_flag: u32 =
6088				unsafe { ::std::mem::transmute(deblocking_filter_override_enabled_flag) };
6089			deblocking_filter_override_enabled_flag as u64
6090		});
6091		__bindgen_bitfield_unit.set(9usize, 1u8, {
6092			let pps_disable_deblocking_filter_flag: u32 =
6093				unsafe { ::std::mem::transmute(pps_disable_deblocking_filter_flag) };
6094			pps_disable_deblocking_filter_flag as u64
6095		});
6096		__bindgen_bitfield_unit.set(10usize, 1u8, {
6097			let slice_segment_header_extension_present_flag: u32 =
6098				unsafe { ::std::mem::transmute(slice_segment_header_extension_present_flag) };
6099			slice_segment_header_extension_present_flag as u64
6100		});
6101		__bindgen_bitfield_unit.set(11usize, 1u8, {
6102			let RapPicFlag: u32 = unsafe { ::std::mem::transmute(RapPicFlag) };
6103			RapPicFlag as u64
6104		});
6105		__bindgen_bitfield_unit.set(12usize, 1u8, {
6106			let IdrPicFlag: u32 = unsafe { ::std::mem::transmute(IdrPicFlag) };
6107			IdrPicFlag as u64
6108		});
6109		__bindgen_bitfield_unit.set(13usize, 1u8, {
6110			let IntraPicFlag: u32 = unsafe { ::std::mem::transmute(IntraPicFlag) };
6111			IntraPicFlag as u64
6112		});
6113		__bindgen_bitfield_unit.set(14usize, 18u8, {
6114			let ReservedBits: u32 = unsafe { ::std::mem::transmute(ReservedBits) };
6115			ReservedBits as u64
6116		});
6117		__bindgen_bitfield_unit
6118	}
6119}
6120impl Default for _VAPictureParameterBufferHEVC__bindgen_ty_2 {
6121	fn default() -> Self {
6122		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6123		unsafe {
6124			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6125			s.assume_init()
6126		}
6127	}
6128}
6129impl Default for _VAPictureParameterBufferHEVC {
6130	fn default() -> Self {
6131		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6132		unsafe {
6133			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6134			s.assume_init()
6135		}
6136	}
6137}
6138#[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"]
6139pub type VAPictureParameterBufferHEVC = _VAPictureParameterBufferHEVC;
6140#[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"]
6141#[repr(C)]
6142#[derive(Copy, Clone)]
6143pub struct _VAPictureParameterBufferHEVCRext {
6144	pub range_extension_pic_fields: _VAPictureParameterBufferHEVCRext__bindgen_ty_1,
6145	#[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."]
6146	pub diff_cu_chroma_qp_offset_depth: u8,
6147	pub chroma_qp_offset_list_len_minus1: u8,
6148	pub log2_sao_offset_scale_luma: u8,
6149	pub log2_sao_offset_scale_chroma: u8,
6150	pub log2_max_transform_skip_block_size_minus2: u8,
6151	pub cb_qp_offset_list: [i8; 6usize],
6152	pub cr_qp_offset_list: [i8; 6usize],
6153}
6154#[repr(C)]
6155#[derive(Copy, Clone)]
6156pub union _VAPictureParameterBufferHEVCRext__bindgen_ty_1 {
6157	pub bits: _VAPictureParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1,
6158	pub value: u32,
6159}
6160#[repr(C)]
6161#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
6162pub struct _VAPictureParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
6163	pub _bitfield_align_1: [u32; 0],
6164	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
6165}
6166impl _VAPictureParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
6167	#[inline]
6168	pub fn transform_skip_rotation_enabled_flag(&self) -> u32 {
6169		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
6170	}
6171	#[inline]
6172	pub fn set_transform_skip_rotation_enabled_flag(&mut self, val: u32) {
6173		unsafe {
6174			let val: u32 = ::std::mem::transmute(val);
6175			self._bitfield_1.set(0usize, 1u8, val as u64)
6176		}
6177	}
6178	#[inline]
6179	pub unsafe fn transform_skip_rotation_enabled_flag_raw(this: *const Self) -> u32 {
6180		unsafe {
6181			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6182				::std::ptr::addr_of!((*this)._bitfield_1),
6183				0usize,
6184				1u8,
6185			) as u32)
6186		}
6187	}
6188	#[inline]
6189	pub unsafe fn set_transform_skip_rotation_enabled_flag_raw(this: *mut Self, val: u32) {
6190		unsafe {
6191			let val: u32 = ::std::mem::transmute(val);
6192			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6193				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6194				0usize,
6195				1u8,
6196				val as u64,
6197			)
6198		}
6199	}
6200	#[inline]
6201	pub fn transform_skip_context_enabled_flag(&self) -> u32 {
6202		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
6203	}
6204	#[inline]
6205	pub fn set_transform_skip_context_enabled_flag(&mut self, val: u32) {
6206		unsafe {
6207			let val: u32 = ::std::mem::transmute(val);
6208			self._bitfield_1.set(1usize, 1u8, val as u64)
6209		}
6210	}
6211	#[inline]
6212	pub unsafe fn transform_skip_context_enabled_flag_raw(this: *const Self) -> u32 {
6213		unsafe {
6214			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6215				::std::ptr::addr_of!((*this)._bitfield_1),
6216				1usize,
6217				1u8,
6218			) as u32)
6219		}
6220	}
6221	#[inline]
6222	pub unsafe fn set_transform_skip_context_enabled_flag_raw(this: *mut Self, val: u32) {
6223		unsafe {
6224			let val: u32 = ::std::mem::transmute(val);
6225			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6226				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6227				1usize,
6228				1u8,
6229				val as u64,
6230			)
6231		}
6232	}
6233	#[inline]
6234	pub fn implicit_rdpcm_enabled_flag(&self) -> u32 {
6235		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
6236	}
6237	#[inline]
6238	pub fn set_implicit_rdpcm_enabled_flag(&mut self, val: u32) {
6239		unsafe {
6240			let val: u32 = ::std::mem::transmute(val);
6241			self._bitfield_1.set(2usize, 1u8, val as u64)
6242		}
6243	}
6244	#[inline]
6245	pub unsafe fn implicit_rdpcm_enabled_flag_raw(this: *const Self) -> u32 {
6246		unsafe {
6247			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6248				::std::ptr::addr_of!((*this)._bitfield_1),
6249				2usize,
6250				1u8,
6251			) as u32)
6252		}
6253	}
6254	#[inline]
6255	pub unsafe fn set_implicit_rdpcm_enabled_flag_raw(this: *mut Self, val: u32) {
6256		unsafe {
6257			let val: u32 = ::std::mem::transmute(val);
6258			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6259				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6260				2usize,
6261				1u8,
6262				val as u64,
6263			)
6264		}
6265	}
6266	#[inline]
6267	pub fn explicit_rdpcm_enabled_flag(&self) -> u32 {
6268		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
6269	}
6270	#[inline]
6271	pub fn set_explicit_rdpcm_enabled_flag(&mut self, val: u32) {
6272		unsafe {
6273			let val: u32 = ::std::mem::transmute(val);
6274			self._bitfield_1.set(3usize, 1u8, val as u64)
6275		}
6276	}
6277	#[inline]
6278	pub unsafe fn explicit_rdpcm_enabled_flag_raw(this: *const Self) -> u32 {
6279		unsafe {
6280			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6281				::std::ptr::addr_of!((*this)._bitfield_1),
6282				3usize,
6283				1u8,
6284			) as u32)
6285		}
6286	}
6287	#[inline]
6288	pub unsafe fn set_explicit_rdpcm_enabled_flag_raw(this: *mut Self, val: u32) {
6289		unsafe {
6290			let val: u32 = ::std::mem::transmute(val);
6291			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6292				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6293				3usize,
6294				1u8,
6295				val as u64,
6296			)
6297		}
6298	}
6299	#[inline]
6300	pub fn extended_precision_processing_flag(&self) -> u32 {
6301		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
6302	}
6303	#[inline]
6304	pub fn set_extended_precision_processing_flag(&mut self, val: u32) {
6305		unsafe {
6306			let val: u32 = ::std::mem::transmute(val);
6307			self._bitfield_1.set(4usize, 1u8, val as u64)
6308		}
6309	}
6310	#[inline]
6311	pub unsafe fn extended_precision_processing_flag_raw(this: *const Self) -> u32 {
6312		unsafe {
6313			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6314				::std::ptr::addr_of!((*this)._bitfield_1),
6315				4usize,
6316				1u8,
6317			) as u32)
6318		}
6319	}
6320	#[inline]
6321	pub unsafe fn set_extended_precision_processing_flag_raw(this: *mut Self, val: u32) {
6322		unsafe {
6323			let val: u32 = ::std::mem::transmute(val);
6324			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6325				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6326				4usize,
6327				1u8,
6328				val as u64,
6329			)
6330		}
6331	}
6332	#[inline]
6333	pub fn intra_smoothing_disabled_flag(&self) -> u32 {
6334		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
6335	}
6336	#[inline]
6337	pub fn set_intra_smoothing_disabled_flag(&mut self, val: u32) {
6338		unsafe {
6339			let val: u32 = ::std::mem::transmute(val);
6340			self._bitfield_1.set(5usize, 1u8, val as u64)
6341		}
6342	}
6343	#[inline]
6344	pub unsafe fn intra_smoothing_disabled_flag_raw(this: *const Self) -> u32 {
6345		unsafe {
6346			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6347				::std::ptr::addr_of!((*this)._bitfield_1),
6348				5usize,
6349				1u8,
6350			) as u32)
6351		}
6352	}
6353	#[inline]
6354	pub unsafe fn set_intra_smoothing_disabled_flag_raw(this: *mut Self, val: u32) {
6355		unsafe {
6356			let val: u32 = ::std::mem::transmute(val);
6357			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6358				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6359				5usize,
6360				1u8,
6361				val as u64,
6362			)
6363		}
6364	}
6365	#[inline]
6366	pub fn high_precision_offsets_enabled_flag(&self) -> u32 {
6367		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
6368	}
6369	#[inline]
6370	pub fn set_high_precision_offsets_enabled_flag(&mut self, val: u32) {
6371		unsafe {
6372			let val: u32 = ::std::mem::transmute(val);
6373			self._bitfield_1.set(6usize, 1u8, val as u64)
6374		}
6375	}
6376	#[inline]
6377	pub unsafe fn high_precision_offsets_enabled_flag_raw(this: *const Self) -> u32 {
6378		unsafe {
6379			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6380				::std::ptr::addr_of!((*this)._bitfield_1),
6381				6usize,
6382				1u8,
6383			) as u32)
6384		}
6385	}
6386	#[inline]
6387	pub unsafe fn set_high_precision_offsets_enabled_flag_raw(this: *mut Self, val: u32) {
6388		unsafe {
6389			let val: u32 = ::std::mem::transmute(val);
6390			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6391				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6392				6usize,
6393				1u8,
6394				val as u64,
6395			)
6396		}
6397	}
6398	#[inline]
6399	pub fn persistent_rice_adaptation_enabled_flag(&self) -> u32 {
6400		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
6401	}
6402	#[inline]
6403	pub fn set_persistent_rice_adaptation_enabled_flag(&mut self, val: u32) {
6404		unsafe {
6405			let val: u32 = ::std::mem::transmute(val);
6406			self._bitfield_1.set(7usize, 1u8, val as u64)
6407		}
6408	}
6409	#[inline]
6410	pub unsafe fn persistent_rice_adaptation_enabled_flag_raw(this: *const Self) -> u32 {
6411		unsafe {
6412			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6413				::std::ptr::addr_of!((*this)._bitfield_1),
6414				7usize,
6415				1u8,
6416			) as u32)
6417		}
6418	}
6419	#[inline]
6420	pub unsafe fn set_persistent_rice_adaptation_enabled_flag_raw(this: *mut Self, val: u32) {
6421		unsafe {
6422			let val: u32 = ::std::mem::transmute(val);
6423			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6424				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6425				7usize,
6426				1u8,
6427				val as u64,
6428			)
6429		}
6430	}
6431	#[inline]
6432	pub fn cabac_bypass_alignment_enabled_flag(&self) -> u32 {
6433		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
6434	}
6435	#[inline]
6436	pub fn set_cabac_bypass_alignment_enabled_flag(&mut self, val: u32) {
6437		unsafe {
6438			let val: u32 = ::std::mem::transmute(val);
6439			self._bitfield_1.set(8usize, 1u8, val as u64)
6440		}
6441	}
6442	#[inline]
6443	pub unsafe fn cabac_bypass_alignment_enabled_flag_raw(this: *const Self) -> u32 {
6444		unsafe {
6445			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6446				::std::ptr::addr_of!((*this)._bitfield_1),
6447				8usize,
6448				1u8,
6449			) as u32)
6450		}
6451	}
6452	#[inline]
6453	pub unsafe fn set_cabac_bypass_alignment_enabled_flag_raw(this: *mut Self, val: u32) {
6454		unsafe {
6455			let val: u32 = ::std::mem::transmute(val);
6456			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6457				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6458				8usize,
6459				1u8,
6460				val as u64,
6461			)
6462		}
6463	}
6464	#[inline]
6465	pub fn cross_component_prediction_enabled_flag(&self) -> u32 {
6466		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
6467	}
6468	#[inline]
6469	pub fn set_cross_component_prediction_enabled_flag(&mut self, val: u32) {
6470		unsafe {
6471			let val: u32 = ::std::mem::transmute(val);
6472			self._bitfield_1.set(9usize, 1u8, val as u64)
6473		}
6474	}
6475	#[inline]
6476	pub unsafe fn cross_component_prediction_enabled_flag_raw(this: *const Self) -> u32 {
6477		unsafe {
6478			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6479				::std::ptr::addr_of!((*this)._bitfield_1),
6480				9usize,
6481				1u8,
6482			) as u32)
6483		}
6484	}
6485	#[inline]
6486	pub unsafe fn set_cross_component_prediction_enabled_flag_raw(this: *mut Self, val: u32) {
6487		unsafe {
6488			let val: u32 = ::std::mem::transmute(val);
6489			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6490				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6491				9usize,
6492				1u8,
6493				val as u64,
6494			)
6495		}
6496	}
6497	#[inline]
6498	pub fn chroma_qp_offset_list_enabled_flag(&self) -> u32 {
6499		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
6500	}
6501	#[inline]
6502	pub fn set_chroma_qp_offset_list_enabled_flag(&mut self, val: u32) {
6503		unsafe {
6504			let val: u32 = ::std::mem::transmute(val);
6505			self._bitfield_1.set(10usize, 1u8, val as u64)
6506		}
6507	}
6508	#[inline]
6509	pub unsafe fn chroma_qp_offset_list_enabled_flag_raw(this: *const Self) -> u32 {
6510		unsafe {
6511			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6512				::std::ptr::addr_of!((*this)._bitfield_1),
6513				10usize,
6514				1u8,
6515			) as u32)
6516		}
6517	}
6518	#[inline]
6519	pub unsafe fn set_chroma_qp_offset_list_enabled_flag_raw(this: *mut Self, val: u32) {
6520		unsafe {
6521			let val: u32 = ::std::mem::transmute(val);
6522			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6523				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6524				10usize,
6525				1u8,
6526				val as u64,
6527			)
6528		}
6529	}
6530	#[inline]
6531	pub fn reserved(&self) -> u32 {
6532		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 21u8) as u32) }
6533	}
6534	#[inline]
6535	pub fn set_reserved(&mut self, val: u32) {
6536		unsafe {
6537			let val: u32 = ::std::mem::transmute(val);
6538			self._bitfield_1.set(11usize, 21u8, val as u64)
6539		}
6540	}
6541	#[inline]
6542	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
6543		unsafe {
6544			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6545				::std::ptr::addr_of!((*this)._bitfield_1),
6546				11usize,
6547				21u8,
6548			) as u32)
6549		}
6550	}
6551	#[inline]
6552	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
6553		unsafe {
6554			let val: u32 = ::std::mem::transmute(val);
6555			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6556				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6557				11usize,
6558				21u8,
6559				val as u64,
6560			)
6561		}
6562	}
6563	#[inline]
6564	pub fn new_bitfield_1(
6565		transform_skip_rotation_enabled_flag: u32,
6566		transform_skip_context_enabled_flag: u32,
6567		implicit_rdpcm_enabled_flag: u32,
6568		explicit_rdpcm_enabled_flag: u32,
6569		extended_precision_processing_flag: u32,
6570		intra_smoothing_disabled_flag: u32,
6571		high_precision_offsets_enabled_flag: u32,
6572		persistent_rice_adaptation_enabled_flag: u32,
6573		cabac_bypass_alignment_enabled_flag: u32,
6574		cross_component_prediction_enabled_flag: u32,
6575		chroma_qp_offset_list_enabled_flag: u32,
6576		reserved: u32,
6577	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
6578		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
6579		__bindgen_bitfield_unit.set(0usize, 1u8, {
6580			let transform_skip_rotation_enabled_flag: u32 =
6581				unsafe { ::std::mem::transmute(transform_skip_rotation_enabled_flag) };
6582			transform_skip_rotation_enabled_flag as u64
6583		});
6584		__bindgen_bitfield_unit.set(1usize, 1u8, {
6585			let transform_skip_context_enabled_flag: u32 =
6586				unsafe { ::std::mem::transmute(transform_skip_context_enabled_flag) };
6587			transform_skip_context_enabled_flag as u64
6588		});
6589		__bindgen_bitfield_unit.set(2usize, 1u8, {
6590			let implicit_rdpcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(implicit_rdpcm_enabled_flag) };
6591			implicit_rdpcm_enabled_flag as u64
6592		});
6593		__bindgen_bitfield_unit.set(3usize, 1u8, {
6594			let explicit_rdpcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(explicit_rdpcm_enabled_flag) };
6595			explicit_rdpcm_enabled_flag as u64
6596		});
6597		__bindgen_bitfield_unit.set(4usize, 1u8, {
6598			let extended_precision_processing_flag: u32 =
6599				unsafe { ::std::mem::transmute(extended_precision_processing_flag) };
6600			extended_precision_processing_flag as u64
6601		});
6602		__bindgen_bitfield_unit.set(5usize, 1u8, {
6603			let intra_smoothing_disabled_flag: u32 = unsafe { ::std::mem::transmute(intra_smoothing_disabled_flag) };
6604			intra_smoothing_disabled_flag as u64
6605		});
6606		__bindgen_bitfield_unit.set(6usize, 1u8, {
6607			let high_precision_offsets_enabled_flag: u32 =
6608				unsafe { ::std::mem::transmute(high_precision_offsets_enabled_flag) };
6609			high_precision_offsets_enabled_flag as u64
6610		});
6611		__bindgen_bitfield_unit.set(7usize, 1u8, {
6612			let persistent_rice_adaptation_enabled_flag: u32 =
6613				unsafe { ::std::mem::transmute(persistent_rice_adaptation_enabled_flag) };
6614			persistent_rice_adaptation_enabled_flag as u64
6615		});
6616		__bindgen_bitfield_unit.set(8usize, 1u8, {
6617			let cabac_bypass_alignment_enabled_flag: u32 =
6618				unsafe { ::std::mem::transmute(cabac_bypass_alignment_enabled_flag) };
6619			cabac_bypass_alignment_enabled_flag as u64
6620		});
6621		__bindgen_bitfield_unit.set(9usize, 1u8, {
6622			let cross_component_prediction_enabled_flag: u32 =
6623				unsafe { ::std::mem::transmute(cross_component_prediction_enabled_flag) };
6624			cross_component_prediction_enabled_flag as u64
6625		});
6626		__bindgen_bitfield_unit.set(10usize, 1u8, {
6627			let chroma_qp_offset_list_enabled_flag: u32 =
6628				unsafe { ::std::mem::transmute(chroma_qp_offset_list_enabled_flag) };
6629			chroma_qp_offset_list_enabled_flag as u64
6630		});
6631		__bindgen_bitfield_unit.set(11usize, 21u8, {
6632			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
6633			reserved as u64
6634		});
6635		__bindgen_bitfield_unit
6636	}
6637}
6638impl Default for _VAPictureParameterBufferHEVCRext__bindgen_ty_1 {
6639	fn default() -> Self {
6640		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6641		unsafe {
6642			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6643			s.assume_init()
6644		}
6645	}
6646}
6647impl Default for _VAPictureParameterBufferHEVCRext {
6648	fn default() -> Self {
6649		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6650		unsafe {
6651			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6652			s.assume_init()
6653		}
6654	}
6655}
6656#[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"]
6657pub type VAPictureParameterBufferHEVCRext = _VAPictureParameterBufferHEVCRext;
6658#[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"]
6659#[repr(C)]
6660#[derive(Copy, Clone)]
6661pub struct _VAPictureParameterBufferHEVCScc {
6662	pub screen_content_pic_fields: _VAPictureParameterBufferHEVCScc__bindgen_ty_1,
6663	pub palette_max_size: u8,
6664	pub delta_palette_max_predictor_size: u8,
6665	#[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."]
6666	pub predictor_palette_size: u8,
6667	#[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."]
6668	pub predictor_palette_entries: [[u16; 128usize]; 3usize],
6669	pub pps_act_y_qp_offset_plus5: i8,
6670	pub pps_act_cb_qp_offset_plus5: i8,
6671	pub pps_act_cr_qp_offset_plus3: i8,
6672}
6673#[repr(C)]
6674#[derive(Copy, Clone)]
6675pub union _VAPictureParameterBufferHEVCScc__bindgen_ty_1 {
6676	pub bits: _VAPictureParameterBufferHEVCScc__bindgen_ty_1__bindgen_ty_1,
6677	pub value: u32,
6678}
6679#[repr(C)]
6680#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
6681pub struct _VAPictureParameterBufferHEVCScc__bindgen_ty_1__bindgen_ty_1 {
6682	pub _bitfield_align_1: [u32; 0],
6683	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
6684}
6685impl _VAPictureParameterBufferHEVCScc__bindgen_ty_1__bindgen_ty_1 {
6686	#[inline]
6687	pub fn pps_curr_pic_ref_enabled_flag(&self) -> u32 {
6688		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
6689	}
6690	#[inline]
6691	pub fn set_pps_curr_pic_ref_enabled_flag(&mut self, val: u32) {
6692		unsafe {
6693			let val: u32 = ::std::mem::transmute(val);
6694			self._bitfield_1.set(0usize, 1u8, val as u64)
6695		}
6696	}
6697	#[inline]
6698	pub unsafe fn pps_curr_pic_ref_enabled_flag_raw(this: *const Self) -> u32 {
6699		unsafe {
6700			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6701				::std::ptr::addr_of!((*this)._bitfield_1),
6702				0usize,
6703				1u8,
6704			) as u32)
6705		}
6706	}
6707	#[inline]
6708	pub unsafe fn set_pps_curr_pic_ref_enabled_flag_raw(this: *mut Self, val: u32) {
6709		unsafe {
6710			let val: u32 = ::std::mem::transmute(val);
6711			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6712				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6713				0usize,
6714				1u8,
6715				val as u64,
6716			)
6717		}
6718	}
6719	#[inline]
6720	pub fn palette_mode_enabled_flag(&self) -> u32 {
6721		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
6722	}
6723	#[inline]
6724	pub fn set_palette_mode_enabled_flag(&mut self, val: u32) {
6725		unsafe {
6726			let val: u32 = ::std::mem::transmute(val);
6727			self._bitfield_1.set(1usize, 1u8, val as u64)
6728		}
6729	}
6730	#[inline]
6731	pub unsafe fn palette_mode_enabled_flag_raw(this: *const Self) -> u32 {
6732		unsafe {
6733			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6734				::std::ptr::addr_of!((*this)._bitfield_1),
6735				1usize,
6736				1u8,
6737			) as u32)
6738		}
6739	}
6740	#[inline]
6741	pub unsafe fn set_palette_mode_enabled_flag_raw(this: *mut Self, val: u32) {
6742		unsafe {
6743			let val: u32 = ::std::mem::transmute(val);
6744			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6745				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6746				1usize,
6747				1u8,
6748				val as u64,
6749			)
6750		}
6751	}
6752	#[inline]
6753	pub fn motion_vector_resolution_control_idc(&self) -> u32 {
6754		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
6755	}
6756	#[inline]
6757	pub fn set_motion_vector_resolution_control_idc(&mut self, val: u32) {
6758		unsafe {
6759			let val: u32 = ::std::mem::transmute(val);
6760			self._bitfield_1.set(2usize, 2u8, val as u64)
6761		}
6762	}
6763	#[inline]
6764	pub unsafe fn motion_vector_resolution_control_idc_raw(this: *const Self) -> u32 {
6765		unsafe {
6766			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6767				::std::ptr::addr_of!((*this)._bitfield_1),
6768				2usize,
6769				2u8,
6770			) as u32)
6771		}
6772	}
6773	#[inline]
6774	pub unsafe fn set_motion_vector_resolution_control_idc_raw(this: *mut Self, val: u32) {
6775		unsafe {
6776			let val: u32 = ::std::mem::transmute(val);
6777			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6778				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6779				2usize,
6780				2u8,
6781				val as u64,
6782			)
6783		}
6784	}
6785	#[inline]
6786	pub fn intra_boundary_filtering_disabled_flag(&self) -> u32 {
6787		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
6788	}
6789	#[inline]
6790	pub fn set_intra_boundary_filtering_disabled_flag(&mut self, val: u32) {
6791		unsafe {
6792			let val: u32 = ::std::mem::transmute(val);
6793			self._bitfield_1.set(4usize, 1u8, val as u64)
6794		}
6795	}
6796	#[inline]
6797	pub unsafe fn intra_boundary_filtering_disabled_flag_raw(this: *const Self) -> u32 {
6798		unsafe {
6799			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6800				::std::ptr::addr_of!((*this)._bitfield_1),
6801				4usize,
6802				1u8,
6803			) as u32)
6804		}
6805	}
6806	#[inline]
6807	pub unsafe fn set_intra_boundary_filtering_disabled_flag_raw(this: *mut Self, val: u32) {
6808		unsafe {
6809			let val: u32 = ::std::mem::transmute(val);
6810			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6811				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6812				4usize,
6813				1u8,
6814				val as u64,
6815			)
6816		}
6817	}
6818	#[inline]
6819	pub fn residual_adaptive_colour_transform_enabled_flag(&self) -> u32 {
6820		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
6821	}
6822	#[inline]
6823	pub fn set_residual_adaptive_colour_transform_enabled_flag(&mut self, val: u32) {
6824		unsafe {
6825			let val: u32 = ::std::mem::transmute(val);
6826			self._bitfield_1.set(5usize, 1u8, val as u64)
6827		}
6828	}
6829	#[inline]
6830	pub unsafe fn residual_adaptive_colour_transform_enabled_flag_raw(this: *const Self) -> u32 {
6831		unsafe {
6832			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6833				::std::ptr::addr_of!((*this)._bitfield_1),
6834				5usize,
6835				1u8,
6836			) as u32)
6837		}
6838	}
6839	#[inline]
6840	pub unsafe fn set_residual_adaptive_colour_transform_enabled_flag_raw(this: *mut Self, val: u32) {
6841		unsafe {
6842			let val: u32 = ::std::mem::transmute(val);
6843			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6844				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6845				5usize,
6846				1u8,
6847				val as u64,
6848			)
6849		}
6850	}
6851	#[inline]
6852	pub fn pps_slice_act_qp_offsets_present_flag(&self) -> u32 {
6853		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
6854	}
6855	#[inline]
6856	pub fn set_pps_slice_act_qp_offsets_present_flag(&mut self, val: u32) {
6857		unsafe {
6858			let val: u32 = ::std::mem::transmute(val);
6859			self._bitfield_1.set(6usize, 1u8, val as u64)
6860		}
6861	}
6862	#[inline]
6863	pub unsafe fn pps_slice_act_qp_offsets_present_flag_raw(this: *const Self) -> u32 {
6864		unsafe {
6865			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6866				::std::ptr::addr_of!((*this)._bitfield_1),
6867				6usize,
6868				1u8,
6869			) as u32)
6870		}
6871	}
6872	#[inline]
6873	pub unsafe fn set_pps_slice_act_qp_offsets_present_flag_raw(this: *mut Self, val: u32) {
6874		unsafe {
6875			let val: u32 = ::std::mem::transmute(val);
6876			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6877				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6878				6usize,
6879				1u8,
6880				val as u64,
6881			)
6882		}
6883	}
6884	#[inline]
6885	pub fn reserved(&self) -> u32 {
6886		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 25u8) as u32) }
6887	}
6888	#[inline]
6889	pub fn set_reserved(&mut self, val: u32) {
6890		unsafe {
6891			let val: u32 = ::std::mem::transmute(val);
6892			self._bitfield_1.set(7usize, 25u8, val as u64)
6893		}
6894	}
6895	#[inline]
6896	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
6897		unsafe {
6898			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
6899				::std::ptr::addr_of!((*this)._bitfield_1),
6900				7usize,
6901				25u8,
6902			) as u32)
6903		}
6904	}
6905	#[inline]
6906	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
6907		unsafe {
6908			let val: u32 = ::std::mem::transmute(val);
6909			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
6910				::std::ptr::addr_of_mut!((*this)._bitfield_1),
6911				7usize,
6912				25u8,
6913				val as u64,
6914			)
6915		}
6916	}
6917	#[inline]
6918	pub fn new_bitfield_1(
6919		pps_curr_pic_ref_enabled_flag: u32,
6920		palette_mode_enabled_flag: u32,
6921		motion_vector_resolution_control_idc: u32,
6922		intra_boundary_filtering_disabled_flag: u32,
6923		residual_adaptive_colour_transform_enabled_flag: u32,
6924		pps_slice_act_qp_offsets_present_flag: u32,
6925		reserved: u32,
6926	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
6927		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
6928		__bindgen_bitfield_unit.set(0usize, 1u8, {
6929			let pps_curr_pic_ref_enabled_flag: u32 = unsafe { ::std::mem::transmute(pps_curr_pic_ref_enabled_flag) };
6930			pps_curr_pic_ref_enabled_flag as u64
6931		});
6932		__bindgen_bitfield_unit.set(1usize, 1u8, {
6933			let palette_mode_enabled_flag: u32 = unsafe { ::std::mem::transmute(palette_mode_enabled_flag) };
6934			palette_mode_enabled_flag as u64
6935		});
6936		__bindgen_bitfield_unit.set(2usize, 2u8, {
6937			let motion_vector_resolution_control_idc: u32 =
6938				unsafe { ::std::mem::transmute(motion_vector_resolution_control_idc) };
6939			motion_vector_resolution_control_idc as u64
6940		});
6941		__bindgen_bitfield_unit.set(4usize, 1u8, {
6942			let intra_boundary_filtering_disabled_flag: u32 =
6943				unsafe { ::std::mem::transmute(intra_boundary_filtering_disabled_flag) };
6944			intra_boundary_filtering_disabled_flag as u64
6945		});
6946		__bindgen_bitfield_unit.set(5usize, 1u8, {
6947			let residual_adaptive_colour_transform_enabled_flag: u32 =
6948				unsafe { ::std::mem::transmute(residual_adaptive_colour_transform_enabled_flag) };
6949			residual_adaptive_colour_transform_enabled_flag as u64
6950		});
6951		__bindgen_bitfield_unit.set(6usize, 1u8, {
6952			let pps_slice_act_qp_offsets_present_flag: u32 =
6953				unsafe { ::std::mem::transmute(pps_slice_act_qp_offsets_present_flag) };
6954			pps_slice_act_qp_offsets_present_flag as u64
6955		});
6956		__bindgen_bitfield_unit.set(7usize, 25u8, {
6957			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
6958			reserved as u64
6959		});
6960		__bindgen_bitfield_unit
6961	}
6962}
6963impl Default for _VAPictureParameterBufferHEVCScc__bindgen_ty_1 {
6964	fn default() -> Self {
6965		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6966		unsafe {
6967			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6968			s.assume_init()
6969		}
6970	}
6971}
6972impl Default for _VAPictureParameterBufferHEVCScc {
6973	fn default() -> Self {
6974		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6975		unsafe {
6976			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6977			s.assume_init()
6978		}
6979	}
6980}
6981#[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"]
6982pub type VAPictureParameterBufferHEVCScc = _VAPictureParameterBufferHEVCScc;
6983#[doc = " \\brief HEVC Decoding Picture Parameter Buffer Structure including Extensions\n\n This structure conveys picture level HEVC parameters including basic version 1\n and range extension and screen content extension.\n The data buffer should be sent once per frame.\n"]
6984#[repr(C)]
6985#[derive(Copy, Clone)]
6986pub struct _VAPictureParameterBufferHEVCExtension {
6987	#[doc = " \\brief basic HEVC picture parameters data structure"]
6988	pub base: VAPictureParameterBufferHEVC,
6989	#[doc = " \\brief HEVC range extension picture parameters data structure"]
6990	pub rext: VAPictureParameterBufferHEVCRext,
6991	#[doc = " \\brief HEVC screen content picture parameters data structure"]
6992	pub scc: VAPictureParameterBufferHEVCScc,
6993}
6994impl Default for _VAPictureParameterBufferHEVCExtension {
6995	fn default() -> Self {
6996		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
6997		unsafe {
6998			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
6999			s.assume_init()
7000		}
7001	}
7002}
7003#[doc = " \\brief HEVC Decoding Picture Parameter Buffer Structure including Extensions\n\n This structure conveys picture level HEVC parameters including basic version 1\n and range extension and screen content extension.\n The data buffer should be sent once per frame.\n"]
7004pub type VAPictureParameterBufferHEVCExtension = _VAPictureParameterBufferHEVCExtension;
7005#[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"]
7006#[repr(C)]
7007#[derive(Copy, Clone)]
7008pub struct _VASliceParameterBufferHEVC {
7009	#[doc = " \\brief Number of bytes in the slice data buffer for this slice\n counting from and including NAL unit header."]
7010	pub slice_data_size: u32,
7011	#[doc = " \\brief The offset to the NAL unit header for this slice"]
7012	pub slice_data_offset: u32,
7013	#[doc = " \\brief Slice data buffer flags. See \\c VA_SLICE_DATA_FLAG_XXX."]
7014	pub slice_data_flag: u32,
7015	#[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."]
7016	pub slice_data_byte_offset: u32,
7017	#[doc = " HEVC syntax element."]
7018	pub slice_segment_address: u32,
7019	#[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."]
7020	pub RefPicList: [[u8; 15usize]; 2usize],
7021	pub LongSliceFlags: _VASliceParameterBufferHEVC__bindgen_ty_1,
7022	#[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]."]
7023	pub collocated_ref_idx: u8,
7024	#[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."]
7025	pub num_ref_idx_l0_active_minus1: u8,
7026	#[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."]
7027	pub num_ref_idx_l1_active_minus1: u8,
7028	#[doc = " HEVC syntax element."]
7029	pub slice_qp_delta: i8,
7030	#[doc = " HEVC syntax element."]
7031	pub slice_cb_qp_offset: i8,
7032	#[doc = " HEVC syntax element."]
7033	pub slice_cr_qp_offset: i8,
7034	#[doc = " HEVC syntax element."]
7035	pub slice_beta_offset_div2: i8,
7036	#[doc = " HEVC syntax element."]
7037	pub slice_tc_offset_div2: i8,
7038	#[doc = " HEVC syntax element."]
7039	pub luma_log2_weight_denom: u8,
7040	#[doc = " HEVC syntax element."]
7041	pub delta_chroma_log2_weight_denom: i8,
7042	#[doc = " HEVC syntax element."]
7043	pub delta_luma_weight_l0: [i8; 15usize],
7044	#[doc = " HEVC syntax element."]
7045	pub luma_offset_l0: [i8; 15usize],
7046	#[doc = " HEVC syntax element."]
7047	pub delta_chroma_weight_l0: [[i8; 2usize]; 15usize],
7048	#[doc = " corresponds to HEVC spec variable of the same name."]
7049	pub ChromaOffsetL0: [[i8; 2usize]; 15usize],
7050	#[doc = " HEVC syntax element."]
7051	pub delta_luma_weight_l1: [i8; 15usize],
7052	#[doc = " HEVC syntax element."]
7053	pub luma_offset_l1: [i8; 15usize],
7054	#[doc = " HEVC syntax element."]
7055	pub delta_chroma_weight_l1: [[i8; 2usize]; 15usize],
7056	#[doc = " corresponds to HEVC spec variable of the same name."]
7057	pub ChromaOffsetL1: [[i8; 2usize]; 15usize],
7058	#[doc = " HEVC syntax element."]
7059	pub five_minus_max_num_merge_cand: u8,
7060	#[doc = " HEVC syntax element."]
7061	pub num_entry_point_offsets: u16,
7062	#[doc = " HEVC syntax element."]
7063	pub entry_offset_to_subset_array: u16,
7064	#[doc = " \\brief Number of emulation prevention bytes in slice header."]
7065	pub slice_data_num_emu_prevn_bytes: u16,
7066	#[doc = " \\brief Reserved bytes for future use, must be zero"]
7067	pub va_reserved: [u32; 2usize],
7068}
7069#[repr(C)]
7070#[derive(Copy, Clone)]
7071pub union _VASliceParameterBufferHEVC__bindgen_ty_1 {
7072	pub value: u32,
7073	pub fields: _VASliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
7074}
7075#[repr(C)]
7076#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
7077pub struct _VASliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
7078	pub _bitfield_align_1: [u32; 0],
7079	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
7080}
7081impl _VASliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
7082	#[inline]
7083	pub fn LastSliceOfPic(&self) -> u32 {
7084		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
7085	}
7086	#[inline]
7087	pub fn set_LastSliceOfPic(&mut self, val: u32) {
7088		unsafe {
7089			let val: u32 = ::std::mem::transmute(val);
7090			self._bitfield_1.set(0usize, 1u8, val as u64)
7091		}
7092	}
7093	#[inline]
7094	pub unsafe fn LastSliceOfPic_raw(this: *const Self) -> u32 {
7095		unsafe {
7096			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7097				::std::ptr::addr_of!((*this)._bitfield_1),
7098				0usize,
7099				1u8,
7100			) as u32)
7101		}
7102	}
7103	#[inline]
7104	pub unsafe fn set_LastSliceOfPic_raw(this: *mut Self, val: u32) {
7105		unsafe {
7106			let val: u32 = ::std::mem::transmute(val);
7107			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7108				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7109				0usize,
7110				1u8,
7111				val as u64,
7112			)
7113		}
7114	}
7115	#[inline]
7116	pub fn dependent_slice_segment_flag(&self) -> u32 {
7117		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
7118	}
7119	#[inline]
7120	pub fn set_dependent_slice_segment_flag(&mut self, val: u32) {
7121		unsafe {
7122			let val: u32 = ::std::mem::transmute(val);
7123			self._bitfield_1.set(1usize, 1u8, val as u64)
7124		}
7125	}
7126	#[inline]
7127	pub unsafe fn dependent_slice_segment_flag_raw(this: *const Self) -> u32 {
7128		unsafe {
7129			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7130				::std::ptr::addr_of!((*this)._bitfield_1),
7131				1usize,
7132				1u8,
7133			) as u32)
7134		}
7135	}
7136	#[inline]
7137	pub unsafe fn set_dependent_slice_segment_flag_raw(this: *mut Self, val: u32) {
7138		unsafe {
7139			let val: u32 = ::std::mem::transmute(val);
7140			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7141				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7142				1usize,
7143				1u8,
7144				val as u64,
7145			)
7146		}
7147	}
7148	#[inline]
7149	pub fn slice_type(&self) -> u32 {
7150		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
7151	}
7152	#[inline]
7153	pub fn set_slice_type(&mut self, val: u32) {
7154		unsafe {
7155			let val: u32 = ::std::mem::transmute(val);
7156			self._bitfield_1.set(2usize, 2u8, val as u64)
7157		}
7158	}
7159	#[inline]
7160	pub unsafe fn slice_type_raw(this: *const Self) -> u32 {
7161		unsafe {
7162			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7163				::std::ptr::addr_of!((*this)._bitfield_1),
7164				2usize,
7165				2u8,
7166			) as u32)
7167		}
7168	}
7169	#[inline]
7170	pub unsafe fn set_slice_type_raw(this: *mut Self, val: u32) {
7171		unsafe {
7172			let val: u32 = ::std::mem::transmute(val);
7173			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7174				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7175				2usize,
7176				2u8,
7177				val as u64,
7178			)
7179		}
7180	}
7181	#[inline]
7182	pub fn color_plane_id(&self) -> u32 {
7183		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) }
7184	}
7185	#[inline]
7186	pub fn set_color_plane_id(&mut self, val: u32) {
7187		unsafe {
7188			let val: u32 = ::std::mem::transmute(val);
7189			self._bitfield_1.set(4usize, 2u8, val as u64)
7190		}
7191	}
7192	#[inline]
7193	pub unsafe fn color_plane_id_raw(this: *const Self) -> u32 {
7194		unsafe {
7195			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7196				::std::ptr::addr_of!((*this)._bitfield_1),
7197				4usize,
7198				2u8,
7199			) as u32)
7200		}
7201	}
7202	#[inline]
7203	pub unsafe fn set_color_plane_id_raw(this: *mut Self, val: u32) {
7204		unsafe {
7205			let val: u32 = ::std::mem::transmute(val);
7206			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7207				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7208				4usize,
7209				2u8,
7210				val as u64,
7211			)
7212		}
7213	}
7214	#[inline]
7215	pub fn slice_sao_luma_flag(&self) -> u32 {
7216		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
7217	}
7218	#[inline]
7219	pub fn set_slice_sao_luma_flag(&mut self, val: u32) {
7220		unsafe {
7221			let val: u32 = ::std::mem::transmute(val);
7222			self._bitfield_1.set(6usize, 1u8, val as u64)
7223		}
7224	}
7225	#[inline]
7226	pub unsafe fn slice_sao_luma_flag_raw(this: *const Self) -> u32 {
7227		unsafe {
7228			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7229				::std::ptr::addr_of!((*this)._bitfield_1),
7230				6usize,
7231				1u8,
7232			) as u32)
7233		}
7234	}
7235	#[inline]
7236	pub unsafe fn set_slice_sao_luma_flag_raw(this: *mut Self, val: u32) {
7237		unsafe {
7238			let val: u32 = ::std::mem::transmute(val);
7239			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7240				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7241				6usize,
7242				1u8,
7243				val as u64,
7244			)
7245		}
7246	}
7247	#[inline]
7248	pub fn slice_sao_chroma_flag(&self) -> u32 {
7249		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
7250	}
7251	#[inline]
7252	pub fn set_slice_sao_chroma_flag(&mut self, val: u32) {
7253		unsafe {
7254			let val: u32 = ::std::mem::transmute(val);
7255			self._bitfield_1.set(7usize, 1u8, val as u64)
7256		}
7257	}
7258	#[inline]
7259	pub unsafe fn slice_sao_chroma_flag_raw(this: *const Self) -> u32 {
7260		unsafe {
7261			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7262				::std::ptr::addr_of!((*this)._bitfield_1),
7263				7usize,
7264				1u8,
7265			) as u32)
7266		}
7267	}
7268	#[inline]
7269	pub unsafe fn set_slice_sao_chroma_flag_raw(this: *mut Self, val: u32) {
7270		unsafe {
7271			let val: u32 = ::std::mem::transmute(val);
7272			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7273				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7274				7usize,
7275				1u8,
7276				val as u64,
7277			)
7278		}
7279	}
7280	#[inline]
7281	pub fn mvd_l1_zero_flag(&self) -> u32 {
7282		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
7283	}
7284	#[inline]
7285	pub fn set_mvd_l1_zero_flag(&mut self, val: u32) {
7286		unsafe {
7287			let val: u32 = ::std::mem::transmute(val);
7288			self._bitfield_1.set(8usize, 1u8, val as u64)
7289		}
7290	}
7291	#[inline]
7292	pub unsafe fn mvd_l1_zero_flag_raw(this: *const Self) -> u32 {
7293		unsafe {
7294			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7295				::std::ptr::addr_of!((*this)._bitfield_1),
7296				8usize,
7297				1u8,
7298			) as u32)
7299		}
7300	}
7301	#[inline]
7302	pub unsafe fn set_mvd_l1_zero_flag_raw(this: *mut Self, val: u32) {
7303		unsafe {
7304			let val: u32 = ::std::mem::transmute(val);
7305			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7306				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7307				8usize,
7308				1u8,
7309				val as u64,
7310			)
7311		}
7312	}
7313	#[inline]
7314	pub fn cabac_init_flag(&self) -> u32 {
7315		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
7316	}
7317	#[inline]
7318	pub fn set_cabac_init_flag(&mut self, val: u32) {
7319		unsafe {
7320			let val: u32 = ::std::mem::transmute(val);
7321			self._bitfield_1.set(9usize, 1u8, val as u64)
7322		}
7323	}
7324	#[inline]
7325	pub unsafe fn cabac_init_flag_raw(this: *const Self) -> u32 {
7326		unsafe {
7327			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7328				::std::ptr::addr_of!((*this)._bitfield_1),
7329				9usize,
7330				1u8,
7331			) as u32)
7332		}
7333	}
7334	#[inline]
7335	pub unsafe fn set_cabac_init_flag_raw(this: *mut Self, val: u32) {
7336		unsafe {
7337			let val: u32 = ::std::mem::transmute(val);
7338			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7339				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7340				9usize,
7341				1u8,
7342				val as u64,
7343			)
7344		}
7345	}
7346	#[inline]
7347	pub fn slice_temporal_mvp_enabled_flag(&self) -> u32 {
7348		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
7349	}
7350	#[inline]
7351	pub fn set_slice_temporal_mvp_enabled_flag(&mut self, val: u32) {
7352		unsafe {
7353			let val: u32 = ::std::mem::transmute(val);
7354			self._bitfield_1.set(10usize, 1u8, val as u64)
7355		}
7356	}
7357	#[inline]
7358	pub unsafe fn slice_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
7359		unsafe {
7360			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7361				::std::ptr::addr_of!((*this)._bitfield_1),
7362				10usize,
7363				1u8,
7364			) as u32)
7365		}
7366	}
7367	#[inline]
7368	pub unsafe fn set_slice_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
7369		unsafe {
7370			let val: u32 = ::std::mem::transmute(val);
7371			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7372				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7373				10usize,
7374				1u8,
7375				val as u64,
7376			)
7377		}
7378	}
7379	#[inline]
7380	pub fn slice_deblocking_filter_disabled_flag(&self) -> u32 {
7381		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
7382	}
7383	#[inline]
7384	pub fn set_slice_deblocking_filter_disabled_flag(&mut self, val: u32) {
7385		unsafe {
7386			let val: u32 = ::std::mem::transmute(val);
7387			self._bitfield_1.set(11usize, 1u8, val as u64)
7388		}
7389	}
7390	#[inline]
7391	pub unsafe fn slice_deblocking_filter_disabled_flag_raw(this: *const Self) -> u32 {
7392		unsafe {
7393			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7394				::std::ptr::addr_of!((*this)._bitfield_1),
7395				11usize,
7396				1u8,
7397			) as u32)
7398		}
7399	}
7400	#[inline]
7401	pub unsafe fn set_slice_deblocking_filter_disabled_flag_raw(this: *mut Self, val: u32) {
7402		unsafe {
7403			let val: u32 = ::std::mem::transmute(val);
7404			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7405				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7406				11usize,
7407				1u8,
7408				val as u64,
7409			)
7410		}
7411	}
7412	#[inline]
7413	pub fn collocated_from_l0_flag(&self) -> u32 {
7414		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
7415	}
7416	#[inline]
7417	pub fn set_collocated_from_l0_flag(&mut self, val: u32) {
7418		unsafe {
7419			let val: u32 = ::std::mem::transmute(val);
7420			self._bitfield_1.set(12usize, 1u8, val as u64)
7421		}
7422	}
7423	#[inline]
7424	pub unsafe fn collocated_from_l0_flag_raw(this: *const Self) -> u32 {
7425		unsafe {
7426			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7427				::std::ptr::addr_of!((*this)._bitfield_1),
7428				12usize,
7429				1u8,
7430			) as u32)
7431		}
7432	}
7433	#[inline]
7434	pub unsafe fn set_collocated_from_l0_flag_raw(this: *mut Self, val: u32) {
7435		unsafe {
7436			let val: u32 = ::std::mem::transmute(val);
7437			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7438				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7439				12usize,
7440				1u8,
7441				val as u64,
7442			)
7443		}
7444	}
7445	#[inline]
7446	pub fn slice_loop_filter_across_slices_enabled_flag(&self) -> u32 {
7447		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
7448	}
7449	#[inline]
7450	pub fn set_slice_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
7451		unsafe {
7452			let val: u32 = ::std::mem::transmute(val);
7453			self._bitfield_1.set(13usize, 1u8, val as u64)
7454		}
7455	}
7456	#[inline]
7457	pub unsafe fn slice_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
7458		unsafe {
7459			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7460				::std::ptr::addr_of!((*this)._bitfield_1),
7461				13usize,
7462				1u8,
7463			) as u32)
7464		}
7465	}
7466	#[inline]
7467	pub unsafe fn set_slice_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
7468		unsafe {
7469			let val: u32 = ::std::mem::transmute(val);
7470			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7471				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7472				13usize,
7473				1u8,
7474				val as u64,
7475			)
7476		}
7477	}
7478	#[inline]
7479	pub fn reserved(&self) -> u32 {
7480		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 18u8) as u32) }
7481	}
7482	#[inline]
7483	pub fn set_reserved(&mut self, val: u32) {
7484		unsafe {
7485			let val: u32 = ::std::mem::transmute(val);
7486			self._bitfield_1.set(14usize, 18u8, val as u64)
7487		}
7488	}
7489	#[inline]
7490	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
7491		unsafe {
7492			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7493				::std::ptr::addr_of!((*this)._bitfield_1),
7494				14usize,
7495				18u8,
7496			) as u32)
7497		}
7498	}
7499	#[inline]
7500	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
7501		unsafe {
7502			let val: u32 = ::std::mem::transmute(val);
7503			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7504				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7505				14usize,
7506				18u8,
7507				val as u64,
7508			)
7509		}
7510	}
7511	#[inline]
7512	pub fn new_bitfield_1(
7513		LastSliceOfPic: u32,
7514		dependent_slice_segment_flag: u32,
7515		slice_type: u32,
7516		color_plane_id: u32,
7517		slice_sao_luma_flag: u32,
7518		slice_sao_chroma_flag: u32,
7519		mvd_l1_zero_flag: u32,
7520		cabac_init_flag: u32,
7521		slice_temporal_mvp_enabled_flag: u32,
7522		slice_deblocking_filter_disabled_flag: u32,
7523		collocated_from_l0_flag: u32,
7524		slice_loop_filter_across_slices_enabled_flag: u32,
7525		reserved: u32,
7526	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
7527		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
7528		__bindgen_bitfield_unit.set(0usize, 1u8, {
7529			let LastSliceOfPic: u32 = unsafe { ::std::mem::transmute(LastSliceOfPic) };
7530			LastSliceOfPic as u64
7531		});
7532		__bindgen_bitfield_unit.set(1usize, 1u8, {
7533			let dependent_slice_segment_flag: u32 = unsafe { ::std::mem::transmute(dependent_slice_segment_flag) };
7534			dependent_slice_segment_flag as u64
7535		});
7536		__bindgen_bitfield_unit.set(2usize, 2u8, {
7537			let slice_type: u32 = unsafe { ::std::mem::transmute(slice_type) };
7538			slice_type as u64
7539		});
7540		__bindgen_bitfield_unit.set(4usize, 2u8, {
7541			let color_plane_id: u32 = unsafe { ::std::mem::transmute(color_plane_id) };
7542			color_plane_id as u64
7543		});
7544		__bindgen_bitfield_unit.set(6usize, 1u8, {
7545			let slice_sao_luma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_luma_flag) };
7546			slice_sao_luma_flag as u64
7547		});
7548		__bindgen_bitfield_unit.set(7usize, 1u8, {
7549			let slice_sao_chroma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_chroma_flag) };
7550			slice_sao_chroma_flag as u64
7551		});
7552		__bindgen_bitfield_unit.set(8usize, 1u8, {
7553			let mvd_l1_zero_flag: u32 = unsafe { ::std::mem::transmute(mvd_l1_zero_flag) };
7554			mvd_l1_zero_flag as u64
7555		});
7556		__bindgen_bitfield_unit.set(9usize, 1u8, {
7557			let cabac_init_flag: u32 = unsafe { ::std::mem::transmute(cabac_init_flag) };
7558			cabac_init_flag as u64
7559		});
7560		__bindgen_bitfield_unit.set(10usize, 1u8, {
7561			let slice_temporal_mvp_enabled_flag: u32 =
7562				unsafe { ::std::mem::transmute(slice_temporal_mvp_enabled_flag) };
7563			slice_temporal_mvp_enabled_flag as u64
7564		});
7565		__bindgen_bitfield_unit.set(11usize, 1u8, {
7566			let slice_deblocking_filter_disabled_flag: u32 =
7567				unsafe { ::std::mem::transmute(slice_deblocking_filter_disabled_flag) };
7568			slice_deblocking_filter_disabled_flag as u64
7569		});
7570		__bindgen_bitfield_unit.set(12usize, 1u8, {
7571			let collocated_from_l0_flag: u32 = unsafe { ::std::mem::transmute(collocated_from_l0_flag) };
7572			collocated_from_l0_flag as u64
7573		});
7574		__bindgen_bitfield_unit.set(13usize, 1u8, {
7575			let slice_loop_filter_across_slices_enabled_flag: u32 =
7576				unsafe { ::std::mem::transmute(slice_loop_filter_across_slices_enabled_flag) };
7577			slice_loop_filter_across_slices_enabled_flag as u64
7578		});
7579		__bindgen_bitfield_unit.set(14usize, 18u8, {
7580			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
7581			reserved as u64
7582		});
7583		__bindgen_bitfield_unit
7584	}
7585}
7586impl Default for _VASliceParameterBufferHEVC__bindgen_ty_1 {
7587	fn default() -> Self {
7588		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7589		unsafe {
7590			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7591			s.assume_init()
7592		}
7593	}
7594}
7595impl Default for _VASliceParameterBufferHEVC {
7596	fn default() -> Self {
7597		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7598		unsafe {
7599			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7600			s.assume_init()
7601		}
7602	}
7603}
7604#[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"]
7605pub type VASliceParameterBufferHEVC = _VASliceParameterBufferHEVC;
7606#[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"]
7607#[repr(C)]
7608#[derive(Copy, Clone)]
7609pub struct _VASliceParameterBufferHEVCRext {
7610	pub luma_offset_l0: [i16; 15usize],
7611	pub ChromaOffsetL0: [[i16; 2usize]; 15usize],
7612	pub luma_offset_l1: [i16; 15usize],
7613	pub ChromaOffsetL1: [[i16; 2usize]; 15usize],
7614	pub slice_ext_flags: _VASliceParameterBufferHEVCRext__bindgen_ty_1,
7615	#[doc = " \\brief Screen Content Extension parameters.\n  data range [-12..12]"]
7616	pub slice_act_y_qp_offset: i8,
7617	pub slice_act_cb_qp_offset: i8,
7618	pub slice_act_cr_qp_offset: i8,
7619}
7620#[repr(C)]
7621#[derive(Copy, Clone)]
7622pub union _VASliceParameterBufferHEVCRext__bindgen_ty_1 {
7623	pub bits: _VASliceParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1,
7624	pub value: u32,
7625}
7626#[repr(C)]
7627#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
7628pub struct _VASliceParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
7629	pub _bitfield_align_1: [u32; 0],
7630	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
7631}
7632impl _VASliceParameterBufferHEVCRext__bindgen_ty_1__bindgen_ty_1 {
7633	#[inline]
7634	pub fn cu_chroma_qp_offset_enabled_flag(&self) -> u32 {
7635		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
7636	}
7637	#[inline]
7638	pub fn set_cu_chroma_qp_offset_enabled_flag(&mut self, val: u32) {
7639		unsafe {
7640			let val: u32 = ::std::mem::transmute(val);
7641			self._bitfield_1.set(0usize, 1u8, val as u64)
7642		}
7643	}
7644	#[inline]
7645	pub unsafe fn cu_chroma_qp_offset_enabled_flag_raw(this: *const Self) -> u32 {
7646		unsafe {
7647			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7648				::std::ptr::addr_of!((*this)._bitfield_1),
7649				0usize,
7650				1u8,
7651			) as u32)
7652		}
7653	}
7654	#[inline]
7655	pub unsafe fn set_cu_chroma_qp_offset_enabled_flag_raw(this: *mut Self, val: u32) {
7656		unsafe {
7657			let val: u32 = ::std::mem::transmute(val);
7658			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7659				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7660				0usize,
7661				1u8,
7662				val as u64,
7663			)
7664		}
7665	}
7666	#[inline]
7667	pub fn use_integer_mv_flag(&self) -> u32 {
7668		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
7669	}
7670	#[inline]
7671	pub fn set_use_integer_mv_flag(&mut self, val: u32) {
7672		unsafe {
7673			let val: u32 = ::std::mem::transmute(val);
7674			self._bitfield_1.set(1usize, 1u8, val as u64)
7675		}
7676	}
7677	#[inline]
7678	pub unsafe fn use_integer_mv_flag_raw(this: *const Self) -> u32 {
7679		unsafe {
7680			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7681				::std::ptr::addr_of!((*this)._bitfield_1),
7682				1usize,
7683				1u8,
7684			) as u32)
7685		}
7686	}
7687	#[inline]
7688	pub unsafe fn set_use_integer_mv_flag_raw(this: *mut Self, val: u32) {
7689		unsafe {
7690			let val: u32 = ::std::mem::transmute(val);
7691			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7692				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7693				1usize,
7694				1u8,
7695				val as u64,
7696			)
7697		}
7698	}
7699	#[inline]
7700	pub fn reserved(&self) -> u32 {
7701		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
7702	}
7703	#[inline]
7704	pub fn set_reserved(&mut self, val: u32) {
7705		unsafe {
7706			let val: u32 = ::std::mem::transmute(val);
7707			self._bitfield_1.set(2usize, 30u8, val as u64)
7708		}
7709	}
7710	#[inline]
7711	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
7712		unsafe {
7713			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7714				::std::ptr::addr_of!((*this)._bitfield_1),
7715				2usize,
7716				30u8,
7717			) as u32)
7718		}
7719	}
7720	#[inline]
7721	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
7722		unsafe {
7723			let val: u32 = ::std::mem::transmute(val);
7724			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7725				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7726				2usize,
7727				30u8,
7728				val as u64,
7729			)
7730		}
7731	}
7732	#[inline]
7733	pub fn new_bitfield_1(
7734		cu_chroma_qp_offset_enabled_flag: u32,
7735		use_integer_mv_flag: u32,
7736		reserved: u32,
7737	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
7738		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
7739		__bindgen_bitfield_unit.set(0usize, 1u8, {
7740			let cu_chroma_qp_offset_enabled_flag: u32 =
7741				unsafe { ::std::mem::transmute(cu_chroma_qp_offset_enabled_flag) };
7742			cu_chroma_qp_offset_enabled_flag as u64
7743		});
7744		__bindgen_bitfield_unit.set(1usize, 1u8, {
7745			let use_integer_mv_flag: u32 = unsafe { ::std::mem::transmute(use_integer_mv_flag) };
7746			use_integer_mv_flag as u64
7747		});
7748		__bindgen_bitfield_unit.set(2usize, 30u8, {
7749			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
7750			reserved as u64
7751		});
7752		__bindgen_bitfield_unit
7753	}
7754}
7755impl Default for _VASliceParameterBufferHEVCRext__bindgen_ty_1 {
7756	fn default() -> Self {
7757		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7758		unsafe {
7759			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7760			s.assume_init()
7761		}
7762	}
7763}
7764impl Default for _VASliceParameterBufferHEVCRext {
7765	fn default() -> Self {
7766		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7767		unsafe {
7768			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7769			s.assume_init()
7770		}
7771	}
7772}
7773#[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"]
7774pub type VASliceParameterBufferHEVCRext = _VASliceParameterBufferHEVCRext;
7775#[doc = " \\brief HEVC Decoding Slice Parameter Buffer Structure For Long Format including Extensions\n\n This data structure contains both baseline HEVC profiles (main, main10)\n and extension profiles (range extension and screen content).\n\n VASliceParameterBufferHEVCExtension 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. For HEVC range extension and HEVC Scc decoding,\n application should parse both basic slice parameters and extented slice\n parameters into this buffer structure and sent it.\n\n For short format, this data structure is not sent by application.\n"]
7776#[repr(C)]
7777#[derive(Copy, Clone)]
7778pub struct _VASliceParameterBufferHEVCExtension {
7779	#[doc = " \\brief baseline HEVC slice parameters data structure"]
7780	pub base: VASliceParameterBufferHEVC,
7781	#[doc = " \\brief extented HEVC slice parameters data structure"]
7782	pub rext: VASliceParameterBufferHEVCRext,
7783}
7784impl Default for _VASliceParameterBufferHEVCExtension {
7785	fn default() -> Self {
7786		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7787		unsafe {
7788			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7789			s.assume_init()
7790		}
7791	}
7792}
7793#[doc = " \\brief HEVC Decoding Slice Parameter Buffer Structure For Long Format including Extensions\n\n This data structure contains both baseline HEVC profiles (main, main10)\n and extension profiles (range extension and screen content).\n\n VASliceParameterBufferHEVCExtension 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. For HEVC range extension and HEVC Scc decoding,\n application should parse both basic slice parameters and extented slice\n parameters into this buffer structure and sent it.\n\n For short format, this data structure is not sent by application.\n"]
7794pub type VASliceParameterBufferHEVCExtension = _VASliceParameterBufferHEVCExtension;
7795#[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."]
7796#[repr(C)]
7797#[derive(Debug, Copy, Clone, PartialEq, Eq)]
7798pub struct _VAIQMatrixBufferHEVC {
7799	#[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."]
7800	pub ScalingList4x4: [[u8; 16usize]; 6usize],
7801	#[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."]
7802	pub ScalingList8x8: [[u8; 64usize]; 6usize],
7803	#[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."]
7804	pub ScalingList16x16: [[u8; 64usize]; 6usize],
7805	#[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."]
7806	pub ScalingList32x32: [[u8; 64usize]; 2usize],
7807	#[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."]
7808	pub ScalingListDC16x16: [u8; 6usize],
7809	#[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."]
7810	pub ScalingListDC32x32: [u8; 2usize],
7811	#[doc = " \\brief Reserved bytes for future use, must be zero"]
7812	pub va_reserved: [u32; 4usize],
7813}
7814impl Default for _VAIQMatrixBufferHEVC {
7815	fn default() -> Self {
7816		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
7817		unsafe {
7818			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
7819			s.assume_init()
7820		}
7821	}
7822}
7823#[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."]
7824pub type VAIQMatrixBufferHEVC = _VAIQMatrixBufferHEVC;
7825#[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."]
7826#[repr(C)]
7827#[derive(Copy, Clone)]
7828pub union VAConfigAttribValEncHEVCFeatures {
7829	pub bits: VAConfigAttribValEncHEVCFeatures__bindgen_ty_1,
7830	pub value: u32,
7831}
7832#[repr(C)]
7833#[repr(align(4))]
7834#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
7835pub struct VAConfigAttribValEncHEVCFeatures__bindgen_ty_1 {
7836	pub _bitfield_align_1: [u8; 0],
7837	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
7838}
7839impl VAConfigAttribValEncHEVCFeatures__bindgen_ty_1 {
7840	#[inline]
7841	pub fn separate_colour_planes(&self) -> u32 {
7842		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
7843	}
7844	#[inline]
7845	pub fn set_separate_colour_planes(&mut self, val: u32) {
7846		unsafe {
7847			let val: u32 = ::std::mem::transmute(val);
7848			self._bitfield_1.set(0usize, 2u8, val as u64)
7849		}
7850	}
7851	#[inline]
7852	pub unsafe fn separate_colour_planes_raw(this: *const Self) -> u32 {
7853		unsafe {
7854			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7855				::std::ptr::addr_of!((*this)._bitfield_1),
7856				0usize,
7857				2u8,
7858			) as u32)
7859		}
7860	}
7861	#[inline]
7862	pub unsafe fn set_separate_colour_planes_raw(this: *mut Self, val: u32) {
7863		unsafe {
7864			let val: u32 = ::std::mem::transmute(val);
7865			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7866				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7867				0usize,
7868				2u8,
7869				val as u64,
7870			)
7871		}
7872	}
7873	#[inline]
7874	pub fn scaling_lists(&self) -> u32 {
7875		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
7876	}
7877	#[inline]
7878	pub fn set_scaling_lists(&mut self, val: u32) {
7879		unsafe {
7880			let val: u32 = ::std::mem::transmute(val);
7881			self._bitfield_1.set(2usize, 2u8, val as u64)
7882		}
7883	}
7884	#[inline]
7885	pub unsafe fn scaling_lists_raw(this: *const Self) -> u32 {
7886		unsafe {
7887			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7888				::std::ptr::addr_of!((*this)._bitfield_1),
7889				2usize,
7890				2u8,
7891			) as u32)
7892		}
7893	}
7894	#[inline]
7895	pub unsafe fn set_scaling_lists_raw(this: *mut Self, val: u32) {
7896		unsafe {
7897			let val: u32 = ::std::mem::transmute(val);
7898			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7899				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7900				2usize,
7901				2u8,
7902				val as u64,
7903			)
7904		}
7905	}
7906	#[inline]
7907	pub fn amp(&self) -> u32 {
7908		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) }
7909	}
7910	#[inline]
7911	pub fn set_amp(&mut self, val: u32) {
7912		unsafe {
7913			let val: u32 = ::std::mem::transmute(val);
7914			self._bitfield_1.set(4usize, 2u8, val as u64)
7915		}
7916	}
7917	#[inline]
7918	pub unsafe fn amp_raw(this: *const Self) -> u32 {
7919		unsafe {
7920			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7921				::std::ptr::addr_of!((*this)._bitfield_1),
7922				4usize,
7923				2u8,
7924			) as u32)
7925		}
7926	}
7927	#[inline]
7928	pub unsafe fn set_amp_raw(this: *mut Self, val: u32) {
7929		unsafe {
7930			let val: u32 = ::std::mem::transmute(val);
7931			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7932				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7933				4usize,
7934				2u8,
7935				val as u64,
7936			)
7937		}
7938	}
7939	#[inline]
7940	pub fn sao(&self) -> u32 {
7941		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 2u8) as u32) }
7942	}
7943	#[inline]
7944	pub fn set_sao(&mut self, val: u32) {
7945		unsafe {
7946			let val: u32 = ::std::mem::transmute(val);
7947			self._bitfield_1.set(6usize, 2u8, val as u64)
7948		}
7949	}
7950	#[inline]
7951	pub unsafe fn sao_raw(this: *const Self) -> u32 {
7952		unsafe {
7953			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7954				::std::ptr::addr_of!((*this)._bitfield_1),
7955				6usize,
7956				2u8,
7957			) as u32)
7958		}
7959	}
7960	#[inline]
7961	pub unsafe fn set_sao_raw(this: *mut Self, val: u32) {
7962		unsafe {
7963			let val: u32 = ::std::mem::transmute(val);
7964			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7965				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7966				6usize,
7967				2u8,
7968				val as u64,
7969			)
7970		}
7971	}
7972	#[inline]
7973	pub fn pcm(&self) -> u32 {
7974		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u32) }
7975	}
7976	#[inline]
7977	pub fn set_pcm(&mut self, val: u32) {
7978		unsafe {
7979			let val: u32 = ::std::mem::transmute(val);
7980			self._bitfield_1.set(8usize, 2u8, val as u64)
7981		}
7982	}
7983	#[inline]
7984	pub unsafe fn pcm_raw(this: *const Self) -> u32 {
7985		unsafe {
7986			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
7987				::std::ptr::addr_of!((*this)._bitfield_1),
7988				8usize,
7989				2u8,
7990			) as u32)
7991		}
7992	}
7993	#[inline]
7994	pub unsafe fn set_pcm_raw(this: *mut Self, val: u32) {
7995		unsafe {
7996			let val: u32 = ::std::mem::transmute(val);
7997			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
7998				::std::ptr::addr_of_mut!((*this)._bitfield_1),
7999				8usize,
8000				2u8,
8001				val as u64,
8002			)
8003		}
8004	}
8005	#[inline]
8006	pub fn temporal_mvp(&self) -> u32 {
8007		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
8008	}
8009	#[inline]
8010	pub fn set_temporal_mvp(&mut self, val: u32) {
8011		unsafe {
8012			let val: u32 = ::std::mem::transmute(val);
8013			self._bitfield_1.set(10usize, 2u8, val as u64)
8014		}
8015	}
8016	#[inline]
8017	pub unsafe fn temporal_mvp_raw(this: *const Self) -> u32 {
8018		unsafe {
8019			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8020				::std::ptr::addr_of!((*this)._bitfield_1),
8021				10usize,
8022				2u8,
8023			) as u32)
8024		}
8025	}
8026	#[inline]
8027	pub unsafe fn set_temporal_mvp_raw(this: *mut Self, val: u32) {
8028		unsafe {
8029			let val: u32 = ::std::mem::transmute(val);
8030			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8031				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8032				10usize,
8033				2u8,
8034				val as u64,
8035			)
8036		}
8037	}
8038	#[inline]
8039	pub fn strong_intra_smoothing(&self) -> u32 {
8040		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
8041	}
8042	#[inline]
8043	pub fn set_strong_intra_smoothing(&mut self, val: u32) {
8044		unsafe {
8045			let val: u32 = ::std::mem::transmute(val);
8046			self._bitfield_1.set(12usize, 2u8, val as u64)
8047		}
8048	}
8049	#[inline]
8050	pub unsafe fn strong_intra_smoothing_raw(this: *const Self) -> u32 {
8051		unsafe {
8052			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8053				::std::ptr::addr_of!((*this)._bitfield_1),
8054				12usize,
8055				2u8,
8056			) as u32)
8057		}
8058	}
8059	#[inline]
8060	pub unsafe fn set_strong_intra_smoothing_raw(this: *mut Self, val: u32) {
8061		unsafe {
8062			let val: u32 = ::std::mem::transmute(val);
8063			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8064				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8065				12usize,
8066				2u8,
8067				val as u64,
8068			)
8069		}
8070	}
8071	#[inline]
8072	pub fn dependent_slices(&self) -> u32 {
8073		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u32) }
8074	}
8075	#[inline]
8076	pub fn set_dependent_slices(&mut self, val: u32) {
8077		unsafe {
8078			let val: u32 = ::std::mem::transmute(val);
8079			self._bitfield_1.set(14usize, 2u8, val as u64)
8080		}
8081	}
8082	#[inline]
8083	pub unsafe fn dependent_slices_raw(this: *const Self) -> u32 {
8084		unsafe {
8085			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8086				::std::ptr::addr_of!((*this)._bitfield_1),
8087				14usize,
8088				2u8,
8089			) as u32)
8090		}
8091	}
8092	#[inline]
8093	pub unsafe fn set_dependent_slices_raw(this: *mut Self, val: u32) {
8094		unsafe {
8095			let val: u32 = ::std::mem::transmute(val);
8096			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8097				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8098				14usize,
8099				2u8,
8100				val as u64,
8101			)
8102		}
8103	}
8104	#[inline]
8105	pub fn sign_data_hiding(&self) -> u32 {
8106		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 2u8) as u32) }
8107	}
8108	#[inline]
8109	pub fn set_sign_data_hiding(&mut self, val: u32) {
8110		unsafe {
8111			let val: u32 = ::std::mem::transmute(val);
8112			self._bitfield_1.set(16usize, 2u8, val as u64)
8113		}
8114	}
8115	#[inline]
8116	pub unsafe fn sign_data_hiding_raw(this: *const Self) -> u32 {
8117		unsafe {
8118			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8119				::std::ptr::addr_of!((*this)._bitfield_1),
8120				16usize,
8121				2u8,
8122			) as u32)
8123		}
8124	}
8125	#[inline]
8126	pub unsafe fn set_sign_data_hiding_raw(this: *mut Self, val: u32) {
8127		unsafe {
8128			let val: u32 = ::std::mem::transmute(val);
8129			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8130				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8131				16usize,
8132				2u8,
8133				val as u64,
8134			)
8135		}
8136	}
8137	#[inline]
8138	pub fn constrained_intra_pred(&self) -> u32 {
8139		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) }
8140	}
8141	#[inline]
8142	pub fn set_constrained_intra_pred(&mut self, val: u32) {
8143		unsafe {
8144			let val: u32 = ::std::mem::transmute(val);
8145			self._bitfield_1.set(18usize, 2u8, val as u64)
8146		}
8147	}
8148	#[inline]
8149	pub unsafe fn constrained_intra_pred_raw(this: *const Self) -> u32 {
8150		unsafe {
8151			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8152				::std::ptr::addr_of!((*this)._bitfield_1),
8153				18usize,
8154				2u8,
8155			) as u32)
8156		}
8157	}
8158	#[inline]
8159	pub unsafe fn set_constrained_intra_pred_raw(this: *mut Self, val: u32) {
8160		unsafe {
8161			let val: u32 = ::std::mem::transmute(val);
8162			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8163				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8164				18usize,
8165				2u8,
8166				val as u64,
8167			)
8168		}
8169	}
8170	#[inline]
8171	pub fn transform_skip(&self) -> u32 {
8172		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 2u8) as u32) }
8173	}
8174	#[inline]
8175	pub fn set_transform_skip(&mut self, val: u32) {
8176		unsafe {
8177			let val: u32 = ::std::mem::transmute(val);
8178			self._bitfield_1.set(20usize, 2u8, val as u64)
8179		}
8180	}
8181	#[inline]
8182	pub unsafe fn transform_skip_raw(this: *const Self) -> u32 {
8183		unsafe {
8184			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8185				::std::ptr::addr_of!((*this)._bitfield_1),
8186				20usize,
8187				2u8,
8188			) as u32)
8189		}
8190	}
8191	#[inline]
8192	pub unsafe fn set_transform_skip_raw(this: *mut Self, val: u32) {
8193		unsafe {
8194			let val: u32 = ::std::mem::transmute(val);
8195			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8196				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8197				20usize,
8198				2u8,
8199				val as u64,
8200			)
8201		}
8202	}
8203	#[inline]
8204	pub fn cu_qp_delta(&self) -> u32 {
8205		unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 2u8) as u32) }
8206	}
8207	#[inline]
8208	pub fn set_cu_qp_delta(&mut self, val: u32) {
8209		unsafe {
8210			let val: u32 = ::std::mem::transmute(val);
8211			self._bitfield_1.set(22usize, 2u8, val as u64)
8212		}
8213	}
8214	#[inline]
8215	pub unsafe fn cu_qp_delta_raw(this: *const Self) -> u32 {
8216		unsafe {
8217			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8218				::std::ptr::addr_of!((*this)._bitfield_1),
8219				22usize,
8220				2u8,
8221			) as u32)
8222		}
8223	}
8224	#[inline]
8225	pub unsafe fn set_cu_qp_delta_raw(this: *mut Self, val: u32) {
8226		unsafe {
8227			let val: u32 = ::std::mem::transmute(val);
8228			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8229				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8230				22usize,
8231				2u8,
8232				val as u64,
8233			)
8234		}
8235	}
8236	#[inline]
8237	pub fn weighted_prediction(&self) -> u32 {
8238		unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 2u8) as u32) }
8239	}
8240	#[inline]
8241	pub fn set_weighted_prediction(&mut self, val: u32) {
8242		unsafe {
8243			let val: u32 = ::std::mem::transmute(val);
8244			self._bitfield_1.set(24usize, 2u8, val as u64)
8245		}
8246	}
8247	#[inline]
8248	pub unsafe fn weighted_prediction_raw(this: *const Self) -> u32 {
8249		unsafe {
8250			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8251				::std::ptr::addr_of!((*this)._bitfield_1),
8252				24usize,
8253				2u8,
8254			) as u32)
8255		}
8256	}
8257	#[inline]
8258	pub unsafe fn set_weighted_prediction_raw(this: *mut Self, val: u32) {
8259		unsafe {
8260			let val: u32 = ::std::mem::transmute(val);
8261			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8262				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8263				24usize,
8264				2u8,
8265				val as u64,
8266			)
8267		}
8268	}
8269	#[inline]
8270	pub fn transquant_bypass(&self) -> u32 {
8271		unsafe { ::std::mem::transmute(self._bitfield_1.get(26usize, 2u8) as u32) }
8272	}
8273	#[inline]
8274	pub fn set_transquant_bypass(&mut self, val: u32) {
8275		unsafe {
8276			let val: u32 = ::std::mem::transmute(val);
8277			self._bitfield_1.set(26usize, 2u8, val as u64)
8278		}
8279	}
8280	#[inline]
8281	pub unsafe fn transquant_bypass_raw(this: *const Self) -> u32 {
8282		unsafe {
8283			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8284				::std::ptr::addr_of!((*this)._bitfield_1),
8285				26usize,
8286				2u8,
8287			) as u32)
8288		}
8289	}
8290	#[inline]
8291	pub unsafe fn set_transquant_bypass_raw(this: *mut Self, val: u32) {
8292		unsafe {
8293			let val: u32 = ::std::mem::transmute(val);
8294			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8295				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8296				26usize,
8297				2u8,
8298				val as u64,
8299			)
8300		}
8301	}
8302	#[inline]
8303	pub fn deblocking_filter_disable(&self) -> u32 {
8304		unsafe { ::std::mem::transmute(self._bitfield_1.get(28usize, 2u8) as u32) }
8305	}
8306	#[inline]
8307	pub fn set_deblocking_filter_disable(&mut self, val: u32) {
8308		unsafe {
8309			let val: u32 = ::std::mem::transmute(val);
8310			self._bitfield_1.set(28usize, 2u8, val as u64)
8311		}
8312	}
8313	#[inline]
8314	pub unsafe fn deblocking_filter_disable_raw(this: *const Self) -> u32 {
8315		unsafe {
8316			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8317				::std::ptr::addr_of!((*this)._bitfield_1),
8318				28usize,
8319				2u8,
8320			) as u32)
8321		}
8322	}
8323	#[inline]
8324	pub unsafe fn set_deblocking_filter_disable_raw(this: *mut Self, val: u32) {
8325		unsafe {
8326			let val: u32 = ::std::mem::transmute(val);
8327			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8328				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8329				28usize,
8330				2u8,
8331				val as u64,
8332			)
8333		}
8334	}
8335	#[inline]
8336	pub fn reserved(&self) -> u32 {
8337		unsafe { ::std::mem::transmute(self._bitfield_1.get(30usize, 2u8) as u32) }
8338	}
8339	#[inline]
8340	pub fn set_reserved(&mut self, val: u32) {
8341		unsafe {
8342			let val: u32 = ::std::mem::transmute(val);
8343			self._bitfield_1.set(30usize, 2u8, val as u64)
8344		}
8345	}
8346	#[inline]
8347	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
8348		unsafe {
8349			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8350				::std::ptr::addr_of!((*this)._bitfield_1),
8351				30usize,
8352				2u8,
8353			) as u32)
8354		}
8355	}
8356	#[inline]
8357	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
8358		unsafe {
8359			let val: u32 = ::std::mem::transmute(val);
8360			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8361				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8362				30usize,
8363				2u8,
8364				val as u64,
8365			)
8366		}
8367	}
8368	#[inline]
8369	pub fn new_bitfield_1(
8370		separate_colour_planes: u32,
8371		scaling_lists: u32,
8372		amp: u32,
8373		sao: u32,
8374		pcm: u32,
8375		temporal_mvp: u32,
8376		strong_intra_smoothing: u32,
8377		dependent_slices: u32,
8378		sign_data_hiding: u32,
8379		constrained_intra_pred: u32,
8380		transform_skip: u32,
8381		cu_qp_delta: u32,
8382		weighted_prediction: u32,
8383		transquant_bypass: u32,
8384		deblocking_filter_disable: u32,
8385		reserved: u32,
8386	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
8387		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
8388		__bindgen_bitfield_unit.set(0usize, 2u8, {
8389			let separate_colour_planes: u32 = unsafe { ::std::mem::transmute(separate_colour_planes) };
8390			separate_colour_planes as u64
8391		});
8392		__bindgen_bitfield_unit.set(2usize, 2u8, {
8393			let scaling_lists: u32 = unsafe { ::std::mem::transmute(scaling_lists) };
8394			scaling_lists as u64
8395		});
8396		__bindgen_bitfield_unit.set(4usize, 2u8, {
8397			let amp: u32 = unsafe { ::std::mem::transmute(amp) };
8398			amp as u64
8399		});
8400		__bindgen_bitfield_unit.set(6usize, 2u8, {
8401			let sao: u32 = unsafe { ::std::mem::transmute(sao) };
8402			sao as u64
8403		});
8404		__bindgen_bitfield_unit.set(8usize, 2u8, {
8405			let pcm: u32 = unsafe { ::std::mem::transmute(pcm) };
8406			pcm as u64
8407		});
8408		__bindgen_bitfield_unit.set(10usize, 2u8, {
8409			let temporal_mvp: u32 = unsafe { ::std::mem::transmute(temporal_mvp) };
8410			temporal_mvp as u64
8411		});
8412		__bindgen_bitfield_unit.set(12usize, 2u8, {
8413			let strong_intra_smoothing: u32 = unsafe { ::std::mem::transmute(strong_intra_smoothing) };
8414			strong_intra_smoothing as u64
8415		});
8416		__bindgen_bitfield_unit.set(14usize, 2u8, {
8417			let dependent_slices: u32 = unsafe { ::std::mem::transmute(dependent_slices) };
8418			dependent_slices as u64
8419		});
8420		__bindgen_bitfield_unit.set(16usize, 2u8, {
8421			let sign_data_hiding: u32 = unsafe { ::std::mem::transmute(sign_data_hiding) };
8422			sign_data_hiding as u64
8423		});
8424		__bindgen_bitfield_unit.set(18usize, 2u8, {
8425			let constrained_intra_pred: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred) };
8426			constrained_intra_pred as u64
8427		});
8428		__bindgen_bitfield_unit.set(20usize, 2u8, {
8429			let transform_skip: u32 = unsafe { ::std::mem::transmute(transform_skip) };
8430			transform_skip as u64
8431		});
8432		__bindgen_bitfield_unit.set(22usize, 2u8, {
8433			let cu_qp_delta: u32 = unsafe { ::std::mem::transmute(cu_qp_delta) };
8434			cu_qp_delta as u64
8435		});
8436		__bindgen_bitfield_unit.set(24usize, 2u8, {
8437			let weighted_prediction: u32 = unsafe { ::std::mem::transmute(weighted_prediction) };
8438			weighted_prediction as u64
8439		});
8440		__bindgen_bitfield_unit.set(26usize, 2u8, {
8441			let transquant_bypass: u32 = unsafe { ::std::mem::transmute(transquant_bypass) };
8442			transquant_bypass as u64
8443		});
8444		__bindgen_bitfield_unit.set(28usize, 2u8, {
8445			let deblocking_filter_disable: u32 = unsafe { ::std::mem::transmute(deblocking_filter_disable) };
8446			deblocking_filter_disable as u64
8447		});
8448		__bindgen_bitfield_unit.set(30usize, 2u8, {
8449			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
8450			reserved as u64
8451		});
8452		__bindgen_bitfield_unit
8453	}
8454}
8455impl Default for VAConfigAttribValEncHEVCFeatures {
8456	fn default() -> Self {
8457		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
8458		unsafe {
8459			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
8460			s.assume_init()
8461		}
8462	}
8463}
8464#[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"]
8465#[repr(C)]
8466#[derive(Copy, Clone)]
8467pub union VAConfigAttribValEncHEVCBlockSizes {
8468	pub bits: VAConfigAttribValEncHEVCBlockSizes__bindgen_ty_1,
8469	pub value: u32,
8470}
8471#[repr(C)]
8472#[repr(align(4))]
8473#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
8474pub struct VAConfigAttribValEncHEVCBlockSizes__bindgen_ty_1 {
8475	pub _bitfield_align_1: [u16; 0],
8476	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
8477}
8478impl VAConfigAttribValEncHEVCBlockSizes__bindgen_ty_1 {
8479	#[inline]
8480	pub fn log2_max_coding_tree_block_size_minus3(&self) -> u32 {
8481		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
8482	}
8483	#[inline]
8484	pub fn set_log2_max_coding_tree_block_size_minus3(&mut self, val: u32) {
8485		unsafe {
8486			let val: u32 = ::std::mem::transmute(val);
8487			self._bitfield_1.set(0usize, 2u8, val as u64)
8488		}
8489	}
8490	#[inline]
8491	pub unsafe fn log2_max_coding_tree_block_size_minus3_raw(this: *const Self) -> u32 {
8492		unsafe {
8493			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8494				::std::ptr::addr_of!((*this)._bitfield_1),
8495				0usize,
8496				2u8,
8497			) as u32)
8498		}
8499	}
8500	#[inline]
8501	pub unsafe fn set_log2_max_coding_tree_block_size_minus3_raw(this: *mut Self, val: u32) {
8502		unsafe {
8503			let val: u32 = ::std::mem::transmute(val);
8504			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8505				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8506				0usize,
8507				2u8,
8508				val as u64,
8509			)
8510		}
8511	}
8512	#[inline]
8513	pub fn log2_min_coding_tree_block_size_minus3(&self) -> u32 {
8514		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
8515	}
8516	#[inline]
8517	pub fn set_log2_min_coding_tree_block_size_minus3(&mut self, val: u32) {
8518		unsafe {
8519			let val: u32 = ::std::mem::transmute(val);
8520			self._bitfield_1.set(2usize, 2u8, val as u64)
8521		}
8522	}
8523	#[inline]
8524	pub unsafe fn log2_min_coding_tree_block_size_minus3_raw(this: *const Self) -> u32 {
8525		unsafe {
8526			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8527				::std::ptr::addr_of!((*this)._bitfield_1),
8528				2usize,
8529				2u8,
8530			) as u32)
8531		}
8532	}
8533	#[inline]
8534	pub unsafe fn set_log2_min_coding_tree_block_size_minus3_raw(this: *mut Self, val: u32) {
8535		unsafe {
8536			let val: u32 = ::std::mem::transmute(val);
8537			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8538				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8539				2usize,
8540				2u8,
8541				val as u64,
8542			)
8543		}
8544	}
8545	#[inline]
8546	pub fn log2_min_luma_coding_block_size_minus3(&self) -> u32 {
8547		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) }
8548	}
8549	#[inline]
8550	pub fn set_log2_min_luma_coding_block_size_minus3(&mut self, val: u32) {
8551		unsafe {
8552			let val: u32 = ::std::mem::transmute(val);
8553			self._bitfield_1.set(4usize, 2u8, val as u64)
8554		}
8555	}
8556	#[inline]
8557	pub unsafe fn log2_min_luma_coding_block_size_minus3_raw(this: *const Self) -> u32 {
8558		unsafe {
8559			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8560				::std::ptr::addr_of!((*this)._bitfield_1),
8561				4usize,
8562				2u8,
8563			) as u32)
8564		}
8565	}
8566	#[inline]
8567	pub unsafe fn set_log2_min_luma_coding_block_size_minus3_raw(this: *mut Self, val: u32) {
8568		unsafe {
8569			let val: u32 = ::std::mem::transmute(val);
8570			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8571				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8572				4usize,
8573				2u8,
8574				val as u64,
8575			)
8576		}
8577	}
8578	#[inline]
8579	pub fn log2_max_luma_transform_block_size_minus2(&self) -> u32 {
8580		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 2u8) as u32) }
8581	}
8582	#[inline]
8583	pub fn set_log2_max_luma_transform_block_size_minus2(&mut self, val: u32) {
8584		unsafe {
8585			let val: u32 = ::std::mem::transmute(val);
8586			self._bitfield_1.set(6usize, 2u8, val as u64)
8587		}
8588	}
8589	#[inline]
8590	pub unsafe fn log2_max_luma_transform_block_size_minus2_raw(this: *const Self) -> u32 {
8591		unsafe {
8592			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8593				::std::ptr::addr_of!((*this)._bitfield_1),
8594				6usize,
8595				2u8,
8596			) as u32)
8597		}
8598	}
8599	#[inline]
8600	pub unsafe fn set_log2_max_luma_transform_block_size_minus2_raw(this: *mut Self, val: u32) {
8601		unsafe {
8602			let val: u32 = ::std::mem::transmute(val);
8603			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8604				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8605				6usize,
8606				2u8,
8607				val as u64,
8608			)
8609		}
8610	}
8611	#[inline]
8612	pub fn log2_min_luma_transform_block_size_minus2(&self) -> u32 {
8613		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 2u8) as u32) }
8614	}
8615	#[inline]
8616	pub fn set_log2_min_luma_transform_block_size_minus2(&mut self, val: u32) {
8617		unsafe {
8618			let val: u32 = ::std::mem::transmute(val);
8619			self._bitfield_1.set(8usize, 2u8, val as u64)
8620		}
8621	}
8622	#[inline]
8623	pub unsafe fn log2_min_luma_transform_block_size_minus2_raw(this: *const Self) -> u32 {
8624		unsafe {
8625			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8626				::std::ptr::addr_of!((*this)._bitfield_1),
8627				8usize,
8628				2u8,
8629			) as u32)
8630		}
8631	}
8632	#[inline]
8633	pub unsafe fn set_log2_min_luma_transform_block_size_minus2_raw(this: *mut Self, val: u32) {
8634		unsafe {
8635			let val: u32 = ::std::mem::transmute(val);
8636			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8637				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8638				8usize,
8639				2u8,
8640				val as u64,
8641			)
8642		}
8643	}
8644	#[inline]
8645	pub fn max_max_transform_hierarchy_depth_inter(&self) -> u32 {
8646		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
8647	}
8648	#[inline]
8649	pub fn set_max_max_transform_hierarchy_depth_inter(&mut self, val: u32) {
8650		unsafe {
8651			let val: u32 = ::std::mem::transmute(val);
8652			self._bitfield_1.set(10usize, 2u8, val as u64)
8653		}
8654	}
8655	#[inline]
8656	pub unsafe fn max_max_transform_hierarchy_depth_inter_raw(this: *const Self) -> u32 {
8657		unsafe {
8658			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8659				::std::ptr::addr_of!((*this)._bitfield_1),
8660				10usize,
8661				2u8,
8662			) as u32)
8663		}
8664	}
8665	#[inline]
8666	pub unsafe fn set_max_max_transform_hierarchy_depth_inter_raw(this: *mut Self, val: u32) {
8667		unsafe {
8668			let val: u32 = ::std::mem::transmute(val);
8669			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8670				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8671				10usize,
8672				2u8,
8673				val as u64,
8674			)
8675		}
8676	}
8677	#[inline]
8678	pub fn min_max_transform_hierarchy_depth_inter(&self) -> u32 {
8679		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 2u8) as u32) }
8680	}
8681	#[inline]
8682	pub fn set_min_max_transform_hierarchy_depth_inter(&mut self, val: u32) {
8683		unsafe {
8684			let val: u32 = ::std::mem::transmute(val);
8685			self._bitfield_1.set(12usize, 2u8, val as u64)
8686		}
8687	}
8688	#[inline]
8689	pub unsafe fn min_max_transform_hierarchy_depth_inter_raw(this: *const Self) -> u32 {
8690		unsafe {
8691			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8692				::std::ptr::addr_of!((*this)._bitfield_1),
8693				12usize,
8694				2u8,
8695			) as u32)
8696		}
8697	}
8698	#[inline]
8699	pub unsafe fn set_min_max_transform_hierarchy_depth_inter_raw(this: *mut Self, val: u32) {
8700		unsafe {
8701			let val: u32 = ::std::mem::transmute(val);
8702			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8703				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8704				12usize,
8705				2u8,
8706				val as u64,
8707			)
8708		}
8709	}
8710	#[inline]
8711	pub fn max_max_transform_hierarchy_depth_intra(&self) -> u32 {
8712		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u32) }
8713	}
8714	#[inline]
8715	pub fn set_max_max_transform_hierarchy_depth_intra(&mut self, val: u32) {
8716		unsafe {
8717			let val: u32 = ::std::mem::transmute(val);
8718			self._bitfield_1.set(14usize, 2u8, val as u64)
8719		}
8720	}
8721	#[inline]
8722	pub unsafe fn max_max_transform_hierarchy_depth_intra_raw(this: *const Self) -> u32 {
8723		unsafe {
8724			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8725				::std::ptr::addr_of!((*this)._bitfield_1),
8726				14usize,
8727				2u8,
8728			) as u32)
8729		}
8730	}
8731	#[inline]
8732	pub unsafe fn set_max_max_transform_hierarchy_depth_intra_raw(this: *mut Self, val: u32) {
8733		unsafe {
8734			let val: u32 = ::std::mem::transmute(val);
8735			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8736				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8737				14usize,
8738				2u8,
8739				val as u64,
8740			)
8741		}
8742	}
8743	#[inline]
8744	pub fn min_max_transform_hierarchy_depth_intra(&self) -> u32 {
8745		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 2u8) as u32) }
8746	}
8747	#[inline]
8748	pub fn set_min_max_transform_hierarchy_depth_intra(&mut self, val: u32) {
8749		unsafe {
8750			let val: u32 = ::std::mem::transmute(val);
8751			self._bitfield_1.set(16usize, 2u8, val as u64)
8752		}
8753	}
8754	#[inline]
8755	pub unsafe fn min_max_transform_hierarchy_depth_intra_raw(this: *const Self) -> u32 {
8756		unsafe {
8757			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8758				::std::ptr::addr_of!((*this)._bitfield_1),
8759				16usize,
8760				2u8,
8761			) as u32)
8762		}
8763	}
8764	#[inline]
8765	pub unsafe fn set_min_max_transform_hierarchy_depth_intra_raw(this: *mut Self, val: u32) {
8766		unsafe {
8767			let val: u32 = ::std::mem::transmute(val);
8768			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8769				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8770				16usize,
8771				2u8,
8772				val as u64,
8773			)
8774		}
8775	}
8776	#[inline]
8777	pub fn log2_max_pcm_coding_block_size_minus3(&self) -> u32 {
8778		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 2u8) as u32) }
8779	}
8780	#[inline]
8781	pub fn set_log2_max_pcm_coding_block_size_minus3(&mut self, val: u32) {
8782		unsafe {
8783			let val: u32 = ::std::mem::transmute(val);
8784			self._bitfield_1.set(18usize, 2u8, val as u64)
8785		}
8786	}
8787	#[inline]
8788	pub unsafe fn log2_max_pcm_coding_block_size_minus3_raw(this: *const Self) -> u32 {
8789		unsafe {
8790			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8791				::std::ptr::addr_of!((*this)._bitfield_1),
8792				18usize,
8793				2u8,
8794			) as u32)
8795		}
8796	}
8797	#[inline]
8798	pub unsafe fn set_log2_max_pcm_coding_block_size_minus3_raw(this: *mut Self, val: u32) {
8799		unsafe {
8800			let val: u32 = ::std::mem::transmute(val);
8801			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8802				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8803				18usize,
8804				2u8,
8805				val as u64,
8806			)
8807		}
8808	}
8809	#[inline]
8810	pub fn log2_min_pcm_coding_block_size_minus3(&self) -> u32 {
8811		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 2u8) as u32) }
8812	}
8813	#[inline]
8814	pub fn set_log2_min_pcm_coding_block_size_minus3(&mut self, val: u32) {
8815		unsafe {
8816			let val: u32 = ::std::mem::transmute(val);
8817			self._bitfield_1.set(20usize, 2u8, val as u64)
8818		}
8819	}
8820	#[inline]
8821	pub unsafe fn log2_min_pcm_coding_block_size_minus3_raw(this: *const Self) -> u32 {
8822		unsafe {
8823			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8824				::std::ptr::addr_of!((*this)._bitfield_1),
8825				20usize,
8826				2u8,
8827			) as u32)
8828		}
8829	}
8830	#[inline]
8831	pub unsafe fn set_log2_min_pcm_coding_block_size_minus3_raw(this: *mut Self, val: u32) {
8832		unsafe {
8833			let val: u32 = ::std::mem::transmute(val);
8834			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8835				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8836				20usize,
8837				2u8,
8838				val as u64,
8839			)
8840		}
8841	}
8842	#[inline]
8843	pub fn reserved(&self) -> u32 {
8844		unsafe { ::std::mem::transmute(self._bitfield_1.get(22usize, 10u8) as u32) }
8845	}
8846	#[inline]
8847	pub fn set_reserved(&mut self, val: u32) {
8848		unsafe {
8849			let val: u32 = ::std::mem::transmute(val);
8850			self._bitfield_1.set(22usize, 10u8, val as u64)
8851		}
8852	}
8853	#[inline]
8854	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
8855		unsafe {
8856			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
8857				::std::ptr::addr_of!((*this)._bitfield_1),
8858				22usize,
8859				10u8,
8860			) as u32)
8861		}
8862	}
8863	#[inline]
8864	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
8865		unsafe {
8866			let val: u32 = ::std::mem::transmute(val);
8867			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
8868				::std::ptr::addr_of_mut!((*this)._bitfield_1),
8869				22usize,
8870				10u8,
8871				val as u64,
8872			)
8873		}
8874	}
8875	#[inline]
8876	pub fn new_bitfield_1(
8877		log2_max_coding_tree_block_size_minus3: u32,
8878		log2_min_coding_tree_block_size_minus3: u32,
8879		log2_min_luma_coding_block_size_minus3: u32,
8880		log2_max_luma_transform_block_size_minus2: u32,
8881		log2_min_luma_transform_block_size_minus2: u32,
8882		max_max_transform_hierarchy_depth_inter: u32,
8883		min_max_transform_hierarchy_depth_inter: u32,
8884		max_max_transform_hierarchy_depth_intra: u32,
8885		min_max_transform_hierarchy_depth_intra: u32,
8886		log2_max_pcm_coding_block_size_minus3: u32,
8887		log2_min_pcm_coding_block_size_minus3: u32,
8888		reserved: u32,
8889	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
8890		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
8891		__bindgen_bitfield_unit.set(0usize, 2u8, {
8892			let log2_max_coding_tree_block_size_minus3: u32 =
8893				unsafe { ::std::mem::transmute(log2_max_coding_tree_block_size_minus3) };
8894			log2_max_coding_tree_block_size_minus3 as u64
8895		});
8896		__bindgen_bitfield_unit.set(2usize, 2u8, {
8897			let log2_min_coding_tree_block_size_minus3: u32 =
8898				unsafe { ::std::mem::transmute(log2_min_coding_tree_block_size_minus3) };
8899			log2_min_coding_tree_block_size_minus3 as u64
8900		});
8901		__bindgen_bitfield_unit.set(4usize, 2u8, {
8902			let log2_min_luma_coding_block_size_minus3: u32 =
8903				unsafe { ::std::mem::transmute(log2_min_luma_coding_block_size_minus3) };
8904			log2_min_luma_coding_block_size_minus3 as u64
8905		});
8906		__bindgen_bitfield_unit.set(6usize, 2u8, {
8907			let log2_max_luma_transform_block_size_minus2: u32 =
8908				unsafe { ::std::mem::transmute(log2_max_luma_transform_block_size_minus2) };
8909			log2_max_luma_transform_block_size_minus2 as u64
8910		});
8911		__bindgen_bitfield_unit.set(8usize, 2u8, {
8912			let log2_min_luma_transform_block_size_minus2: u32 =
8913				unsafe { ::std::mem::transmute(log2_min_luma_transform_block_size_minus2) };
8914			log2_min_luma_transform_block_size_minus2 as u64
8915		});
8916		__bindgen_bitfield_unit.set(10usize, 2u8, {
8917			let max_max_transform_hierarchy_depth_inter: u32 =
8918				unsafe { ::std::mem::transmute(max_max_transform_hierarchy_depth_inter) };
8919			max_max_transform_hierarchy_depth_inter as u64
8920		});
8921		__bindgen_bitfield_unit.set(12usize, 2u8, {
8922			let min_max_transform_hierarchy_depth_inter: u32 =
8923				unsafe { ::std::mem::transmute(min_max_transform_hierarchy_depth_inter) };
8924			min_max_transform_hierarchy_depth_inter as u64
8925		});
8926		__bindgen_bitfield_unit.set(14usize, 2u8, {
8927			let max_max_transform_hierarchy_depth_intra: u32 =
8928				unsafe { ::std::mem::transmute(max_max_transform_hierarchy_depth_intra) };
8929			max_max_transform_hierarchy_depth_intra as u64
8930		});
8931		__bindgen_bitfield_unit.set(16usize, 2u8, {
8932			let min_max_transform_hierarchy_depth_intra: u32 =
8933				unsafe { ::std::mem::transmute(min_max_transform_hierarchy_depth_intra) };
8934			min_max_transform_hierarchy_depth_intra as u64
8935		});
8936		__bindgen_bitfield_unit.set(18usize, 2u8, {
8937			let log2_max_pcm_coding_block_size_minus3: u32 =
8938				unsafe { ::std::mem::transmute(log2_max_pcm_coding_block_size_minus3) };
8939			log2_max_pcm_coding_block_size_minus3 as u64
8940		});
8941		__bindgen_bitfield_unit.set(20usize, 2u8, {
8942			let log2_min_pcm_coding_block_size_minus3: u32 =
8943				unsafe { ::std::mem::transmute(log2_min_pcm_coding_block_size_minus3) };
8944			log2_min_pcm_coding_block_size_minus3 as u64
8945		});
8946		__bindgen_bitfield_unit.set(22usize, 10u8, {
8947			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
8948			reserved as u64
8949		});
8950		__bindgen_bitfield_unit
8951	}
8952}
8953impl Default for VAConfigAttribValEncHEVCBlockSizes {
8954	fn default() -> Self {
8955		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
8956		unsafe {
8957			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
8958			s.assume_init()
8959		}
8960	}
8961}
8962pub mod VAEncPackedHeaderTypeHEVC {
8963	#[doc = " \\brief Packed header types specific to HEVC encoding.\n\n Types of packed headers generally used for HEVC encoding. Each\n associated packed header data buffer shall contain the start code\n prefix 0x000001 followed by the complete NAL unit, thus also\n including the \\c nal_unit_type.\n\n Note: the start code prefix can contain an arbitrary number of leading\n zeros. The driver will skip them for emulation prevention bytes insertion,\n if necessary."]
8964	pub type Type = ::std::os::raw::c_uint;
8965	#[doc = " \\brief Packed Video Parameter Set (VPS).\n\n The corresponding packed header data buffer shall contain the\n complete video_parameter_set_rbsp() syntax element.\n\n Note: packed \\c nal_unit_type shall be equal to 32."]
8966	pub const VAEncPackedHeaderHEVC_VPS: Type = 1;
8967	#[doc = " \\brief Packed Sequence Parameter Set (SPS).\n\n The corresponding packed header data buffer shall contain the\n complete seq_parameter_set_rbsp() syntax element.\n\n Note: packed \\c nal_unit_type shall be equal to 33."]
8968	pub const VAEncPackedHeaderHEVC_SPS: Type = 1;
8969	#[doc = " \\brief Packed Picture Parameter Set (PPS).\n\n The corresponding packed header data buffer shall contain the\n complete pic_parameter_set_rbsp() syntax element.\n\n Note: packed \\c nal_unit_type shall be equal to 34."]
8970	pub const VAEncPackedHeaderHEVC_PPS: Type = 2;
8971	#[doc = " \\brief Packed slice header.\n\n The corresponding packed header data buffer shall contain the\n \\c slice_header() syntax element only, along with any start\n code prefix and NAL unit type preceeding it. i.e. this means\n that the buffer does not contain any of the \\c slice_data() or\n the \\c rbsp_slice_trailing_bits().\n\n Note: packed \\c nal_unit_type shall be equal to 0 to 9 (non-IRAP\n picture), or 16 to 21 (IRAP picture)."]
8972	pub const VAEncPackedHeaderHEVC_Slice: Type = 3;
8973	#[doc = " \\brief Packed Supplemental Enhancement Information (SEI).\n\n The corresponding packed header data buffer shall contain the\n complete sei_rbsp() syntax element, thus including several\n sei_message() elements if necessary.\n\n Note: packed \\c nal_unit_type shall be equal to 39 or 40.\n\n @deprecated\n This is a deprecated packed header flag, All applications can use\n \\c VA_ENC_PACKED_HEADER_RAW_DATA to pass the corresponding packed\n SEI header data buffer to the driver"]
8974	pub const VAEncPackedHeaderHEVC_SEI: Type = 2147483649;
8975}
8976#[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."]
8977#[repr(C)]
8978#[derive(Copy, Clone)]
8979pub struct _VAEncSequenceParameterBufferHEVC {
8980	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [1..2]."]
8981	pub general_profile_idc: u8,
8982	#[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]"]
8983	pub general_level_idc: u8,
8984	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  Only value 0 is allowed for level value below 4, exclusive."]
8985	pub general_tier_flag: u8,
8986	#[doc = " \\brief Period between I frames."]
8987	pub intra_period: u32,
8988	#[doc = " \\brief Period between IDR frames."]
8989	pub intra_idr_period: u32,
8990	#[doc = " \\brief Period between I/P frames."]
8991	pub ip_period: u32,
8992	#[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."]
8993	pub bits_per_second: u32,
8994	#[doc = " \\brief Picture width in pixel samples.\n  Its value must be multiple of min CU size."]
8995	pub pic_width_in_luma_samples: u16,
8996	#[doc = " \\brief Picture height in pixel samples.\n  Its value must be multiple of min CU size."]
8997	pub pic_height_in_luma_samples: u16,
8998	pub seq_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_1,
8999	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [0..3]"]
9000	pub log2_min_luma_coding_block_size_minus3: u8,
9001	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9002	pub log2_diff_max_min_luma_coding_block_size: u8,
9003	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [0..3]"]
9004	pub log2_min_transform_block_size_minus2: u8,
9005	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9006	pub log2_diff_max_min_transform_block_size: u8,
9007	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [2]"]
9008	pub max_transform_hierarchy_depth_inter: u8,
9009	#[doc = " \\brief Same as the HEVC bitstream syntax element.\n  value range [2]"]
9010	pub max_transform_hierarchy_depth_intra: u8,
9011	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9012	pub pcm_sample_bit_depth_luma_minus1: u32,
9013	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9014	pub pcm_sample_bit_depth_chroma_minus1: u32,
9015	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9016	pub log2_min_pcm_luma_coding_block_size_minus3: u32,
9017	#[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"]
9018	pub log2_max_pcm_luma_coding_block_size_minus3: u32,
9019	#[doc = " @name VUI parameters (optional) */\n/**@{*/\n/** \\brief Same as the HEVC bitstream syntax element."]
9020	pub vui_parameters_present_flag: u8,
9021	pub vui_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_2,
9022	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9023	pub aspect_ratio_idc: u8,
9024	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9025	pub sar_width: u32,
9026	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9027	pub sar_height: u32,
9028	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9029	pub vui_num_units_in_tick: u32,
9030	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9031	pub vui_time_scale: u32,
9032	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9033	pub min_spatial_segmentation_idc: u16,
9034	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9035	pub max_bytes_per_pic_denom: u8,
9036	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
9037	pub max_bits_per_min_cu_denom: u8,
9038	pub scc_fields: _VAEncSequenceParameterBufferHEVC__bindgen_ty_3,
9039	#[doc = " \\brief Reserved bytes for future use, must be zero"]
9040	pub va_reserved: [u32; 7usize],
9041}
9042#[repr(C)]
9043#[derive(Copy, Clone)]
9044pub union _VAEncSequenceParameterBufferHEVC__bindgen_ty_1 {
9045	pub bits: _VAEncSequenceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
9046	pub value: u32,
9047}
9048#[repr(C)]
9049#[repr(align(4))]
9050#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
9051pub struct _VAEncSequenceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
9052	pub _bitfield_align_1: [u16; 0],
9053	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
9054}
9055impl _VAEncSequenceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
9056	#[inline]
9057	pub fn chroma_format_idc(&self) -> u32 {
9058		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
9059	}
9060	#[inline]
9061	pub fn set_chroma_format_idc(&mut self, val: u32) {
9062		unsafe {
9063			let val: u32 = ::std::mem::transmute(val);
9064			self._bitfield_1.set(0usize, 2u8, val as u64)
9065		}
9066	}
9067	#[inline]
9068	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
9069		unsafe {
9070			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9071				::std::ptr::addr_of!((*this)._bitfield_1),
9072				0usize,
9073				2u8,
9074			) as u32)
9075		}
9076	}
9077	#[inline]
9078	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
9079		unsafe {
9080			let val: u32 = ::std::mem::transmute(val);
9081			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9082				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9083				0usize,
9084				2u8,
9085				val as u64,
9086			)
9087		}
9088	}
9089	#[inline]
9090	pub fn separate_colour_plane_flag(&self) -> u32 {
9091		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
9092	}
9093	#[inline]
9094	pub fn set_separate_colour_plane_flag(&mut self, val: u32) {
9095		unsafe {
9096			let val: u32 = ::std::mem::transmute(val);
9097			self._bitfield_1.set(2usize, 1u8, val as u64)
9098		}
9099	}
9100	#[inline]
9101	pub unsafe fn separate_colour_plane_flag_raw(this: *const Self) -> u32 {
9102		unsafe {
9103			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9104				::std::ptr::addr_of!((*this)._bitfield_1),
9105				2usize,
9106				1u8,
9107			) as u32)
9108		}
9109	}
9110	#[inline]
9111	pub unsafe fn set_separate_colour_plane_flag_raw(this: *mut Self, val: u32) {
9112		unsafe {
9113			let val: u32 = ::std::mem::transmute(val);
9114			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9115				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9116				2usize,
9117				1u8,
9118				val as u64,
9119			)
9120		}
9121	}
9122	#[inline]
9123	pub fn bit_depth_luma_minus8(&self) -> u32 {
9124		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 3u8) as u32) }
9125	}
9126	#[inline]
9127	pub fn set_bit_depth_luma_minus8(&mut self, val: u32) {
9128		unsafe {
9129			let val: u32 = ::std::mem::transmute(val);
9130			self._bitfield_1.set(3usize, 3u8, val as u64)
9131		}
9132	}
9133	#[inline]
9134	pub unsafe fn bit_depth_luma_minus8_raw(this: *const Self) -> u32 {
9135		unsafe {
9136			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9137				::std::ptr::addr_of!((*this)._bitfield_1),
9138				3usize,
9139				3u8,
9140			) as u32)
9141		}
9142	}
9143	#[inline]
9144	pub unsafe fn set_bit_depth_luma_minus8_raw(this: *mut Self, val: u32) {
9145		unsafe {
9146			let val: u32 = ::std::mem::transmute(val);
9147			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9148				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9149				3usize,
9150				3u8,
9151				val as u64,
9152			)
9153		}
9154	}
9155	#[inline]
9156	pub fn bit_depth_chroma_minus8(&self) -> u32 {
9157		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 3u8) as u32) }
9158	}
9159	#[inline]
9160	pub fn set_bit_depth_chroma_minus8(&mut self, val: u32) {
9161		unsafe {
9162			let val: u32 = ::std::mem::transmute(val);
9163			self._bitfield_1.set(6usize, 3u8, val as u64)
9164		}
9165	}
9166	#[inline]
9167	pub unsafe fn bit_depth_chroma_minus8_raw(this: *const Self) -> u32 {
9168		unsafe {
9169			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9170				::std::ptr::addr_of!((*this)._bitfield_1),
9171				6usize,
9172				3u8,
9173			) as u32)
9174		}
9175	}
9176	#[inline]
9177	pub unsafe fn set_bit_depth_chroma_minus8_raw(this: *mut Self, val: u32) {
9178		unsafe {
9179			let val: u32 = ::std::mem::transmute(val);
9180			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9181				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9182				6usize,
9183				3u8,
9184				val as u64,
9185			)
9186		}
9187	}
9188	#[inline]
9189	pub fn scaling_list_enabled_flag(&self) -> u32 {
9190		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
9191	}
9192	#[inline]
9193	pub fn set_scaling_list_enabled_flag(&mut self, val: u32) {
9194		unsafe {
9195			let val: u32 = ::std::mem::transmute(val);
9196			self._bitfield_1.set(9usize, 1u8, val as u64)
9197		}
9198	}
9199	#[inline]
9200	pub unsafe fn scaling_list_enabled_flag_raw(this: *const Self) -> u32 {
9201		unsafe {
9202			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9203				::std::ptr::addr_of!((*this)._bitfield_1),
9204				9usize,
9205				1u8,
9206			) as u32)
9207		}
9208	}
9209	#[inline]
9210	pub unsafe fn set_scaling_list_enabled_flag_raw(this: *mut Self, val: u32) {
9211		unsafe {
9212			let val: u32 = ::std::mem::transmute(val);
9213			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9214				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9215				9usize,
9216				1u8,
9217				val as u64,
9218			)
9219		}
9220	}
9221	#[inline]
9222	pub fn strong_intra_smoothing_enabled_flag(&self) -> u32 {
9223		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
9224	}
9225	#[inline]
9226	pub fn set_strong_intra_smoothing_enabled_flag(&mut self, val: u32) {
9227		unsafe {
9228			let val: u32 = ::std::mem::transmute(val);
9229			self._bitfield_1.set(10usize, 1u8, val as u64)
9230		}
9231	}
9232	#[inline]
9233	pub unsafe fn strong_intra_smoothing_enabled_flag_raw(this: *const Self) -> u32 {
9234		unsafe {
9235			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9236				::std::ptr::addr_of!((*this)._bitfield_1),
9237				10usize,
9238				1u8,
9239			) as u32)
9240		}
9241	}
9242	#[inline]
9243	pub unsafe fn set_strong_intra_smoothing_enabled_flag_raw(this: *mut Self, val: u32) {
9244		unsafe {
9245			let val: u32 = ::std::mem::transmute(val);
9246			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9247				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9248				10usize,
9249				1u8,
9250				val as u64,
9251			)
9252		}
9253	}
9254	#[inline]
9255	pub fn amp_enabled_flag(&self) -> u32 {
9256		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
9257	}
9258	#[inline]
9259	pub fn set_amp_enabled_flag(&mut self, val: u32) {
9260		unsafe {
9261			let val: u32 = ::std::mem::transmute(val);
9262			self._bitfield_1.set(11usize, 1u8, val as u64)
9263		}
9264	}
9265	#[inline]
9266	pub unsafe fn amp_enabled_flag_raw(this: *const Self) -> u32 {
9267		unsafe {
9268			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9269				::std::ptr::addr_of!((*this)._bitfield_1),
9270				11usize,
9271				1u8,
9272			) as u32)
9273		}
9274	}
9275	#[inline]
9276	pub unsafe fn set_amp_enabled_flag_raw(this: *mut Self, val: u32) {
9277		unsafe {
9278			let val: u32 = ::std::mem::transmute(val);
9279			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9280				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9281				11usize,
9282				1u8,
9283				val as u64,
9284			)
9285		}
9286	}
9287	#[inline]
9288	pub fn sample_adaptive_offset_enabled_flag(&self) -> u32 {
9289		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
9290	}
9291	#[inline]
9292	pub fn set_sample_adaptive_offset_enabled_flag(&mut self, val: u32) {
9293		unsafe {
9294			let val: u32 = ::std::mem::transmute(val);
9295			self._bitfield_1.set(12usize, 1u8, val as u64)
9296		}
9297	}
9298	#[inline]
9299	pub unsafe fn sample_adaptive_offset_enabled_flag_raw(this: *const Self) -> u32 {
9300		unsafe {
9301			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9302				::std::ptr::addr_of!((*this)._bitfield_1),
9303				12usize,
9304				1u8,
9305			) as u32)
9306		}
9307	}
9308	#[inline]
9309	pub unsafe fn set_sample_adaptive_offset_enabled_flag_raw(this: *mut Self, val: u32) {
9310		unsafe {
9311			let val: u32 = ::std::mem::transmute(val);
9312			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9313				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9314				12usize,
9315				1u8,
9316				val as u64,
9317			)
9318		}
9319	}
9320	#[inline]
9321	pub fn pcm_enabled_flag(&self) -> u32 {
9322		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
9323	}
9324	#[inline]
9325	pub fn set_pcm_enabled_flag(&mut self, val: u32) {
9326		unsafe {
9327			let val: u32 = ::std::mem::transmute(val);
9328			self._bitfield_1.set(13usize, 1u8, val as u64)
9329		}
9330	}
9331	#[inline]
9332	pub unsafe fn pcm_enabled_flag_raw(this: *const Self) -> u32 {
9333		unsafe {
9334			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9335				::std::ptr::addr_of!((*this)._bitfield_1),
9336				13usize,
9337				1u8,
9338			) as u32)
9339		}
9340	}
9341	#[inline]
9342	pub unsafe fn set_pcm_enabled_flag_raw(this: *mut Self, val: u32) {
9343		unsafe {
9344			let val: u32 = ::std::mem::transmute(val);
9345			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9346				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9347				13usize,
9348				1u8,
9349				val as u64,
9350			)
9351		}
9352	}
9353	#[inline]
9354	pub fn pcm_loop_filter_disabled_flag(&self) -> u32 {
9355		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
9356	}
9357	#[inline]
9358	pub fn set_pcm_loop_filter_disabled_flag(&mut self, val: u32) {
9359		unsafe {
9360			let val: u32 = ::std::mem::transmute(val);
9361			self._bitfield_1.set(14usize, 1u8, val as u64)
9362		}
9363	}
9364	#[inline]
9365	pub unsafe fn pcm_loop_filter_disabled_flag_raw(this: *const Self) -> u32 {
9366		unsafe {
9367			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9368				::std::ptr::addr_of!((*this)._bitfield_1),
9369				14usize,
9370				1u8,
9371			) as u32)
9372		}
9373	}
9374	#[inline]
9375	pub unsafe fn set_pcm_loop_filter_disabled_flag_raw(this: *mut Self, val: u32) {
9376		unsafe {
9377			let val: u32 = ::std::mem::transmute(val);
9378			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9379				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9380				14usize,
9381				1u8,
9382				val as u64,
9383			)
9384		}
9385	}
9386	#[inline]
9387	pub fn sps_temporal_mvp_enabled_flag(&self) -> u32 {
9388		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
9389	}
9390	#[inline]
9391	pub fn set_sps_temporal_mvp_enabled_flag(&mut self, val: u32) {
9392		unsafe {
9393			let val: u32 = ::std::mem::transmute(val);
9394			self._bitfield_1.set(15usize, 1u8, val as u64)
9395		}
9396	}
9397	#[inline]
9398	pub unsafe fn sps_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
9399		unsafe {
9400			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9401				::std::ptr::addr_of!((*this)._bitfield_1),
9402				15usize,
9403				1u8,
9404			) as u32)
9405		}
9406	}
9407	#[inline]
9408	pub unsafe fn set_sps_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
9409		unsafe {
9410			let val: u32 = ::std::mem::transmute(val);
9411			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9412				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9413				15usize,
9414				1u8,
9415				val as u64,
9416			)
9417		}
9418	}
9419	#[inline]
9420	pub fn low_delay_seq(&self) -> u32 {
9421		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
9422	}
9423	#[inline]
9424	pub fn set_low_delay_seq(&mut self, val: u32) {
9425		unsafe {
9426			let val: u32 = ::std::mem::transmute(val);
9427			self._bitfield_1.set(16usize, 1u8, val as u64)
9428		}
9429	}
9430	#[inline]
9431	pub unsafe fn low_delay_seq_raw(this: *const Self) -> u32 {
9432		unsafe {
9433			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9434				::std::ptr::addr_of!((*this)._bitfield_1),
9435				16usize,
9436				1u8,
9437			) as u32)
9438		}
9439	}
9440	#[inline]
9441	pub unsafe fn set_low_delay_seq_raw(this: *mut Self, val: u32) {
9442		unsafe {
9443			let val: u32 = ::std::mem::transmute(val);
9444			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9445				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9446				16usize,
9447				1u8,
9448				val as u64,
9449			)
9450		}
9451	}
9452	#[inline]
9453	pub fn hierachical_flag(&self) -> u32 {
9454		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
9455	}
9456	#[inline]
9457	pub fn set_hierachical_flag(&mut self, val: u32) {
9458		unsafe {
9459			let val: u32 = ::std::mem::transmute(val);
9460			self._bitfield_1.set(17usize, 1u8, val as u64)
9461		}
9462	}
9463	#[inline]
9464	pub unsafe fn hierachical_flag_raw(this: *const Self) -> u32 {
9465		unsafe {
9466			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9467				::std::ptr::addr_of!((*this)._bitfield_1),
9468				17usize,
9469				1u8,
9470			) as u32)
9471		}
9472	}
9473	#[inline]
9474	pub unsafe fn set_hierachical_flag_raw(this: *mut Self, val: u32) {
9475		unsafe {
9476			let val: u32 = ::std::mem::transmute(val);
9477			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9478				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9479				17usize,
9480				1u8,
9481				val as u64,
9482			)
9483		}
9484	}
9485	#[inline]
9486	pub fn reserved_bits(&self) -> u32 {
9487		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 14u8) as u32) }
9488	}
9489	#[inline]
9490	pub fn set_reserved_bits(&mut self, val: u32) {
9491		unsafe {
9492			let val: u32 = ::std::mem::transmute(val);
9493			self._bitfield_1.set(18usize, 14u8, val as u64)
9494		}
9495	}
9496	#[inline]
9497	pub unsafe fn reserved_bits_raw(this: *const Self) -> u32 {
9498		unsafe {
9499			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
9500				::std::ptr::addr_of!((*this)._bitfield_1),
9501				18usize,
9502				14u8,
9503			) as u32)
9504		}
9505	}
9506	#[inline]
9507	pub unsafe fn set_reserved_bits_raw(this: *mut Self, val: u32) {
9508		unsafe {
9509			let val: u32 = ::std::mem::transmute(val);
9510			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
9511				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9512				18usize,
9513				14u8,
9514				val as u64,
9515			)
9516		}
9517	}
9518	#[inline]
9519	pub fn new_bitfield_1(
9520		chroma_format_idc: u32,
9521		separate_colour_plane_flag: u32,
9522		bit_depth_luma_minus8: u32,
9523		bit_depth_chroma_minus8: u32,
9524		scaling_list_enabled_flag: u32,
9525		strong_intra_smoothing_enabled_flag: u32,
9526		amp_enabled_flag: u32,
9527		sample_adaptive_offset_enabled_flag: u32,
9528		pcm_enabled_flag: u32,
9529		pcm_loop_filter_disabled_flag: u32,
9530		sps_temporal_mvp_enabled_flag: u32,
9531		low_delay_seq: u32,
9532		hierachical_flag: u32,
9533		reserved_bits: u32,
9534	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
9535		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
9536		__bindgen_bitfield_unit.set(0usize, 2u8, {
9537			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
9538			chroma_format_idc as u64
9539		});
9540		__bindgen_bitfield_unit.set(2usize, 1u8, {
9541			let separate_colour_plane_flag: u32 = unsafe { ::std::mem::transmute(separate_colour_plane_flag) };
9542			separate_colour_plane_flag as u64
9543		});
9544		__bindgen_bitfield_unit.set(3usize, 3u8, {
9545			let bit_depth_luma_minus8: u32 = unsafe { ::std::mem::transmute(bit_depth_luma_minus8) };
9546			bit_depth_luma_minus8 as u64
9547		});
9548		__bindgen_bitfield_unit.set(6usize, 3u8, {
9549			let bit_depth_chroma_minus8: u32 = unsafe { ::std::mem::transmute(bit_depth_chroma_minus8) };
9550			bit_depth_chroma_minus8 as u64
9551		});
9552		__bindgen_bitfield_unit.set(9usize, 1u8, {
9553			let scaling_list_enabled_flag: u32 = unsafe { ::std::mem::transmute(scaling_list_enabled_flag) };
9554			scaling_list_enabled_flag as u64
9555		});
9556		__bindgen_bitfield_unit.set(10usize, 1u8, {
9557			let strong_intra_smoothing_enabled_flag: u32 =
9558				unsafe { ::std::mem::transmute(strong_intra_smoothing_enabled_flag) };
9559			strong_intra_smoothing_enabled_flag as u64
9560		});
9561		__bindgen_bitfield_unit.set(11usize, 1u8, {
9562			let amp_enabled_flag: u32 = unsafe { ::std::mem::transmute(amp_enabled_flag) };
9563			amp_enabled_flag as u64
9564		});
9565		__bindgen_bitfield_unit.set(12usize, 1u8, {
9566			let sample_adaptive_offset_enabled_flag: u32 =
9567				unsafe { ::std::mem::transmute(sample_adaptive_offset_enabled_flag) };
9568			sample_adaptive_offset_enabled_flag as u64
9569		});
9570		__bindgen_bitfield_unit.set(13usize, 1u8, {
9571			let pcm_enabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_enabled_flag) };
9572			pcm_enabled_flag as u64
9573		});
9574		__bindgen_bitfield_unit.set(14usize, 1u8, {
9575			let pcm_loop_filter_disabled_flag: u32 = unsafe { ::std::mem::transmute(pcm_loop_filter_disabled_flag) };
9576			pcm_loop_filter_disabled_flag as u64
9577		});
9578		__bindgen_bitfield_unit.set(15usize, 1u8, {
9579			let sps_temporal_mvp_enabled_flag: u32 = unsafe { ::std::mem::transmute(sps_temporal_mvp_enabled_flag) };
9580			sps_temporal_mvp_enabled_flag as u64
9581		});
9582		__bindgen_bitfield_unit.set(16usize, 1u8, {
9583			let low_delay_seq: u32 = unsafe { ::std::mem::transmute(low_delay_seq) };
9584			low_delay_seq as u64
9585		});
9586		__bindgen_bitfield_unit.set(17usize, 1u8, {
9587			let hierachical_flag: u32 = unsafe { ::std::mem::transmute(hierachical_flag) };
9588			hierachical_flag as u64
9589		});
9590		__bindgen_bitfield_unit.set(18usize, 14u8, {
9591			let reserved_bits: u32 = unsafe { ::std::mem::transmute(reserved_bits) };
9592			reserved_bits as u64
9593		});
9594		__bindgen_bitfield_unit
9595	}
9596}
9597impl Default for _VAEncSequenceParameterBufferHEVC__bindgen_ty_1 {
9598	fn default() -> Self {
9599		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
9600		unsafe {
9601			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
9602			s.assume_init()
9603		}
9604	}
9605}
9606#[repr(C)]
9607#[derive(Copy, Clone)]
9608pub union _VAEncSequenceParameterBufferHEVC__bindgen_ty_2 {
9609	pub bits: _VAEncSequenceParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1,
9610	pub value: u32,
9611}
9612#[repr(C)]
9613#[repr(align(4))]
9614#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
9615pub struct _VAEncSequenceParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
9616	pub _bitfield_align_1: [u8; 0],
9617	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
9618	pub __bindgen_padding_0: u8,
9619}
9620impl _VAEncSequenceParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
9621	#[inline]
9622	pub fn aspect_ratio_info_present_flag(&self) -> u32 {
9623		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
9624	}
9625	#[inline]
9626	pub fn set_aspect_ratio_info_present_flag(&mut self, val: u32) {
9627		unsafe {
9628			let val: u32 = ::std::mem::transmute(val);
9629			self._bitfield_1.set(0usize, 1u8, val as u64)
9630		}
9631	}
9632	#[inline]
9633	pub unsafe fn aspect_ratio_info_present_flag_raw(this: *const Self) -> u32 {
9634		unsafe {
9635			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9636				::std::ptr::addr_of!((*this)._bitfield_1),
9637				0usize,
9638				1u8,
9639			) as u32)
9640		}
9641	}
9642	#[inline]
9643	pub unsafe fn set_aspect_ratio_info_present_flag_raw(this: *mut Self, val: u32) {
9644		unsafe {
9645			let val: u32 = ::std::mem::transmute(val);
9646			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9647				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9648				0usize,
9649				1u8,
9650				val as u64,
9651			)
9652		}
9653	}
9654	#[inline]
9655	pub fn neutral_chroma_indication_flag(&self) -> u32 {
9656		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
9657	}
9658	#[inline]
9659	pub fn set_neutral_chroma_indication_flag(&mut self, val: u32) {
9660		unsafe {
9661			let val: u32 = ::std::mem::transmute(val);
9662			self._bitfield_1.set(1usize, 1u8, val as u64)
9663		}
9664	}
9665	#[inline]
9666	pub unsafe fn neutral_chroma_indication_flag_raw(this: *const Self) -> u32 {
9667		unsafe {
9668			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9669				::std::ptr::addr_of!((*this)._bitfield_1),
9670				1usize,
9671				1u8,
9672			) as u32)
9673		}
9674	}
9675	#[inline]
9676	pub unsafe fn set_neutral_chroma_indication_flag_raw(this: *mut Self, val: u32) {
9677		unsafe {
9678			let val: u32 = ::std::mem::transmute(val);
9679			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9680				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9681				1usize,
9682				1u8,
9683				val as u64,
9684			)
9685		}
9686	}
9687	#[inline]
9688	pub fn field_seq_flag(&self) -> u32 {
9689		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
9690	}
9691	#[inline]
9692	pub fn set_field_seq_flag(&mut self, val: u32) {
9693		unsafe {
9694			let val: u32 = ::std::mem::transmute(val);
9695			self._bitfield_1.set(2usize, 1u8, val as u64)
9696		}
9697	}
9698	#[inline]
9699	pub unsafe fn field_seq_flag_raw(this: *const Self) -> u32 {
9700		unsafe {
9701			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9702				::std::ptr::addr_of!((*this)._bitfield_1),
9703				2usize,
9704				1u8,
9705			) as u32)
9706		}
9707	}
9708	#[inline]
9709	pub unsafe fn set_field_seq_flag_raw(this: *mut Self, val: u32) {
9710		unsafe {
9711			let val: u32 = ::std::mem::transmute(val);
9712			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9713				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9714				2usize,
9715				1u8,
9716				val as u64,
9717			)
9718		}
9719	}
9720	#[inline]
9721	pub fn vui_timing_info_present_flag(&self) -> u32 {
9722		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
9723	}
9724	#[inline]
9725	pub fn set_vui_timing_info_present_flag(&mut self, val: u32) {
9726		unsafe {
9727			let val: u32 = ::std::mem::transmute(val);
9728			self._bitfield_1.set(3usize, 1u8, val as u64)
9729		}
9730	}
9731	#[inline]
9732	pub unsafe fn vui_timing_info_present_flag_raw(this: *const Self) -> u32 {
9733		unsafe {
9734			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9735				::std::ptr::addr_of!((*this)._bitfield_1),
9736				3usize,
9737				1u8,
9738			) as u32)
9739		}
9740	}
9741	#[inline]
9742	pub unsafe fn set_vui_timing_info_present_flag_raw(this: *mut Self, val: u32) {
9743		unsafe {
9744			let val: u32 = ::std::mem::transmute(val);
9745			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9746				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9747				3usize,
9748				1u8,
9749				val as u64,
9750			)
9751		}
9752	}
9753	#[inline]
9754	pub fn bitstream_restriction_flag(&self) -> u32 {
9755		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
9756	}
9757	#[inline]
9758	pub fn set_bitstream_restriction_flag(&mut self, val: u32) {
9759		unsafe {
9760			let val: u32 = ::std::mem::transmute(val);
9761			self._bitfield_1.set(4usize, 1u8, val as u64)
9762		}
9763	}
9764	#[inline]
9765	pub unsafe fn bitstream_restriction_flag_raw(this: *const Self) -> u32 {
9766		unsafe {
9767			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9768				::std::ptr::addr_of!((*this)._bitfield_1),
9769				4usize,
9770				1u8,
9771			) as u32)
9772		}
9773	}
9774	#[inline]
9775	pub unsafe fn set_bitstream_restriction_flag_raw(this: *mut Self, val: u32) {
9776		unsafe {
9777			let val: u32 = ::std::mem::transmute(val);
9778			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9779				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9780				4usize,
9781				1u8,
9782				val as u64,
9783			)
9784		}
9785	}
9786	#[inline]
9787	pub fn tiles_fixed_structure_flag(&self) -> u32 {
9788		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
9789	}
9790	#[inline]
9791	pub fn set_tiles_fixed_structure_flag(&mut self, val: u32) {
9792		unsafe {
9793			let val: u32 = ::std::mem::transmute(val);
9794			self._bitfield_1.set(5usize, 1u8, val as u64)
9795		}
9796	}
9797	#[inline]
9798	pub unsafe fn tiles_fixed_structure_flag_raw(this: *const Self) -> u32 {
9799		unsafe {
9800			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9801				::std::ptr::addr_of!((*this)._bitfield_1),
9802				5usize,
9803				1u8,
9804			) as u32)
9805		}
9806	}
9807	#[inline]
9808	pub unsafe fn set_tiles_fixed_structure_flag_raw(this: *mut Self, val: u32) {
9809		unsafe {
9810			let val: u32 = ::std::mem::transmute(val);
9811			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9812				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9813				5usize,
9814				1u8,
9815				val as u64,
9816			)
9817		}
9818	}
9819	#[inline]
9820	pub fn motion_vectors_over_pic_boundaries_flag(&self) -> u32 {
9821		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
9822	}
9823	#[inline]
9824	pub fn set_motion_vectors_over_pic_boundaries_flag(&mut self, val: u32) {
9825		unsafe {
9826			let val: u32 = ::std::mem::transmute(val);
9827			self._bitfield_1.set(6usize, 1u8, val as u64)
9828		}
9829	}
9830	#[inline]
9831	pub unsafe fn motion_vectors_over_pic_boundaries_flag_raw(this: *const Self) -> u32 {
9832		unsafe {
9833			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9834				::std::ptr::addr_of!((*this)._bitfield_1),
9835				6usize,
9836				1u8,
9837			) as u32)
9838		}
9839	}
9840	#[inline]
9841	pub unsafe fn set_motion_vectors_over_pic_boundaries_flag_raw(this: *mut Self, val: u32) {
9842		unsafe {
9843			let val: u32 = ::std::mem::transmute(val);
9844			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9845				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9846				6usize,
9847				1u8,
9848				val as u64,
9849			)
9850		}
9851	}
9852	#[inline]
9853	pub fn restricted_ref_pic_lists_flag(&self) -> u32 {
9854		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
9855	}
9856	#[inline]
9857	pub fn set_restricted_ref_pic_lists_flag(&mut self, val: u32) {
9858		unsafe {
9859			let val: u32 = ::std::mem::transmute(val);
9860			self._bitfield_1.set(7usize, 1u8, val as u64)
9861		}
9862	}
9863	#[inline]
9864	pub unsafe fn restricted_ref_pic_lists_flag_raw(this: *const Self) -> u32 {
9865		unsafe {
9866			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9867				::std::ptr::addr_of!((*this)._bitfield_1),
9868				7usize,
9869				1u8,
9870			) as u32)
9871		}
9872	}
9873	#[inline]
9874	pub unsafe fn set_restricted_ref_pic_lists_flag_raw(this: *mut Self, val: u32) {
9875		unsafe {
9876			let val: u32 = ::std::mem::transmute(val);
9877			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9878				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9879				7usize,
9880				1u8,
9881				val as u64,
9882			)
9883		}
9884	}
9885	#[inline]
9886	pub fn log2_max_mv_length_horizontal(&self) -> u32 {
9887		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) }
9888	}
9889	#[inline]
9890	pub fn set_log2_max_mv_length_horizontal(&mut self, val: u32) {
9891		unsafe {
9892			let val: u32 = ::std::mem::transmute(val);
9893			self._bitfield_1.set(8usize, 5u8, val as u64)
9894		}
9895	}
9896	#[inline]
9897	pub unsafe fn log2_max_mv_length_horizontal_raw(this: *const Self) -> u32 {
9898		unsafe {
9899			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9900				::std::ptr::addr_of!((*this)._bitfield_1),
9901				8usize,
9902				5u8,
9903			) as u32)
9904		}
9905	}
9906	#[inline]
9907	pub unsafe fn set_log2_max_mv_length_horizontal_raw(this: *mut Self, val: u32) {
9908		unsafe {
9909			let val: u32 = ::std::mem::transmute(val);
9910			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9911				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9912				8usize,
9913				5u8,
9914				val as u64,
9915			)
9916		}
9917	}
9918	#[inline]
9919	pub fn log2_max_mv_length_vertical(&self) -> u32 {
9920		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 5u8) as u32) }
9921	}
9922	#[inline]
9923	pub fn set_log2_max_mv_length_vertical(&mut self, val: u32) {
9924		unsafe {
9925			let val: u32 = ::std::mem::transmute(val);
9926			self._bitfield_1.set(13usize, 5u8, val as u64)
9927		}
9928	}
9929	#[inline]
9930	pub unsafe fn log2_max_mv_length_vertical_raw(this: *const Self) -> u32 {
9931		unsafe {
9932			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
9933				::std::ptr::addr_of!((*this)._bitfield_1),
9934				13usize,
9935				5u8,
9936			) as u32)
9937		}
9938	}
9939	#[inline]
9940	pub unsafe fn set_log2_max_mv_length_vertical_raw(this: *mut Self, val: u32) {
9941		unsafe {
9942			let val: u32 = ::std::mem::transmute(val);
9943			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
9944				::std::ptr::addr_of_mut!((*this)._bitfield_1),
9945				13usize,
9946				5u8,
9947				val as u64,
9948			)
9949		}
9950	}
9951	#[inline]
9952	pub fn new_bitfield_1(
9953		aspect_ratio_info_present_flag: u32,
9954		neutral_chroma_indication_flag: u32,
9955		field_seq_flag: u32,
9956		vui_timing_info_present_flag: u32,
9957		bitstream_restriction_flag: u32,
9958		tiles_fixed_structure_flag: u32,
9959		motion_vectors_over_pic_boundaries_flag: u32,
9960		restricted_ref_pic_lists_flag: u32,
9961		log2_max_mv_length_horizontal: u32,
9962		log2_max_mv_length_vertical: u32,
9963	) -> __BindgenBitfieldUnit<[u8; 3usize]> {
9964		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
9965		__bindgen_bitfield_unit.set(0usize, 1u8, {
9966			let aspect_ratio_info_present_flag: u32 = unsafe { ::std::mem::transmute(aspect_ratio_info_present_flag) };
9967			aspect_ratio_info_present_flag as u64
9968		});
9969		__bindgen_bitfield_unit.set(1usize, 1u8, {
9970			let neutral_chroma_indication_flag: u32 = unsafe { ::std::mem::transmute(neutral_chroma_indication_flag) };
9971			neutral_chroma_indication_flag as u64
9972		});
9973		__bindgen_bitfield_unit.set(2usize, 1u8, {
9974			let field_seq_flag: u32 = unsafe { ::std::mem::transmute(field_seq_flag) };
9975			field_seq_flag as u64
9976		});
9977		__bindgen_bitfield_unit.set(3usize, 1u8, {
9978			let vui_timing_info_present_flag: u32 = unsafe { ::std::mem::transmute(vui_timing_info_present_flag) };
9979			vui_timing_info_present_flag as u64
9980		});
9981		__bindgen_bitfield_unit.set(4usize, 1u8, {
9982			let bitstream_restriction_flag: u32 = unsafe { ::std::mem::transmute(bitstream_restriction_flag) };
9983			bitstream_restriction_flag as u64
9984		});
9985		__bindgen_bitfield_unit.set(5usize, 1u8, {
9986			let tiles_fixed_structure_flag: u32 = unsafe { ::std::mem::transmute(tiles_fixed_structure_flag) };
9987			tiles_fixed_structure_flag as u64
9988		});
9989		__bindgen_bitfield_unit.set(6usize, 1u8, {
9990			let motion_vectors_over_pic_boundaries_flag: u32 =
9991				unsafe { ::std::mem::transmute(motion_vectors_over_pic_boundaries_flag) };
9992			motion_vectors_over_pic_boundaries_flag as u64
9993		});
9994		__bindgen_bitfield_unit.set(7usize, 1u8, {
9995			let restricted_ref_pic_lists_flag: u32 = unsafe { ::std::mem::transmute(restricted_ref_pic_lists_flag) };
9996			restricted_ref_pic_lists_flag as u64
9997		});
9998		__bindgen_bitfield_unit.set(8usize, 5u8, {
9999			let log2_max_mv_length_horizontal: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_horizontal) };
10000			log2_max_mv_length_horizontal as u64
10001		});
10002		__bindgen_bitfield_unit.set(13usize, 5u8, {
10003			let log2_max_mv_length_vertical: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_vertical) };
10004			log2_max_mv_length_vertical as u64
10005		});
10006		__bindgen_bitfield_unit
10007	}
10008}
10009impl Default for _VAEncSequenceParameterBufferHEVC__bindgen_ty_2 {
10010	fn default() -> Self {
10011		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10012		unsafe {
10013			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10014			s.assume_init()
10015		}
10016	}
10017}
10018#[doc = " \\brief SCC flags to enable/disable features, including IBC and palette mode at present."]
10019#[repr(C)]
10020#[derive(Copy, Clone)]
10021pub union _VAEncSequenceParameterBufferHEVC__bindgen_ty_3 {
10022	pub bits: _VAEncSequenceParameterBufferHEVC__bindgen_ty_3__bindgen_ty_1,
10023	pub value: u32,
10024}
10025#[repr(C)]
10026#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
10027pub struct _VAEncSequenceParameterBufferHEVC__bindgen_ty_3__bindgen_ty_1 {
10028	pub _bitfield_align_1: [u32; 0],
10029	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
10030}
10031impl _VAEncSequenceParameterBufferHEVC__bindgen_ty_3__bindgen_ty_1 {
10032	#[inline]
10033	pub fn palette_mode_enabled_flag(&self) -> u32 {
10034		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
10035	}
10036	#[inline]
10037	pub fn set_palette_mode_enabled_flag(&mut self, val: u32) {
10038		unsafe {
10039			let val: u32 = ::std::mem::transmute(val);
10040			self._bitfield_1.set(0usize, 1u8, val as u64)
10041		}
10042	}
10043	#[inline]
10044	pub unsafe fn palette_mode_enabled_flag_raw(this: *const Self) -> u32 {
10045		unsafe {
10046			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10047				::std::ptr::addr_of!((*this)._bitfield_1),
10048				0usize,
10049				1u8,
10050			) as u32)
10051		}
10052	}
10053	#[inline]
10054	pub unsafe fn set_palette_mode_enabled_flag_raw(this: *mut Self, val: u32) {
10055		unsafe {
10056			let val: u32 = ::std::mem::transmute(val);
10057			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10058				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10059				0usize,
10060				1u8,
10061				val as u64,
10062			)
10063		}
10064	}
10065	#[inline]
10066	pub fn reserved(&self) -> u32 {
10067		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 31u8) as u32) }
10068	}
10069	#[inline]
10070	pub fn set_reserved(&mut self, val: u32) {
10071		unsafe {
10072			let val: u32 = ::std::mem::transmute(val);
10073			self._bitfield_1.set(1usize, 31u8, val as u64)
10074		}
10075	}
10076	#[inline]
10077	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
10078		unsafe {
10079			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10080				::std::ptr::addr_of!((*this)._bitfield_1),
10081				1usize,
10082				31u8,
10083			) as u32)
10084		}
10085	}
10086	#[inline]
10087	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
10088		unsafe {
10089			let val: u32 = ::std::mem::transmute(val);
10090			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10091				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10092				1usize,
10093				31u8,
10094				val as u64,
10095			)
10096		}
10097	}
10098	#[inline]
10099	pub fn new_bitfield_1(palette_mode_enabled_flag: u32, reserved: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
10100		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
10101		__bindgen_bitfield_unit.set(0usize, 1u8, {
10102			let palette_mode_enabled_flag: u32 = unsafe { ::std::mem::transmute(palette_mode_enabled_flag) };
10103			palette_mode_enabled_flag as u64
10104		});
10105		__bindgen_bitfield_unit.set(1usize, 31u8, {
10106			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
10107			reserved as u64
10108		});
10109		__bindgen_bitfield_unit
10110	}
10111}
10112impl Default for _VAEncSequenceParameterBufferHEVC__bindgen_ty_3 {
10113	fn default() -> Self {
10114		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10115		unsafe {
10116			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10117			s.assume_init()
10118		}
10119	}
10120}
10121impl Default for _VAEncSequenceParameterBufferHEVC {
10122	fn default() -> Self {
10123		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10124		unsafe {
10125			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10126			s.assume_init()
10127		}
10128	}
10129}
10130#[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."]
10131pub type VAEncSequenceParameterBufferHEVC = _VAEncSequenceParameterBufferHEVC;
10132#[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."]
10133#[repr(C)]
10134#[derive(Copy, Clone)]
10135pub struct _VAEncPictureParameterBufferHEVC {
10136	#[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."]
10137	pub decoded_curr_pic: VAPictureHEVC,
10138	#[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."]
10139	pub reference_frames: [VAPictureHEVC; 15usize],
10140	#[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."]
10141	pub coded_buf: VABufferID,
10142	#[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]"]
10143	pub collocated_ref_pic_index: u8,
10144	#[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."]
10145	pub last_picture: u8,
10146	#[doc = " \\brief \\c init_qp_minus26 + 26."]
10147	pub pic_init_qp: u8,
10148	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10149	pub diff_cu_qp_delta_depth: u8,
10150	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10151	pub pps_cb_qp_offset: i8,
10152	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10153	pub pps_cr_qp_offset: i8,
10154	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10155	pub num_tile_columns_minus1: u8,
10156	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10157	pub num_tile_rows_minus1: u8,
10158	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10159	pub column_width_minus1: [u8; 19usize],
10160	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10161	pub row_height_minus1: [u8; 21usize],
10162	#[doc = " \\brief Corresponds to HEVC syntax element of the same name."]
10163	pub log2_parallel_merge_level_minus2: u8,
10164	#[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."]
10165	pub ctu_max_bitsize_allowed: u8,
10166	#[doc = " \\brief Maximum reference index for reference picture list 0.\n   value range: [0..14]."]
10167	pub num_ref_idx_l0_default_active_minus1: u8,
10168	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  value range: [0..14]."]
10169	pub num_ref_idx_l1_default_active_minus1: u8,
10170	#[doc = " \\brief PPS header\n  Used by GPU to generate new slice headers in slice size control.\n  value range: [0..63]."]
10171	pub slice_pic_parameter_set_id: u8,
10172	#[doc = " \\brief NAL unit type\n  Used by GPU to generate new slice headers in slice size control.\n  value range: [0..63]."]
10173	pub nal_unit_type: u8,
10174	pub pic_fields: _VAEncPictureParameterBufferHEVC__bindgen_ty_1,
10175	#[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."]
10176	pub hierarchical_level_plus1: u8,
10177	#[doc = " \\brief Reserved bytes for future use, must be zero"]
10178	pub va_byte_reserved: u8,
10179	pub scc_fields: _VAEncPictureParameterBufferHEVC__bindgen_ty_2,
10180	#[doc = " \\brief Reserved bytes for future use, must be zero"]
10181	pub va_reserved: [u32; 15usize],
10182}
10183#[repr(C)]
10184#[derive(Copy, Clone)]
10185pub union _VAEncPictureParameterBufferHEVC__bindgen_ty_1 {
10186	pub bits: _VAEncPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
10187	pub value: u32,
10188}
10189#[repr(C)]
10190#[repr(align(4))]
10191#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
10192pub struct _VAEncPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
10193	pub _bitfield_align_1: [u16; 0],
10194	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
10195}
10196impl _VAEncPictureParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
10197	#[inline]
10198	pub fn idr_pic_flag(&self) -> u32 {
10199		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
10200	}
10201	#[inline]
10202	pub fn set_idr_pic_flag(&mut self, val: u32) {
10203		unsafe {
10204			let val: u32 = ::std::mem::transmute(val);
10205			self._bitfield_1.set(0usize, 1u8, val as u64)
10206		}
10207	}
10208	#[inline]
10209	pub unsafe fn idr_pic_flag_raw(this: *const Self) -> u32 {
10210		unsafe {
10211			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10212				::std::ptr::addr_of!((*this)._bitfield_1),
10213				0usize,
10214				1u8,
10215			) as u32)
10216		}
10217	}
10218	#[inline]
10219	pub unsafe fn set_idr_pic_flag_raw(this: *mut Self, val: u32) {
10220		unsafe {
10221			let val: u32 = ::std::mem::transmute(val);
10222			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10223				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10224				0usize,
10225				1u8,
10226				val as u64,
10227			)
10228		}
10229	}
10230	#[inline]
10231	pub fn coding_type(&self) -> u32 {
10232		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u32) }
10233	}
10234	#[inline]
10235	pub fn set_coding_type(&mut self, val: u32) {
10236		unsafe {
10237			let val: u32 = ::std::mem::transmute(val);
10238			self._bitfield_1.set(1usize, 3u8, val as u64)
10239		}
10240	}
10241	#[inline]
10242	pub unsafe fn coding_type_raw(this: *const Self) -> u32 {
10243		unsafe {
10244			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10245				::std::ptr::addr_of!((*this)._bitfield_1),
10246				1usize,
10247				3u8,
10248			) as u32)
10249		}
10250	}
10251	#[inline]
10252	pub unsafe fn set_coding_type_raw(this: *mut Self, val: u32) {
10253		unsafe {
10254			let val: u32 = ::std::mem::transmute(val);
10255			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10256				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10257				1usize,
10258				3u8,
10259				val as u64,
10260			)
10261		}
10262	}
10263	#[inline]
10264	pub fn reference_pic_flag(&self) -> u32 {
10265		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
10266	}
10267	#[inline]
10268	pub fn set_reference_pic_flag(&mut self, val: u32) {
10269		unsafe {
10270			let val: u32 = ::std::mem::transmute(val);
10271			self._bitfield_1.set(4usize, 1u8, val as u64)
10272		}
10273	}
10274	#[inline]
10275	pub unsafe fn reference_pic_flag_raw(this: *const Self) -> u32 {
10276		unsafe {
10277			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10278				::std::ptr::addr_of!((*this)._bitfield_1),
10279				4usize,
10280				1u8,
10281			) as u32)
10282		}
10283	}
10284	#[inline]
10285	pub unsafe fn set_reference_pic_flag_raw(this: *mut Self, val: u32) {
10286		unsafe {
10287			let val: u32 = ::std::mem::transmute(val);
10288			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10289				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10290				4usize,
10291				1u8,
10292				val as u64,
10293			)
10294		}
10295	}
10296	#[inline]
10297	pub fn dependent_slice_segments_enabled_flag(&self) -> u32 {
10298		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
10299	}
10300	#[inline]
10301	pub fn set_dependent_slice_segments_enabled_flag(&mut self, val: u32) {
10302		unsafe {
10303			let val: u32 = ::std::mem::transmute(val);
10304			self._bitfield_1.set(5usize, 1u8, val as u64)
10305		}
10306	}
10307	#[inline]
10308	pub unsafe fn dependent_slice_segments_enabled_flag_raw(this: *const Self) -> u32 {
10309		unsafe {
10310			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10311				::std::ptr::addr_of!((*this)._bitfield_1),
10312				5usize,
10313				1u8,
10314			) as u32)
10315		}
10316	}
10317	#[inline]
10318	pub unsafe fn set_dependent_slice_segments_enabled_flag_raw(this: *mut Self, val: u32) {
10319		unsafe {
10320			let val: u32 = ::std::mem::transmute(val);
10321			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10322				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10323				5usize,
10324				1u8,
10325				val as u64,
10326			)
10327		}
10328	}
10329	#[inline]
10330	pub fn sign_data_hiding_enabled_flag(&self) -> u32 {
10331		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
10332	}
10333	#[inline]
10334	pub fn set_sign_data_hiding_enabled_flag(&mut self, val: u32) {
10335		unsafe {
10336			let val: u32 = ::std::mem::transmute(val);
10337			self._bitfield_1.set(6usize, 1u8, val as u64)
10338		}
10339	}
10340	#[inline]
10341	pub unsafe fn sign_data_hiding_enabled_flag_raw(this: *const Self) -> u32 {
10342		unsafe {
10343			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10344				::std::ptr::addr_of!((*this)._bitfield_1),
10345				6usize,
10346				1u8,
10347			) as u32)
10348		}
10349	}
10350	#[inline]
10351	pub unsafe fn set_sign_data_hiding_enabled_flag_raw(this: *mut Self, val: u32) {
10352		unsafe {
10353			let val: u32 = ::std::mem::transmute(val);
10354			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10355				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10356				6usize,
10357				1u8,
10358				val as u64,
10359			)
10360		}
10361	}
10362	#[inline]
10363	pub fn constrained_intra_pred_flag(&self) -> u32 {
10364		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
10365	}
10366	#[inline]
10367	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
10368		unsafe {
10369			let val: u32 = ::std::mem::transmute(val);
10370			self._bitfield_1.set(7usize, 1u8, val as u64)
10371		}
10372	}
10373	#[inline]
10374	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
10375		unsafe {
10376			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10377				::std::ptr::addr_of!((*this)._bitfield_1),
10378				7usize,
10379				1u8,
10380			) as u32)
10381		}
10382	}
10383	#[inline]
10384	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
10385		unsafe {
10386			let val: u32 = ::std::mem::transmute(val);
10387			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10388				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10389				7usize,
10390				1u8,
10391				val as u64,
10392			)
10393		}
10394	}
10395	#[inline]
10396	pub fn transform_skip_enabled_flag(&self) -> u32 {
10397		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
10398	}
10399	#[inline]
10400	pub fn set_transform_skip_enabled_flag(&mut self, val: u32) {
10401		unsafe {
10402			let val: u32 = ::std::mem::transmute(val);
10403			self._bitfield_1.set(8usize, 1u8, val as u64)
10404		}
10405	}
10406	#[inline]
10407	pub unsafe fn transform_skip_enabled_flag_raw(this: *const Self) -> u32 {
10408		unsafe {
10409			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10410				::std::ptr::addr_of!((*this)._bitfield_1),
10411				8usize,
10412				1u8,
10413			) as u32)
10414		}
10415	}
10416	#[inline]
10417	pub unsafe fn set_transform_skip_enabled_flag_raw(this: *mut Self, val: u32) {
10418		unsafe {
10419			let val: u32 = ::std::mem::transmute(val);
10420			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10421				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10422				8usize,
10423				1u8,
10424				val as u64,
10425			)
10426		}
10427	}
10428	#[inline]
10429	pub fn cu_qp_delta_enabled_flag(&self) -> u32 {
10430		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
10431	}
10432	#[inline]
10433	pub fn set_cu_qp_delta_enabled_flag(&mut self, val: u32) {
10434		unsafe {
10435			let val: u32 = ::std::mem::transmute(val);
10436			self._bitfield_1.set(9usize, 1u8, val as u64)
10437		}
10438	}
10439	#[inline]
10440	pub unsafe fn cu_qp_delta_enabled_flag_raw(this: *const Self) -> u32 {
10441		unsafe {
10442			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10443				::std::ptr::addr_of!((*this)._bitfield_1),
10444				9usize,
10445				1u8,
10446			) as u32)
10447		}
10448	}
10449	#[inline]
10450	pub unsafe fn set_cu_qp_delta_enabled_flag_raw(this: *mut Self, val: u32) {
10451		unsafe {
10452			let val: u32 = ::std::mem::transmute(val);
10453			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10454				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10455				9usize,
10456				1u8,
10457				val as u64,
10458			)
10459		}
10460	}
10461	#[inline]
10462	pub fn weighted_pred_flag(&self) -> u32 {
10463		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
10464	}
10465	#[inline]
10466	pub fn set_weighted_pred_flag(&mut self, val: u32) {
10467		unsafe {
10468			let val: u32 = ::std::mem::transmute(val);
10469			self._bitfield_1.set(10usize, 1u8, val as u64)
10470		}
10471	}
10472	#[inline]
10473	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
10474		unsafe {
10475			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10476				::std::ptr::addr_of!((*this)._bitfield_1),
10477				10usize,
10478				1u8,
10479			) as u32)
10480		}
10481	}
10482	#[inline]
10483	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
10484		unsafe {
10485			let val: u32 = ::std::mem::transmute(val);
10486			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10487				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10488				10usize,
10489				1u8,
10490				val as u64,
10491			)
10492		}
10493	}
10494	#[inline]
10495	pub fn weighted_bipred_flag(&self) -> u32 {
10496		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
10497	}
10498	#[inline]
10499	pub fn set_weighted_bipred_flag(&mut self, val: u32) {
10500		unsafe {
10501			let val: u32 = ::std::mem::transmute(val);
10502			self._bitfield_1.set(11usize, 1u8, val as u64)
10503		}
10504	}
10505	#[inline]
10506	pub unsafe fn weighted_bipred_flag_raw(this: *const Self) -> u32 {
10507		unsafe {
10508			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10509				::std::ptr::addr_of!((*this)._bitfield_1),
10510				11usize,
10511				1u8,
10512			) as u32)
10513		}
10514	}
10515	#[inline]
10516	pub unsafe fn set_weighted_bipred_flag_raw(this: *mut Self, val: u32) {
10517		unsafe {
10518			let val: u32 = ::std::mem::transmute(val);
10519			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10520				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10521				11usize,
10522				1u8,
10523				val as u64,
10524			)
10525		}
10526	}
10527	#[inline]
10528	pub fn transquant_bypass_enabled_flag(&self) -> u32 {
10529		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
10530	}
10531	#[inline]
10532	pub fn set_transquant_bypass_enabled_flag(&mut self, val: u32) {
10533		unsafe {
10534			let val: u32 = ::std::mem::transmute(val);
10535			self._bitfield_1.set(12usize, 1u8, val as u64)
10536		}
10537	}
10538	#[inline]
10539	pub unsafe fn transquant_bypass_enabled_flag_raw(this: *const Self) -> u32 {
10540		unsafe {
10541			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10542				::std::ptr::addr_of!((*this)._bitfield_1),
10543				12usize,
10544				1u8,
10545			) as u32)
10546		}
10547	}
10548	#[inline]
10549	pub unsafe fn set_transquant_bypass_enabled_flag_raw(this: *mut Self, val: u32) {
10550		unsafe {
10551			let val: u32 = ::std::mem::transmute(val);
10552			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10553				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10554				12usize,
10555				1u8,
10556				val as u64,
10557			)
10558		}
10559	}
10560	#[inline]
10561	pub fn tiles_enabled_flag(&self) -> u32 {
10562		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
10563	}
10564	#[inline]
10565	pub fn set_tiles_enabled_flag(&mut self, val: u32) {
10566		unsafe {
10567			let val: u32 = ::std::mem::transmute(val);
10568			self._bitfield_1.set(13usize, 1u8, val as u64)
10569		}
10570	}
10571	#[inline]
10572	pub unsafe fn tiles_enabled_flag_raw(this: *const Self) -> u32 {
10573		unsafe {
10574			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10575				::std::ptr::addr_of!((*this)._bitfield_1),
10576				13usize,
10577				1u8,
10578			) as u32)
10579		}
10580	}
10581	#[inline]
10582	pub unsafe fn set_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
10583		unsafe {
10584			let val: u32 = ::std::mem::transmute(val);
10585			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10586				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10587				13usize,
10588				1u8,
10589				val as u64,
10590			)
10591		}
10592	}
10593	#[inline]
10594	pub fn entropy_coding_sync_enabled_flag(&self) -> u32 {
10595		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
10596	}
10597	#[inline]
10598	pub fn set_entropy_coding_sync_enabled_flag(&mut self, val: u32) {
10599		unsafe {
10600			let val: u32 = ::std::mem::transmute(val);
10601			self._bitfield_1.set(14usize, 1u8, val as u64)
10602		}
10603	}
10604	#[inline]
10605	pub unsafe fn entropy_coding_sync_enabled_flag_raw(this: *const Self) -> u32 {
10606		unsafe {
10607			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10608				::std::ptr::addr_of!((*this)._bitfield_1),
10609				14usize,
10610				1u8,
10611			) as u32)
10612		}
10613	}
10614	#[inline]
10615	pub unsafe fn set_entropy_coding_sync_enabled_flag_raw(this: *mut Self, val: u32) {
10616		unsafe {
10617			let val: u32 = ::std::mem::transmute(val);
10618			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10619				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10620				14usize,
10621				1u8,
10622				val as u64,
10623			)
10624		}
10625	}
10626	#[inline]
10627	pub fn loop_filter_across_tiles_enabled_flag(&self) -> u32 {
10628		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
10629	}
10630	#[inline]
10631	pub fn set_loop_filter_across_tiles_enabled_flag(&mut self, val: u32) {
10632		unsafe {
10633			let val: u32 = ::std::mem::transmute(val);
10634			self._bitfield_1.set(15usize, 1u8, val as u64)
10635		}
10636	}
10637	#[inline]
10638	pub unsafe fn loop_filter_across_tiles_enabled_flag_raw(this: *const Self) -> u32 {
10639		unsafe {
10640			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10641				::std::ptr::addr_of!((*this)._bitfield_1),
10642				15usize,
10643				1u8,
10644			) as u32)
10645		}
10646	}
10647	#[inline]
10648	pub unsafe fn set_loop_filter_across_tiles_enabled_flag_raw(this: *mut Self, val: u32) {
10649		unsafe {
10650			let val: u32 = ::std::mem::transmute(val);
10651			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10652				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10653				15usize,
10654				1u8,
10655				val as u64,
10656			)
10657		}
10658	}
10659	#[inline]
10660	pub fn pps_loop_filter_across_slices_enabled_flag(&self) -> u32 {
10661		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
10662	}
10663	#[inline]
10664	pub fn set_pps_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
10665		unsafe {
10666			let val: u32 = ::std::mem::transmute(val);
10667			self._bitfield_1.set(16usize, 1u8, val as u64)
10668		}
10669	}
10670	#[inline]
10671	pub unsafe fn pps_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
10672		unsafe {
10673			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10674				::std::ptr::addr_of!((*this)._bitfield_1),
10675				16usize,
10676				1u8,
10677			) as u32)
10678		}
10679	}
10680	#[inline]
10681	pub unsafe fn set_pps_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
10682		unsafe {
10683			let val: u32 = ::std::mem::transmute(val);
10684			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10685				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10686				16usize,
10687				1u8,
10688				val as u64,
10689			)
10690		}
10691	}
10692	#[inline]
10693	pub fn scaling_list_data_present_flag(&self) -> u32 {
10694		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
10695	}
10696	#[inline]
10697	pub fn set_scaling_list_data_present_flag(&mut self, val: u32) {
10698		unsafe {
10699			let val: u32 = ::std::mem::transmute(val);
10700			self._bitfield_1.set(17usize, 1u8, val as u64)
10701		}
10702	}
10703	#[inline]
10704	pub unsafe fn scaling_list_data_present_flag_raw(this: *const Self) -> u32 {
10705		unsafe {
10706			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10707				::std::ptr::addr_of!((*this)._bitfield_1),
10708				17usize,
10709				1u8,
10710			) as u32)
10711		}
10712	}
10713	#[inline]
10714	pub unsafe fn set_scaling_list_data_present_flag_raw(this: *mut Self, val: u32) {
10715		unsafe {
10716			let val: u32 = ::std::mem::transmute(val);
10717			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10718				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10719				17usize,
10720				1u8,
10721				val as u64,
10722			)
10723		}
10724	}
10725	#[inline]
10726	pub fn screen_content_flag(&self) -> u32 {
10727		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
10728	}
10729	#[inline]
10730	pub fn set_screen_content_flag(&mut self, val: u32) {
10731		unsafe {
10732			let val: u32 = ::std::mem::transmute(val);
10733			self._bitfield_1.set(18usize, 1u8, val as u64)
10734		}
10735	}
10736	#[inline]
10737	pub unsafe fn screen_content_flag_raw(this: *const Self) -> u32 {
10738		unsafe {
10739			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10740				::std::ptr::addr_of!((*this)._bitfield_1),
10741				18usize,
10742				1u8,
10743			) as u32)
10744		}
10745	}
10746	#[inline]
10747	pub unsafe fn set_screen_content_flag_raw(this: *mut Self, val: u32) {
10748		unsafe {
10749			let val: u32 = ::std::mem::transmute(val);
10750			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10751				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10752				18usize,
10753				1u8,
10754				val as u64,
10755			)
10756		}
10757	}
10758	#[inline]
10759	pub fn enable_gpu_weighted_prediction(&self) -> u32 {
10760		unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) }
10761	}
10762	#[inline]
10763	pub fn set_enable_gpu_weighted_prediction(&mut self, val: u32) {
10764		unsafe {
10765			let val: u32 = ::std::mem::transmute(val);
10766			self._bitfield_1.set(19usize, 1u8, val as u64)
10767		}
10768	}
10769	#[inline]
10770	pub unsafe fn enable_gpu_weighted_prediction_raw(this: *const Self) -> u32 {
10771		unsafe {
10772			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10773				::std::ptr::addr_of!((*this)._bitfield_1),
10774				19usize,
10775				1u8,
10776			) as u32)
10777		}
10778	}
10779	#[inline]
10780	pub unsafe fn set_enable_gpu_weighted_prediction_raw(this: *mut Self, val: u32) {
10781		unsafe {
10782			let val: u32 = ::std::mem::transmute(val);
10783			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10784				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10785				19usize,
10786				1u8,
10787				val as u64,
10788			)
10789		}
10790	}
10791	#[inline]
10792	pub fn no_output_of_prior_pics_flag(&self) -> u32 {
10793		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 1u8) as u32) }
10794	}
10795	#[inline]
10796	pub fn set_no_output_of_prior_pics_flag(&mut self, val: u32) {
10797		unsafe {
10798			let val: u32 = ::std::mem::transmute(val);
10799			self._bitfield_1.set(20usize, 1u8, val as u64)
10800		}
10801	}
10802	#[inline]
10803	pub unsafe fn no_output_of_prior_pics_flag_raw(this: *const Self) -> u32 {
10804		unsafe {
10805			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10806				::std::ptr::addr_of!((*this)._bitfield_1),
10807				20usize,
10808				1u8,
10809			) as u32)
10810		}
10811	}
10812	#[inline]
10813	pub unsafe fn set_no_output_of_prior_pics_flag_raw(this: *mut Self, val: u32) {
10814		unsafe {
10815			let val: u32 = ::std::mem::transmute(val);
10816			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10817				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10818				20usize,
10819				1u8,
10820				val as u64,
10821			)
10822		}
10823	}
10824	#[inline]
10825	pub fn reserved(&self) -> u32 {
10826		unsafe { ::std::mem::transmute(self._bitfield_1.get(21usize, 11u8) as u32) }
10827	}
10828	#[inline]
10829	pub fn set_reserved(&mut self, val: u32) {
10830		unsafe {
10831			let val: u32 = ::std::mem::transmute(val);
10832			self._bitfield_1.set(21usize, 11u8, val as u64)
10833		}
10834	}
10835	#[inline]
10836	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
10837		unsafe {
10838			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
10839				::std::ptr::addr_of!((*this)._bitfield_1),
10840				21usize,
10841				11u8,
10842			) as u32)
10843		}
10844	}
10845	#[inline]
10846	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
10847		unsafe {
10848			let val: u32 = ::std::mem::transmute(val);
10849			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
10850				::std::ptr::addr_of_mut!((*this)._bitfield_1),
10851				21usize,
10852				11u8,
10853				val as u64,
10854			)
10855		}
10856	}
10857	#[inline]
10858	pub fn new_bitfield_1(
10859		idr_pic_flag: u32,
10860		coding_type: u32,
10861		reference_pic_flag: u32,
10862		dependent_slice_segments_enabled_flag: u32,
10863		sign_data_hiding_enabled_flag: u32,
10864		constrained_intra_pred_flag: u32,
10865		transform_skip_enabled_flag: u32,
10866		cu_qp_delta_enabled_flag: u32,
10867		weighted_pred_flag: u32,
10868		weighted_bipred_flag: u32,
10869		transquant_bypass_enabled_flag: u32,
10870		tiles_enabled_flag: u32,
10871		entropy_coding_sync_enabled_flag: u32,
10872		loop_filter_across_tiles_enabled_flag: u32,
10873		pps_loop_filter_across_slices_enabled_flag: u32,
10874		scaling_list_data_present_flag: u32,
10875		screen_content_flag: u32,
10876		enable_gpu_weighted_prediction: u32,
10877		no_output_of_prior_pics_flag: u32,
10878		reserved: u32,
10879	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
10880		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
10881		__bindgen_bitfield_unit.set(0usize, 1u8, {
10882			let idr_pic_flag: u32 = unsafe { ::std::mem::transmute(idr_pic_flag) };
10883			idr_pic_flag as u64
10884		});
10885		__bindgen_bitfield_unit.set(1usize, 3u8, {
10886			let coding_type: u32 = unsafe { ::std::mem::transmute(coding_type) };
10887			coding_type as u64
10888		});
10889		__bindgen_bitfield_unit.set(4usize, 1u8, {
10890			let reference_pic_flag: u32 = unsafe { ::std::mem::transmute(reference_pic_flag) };
10891			reference_pic_flag as u64
10892		});
10893		__bindgen_bitfield_unit.set(5usize, 1u8, {
10894			let dependent_slice_segments_enabled_flag: u32 =
10895				unsafe { ::std::mem::transmute(dependent_slice_segments_enabled_flag) };
10896			dependent_slice_segments_enabled_flag as u64
10897		});
10898		__bindgen_bitfield_unit.set(6usize, 1u8, {
10899			let sign_data_hiding_enabled_flag: u32 = unsafe { ::std::mem::transmute(sign_data_hiding_enabled_flag) };
10900			sign_data_hiding_enabled_flag as u64
10901		});
10902		__bindgen_bitfield_unit.set(7usize, 1u8, {
10903			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
10904			constrained_intra_pred_flag as u64
10905		});
10906		__bindgen_bitfield_unit.set(8usize, 1u8, {
10907			let transform_skip_enabled_flag: u32 = unsafe { ::std::mem::transmute(transform_skip_enabled_flag) };
10908			transform_skip_enabled_flag as u64
10909		});
10910		__bindgen_bitfield_unit.set(9usize, 1u8, {
10911			let cu_qp_delta_enabled_flag: u32 = unsafe { ::std::mem::transmute(cu_qp_delta_enabled_flag) };
10912			cu_qp_delta_enabled_flag as u64
10913		});
10914		__bindgen_bitfield_unit.set(10usize, 1u8, {
10915			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
10916			weighted_pred_flag as u64
10917		});
10918		__bindgen_bitfield_unit.set(11usize, 1u8, {
10919			let weighted_bipred_flag: u32 = unsafe { ::std::mem::transmute(weighted_bipred_flag) };
10920			weighted_bipred_flag as u64
10921		});
10922		__bindgen_bitfield_unit.set(12usize, 1u8, {
10923			let transquant_bypass_enabled_flag: u32 = unsafe { ::std::mem::transmute(transquant_bypass_enabled_flag) };
10924			transquant_bypass_enabled_flag as u64
10925		});
10926		__bindgen_bitfield_unit.set(13usize, 1u8, {
10927			let tiles_enabled_flag: u32 = unsafe { ::std::mem::transmute(tiles_enabled_flag) };
10928			tiles_enabled_flag as u64
10929		});
10930		__bindgen_bitfield_unit.set(14usize, 1u8, {
10931			let entropy_coding_sync_enabled_flag: u32 =
10932				unsafe { ::std::mem::transmute(entropy_coding_sync_enabled_flag) };
10933			entropy_coding_sync_enabled_flag as u64
10934		});
10935		__bindgen_bitfield_unit.set(15usize, 1u8, {
10936			let loop_filter_across_tiles_enabled_flag: u32 =
10937				unsafe { ::std::mem::transmute(loop_filter_across_tiles_enabled_flag) };
10938			loop_filter_across_tiles_enabled_flag as u64
10939		});
10940		__bindgen_bitfield_unit.set(16usize, 1u8, {
10941			let pps_loop_filter_across_slices_enabled_flag: u32 =
10942				unsafe { ::std::mem::transmute(pps_loop_filter_across_slices_enabled_flag) };
10943			pps_loop_filter_across_slices_enabled_flag as u64
10944		});
10945		__bindgen_bitfield_unit.set(17usize, 1u8, {
10946			let scaling_list_data_present_flag: u32 = unsafe { ::std::mem::transmute(scaling_list_data_present_flag) };
10947			scaling_list_data_present_flag as u64
10948		});
10949		__bindgen_bitfield_unit.set(18usize, 1u8, {
10950			let screen_content_flag: u32 = unsafe { ::std::mem::transmute(screen_content_flag) };
10951			screen_content_flag as u64
10952		});
10953		__bindgen_bitfield_unit.set(19usize, 1u8, {
10954			let enable_gpu_weighted_prediction: u32 = unsafe { ::std::mem::transmute(enable_gpu_weighted_prediction) };
10955			enable_gpu_weighted_prediction as u64
10956		});
10957		__bindgen_bitfield_unit.set(20usize, 1u8, {
10958			let no_output_of_prior_pics_flag: u32 = unsafe { ::std::mem::transmute(no_output_of_prior_pics_flag) };
10959			no_output_of_prior_pics_flag as u64
10960		});
10961		__bindgen_bitfield_unit.set(21usize, 11u8, {
10962			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
10963			reserved as u64
10964		});
10965		__bindgen_bitfield_unit
10966	}
10967}
10968impl Default for _VAEncPictureParameterBufferHEVC__bindgen_ty_1 {
10969	fn default() -> Self {
10970		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
10971		unsafe {
10972			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
10973			s.assume_init()
10974		}
10975	}
10976}
10977#[doc = " \\brief SCC flags to enable/disable feature, only IBC at present."]
10978#[repr(C)]
10979#[derive(Copy, Clone)]
10980pub union _VAEncPictureParameterBufferHEVC__bindgen_ty_2 {
10981	pub bits: _VAEncPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1,
10982	pub value: u16,
10983}
10984#[repr(C)]
10985#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
10986pub struct _VAEncPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
10987	pub _bitfield_align_1: [u16; 0],
10988	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
10989}
10990impl _VAEncPictureParameterBufferHEVC__bindgen_ty_2__bindgen_ty_1 {
10991	#[inline]
10992	pub fn pps_curr_pic_ref_enabled_flag(&self) -> u16 {
10993		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) }
10994	}
10995	#[inline]
10996	pub fn set_pps_curr_pic_ref_enabled_flag(&mut self, val: u16) {
10997		unsafe {
10998			let val: u16 = ::std::mem::transmute(val);
10999			self._bitfield_1.set(0usize, 1u8, val as u64)
11000		}
11001	}
11002	#[inline]
11003	pub unsafe fn pps_curr_pic_ref_enabled_flag_raw(this: *const Self) -> u16 {
11004		unsafe {
11005			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11006				::std::ptr::addr_of!((*this)._bitfield_1),
11007				0usize,
11008				1u8,
11009			) as u16)
11010		}
11011	}
11012	#[inline]
11013	pub unsafe fn set_pps_curr_pic_ref_enabled_flag_raw(this: *mut Self, val: u16) {
11014		unsafe {
11015			let val: u16 = ::std::mem::transmute(val);
11016			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11017				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11018				0usize,
11019				1u8,
11020				val as u64,
11021			)
11022		}
11023	}
11024	#[inline]
11025	pub fn reserved(&self) -> u16 {
11026		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 15u8) as u16) }
11027	}
11028	#[inline]
11029	pub fn set_reserved(&mut self, val: u16) {
11030		unsafe {
11031			let val: u16 = ::std::mem::transmute(val);
11032			self._bitfield_1.set(1usize, 15u8, val as u64)
11033		}
11034	}
11035	#[inline]
11036	pub unsafe fn reserved_raw(this: *const Self) -> u16 {
11037		unsafe {
11038			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11039				::std::ptr::addr_of!((*this)._bitfield_1),
11040				1usize,
11041				15u8,
11042			) as u16)
11043		}
11044	}
11045	#[inline]
11046	pub unsafe fn set_reserved_raw(this: *mut Self, val: u16) {
11047		unsafe {
11048			let val: u16 = ::std::mem::transmute(val);
11049			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11050				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11051				1usize,
11052				15u8,
11053				val as u64,
11054			)
11055		}
11056	}
11057	#[inline]
11058	pub fn new_bitfield_1(pps_curr_pic_ref_enabled_flag: u16, reserved: u16) -> __BindgenBitfieldUnit<[u8; 2usize]> {
11059		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
11060		__bindgen_bitfield_unit.set(0usize, 1u8, {
11061			let pps_curr_pic_ref_enabled_flag: u16 = unsafe { ::std::mem::transmute(pps_curr_pic_ref_enabled_flag) };
11062			pps_curr_pic_ref_enabled_flag as u64
11063		});
11064		__bindgen_bitfield_unit.set(1usize, 15u8, {
11065			let reserved: u16 = unsafe { ::std::mem::transmute(reserved) };
11066			reserved as u64
11067		});
11068		__bindgen_bitfield_unit
11069	}
11070}
11071impl Default for _VAEncPictureParameterBufferHEVC__bindgen_ty_2 {
11072	fn default() -> Self {
11073		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11074		unsafe {
11075			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11076			s.assume_init()
11077		}
11078	}
11079}
11080impl Default for _VAEncPictureParameterBufferHEVC {
11081	fn default() -> Self {
11082		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11083		unsafe {
11084			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11085			s.assume_init()
11086		}
11087	}
11088}
11089#[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."]
11090pub type VAEncPictureParameterBufferHEVC = _VAEncPictureParameterBufferHEVC;
11091#[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"]
11092#[repr(C)]
11093#[derive(Copy, Clone)]
11094pub struct _VAEncSliceParameterBufferHEVC {
11095	#[doc = " \\brief Starting CTU address for this slice."]
11096	pub slice_segment_address: u32,
11097	#[doc = " \\brief Number of CTUs in this slice."]
11098	pub num_ctu_in_slice: u32,
11099	#[doc = " \\brief Slice type.\n  Corresponds to HEVC syntax element of the same name."]
11100	pub slice_type: u8,
11101	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11102	pub slice_pic_parameter_set_id: u8,
11103	#[doc = " \\brief Maximum reference index for reference picture list 0.\n  Range: 0 to 14, inclusive."]
11104	pub num_ref_idx_l0_active_minus1: u8,
11105	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  Range: 0 to 14, inclusive."]
11106	pub num_ref_idx_l1_active_minus1: u8,
11107	#[doc = " \\brief Reference picture list 0 (for P slices)."]
11108	pub ref_pic_list0: [VAPictureHEVC; 15usize],
11109	#[doc = " \\brief Reference picture list 1 (for B slices)."]
11110	pub ref_pic_list1: [VAPictureHEVC; 15usize],
11111	#[doc = " @name pred_weight_table() */\n/**@{*/\n/** \\brief Same as the HEVC bitstream syntax element."]
11112	pub luma_log2_weight_denom: u8,
11113	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11114	pub delta_chroma_log2_weight_denom: i8,
11115	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11116	pub delta_luma_weight_l0: [i8; 15usize],
11117	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11118	pub luma_offset_l0: [i8; 15usize],
11119	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11120	pub delta_chroma_weight_l0: [[i8; 2usize]; 15usize],
11121	#[doc = " \\brief Same as the HEVC spec variable ChromaOffsetL0[]."]
11122	pub chroma_offset_l0: [[i8; 2usize]; 15usize],
11123	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11124	pub delta_luma_weight_l1: [i8; 15usize],
11125	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11126	pub luma_offset_l1: [i8; 15usize],
11127	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11128	pub delta_chroma_weight_l1: [[i8; 2usize]; 15usize],
11129	#[doc = " \\brief Same as the HEVC spec variable ChromaOffsetL1[]."]
11130	pub chroma_offset_l1: [[i8; 2usize]; 15usize],
11131	#[doc = " \\brief Corresponds to HEVC spec variable MaxNumMergeCand.\n  Range: [1..5]."]
11132	pub max_num_merge_cand: u8,
11133	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11134	pub slice_qp_delta: i8,
11135	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11136	pub slice_cb_qp_offset: i8,
11137	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11138	pub slice_cr_qp_offset: i8,
11139	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11140	pub slice_beta_offset_div2: i8,
11141	#[doc = " \\brief Same as the HEVC bitstream syntax element."]
11142	pub slice_tc_offset_div2: i8,
11143	pub slice_fields: _VAEncSliceParameterBufferHEVC__bindgen_ty_1,
11144	#[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."]
11145	pub pred_weight_table_bit_offset: u32,
11146	#[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."]
11147	pub pred_weight_table_bit_length: u32,
11148	#[doc = " \\brief Reserved bytes for future use, must be zero"]
11149	pub va_reserved: [u32; 6usize],
11150}
11151#[repr(C)]
11152#[derive(Copy, Clone)]
11153pub union _VAEncSliceParameterBufferHEVC__bindgen_ty_1 {
11154	pub bits: _VAEncSliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1,
11155	pub value: u32,
11156}
11157#[repr(C)]
11158#[repr(align(4))]
11159#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11160pub struct _VAEncSliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
11161	pub _bitfield_align_1: [u8; 0],
11162	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
11163	pub __bindgen_padding_0: u16,
11164}
11165impl _VAEncSliceParameterBufferHEVC__bindgen_ty_1__bindgen_ty_1 {
11166	#[inline]
11167	pub fn last_slice_of_pic_flag(&self) -> u32 {
11168		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
11169	}
11170	#[inline]
11171	pub fn set_last_slice_of_pic_flag(&mut self, val: u32) {
11172		unsafe {
11173			let val: u32 = ::std::mem::transmute(val);
11174			self._bitfield_1.set(0usize, 1u8, val as u64)
11175		}
11176	}
11177	#[inline]
11178	pub unsafe fn last_slice_of_pic_flag_raw(this: *const Self) -> u32 {
11179		unsafe {
11180			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11181				::std::ptr::addr_of!((*this)._bitfield_1),
11182				0usize,
11183				1u8,
11184			) as u32)
11185		}
11186	}
11187	#[inline]
11188	pub unsafe fn set_last_slice_of_pic_flag_raw(this: *mut Self, val: u32) {
11189		unsafe {
11190			let val: u32 = ::std::mem::transmute(val);
11191			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11192				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11193				0usize,
11194				1u8,
11195				val as u64,
11196			)
11197		}
11198	}
11199	#[inline]
11200	pub fn dependent_slice_segment_flag(&self) -> u32 {
11201		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
11202	}
11203	#[inline]
11204	pub fn set_dependent_slice_segment_flag(&mut self, val: u32) {
11205		unsafe {
11206			let val: u32 = ::std::mem::transmute(val);
11207			self._bitfield_1.set(1usize, 1u8, val as u64)
11208		}
11209	}
11210	#[inline]
11211	pub unsafe fn dependent_slice_segment_flag_raw(this: *const Self) -> u32 {
11212		unsafe {
11213			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11214				::std::ptr::addr_of!((*this)._bitfield_1),
11215				1usize,
11216				1u8,
11217			) as u32)
11218		}
11219	}
11220	#[inline]
11221	pub unsafe fn set_dependent_slice_segment_flag_raw(this: *mut Self, val: u32) {
11222		unsafe {
11223			let val: u32 = ::std::mem::transmute(val);
11224			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11225				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11226				1usize,
11227				1u8,
11228				val as u64,
11229			)
11230		}
11231	}
11232	#[inline]
11233	pub fn colour_plane_id(&self) -> u32 {
11234		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 2u8) as u32) }
11235	}
11236	#[inline]
11237	pub fn set_colour_plane_id(&mut self, val: u32) {
11238		unsafe {
11239			let val: u32 = ::std::mem::transmute(val);
11240			self._bitfield_1.set(2usize, 2u8, val as u64)
11241		}
11242	}
11243	#[inline]
11244	pub unsafe fn colour_plane_id_raw(this: *const Self) -> u32 {
11245		unsafe {
11246			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11247				::std::ptr::addr_of!((*this)._bitfield_1),
11248				2usize,
11249				2u8,
11250			) as u32)
11251		}
11252	}
11253	#[inline]
11254	pub unsafe fn set_colour_plane_id_raw(this: *mut Self, val: u32) {
11255		unsafe {
11256			let val: u32 = ::std::mem::transmute(val);
11257			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11258				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11259				2usize,
11260				2u8,
11261				val as u64,
11262			)
11263		}
11264	}
11265	#[inline]
11266	pub fn slice_temporal_mvp_enabled_flag(&self) -> u32 {
11267		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
11268	}
11269	#[inline]
11270	pub fn set_slice_temporal_mvp_enabled_flag(&mut self, val: u32) {
11271		unsafe {
11272			let val: u32 = ::std::mem::transmute(val);
11273			self._bitfield_1.set(4usize, 1u8, val as u64)
11274		}
11275	}
11276	#[inline]
11277	pub unsafe fn slice_temporal_mvp_enabled_flag_raw(this: *const Self) -> u32 {
11278		unsafe {
11279			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11280				::std::ptr::addr_of!((*this)._bitfield_1),
11281				4usize,
11282				1u8,
11283			) as u32)
11284		}
11285	}
11286	#[inline]
11287	pub unsafe fn set_slice_temporal_mvp_enabled_flag_raw(this: *mut Self, val: u32) {
11288		unsafe {
11289			let val: u32 = ::std::mem::transmute(val);
11290			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11291				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11292				4usize,
11293				1u8,
11294				val as u64,
11295			)
11296		}
11297	}
11298	#[inline]
11299	pub fn slice_sao_luma_flag(&self) -> u32 {
11300		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
11301	}
11302	#[inline]
11303	pub fn set_slice_sao_luma_flag(&mut self, val: u32) {
11304		unsafe {
11305			let val: u32 = ::std::mem::transmute(val);
11306			self._bitfield_1.set(5usize, 1u8, val as u64)
11307		}
11308	}
11309	#[inline]
11310	pub unsafe fn slice_sao_luma_flag_raw(this: *const Self) -> u32 {
11311		unsafe {
11312			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11313				::std::ptr::addr_of!((*this)._bitfield_1),
11314				5usize,
11315				1u8,
11316			) as u32)
11317		}
11318	}
11319	#[inline]
11320	pub unsafe fn set_slice_sao_luma_flag_raw(this: *mut Self, val: u32) {
11321		unsafe {
11322			let val: u32 = ::std::mem::transmute(val);
11323			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11324				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11325				5usize,
11326				1u8,
11327				val as u64,
11328			)
11329		}
11330	}
11331	#[inline]
11332	pub fn slice_sao_chroma_flag(&self) -> u32 {
11333		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
11334	}
11335	#[inline]
11336	pub fn set_slice_sao_chroma_flag(&mut self, val: u32) {
11337		unsafe {
11338			let val: u32 = ::std::mem::transmute(val);
11339			self._bitfield_1.set(6usize, 1u8, val as u64)
11340		}
11341	}
11342	#[inline]
11343	pub unsafe fn slice_sao_chroma_flag_raw(this: *const Self) -> u32 {
11344		unsafe {
11345			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11346				::std::ptr::addr_of!((*this)._bitfield_1),
11347				6usize,
11348				1u8,
11349			) as u32)
11350		}
11351	}
11352	#[inline]
11353	pub unsafe fn set_slice_sao_chroma_flag_raw(this: *mut Self, val: u32) {
11354		unsafe {
11355			let val: u32 = ::std::mem::transmute(val);
11356			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11357				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11358				6usize,
11359				1u8,
11360				val as u64,
11361			)
11362		}
11363	}
11364	#[inline]
11365	pub fn num_ref_idx_active_override_flag(&self) -> u32 {
11366		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
11367	}
11368	#[inline]
11369	pub fn set_num_ref_idx_active_override_flag(&mut self, val: u32) {
11370		unsafe {
11371			let val: u32 = ::std::mem::transmute(val);
11372			self._bitfield_1.set(7usize, 1u8, val as u64)
11373		}
11374	}
11375	#[inline]
11376	pub unsafe fn num_ref_idx_active_override_flag_raw(this: *const Self) -> u32 {
11377		unsafe {
11378			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11379				::std::ptr::addr_of!((*this)._bitfield_1),
11380				7usize,
11381				1u8,
11382			) as u32)
11383		}
11384	}
11385	#[inline]
11386	pub unsafe fn set_num_ref_idx_active_override_flag_raw(this: *mut Self, val: u32) {
11387		unsafe {
11388			let val: u32 = ::std::mem::transmute(val);
11389			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11390				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11391				7usize,
11392				1u8,
11393				val as u64,
11394			)
11395		}
11396	}
11397	#[inline]
11398	pub fn mvd_l1_zero_flag(&self) -> u32 {
11399		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
11400	}
11401	#[inline]
11402	pub fn set_mvd_l1_zero_flag(&mut self, val: u32) {
11403		unsafe {
11404			let val: u32 = ::std::mem::transmute(val);
11405			self._bitfield_1.set(8usize, 1u8, val as u64)
11406		}
11407	}
11408	#[inline]
11409	pub unsafe fn mvd_l1_zero_flag_raw(this: *const Self) -> u32 {
11410		unsafe {
11411			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11412				::std::ptr::addr_of!((*this)._bitfield_1),
11413				8usize,
11414				1u8,
11415			) as u32)
11416		}
11417	}
11418	#[inline]
11419	pub unsafe fn set_mvd_l1_zero_flag_raw(this: *mut Self, val: u32) {
11420		unsafe {
11421			let val: u32 = ::std::mem::transmute(val);
11422			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11423				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11424				8usize,
11425				1u8,
11426				val as u64,
11427			)
11428		}
11429	}
11430	#[inline]
11431	pub fn cabac_init_flag(&self) -> u32 {
11432		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
11433	}
11434	#[inline]
11435	pub fn set_cabac_init_flag(&mut self, val: u32) {
11436		unsafe {
11437			let val: u32 = ::std::mem::transmute(val);
11438			self._bitfield_1.set(9usize, 1u8, val as u64)
11439		}
11440	}
11441	#[inline]
11442	pub unsafe fn cabac_init_flag_raw(this: *const Self) -> u32 {
11443		unsafe {
11444			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11445				::std::ptr::addr_of!((*this)._bitfield_1),
11446				9usize,
11447				1u8,
11448			) as u32)
11449		}
11450	}
11451	#[inline]
11452	pub unsafe fn set_cabac_init_flag_raw(this: *mut Self, val: u32) {
11453		unsafe {
11454			let val: u32 = ::std::mem::transmute(val);
11455			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11456				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11457				9usize,
11458				1u8,
11459				val as u64,
11460			)
11461		}
11462	}
11463	#[inline]
11464	pub fn slice_deblocking_filter_disabled_flag(&self) -> u32 {
11465		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
11466	}
11467	#[inline]
11468	pub fn set_slice_deblocking_filter_disabled_flag(&mut self, val: u32) {
11469		unsafe {
11470			let val: u32 = ::std::mem::transmute(val);
11471			self._bitfield_1.set(10usize, 2u8, val as u64)
11472		}
11473	}
11474	#[inline]
11475	pub unsafe fn slice_deblocking_filter_disabled_flag_raw(this: *const Self) -> u32 {
11476		unsafe {
11477			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11478				::std::ptr::addr_of!((*this)._bitfield_1),
11479				10usize,
11480				2u8,
11481			) as u32)
11482		}
11483	}
11484	#[inline]
11485	pub unsafe fn set_slice_deblocking_filter_disabled_flag_raw(this: *mut Self, val: u32) {
11486		unsafe {
11487			let val: u32 = ::std::mem::transmute(val);
11488			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11489				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11490				10usize,
11491				2u8,
11492				val as u64,
11493			)
11494		}
11495	}
11496	#[inline]
11497	pub fn slice_loop_filter_across_slices_enabled_flag(&self) -> u32 {
11498		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
11499	}
11500	#[inline]
11501	pub fn set_slice_loop_filter_across_slices_enabled_flag(&mut self, val: u32) {
11502		unsafe {
11503			let val: u32 = ::std::mem::transmute(val);
11504			self._bitfield_1.set(12usize, 1u8, val as u64)
11505		}
11506	}
11507	#[inline]
11508	pub unsafe fn slice_loop_filter_across_slices_enabled_flag_raw(this: *const Self) -> u32 {
11509		unsafe {
11510			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11511				::std::ptr::addr_of!((*this)._bitfield_1),
11512				12usize,
11513				1u8,
11514			) as u32)
11515		}
11516	}
11517	#[inline]
11518	pub unsafe fn set_slice_loop_filter_across_slices_enabled_flag_raw(this: *mut Self, val: u32) {
11519		unsafe {
11520			let val: u32 = ::std::mem::transmute(val);
11521			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11522				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11523				12usize,
11524				1u8,
11525				val as u64,
11526			)
11527		}
11528	}
11529	#[inline]
11530	pub fn collocated_from_l0_flag(&self) -> u32 {
11531		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
11532	}
11533	#[inline]
11534	pub fn set_collocated_from_l0_flag(&mut self, val: u32) {
11535		unsafe {
11536			let val: u32 = ::std::mem::transmute(val);
11537			self._bitfield_1.set(13usize, 1u8, val as u64)
11538		}
11539	}
11540	#[inline]
11541	pub unsafe fn collocated_from_l0_flag_raw(this: *const Self) -> u32 {
11542		unsafe {
11543			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
11544				::std::ptr::addr_of!((*this)._bitfield_1),
11545				13usize,
11546				1u8,
11547			) as u32)
11548		}
11549	}
11550	#[inline]
11551	pub unsafe fn set_collocated_from_l0_flag_raw(this: *mut Self, val: u32) {
11552		unsafe {
11553			let val: u32 = ::std::mem::transmute(val);
11554			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
11555				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11556				13usize,
11557				1u8,
11558				val as u64,
11559			)
11560		}
11561	}
11562	#[inline]
11563	pub fn new_bitfield_1(
11564		last_slice_of_pic_flag: u32,
11565		dependent_slice_segment_flag: u32,
11566		colour_plane_id: u32,
11567		slice_temporal_mvp_enabled_flag: u32,
11568		slice_sao_luma_flag: u32,
11569		slice_sao_chroma_flag: u32,
11570		num_ref_idx_active_override_flag: u32,
11571		mvd_l1_zero_flag: u32,
11572		cabac_init_flag: u32,
11573		slice_deblocking_filter_disabled_flag: u32,
11574		slice_loop_filter_across_slices_enabled_flag: u32,
11575		collocated_from_l0_flag: u32,
11576	) -> __BindgenBitfieldUnit<[u8; 2usize]> {
11577		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
11578		__bindgen_bitfield_unit.set(0usize, 1u8, {
11579			let last_slice_of_pic_flag: u32 = unsafe { ::std::mem::transmute(last_slice_of_pic_flag) };
11580			last_slice_of_pic_flag as u64
11581		});
11582		__bindgen_bitfield_unit.set(1usize, 1u8, {
11583			let dependent_slice_segment_flag: u32 = unsafe { ::std::mem::transmute(dependent_slice_segment_flag) };
11584			dependent_slice_segment_flag as u64
11585		});
11586		__bindgen_bitfield_unit.set(2usize, 2u8, {
11587			let colour_plane_id: u32 = unsafe { ::std::mem::transmute(colour_plane_id) };
11588			colour_plane_id as u64
11589		});
11590		__bindgen_bitfield_unit.set(4usize, 1u8, {
11591			let slice_temporal_mvp_enabled_flag: u32 =
11592				unsafe { ::std::mem::transmute(slice_temporal_mvp_enabled_flag) };
11593			slice_temporal_mvp_enabled_flag as u64
11594		});
11595		__bindgen_bitfield_unit.set(5usize, 1u8, {
11596			let slice_sao_luma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_luma_flag) };
11597			slice_sao_luma_flag as u64
11598		});
11599		__bindgen_bitfield_unit.set(6usize, 1u8, {
11600			let slice_sao_chroma_flag: u32 = unsafe { ::std::mem::transmute(slice_sao_chroma_flag) };
11601			slice_sao_chroma_flag as u64
11602		});
11603		__bindgen_bitfield_unit.set(7usize, 1u8, {
11604			let num_ref_idx_active_override_flag: u32 =
11605				unsafe { ::std::mem::transmute(num_ref_idx_active_override_flag) };
11606			num_ref_idx_active_override_flag as u64
11607		});
11608		__bindgen_bitfield_unit.set(8usize, 1u8, {
11609			let mvd_l1_zero_flag: u32 = unsafe { ::std::mem::transmute(mvd_l1_zero_flag) };
11610			mvd_l1_zero_flag as u64
11611		});
11612		__bindgen_bitfield_unit.set(9usize, 1u8, {
11613			let cabac_init_flag: u32 = unsafe { ::std::mem::transmute(cabac_init_flag) };
11614			cabac_init_flag as u64
11615		});
11616		__bindgen_bitfield_unit.set(10usize, 2u8, {
11617			let slice_deblocking_filter_disabled_flag: u32 =
11618				unsafe { ::std::mem::transmute(slice_deblocking_filter_disabled_flag) };
11619			slice_deblocking_filter_disabled_flag as u64
11620		});
11621		__bindgen_bitfield_unit.set(12usize, 1u8, {
11622			let slice_loop_filter_across_slices_enabled_flag: u32 =
11623				unsafe { ::std::mem::transmute(slice_loop_filter_across_slices_enabled_flag) };
11624			slice_loop_filter_across_slices_enabled_flag as u64
11625		});
11626		__bindgen_bitfield_unit.set(13usize, 1u8, {
11627			let collocated_from_l0_flag: u32 = unsafe { ::std::mem::transmute(collocated_from_l0_flag) };
11628			collocated_from_l0_flag as u64
11629		});
11630		__bindgen_bitfield_unit
11631	}
11632}
11633impl Default for _VAEncSliceParameterBufferHEVC__bindgen_ty_1 {
11634	fn default() -> Self {
11635		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11636		unsafe {
11637			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11638			s.assume_init()
11639		}
11640	}
11641}
11642impl Default for _VAEncSliceParameterBufferHEVC {
11643	fn default() -> Self {
11644		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11645		unsafe {
11646			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11647			s.assume_init()
11648		}
11649	}
11650}
11651#[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"]
11652pub type VAEncSliceParameterBufferHEVC = _VAEncSliceParameterBufferHEVC;
11653#[doc = " \\brief HEVC Quantization Matrix Buffer Structure\n\n This structure is sent once per frame,\n and only when scaling_list_enabled_flag = 1 and scaling_list_data_present_flag = 1.\n Only when scaling_list_data_present_flag = 1, app still\n needs to send in this structure. When scaling_list_enabled_flag = 1 and\n scaling_list_data_present_flag = 0, driver is responsible to generate\n the default scaling list values.\n\n Matrix entries are in raster scan order which follows HEVC spec."]
11654#[repr(C)]
11655#[derive(Debug, Copy, Clone, PartialEq, Eq)]
11656pub struct _VAQMatrixBufferHEVC {
11657	#[doc = " \\brief scaling lists,\n corresponds to same HEVC spec syntax element\n ScalingList[ i ][ MatrixID ][ j ].\n\n \\brief 4x4 scaling,"]
11658	pub scaling_lists_4x4: [[[u8; 16usize]; 2usize]; 3usize],
11659	#[doc = " \\brief 8x8 scaling,"]
11660	pub scaling_lists_8x8: [[[u8; 64usize]; 2usize]; 3usize],
11661	#[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."]
11662	pub scaling_lists_16x16: [[[u8; 64usize]; 2usize]; 3usize],
11663	#[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."]
11664	pub scaling_lists_32x32: [[u8; 64usize]; 2usize],
11665	#[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."]
11666	pub scaling_list_dc_16x16: [[u8; 2usize]; 3usize],
11667	#[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."]
11668	pub scaling_list_dc_32x32: [u8; 2usize],
11669	#[doc = " \\brief Reserved bytes for future use, must be zero"]
11670	pub va_reserved: [u32; 4usize],
11671}
11672impl Default for _VAQMatrixBufferHEVC {
11673	fn default() -> Self {
11674		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11675		unsafe {
11676			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11677			s.assume_init()
11678		}
11679	}
11680}
11681#[doc = " \\brief HEVC Quantization Matrix Buffer Structure\n\n This structure is sent once per frame,\n and only when scaling_list_enabled_flag = 1 and scaling_list_data_present_flag = 1.\n Only when scaling_list_data_present_flag = 1, app still\n needs to send in this structure. When scaling_list_enabled_flag = 1 and\n scaling_list_data_present_flag = 0, driver is responsible to generate\n the default scaling list values.\n\n Matrix entries are in raster scan order which follows HEVC spec."]
11682pub type VAQMatrixBufferHEVC = _VAQMatrixBufferHEVC;
11683#[repr(C)]
11684#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
11685pub struct _VAPictureStats {
11686	pub picture_id: VASurfaceID,
11687	pub flags: u32,
11688}
11689pub type VAPictureStats = _VAPictureStats;
11690#[doc = " \\brief Motion Vector and Statistics frame level controls.\n common part VAStatsStatisticsParameterBufferType for a MB or CTB"]
11691#[repr(C)]
11692#[derive(Debug, Copy, Clone, PartialEq, Eq)]
11693pub struct _VAStatsStatisticsParameter {
11694	#[doc = " \\brief Source surface ID."]
11695	pub input: VAPictureStats,
11696	#[doc = " \\brief Past reference surface ID pointer."]
11697	pub past_references: *mut VAPictureStats,
11698	#[doc = " \\brief Past reference surface number"]
11699	pub num_past_references: u32,
11700	#[doc = " \\brief Statistics output for past reference surface.\n Only enabling statistics output for past reference picture when *past_ref_stat_buf is a valid\n VABufferID, it is needed in case app wants statistics data of both reference and current pictures\n in very special use cases for better performance.\n The output layout is defined by VAStatsStatisticsBufferType(for progressive and top field of\n interlaced case) and VAStatsStatisticsBottomFieldBufferType(only for interlaced case), only\n pixel_average_16x16/pixel_average_8x8 and variance_16x16/variance_8x8 data are valid."]
11701	pub past_ref_stat_buf: *mut VABufferID,
11702	#[doc = " \\brief Future reference surface ID pointer."]
11703	pub future_references: *mut VAPictureStats,
11704	#[doc = " \\brief Future reference surface number"]
11705	pub num_future_references: u32,
11706	#[doc = " \\brief Statistics output for future reference surface.\n Only enabling statistics output for future reference picture when *past_ref_stat_buf is a valid\n VABufferID, it is needed in case app wants statistics data of both reference and current pictures\n in very special use cases for better performance.\n The output layout is defined by VAStatsStatisticsBufferType(for progressive and top field of\n interlaced case) and VAStatsStatisticsBottomFieldBufferType(only for interlaced case), only\n pixel_average_16x16/pixel_average_8x8 and variance_16x16/variance_8x8 data are valid."]
11707	pub future_ref_stat_buf: *mut VABufferID,
11708	#[doc = " \\brief ID of the output buffer.\n The number of outputs is determined by below DisableMVOutput and DisableStatisticsOutput.\n The output layout is defined by VAStatsMVBufferType, VAStatsStatisticsBufferType(for progressive and\n top field of interlaced case) and VAStatsStatisticsBottomFieldBufferType(only for interlaced case)."]
11709	pub outputs: *mut VABufferID,
11710	#[doc = " \\brief MV predictor. It is valid only when mv_predictor_ctrl is not 0.\n Each block has a pair of MVs, one for past and one for future reference\n as defined by VAMotionVector. The block is in raster scan order.\n Buffer size shall not be less than the number of blocks multiplied by sizeof(VAMotionVector)."]
11711	pub mv_predictor: VABufferID,
11712	#[doc = " \\brief QP input buffer. It is valid only when mb_qp is set to 1.\n The data in this buffer correspond to the input source.\n One QP per MB or CTB block in raster scan order, each QP is a signed char (8-bit) value."]
11713	pub qp: VABufferID,
11714}
11715impl Default for _VAStatsStatisticsParameter {
11716	fn default() -> Self {
11717		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11718		unsafe {
11719			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11720			s.assume_init()
11721		}
11722	}
11723}
11724#[doc = " \\brief Motion Vector and Statistics frame level controls.\n common part VAStatsStatisticsParameterBufferType for a MB or CTB"]
11725pub type VAStatsStatisticsParameter = _VAStatsStatisticsParameter;
11726#[doc = " \\brief FEI frame level control buffer for HEVC"]
11727#[repr(C)]
11728#[derive(Debug, Copy, Clone, PartialEq, Eq)]
11729pub struct _VAEncMiscParameterFEIFrameControlHEVC {
11730	pub function: u32,
11731	#[doc = " \\brief CTB control input buffer. It is valid only when per_ctb_input\n is set to 1. The data in this buffer correspond to the input source. CTB is in raster scan order,\n each CTB control data structure is defined by VAEncFEICTBControlHEVC.\n Buffer size shall not be less than the number of CTBs multiplied by\n sizeof(VAEncFEICTBControlHEVC)."]
11732	pub ctb_ctrl: VABufferID,
11733	#[doc = " \\brief CTB cmd per CTB data output of ENC\n  it is reserved for CTB level information\n it should include CU split information and other CTB datas .\n Each CTB block has one CTB cmd data."]
11734	pub ctb_cmd: VABufferID,
11735	#[doc = " \\brief CU record data output of ENC\n  it is reserved for CU level information\n it should include CU detail data. include mode,MV, reference etc.\n Each CTB block has one CU record data."]
11736	pub cu_record: VABufferID,
11737	#[doc = " \\brief distortion output of ENC or ENC_PAK.\n Each CTB has one distortion data with VAEncFEIDistortionHevc\n Buffer size shall not be less than the number of CTBs multiplied by\n sizeof(VAEncFEIDistortionHevc)."]
11738	pub distortion: VABufferID,
11739	#[doc = " \\brief Qp input buffer. It is valid only when per_block_qp is set to 1.\n The data in this buffer correspond to the input source.\n One Qp per block block is in raster scan order, each Qp is a signed char (8-bit) value."]
11740	pub qp: VABufferID,
11741	#[doc = " \\brief MV predictor. It is valid only when mv_predictor_input is set to non-zero.\n Each CTB block has one or more pair of motion vectors and the corresponding\n reference indexes as defined by VAEncFEIMVPredictorHEVC. 32x32 block is in raster scan order.\n Buffer size shall not be less than the number of 16x16 blocks multiplied by\n sizeof(VAEncFEIMVPredictorHEVC)."]
11742	pub mv_predictor: VABufferID,
11743	pub _bitfield_align_1: [u32; 0],
11744	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 20usize]>,
11745	#[doc = " \\brief max frame size control with multi passes QP setting"]
11746	pub max_frame_size: u32,
11747	#[doc = " \\brief number of passes, every pass has different QP"]
11748	pub num_passes: u32,
11749	#[doc = " \\brief delta QP list for every pass"]
11750	pub delta_qp: *mut u8,
11751	pub reserved4: [u32; 2usize],
11752}
11753impl Default for _VAEncMiscParameterFEIFrameControlHEVC {
11754	fn default() -> Self {
11755		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
11756		unsafe {
11757			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
11758			s.assume_init()
11759		}
11760	}
11761}
11762impl _VAEncMiscParameterFEIFrameControlHEVC {
11763	#[inline]
11764	pub fn num_mv_predictors_l0(&self) -> u32 {
11765		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
11766	}
11767	#[inline]
11768	pub fn set_num_mv_predictors_l0(&mut self, val: u32) {
11769		unsafe {
11770			let val: u32 = ::std::mem::transmute(val);
11771			self._bitfield_1.set(0usize, 16u8, val as u64)
11772		}
11773	}
11774	#[inline]
11775	pub unsafe fn num_mv_predictors_l0_raw(this: *const Self) -> u32 {
11776		unsafe {
11777			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
11778				::std::ptr::addr_of!((*this)._bitfield_1),
11779				0usize,
11780				16u8,
11781			) as u32)
11782		}
11783	}
11784	#[inline]
11785	pub unsafe fn set_num_mv_predictors_l0_raw(this: *mut Self, val: u32) {
11786		unsafe {
11787			let val: u32 = ::std::mem::transmute(val);
11788			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
11789				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11790				0usize,
11791				16u8,
11792				val as u64,
11793			)
11794		}
11795	}
11796	#[inline]
11797	pub fn num_mv_predictors_l1(&self) -> u32 {
11798		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
11799	}
11800	#[inline]
11801	pub fn set_num_mv_predictors_l1(&mut self, val: u32) {
11802		unsafe {
11803			let val: u32 = ::std::mem::transmute(val);
11804			self._bitfield_1.set(16usize, 16u8, val as u64)
11805		}
11806	}
11807	#[inline]
11808	pub unsafe fn num_mv_predictors_l1_raw(this: *const Self) -> u32 {
11809		unsafe {
11810			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
11811				::std::ptr::addr_of!((*this)._bitfield_1),
11812				16usize,
11813				16u8,
11814			) as u32)
11815		}
11816	}
11817	#[inline]
11818	pub unsafe fn set_num_mv_predictors_l1_raw(this: *mut Self, val: u32) {
11819		unsafe {
11820			let val: u32 = ::std::mem::transmute(val);
11821			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
11822				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11823				16usize,
11824				16u8,
11825				val as u64,
11826			)
11827		}
11828	}
11829	#[inline]
11830	pub fn search_path(&self) -> u32 {
11831		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 8u8) as u32) }
11832	}
11833	#[inline]
11834	pub fn set_search_path(&mut self, val: u32) {
11835		unsafe {
11836			let val: u32 = ::std::mem::transmute(val);
11837			self._bitfield_1.set(32usize, 8u8, val as u64)
11838		}
11839	}
11840	#[inline]
11841	pub unsafe fn search_path_raw(this: *const Self) -> u32 {
11842		unsafe {
11843			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
11844				::std::ptr::addr_of!((*this)._bitfield_1),
11845				32usize,
11846				8u8,
11847			) as u32)
11848		}
11849	}
11850	#[inline]
11851	pub unsafe fn set_search_path_raw(this: *mut Self, val: u32) {
11852		unsafe {
11853			let val: u32 = ::std::mem::transmute(val);
11854			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
11855				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11856				32usize,
11857				8u8,
11858				val as u64,
11859			)
11860		}
11861	}
11862	#[inline]
11863	pub fn len_sp(&self) -> u32 {
11864		unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 8u8) as u32) }
11865	}
11866	#[inline]
11867	pub fn set_len_sp(&mut self, val: u32) {
11868		unsafe {
11869			let val: u32 = ::std::mem::transmute(val);
11870			self._bitfield_1.set(40usize, 8u8, val as u64)
11871		}
11872	}
11873	#[inline]
11874	pub unsafe fn len_sp_raw(this: *const Self) -> u32 {
11875		unsafe {
11876			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
11877				::std::ptr::addr_of!((*this)._bitfield_1),
11878				40usize,
11879				8u8,
11880			) as u32)
11881		}
11882	}
11883	#[inline]
11884	pub unsafe fn set_len_sp_raw(this: *mut Self, val: u32) {
11885		unsafe {
11886			let val: u32 = ::std::mem::transmute(val);
11887			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
11888				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11889				40usize,
11890				8u8,
11891				val as u64,
11892			)
11893		}
11894	}
11895	#[inline]
11896	pub fn reserved0(&self) -> u32 {
11897		unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 16u8) as u32) }
11898	}
11899	#[inline]
11900	pub fn set_reserved0(&mut self, val: u32) {
11901		unsafe {
11902			let val: u32 = ::std::mem::transmute(val);
11903			self._bitfield_1.set(48usize, 16u8, val as u64)
11904		}
11905	}
11906	#[inline]
11907	pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
11908		unsafe {
11909			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
11910				::std::ptr::addr_of!((*this)._bitfield_1),
11911				48usize,
11912				16u8,
11913			) as u32)
11914		}
11915	}
11916	#[inline]
11917	pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
11918		unsafe {
11919			let val: u32 = ::std::mem::transmute(val);
11920			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
11921				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11922				48usize,
11923				16u8,
11924				val as u64,
11925			)
11926		}
11927	}
11928	#[inline]
11929	pub fn multi_pred_l0(&self) -> u32 {
11930		unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 4u8) as u32) }
11931	}
11932	#[inline]
11933	pub fn set_multi_pred_l0(&mut self, val: u32) {
11934		unsafe {
11935			let val: u32 = ::std::mem::transmute(val);
11936			self._bitfield_1.set(64usize, 4u8, val as u64)
11937		}
11938	}
11939	#[inline]
11940	pub unsafe fn multi_pred_l0_raw(this: *const Self) -> u32 {
11941		unsafe {
11942			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
11943				::std::ptr::addr_of!((*this)._bitfield_1),
11944				64usize,
11945				4u8,
11946			) as u32)
11947		}
11948	}
11949	#[inline]
11950	pub unsafe fn set_multi_pred_l0_raw(this: *mut Self, val: u32) {
11951		unsafe {
11952			let val: u32 = ::std::mem::transmute(val);
11953			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
11954				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11955				64usize,
11956				4u8,
11957				val as u64,
11958			)
11959		}
11960	}
11961	#[inline]
11962	pub fn multi_pred_l1(&self) -> u32 {
11963		unsafe { ::std::mem::transmute(self._bitfield_1.get(68usize, 4u8) as u32) }
11964	}
11965	#[inline]
11966	pub fn set_multi_pred_l1(&mut self, val: u32) {
11967		unsafe {
11968			let val: u32 = ::std::mem::transmute(val);
11969			self._bitfield_1.set(68usize, 4u8, val as u64)
11970		}
11971	}
11972	#[inline]
11973	pub unsafe fn multi_pred_l1_raw(this: *const Self) -> u32 {
11974		unsafe {
11975			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
11976				::std::ptr::addr_of!((*this)._bitfield_1),
11977				68usize,
11978				4u8,
11979			) as u32)
11980		}
11981	}
11982	#[inline]
11983	pub unsafe fn set_multi_pred_l1_raw(this: *mut Self, val: u32) {
11984		unsafe {
11985			let val: u32 = ::std::mem::transmute(val);
11986			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
11987				::std::ptr::addr_of_mut!((*this)._bitfield_1),
11988				68usize,
11989				4u8,
11990				val as u64,
11991			)
11992		}
11993	}
11994	#[inline]
11995	pub fn sub_pel_mode(&self) -> u32 {
11996		unsafe { ::std::mem::transmute(self._bitfield_1.get(72usize, 2u8) as u32) }
11997	}
11998	#[inline]
11999	pub fn set_sub_pel_mode(&mut self, val: u32) {
12000		unsafe {
12001			let val: u32 = ::std::mem::transmute(val);
12002			self._bitfield_1.set(72usize, 2u8, val as u64)
12003		}
12004	}
12005	#[inline]
12006	pub unsafe fn sub_pel_mode_raw(this: *const Self) -> u32 {
12007		unsafe {
12008			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12009				::std::ptr::addr_of!((*this)._bitfield_1),
12010				72usize,
12011				2u8,
12012			) as u32)
12013		}
12014	}
12015	#[inline]
12016	pub unsafe fn set_sub_pel_mode_raw(this: *mut Self, val: u32) {
12017		unsafe {
12018			let val: u32 = ::std::mem::transmute(val);
12019			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12020				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12021				72usize,
12022				2u8,
12023				val as u64,
12024			)
12025		}
12026	}
12027	#[inline]
12028	pub fn adaptive_search(&self) -> u32 {
12029		unsafe { ::std::mem::transmute(self._bitfield_1.get(74usize, 1u8) as u32) }
12030	}
12031	#[inline]
12032	pub fn set_adaptive_search(&mut self, val: u32) {
12033		unsafe {
12034			let val: u32 = ::std::mem::transmute(val);
12035			self._bitfield_1.set(74usize, 1u8, val as u64)
12036		}
12037	}
12038	#[inline]
12039	pub unsafe fn adaptive_search_raw(this: *const Self) -> u32 {
12040		unsafe {
12041			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12042				::std::ptr::addr_of!((*this)._bitfield_1),
12043				74usize,
12044				1u8,
12045			) as u32)
12046		}
12047	}
12048	#[inline]
12049	pub unsafe fn set_adaptive_search_raw(this: *mut Self, val: u32) {
12050		unsafe {
12051			let val: u32 = ::std::mem::transmute(val);
12052			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12053				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12054				74usize,
12055				1u8,
12056				val as u64,
12057			)
12058		}
12059	}
12060	#[inline]
12061	pub fn mv_predictor_input(&self) -> u32 {
12062		unsafe { ::std::mem::transmute(self._bitfield_1.get(75usize, 3u8) as u32) }
12063	}
12064	#[inline]
12065	pub fn set_mv_predictor_input(&mut self, val: u32) {
12066		unsafe {
12067			let val: u32 = ::std::mem::transmute(val);
12068			self._bitfield_1.set(75usize, 3u8, val as u64)
12069		}
12070	}
12071	#[inline]
12072	pub unsafe fn mv_predictor_input_raw(this: *const Self) -> u32 {
12073		unsafe {
12074			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12075				::std::ptr::addr_of!((*this)._bitfield_1),
12076				75usize,
12077				3u8,
12078			) as u32)
12079		}
12080	}
12081	#[inline]
12082	pub unsafe fn set_mv_predictor_input_raw(this: *mut Self, val: u32) {
12083		unsafe {
12084			let val: u32 = ::std::mem::transmute(val);
12085			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12086				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12087				75usize,
12088				3u8,
12089				val as u64,
12090			)
12091		}
12092	}
12093	#[inline]
12094	pub fn per_block_qp(&self) -> u32 {
12095		unsafe { ::std::mem::transmute(self._bitfield_1.get(78usize, 1u8) as u32) }
12096	}
12097	#[inline]
12098	pub fn set_per_block_qp(&mut self, val: u32) {
12099		unsafe {
12100			let val: u32 = ::std::mem::transmute(val);
12101			self._bitfield_1.set(78usize, 1u8, val as u64)
12102		}
12103	}
12104	#[inline]
12105	pub unsafe fn per_block_qp_raw(this: *const Self) -> u32 {
12106		unsafe {
12107			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12108				::std::ptr::addr_of!((*this)._bitfield_1),
12109				78usize,
12110				1u8,
12111			) as u32)
12112		}
12113	}
12114	#[inline]
12115	pub unsafe fn set_per_block_qp_raw(this: *mut Self, val: u32) {
12116		unsafe {
12117			let val: u32 = ::std::mem::transmute(val);
12118			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12119				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12120				78usize,
12121				1u8,
12122				val as u64,
12123			)
12124		}
12125	}
12126	#[inline]
12127	pub fn per_ctb_input(&self) -> u32 {
12128		unsafe { ::std::mem::transmute(self._bitfield_1.get(79usize, 1u8) as u32) }
12129	}
12130	#[inline]
12131	pub fn set_per_ctb_input(&mut self, val: u32) {
12132		unsafe {
12133			let val: u32 = ::std::mem::transmute(val);
12134			self._bitfield_1.set(79usize, 1u8, val as u64)
12135		}
12136	}
12137	#[inline]
12138	pub unsafe fn per_ctb_input_raw(this: *const Self) -> u32 {
12139		unsafe {
12140			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12141				::std::ptr::addr_of!((*this)._bitfield_1),
12142				79usize,
12143				1u8,
12144			) as u32)
12145		}
12146	}
12147	#[inline]
12148	pub unsafe fn set_per_ctb_input_raw(this: *mut Self, val: u32) {
12149		unsafe {
12150			let val: u32 = ::std::mem::transmute(val);
12151			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12152				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12153				79usize,
12154				1u8,
12155				val as u64,
12156			)
12157		}
12158	}
12159	#[inline]
12160	pub fn colocated_ctb_distortion(&self) -> u32 {
12161		unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 1u8) as u32) }
12162	}
12163	#[inline]
12164	pub fn set_colocated_ctb_distortion(&mut self, val: u32) {
12165		unsafe {
12166			let val: u32 = ::std::mem::transmute(val);
12167			self._bitfield_1.set(80usize, 1u8, val as u64)
12168		}
12169	}
12170	#[inline]
12171	pub unsafe fn colocated_ctb_distortion_raw(this: *const Self) -> u32 {
12172		unsafe {
12173			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12174				::std::ptr::addr_of!((*this)._bitfield_1),
12175				80usize,
12176				1u8,
12177			) as u32)
12178		}
12179	}
12180	#[inline]
12181	pub unsafe fn set_colocated_ctb_distortion_raw(this: *mut Self, val: u32) {
12182		unsafe {
12183			let val: u32 = ::std::mem::transmute(val);
12184			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12185				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12186				80usize,
12187				1u8,
12188				val as u64,
12189			)
12190		}
12191	}
12192	#[inline]
12193	pub fn force_lcu_split(&self) -> u32 {
12194		unsafe { ::std::mem::transmute(self._bitfield_1.get(81usize, 1u8) as u32) }
12195	}
12196	#[inline]
12197	pub fn set_force_lcu_split(&mut self, val: u32) {
12198		unsafe {
12199			let val: u32 = ::std::mem::transmute(val);
12200			self._bitfield_1.set(81usize, 1u8, val as u64)
12201		}
12202	}
12203	#[inline]
12204	pub unsafe fn force_lcu_split_raw(this: *const Self) -> u32 {
12205		unsafe {
12206			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12207				::std::ptr::addr_of!((*this)._bitfield_1),
12208				81usize,
12209				1u8,
12210			) as u32)
12211		}
12212	}
12213	#[inline]
12214	pub unsafe fn set_force_lcu_split_raw(this: *mut Self, val: u32) {
12215		unsafe {
12216			let val: u32 = ::std::mem::transmute(val);
12217			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12218				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12219				81usize,
12220				1u8,
12221				val as u64,
12222			)
12223		}
12224	}
12225	#[inline]
12226	pub fn enable_cu64_check(&self) -> u32 {
12227		unsafe { ::std::mem::transmute(self._bitfield_1.get(82usize, 1u8) as u32) }
12228	}
12229	#[inline]
12230	pub fn set_enable_cu64_check(&mut self, val: u32) {
12231		unsafe {
12232			let val: u32 = ::std::mem::transmute(val);
12233			self._bitfield_1.set(82usize, 1u8, val as u64)
12234		}
12235	}
12236	#[inline]
12237	pub unsafe fn enable_cu64_check_raw(this: *const Self) -> u32 {
12238		unsafe {
12239			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12240				::std::ptr::addr_of!((*this)._bitfield_1),
12241				82usize,
12242				1u8,
12243			) as u32)
12244		}
12245	}
12246	#[inline]
12247	pub unsafe fn set_enable_cu64_check_raw(this: *mut Self, val: u32) {
12248		unsafe {
12249			let val: u32 = ::std::mem::transmute(val);
12250			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12251				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12252				82usize,
12253				1u8,
12254				val as u64,
12255			)
12256		}
12257	}
12258	#[inline]
12259	pub fn enable_cu64_amp_check(&self) -> u32 {
12260		unsafe { ::std::mem::transmute(self._bitfield_1.get(83usize, 1u8) as u32) }
12261	}
12262	#[inline]
12263	pub fn set_enable_cu64_amp_check(&mut self, val: u32) {
12264		unsafe {
12265			let val: u32 = ::std::mem::transmute(val);
12266			self._bitfield_1.set(83usize, 1u8, val as u64)
12267		}
12268	}
12269	#[inline]
12270	pub unsafe fn enable_cu64_amp_check_raw(this: *const Self) -> u32 {
12271		unsafe {
12272			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12273				::std::ptr::addr_of!((*this)._bitfield_1),
12274				83usize,
12275				1u8,
12276			) as u32)
12277		}
12278	}
12279	#[inline]
12280	pub unsafe fn set_enable_cu64_amp_check_raw(this: *mut Self, val: u32) {
12281		unsafe {
12282			let val: u32 = ::std::mem::transmute(val);
12283			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12284				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12285				83usize,
12286				1u8,
12287				val as u64,
12288			)
12289		}
12290	}
12291	#[inline]
12292	pub fn cu64_skip_check_only(&self) -> u32 {
12293		unsafe { ::std::mem::transmute(self._bitfield_1.get(84usize, 1u8) as u32) }
12294	}
12295	#[inline]
12296	pub fn set_cu64_skip_check_only(&mut self, val: u32) {
12297		unsafe {
12298			let val: u32 = ::std::mem::transmute(val);
12299			self._bitfield_1.set(84usize, 1u8, val as u64)
12300		}
12301	}
12302	#[inline]
12303	pub unsafe fn cu64_skip_check_only_raw(this: *const Self) -> u32 {
12304		unsafe {
12305			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12306				::std::ptr::addr_of!((*this)._bitfield_1),
12307				84usize,
12308				1u8,
12309			) as u32)
12310		}
12311	}
12312	#[inline]
12313	pub unsafe fn set_cu64_skip_check_only_raw(this: *mut Self, val: u32) {
12314		unsafe {
12315			let val: u32 = ::std::mem::transmute(val);
12316			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12317				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12318				84usize,
12319				1u8,
12320				val as u64,
12321			)
12322		}
12323	}
12324	#[inline]
12325	pub fn reserved1(&self) -> u32 {
12326		unsafe { ::std::mem::transmute(self._bitfield_1.get(85usize, 11u8) as u32) }
12327	}
12328	#[inline]
12329	pub fn set_reserved1(&mut self, val: u32) {
12330		unsafe {
12331			let val: u32 = ::std::mem::transmute(val);
12332			self._bitfield_1.set(85usize, 11u8, val as u64)
12333		}
12334	}
12335	#[inline]
12336	pub unsafe fn reserved1_raw(this: *const Self) -> u32 {
12337		unsafe {
12338			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12339				::std::ptr::addr_of!((*this)._bitfield_1),
12340				85usize,
12341				11u8,
12342			) as u32)
12343		}
12344	}
12345	#[inline]
12346	pub unsafe fn set_reserved1_raw(this: *mut Self, val: u32) {
12347		unsafe {
12348			let val: u32 = ::std::mem::transmute(val);
12349			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12350				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12351				85usize,
12352				11u8,
12353				val as u64,
12354			)
12355		}
12356	}
12357	#[inline]
12358	pub fn ref_width(&self) -> u32 {
12359		unsafe { ::std::mem::transmute(self._bitfield_1.get(96usize, 8u8) as u32) }
12360	}
12361	#[inline]
12362	pub fn set_ref_width(&mut self, val: u32) {
12363		unsafe {
12364			let val: u32 = ::std::mem::transmute(val);
12365			self._bitfield_1.set(96usize, 8u8, val as u64)
12366		}
12367	}
12368	#[inline]
12369	pub unsafe fn ref_width_raw(this: *const Self) -> u32 {
12370		unsafe {
12371			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12372				::std::ptr::addr_of!((*this)._bitfield_1),
12373				96usize,
12374				8u8,
12375			) as u32)
12376		}
12377	}
12378	#[inline]
12379	pub unsafe fn set_ref_width_raw(this: *mut Self, val: u32) {
12380		unsafe {
12381			let val: u32 = ::std::mem::transmute(val);
12382			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12383				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12384				96usize,
12385				8u8,
12386				val as u64,
12387			)
12388		}
12389	}
12390	#[inline]
12391	pub fn ref_height(&self) -> u32 {
12392		unsafe { ::std::mem::transmute(self._bitfield_1.get(104usize, 8u8) as u32) }
12393	}
12394	#[inline]
12395	pub fn set_ref_height(&mut self, val: u32) {
12396		unsafe {
12397			let val: u32 = ::std::mem::transmute(val);
12398			self._bitfield_1.set(104usize, 8u8, val as u64)
12399		}
12400	}
12401	#[inline]
12402	pub unsafe fn ref_height_raw(this: *const Self) -> u32 {
12403		unsafe {
12404			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12405				::std::ptr::addr_of!((*this)._bitfield_1),
12406				104usize,
12407				8u8,
12408			) as u32)
12409		}
12410	}
12411	#[inline]
12412	pub unsafe fn set_ref_height_raw(this: *mut Self, val: u32) {
12413		unsafe {
12414			let val: u32 = ::std::mem::transmute(val);
12415			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12416				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12417				104usize,
12418				8u8,
12419				val as u64,
12420			)
12421		}
12422	}
12423	#[inline]
12424	pub fn search_window(&self) -> u32 {
12425		unsafe { ::std::mem::transmute(self._bitfield_1.get(112usize, 8u8) as u32) }
12426	}
12427	#[inline]
12428	pub fn set_search_window(&mut self, val: u32) {
12429		unsafe {
12430			let val: u32 = ::std::mem::transmute(val);
12431			self._bitfield_1.set(112usize, 8u8, val as u64)
12432		}
12433	}
12434	#[inline]
12435	pub unsafe fn search_window_raw(this: *const Self) -> u32 {
12436		unsafe {
12437			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12438				::std::ptr::addr_of!((*this)._bitfield_1),
12439				112usize,
12440				8u8,
12441			) as u32)
12442		}
12443	}
12444	#[inline]
12445	pub unsafe fn set_search_window_raw(this: *mut Self, val: u32) {
12446		unsafe {
12447			let val: u32 = ::std::mem::transmute(val);
12448			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12449				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12450				112usize,
12451				8u8,
12452				val as u64,
12453			)
12454		}
12455	}
12456	#[inline]
12457	pub fn max_num_ime_search_center(&self) -> u32 {
12458		unsafe { ::std::mem::transmute(self._bitfield_1.get(120usize, 3u8) as u32) }
12459	}
12460	#[inline]
12461	pub fn set_max_num_ime_search_center(&mut self, val: u32) {
12462		unsafe {
12463			let val: u32 = ::std::mem::transmute(val);
12464			self._bitfield_1.set(120usize, 3u8, val as u64)
12465		}
12466	}
12467	#[inline]
12468	pub unsafe fn max_num_ime_search_center_raw(this: *const Self) -> u32 {
12469		unsafe {
12470			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12471				::std::ptr::addr_of!((*this)._bitfield_1),
12472				120usize,
12473				3u8,
12474			) as u32)
12475		}
12476	}
12477	#[inline]
12478	pub unsafe fn set_max_num_ime_search_center_raw(this: *mut Self, val: u32) {
12479		unsafe {
12480			let val: u32 = ::std::mem::transmute(val);
12481			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12482				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12483				120usize,
12484				3u8,
12485				val as u64,
12486			)
12487		}
12488	}
12489	#[inline]
12490	pub fn fast_intra_mode(&self) -> u32 {
12491		unsafe { ::std::mem::transmute(self._bitfield_1.get(123usize, 1u8) as u32) }
12492	}
12493	#[inline]
12494	pub fn set_fast_intra_mode(&mut self, val: u32) {
12495		unsafe {
12496			let val: u32 = ::std::mem::transmute(val);
12497			self._bitfield_1.set(123usize, 1u8, val as u64)
12498		}
12499	}
12500	#[inline]
12501	pub unsafe fn fast_intra_mode_raw(this: *const Self) -> u32 {
12502		unsafe {
12503			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12504				::std::ptr::addr_of!((*this)._bitfield_1),
12505				123usize,
12506				1u8,
12507			) as u32)
12508		}
12509	}
12510	#[inline]
12511	pub unsafe fn set_fast_intra_mode_raw(this: *mut Self, val: u32) {
12512		unsafe {
12513			let val: u32 = ::std::mem::transmute(val);
12514			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12515				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12516				123usize,
12517				1u8,
12518				val as u64,
12519			)
12520		}
12521	}
12522	#[inline]
12523	pub fn reserved2(&self) -> u32 {
12524		unsafe { ::std::mem::transmute(self._bitfield_1.get(124usize, 4u8) as u32) }
12525	}
12526	#[inline]
12527	pub fn set_reserved2(&mut self, val: u32) {
12528		unsafe {
12529			let val: u32 = ::std::mem::transmute(val);
12530			self._bitfield_1.set(124usize, 4u8, val as u64)
12531		}
12532	}
12533	#[inline]
12534	pub unsafe fn reserved2_raw(this: *const Self) -> u32 {
12535		unsafe {
12536			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12537				::std::ptr::addr_of!((*this)._bitfield_1),
12538				124usize,
12539				4u8,
12540			) as u32)
12541		}
12542	}
12543	#[inline]
12544	pub unsafe fn set_reserved2_raw(this: *mut Self, val: u32) {
12545		unsafe {
12546			let val: u32 = ::std::mem::transmute(val);
12547			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12548				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12549				124usize,
12550				4u8,
12551				val as u64,
12552			)
12553		}
12554	}
12555	#[inline]
12556	pub fn num_concurrent_enc_frame_partition(&self) -> u32 {
12557		unsafe { ::std::mem::transmute(self._bitfield_1.get(128usize, 8u8) as u32) }
12558	}
12559	#[inline]
12560	pub fn set_num_concurrent_enc_frame_partition(&mut self, val: u32) {
12561		unsafe {
12562			let val: u32 = ::std::mem::transmute(val);
12563			self._bitfield_1.set(128usize, 8u8, val as u64)
12564		}
12565	}
12566	#[inline]
12567	pub unsafe fn num_concurrent_enc_frame_partition_raw(this: *const Self) -> u32 {
12568		unsafe {
12569			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12570				::std::ptr::addr_of!((*this)._bitfield_1),
12571				128usize,
12572				8u8,
12573			) as u32)
12574		}
12575	}
12576	#[inline]
12577	pub unsafe fn set_num_concurrent_enc_frame_partition_raw(this: *mut Self, val: u32) {
12578		unsafe {
12579			let val: u32 = ::std::mem::transmute(val);
12580			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12581				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12582				128usize,
12583				8u8,
12584				val as u64,
12585			)
12586		}
12587	}
12588	#[inline]
12589	pub fn reserved3(&self) -> u32 {
12590		unsafe { ::std::mem::transmute(self._bitfield_1.get(136usize, 24u8) as u32) }
12591	}
12592	#[inline]
12593	pub fn set_reserved3(&mut self, val: u32) {
12594		unsafe {
12595			let val: u32 = ::std::mem::transmute(val);
12596			self._bitfield_1.set(136usize, 24u8, val as u64)
12597		}
12598	}
12599	#[inline]
12600	pub unsafe fn reserved3_raw(this: *const Self) -> u32 {
12601		unsafe {
12602			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_get(
12603				::std::ptr::addr_of!((*this)._bitfield_1),
12604				136usize,
12605				24u8,
12606			) as u32)
12607		}
12608	}
12609	#[inline]
12610	pub unsafe fn set_reserved3_raw(this: *mut Self, val: u32) {
12611		unsafe {
12612			let val: u32 = ::std::mem::transmute(val);
12613			<__BindgenBitfieldUnit<[u8; 20usize]>>::raw_set(
12614				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12615				136usize,
12616				24u8,
12617				val as u64,
12618			)
12619		}
12620	}
12621	#[inline]
12622	pub fn new_bitfield_1(
12623		num_mv_predictors_l0: u32,
12624		num_mv_predictors_l1: u32,
12625		search_path: u32,
12626		len_sp: u32,
12627		reserved0: u32,
12628		multi_pred_l0: u32,
12629		multi_pred_l1: u32,
12630		sub_pel_mode: u32,
12631		adaptive_search: u32,
12632		mv_predictor_input: u32,
12633		per_block_qp: u32,
12634		per_ctb_input: u32,
12635		colocated_ctb_distortion: u32,
12636		force_lcu_split: u32,
12637		enable_cu64_check: u32,
12638		enable_cu64_amp_check: u32,
12639		cu64_skip_check_only: u32,
12640		reserved1: u32,
12641		ref_width: u32,
12642		ref_height: u32,
12643		search_window: u32,
12644		max_num_ime_search_center: u32,
12645		fast_intra_mode: u32,
12646		reserved2: u32,
12647		num_concurrent_enc_frame_partition: u32,
12648		reserved3: u32,
12649	) -> __BindgenBitfieldUnit<[u8; 20usize]> {
12650		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 20usize]> = Default::default();
12651		__bindgen_bitfield_unit.set(0usize, 16u8, {
12652			let num_mv_predictors_l0: u32 = unsafe { ::std::mem::transmute(num_mv_predictors_l0) };
12653			num_mv_predictors_l0 as u64
12654		});
12655		__bindgen_bitfield_unit.set(16usize, 16u8, {
12656			let num_mv_predictors_l1: u32 = unsafe { ::std::mem::transmute(num_mv_predictors_l1) };
12657			num_mv_predictors_l1 as u64
12658		});
12659		__bindgen_bitfield_unit.set(32usize, 8u8, {
12660			let search_path: u32 = unsafe { ::std::mem::transmute(search_path) };
12661			search_path as u64
12662		});
12663		__bindgen_bitfield_unit.set(40usize, 8u8, {
12664			let len_sp: u32 = unsafe { ::std::mem::transmute(len_sp) };
12665			len_sp as u64
12666		});
12667		__bindgen_bitfield_unit.set(48usize, 16u8, {
12668			let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
12669			reserved0 as u64
12670		});
12671		__bindgen_bitfield_unit.set(64usize, 4u8, {
12672			let multi_pred_l0: u32 = unsafe { ::std::mem::transmute(multi_pred_l0) };
12673			multi_pred_l0 as u64
12674		});
12675		__bindgen_bitfield_unit.set(68usize, 4u8, {
12676			let multi_pred_l1: u32 = unsafe { ::std::mem::transmute(multi_pred_l1) };
12677			multi_pred_l1 as u64
12678		});
12679		__bindgen_bitfield_unit.set(72usize, 2u8, {
12680			let sub_pel_mode: u32 = unsafe { ::std::mem::transmute(sub_pel_mode) };
12681			sub_pel_mode as u64
12682		});
12683		__bindgen_bitfield_unit.set(74usize, 1u8, {
12684			let adaptive_search: u32 = unsafe { ::std::mem::transmute(adaptive_search) };
12685			adaptive_search as u64
12686		});
12687		__bindgen_bitfield_unit.set(75usize, 3u8, {
12688			let mv_predictor_input: u32 = unsafe { ::std::mem::transmute(mv_predictor_input) };
12689			mv_predictor_input as u64
12690		});
12691		__bindgen_bitfield_unit.set(78usize, 1u8, {
12692			let per_block_qp: u32 = unsafe { ::std::mem::transmute(per_block_qp) };
12693			per_block_qp as u64
12694		});
12695		__bindgen_bitfield_unit.set(79usize, 1u8, {
12696			let per_ctb_input: u32 = unsafe { ::std::mem::transmute(per_ctb_input) };
12697			per_ctb_input as u64
12698		});
12699		__bindgen_bitfield_unit.set(80usize, 1u8, {
12700			let colocated_ctb_distortion: u32 = unsafe { ::std::mem::transmute(colocated_ctb_distortion) };
12701			colocated_ctb_distortion as u64
12702		});
12703		__bindgen_bitfield_unit.set(81usize, 1u8, {
12704			let force_lcu_split: u32 = unsafe { ::std::mem::transmute(force_lcu_split) };
12705			force_lcu_split as u64
12706		});
12707		__bindgen_bitfield_unit.set(82usize, 1u8, {
12708			let enable_cu64_check: u32 = unsafe { ::std::mem::transmute(enable_cu64_check) };
12709			enable_cu64_check as u64
12710		});
12711		__bindgen_bitfield_unit.set(83usize, 1u8, {
12712			let enable_cu64_amp_check: u32 = unsafe { ::std::mem::transmute(enable_cu64_amp_check) };
12713			enable_cu64_amp_check as u64
12714		});
12715		__bindgen_bitfield_unit.set(84usize, 1u8, {
12716			let cu64_skip_check_only: u32 = unsafe { ::std::mem::transmute(cu64_skip_check_only) };
12717			cu64_skip_check_only as u64
12718		});
12719		__bindgen_bitfield_unit.set(85usize, 11u8, {
12720			let reserved1: u32 = unsafe { ::std::mem::transmute(reserved1) };
12721			reserved1 as u64
12722		});
12723		__bindgen_bitfield_unit.set(96usize, 8u8, {
12724			let ref_width: u32 = unsafe { ::std::mem::transmute(ref_width) };
12725			ref_width as u64
12726		});
12727		__bindgen_bitfield_unit.set(104usize, 8u8, {
12728			let ref_height: u32 = unsafe { ::std::mem::transmute(ref_height) };
12729			ref_height as u64
12730		});
12731		__bindgen_bitfield_unit.set(112usize, 8u8, {
12732			let search_window: u32 = unsafe { ::std::mem::transmute(search_window) };
12733			search_window as u64
12734		});
12735		__bindgen_bitfield_unit.set(120usize, 3u8, {
12736			let max_num_ime_search_center: u32 = unsafe { ::std::mem::transmute(max_num_ime_search_center) };
12737			max_num_ime_search_center as u64
12738		});
12739		__bindgen_bitfield_unit.set(123usize, 1u8, {
12740			let fast_intra_mode: u32 = unsafe { ::std::mem::transmute(fast_intra_mode) };
12741			fast_intra_mode as u64
12742		});
12743		__bindgen_bitfield_unit.set(124usize, 4u8, {
12744			let reserved2: u32 = unsafe { ::std::mem::transmute(reserved2) };
12745			reserved2 as u64
12746		});
12747		__bindgen_bitfield_unit.set(128usize, 8u8, {
12748			let num_concurrent_enc_frame_partition: u32 =
12749				unsafe { ::std::mem::transmute(num_concurrent_enc_frame_partition) };
12750			num_concurrent_enc_frame_partition as u64
12751		});
12752		__bindgen_bitfield_unit.set(136usize, 24u8, {
12753			let reserved3: u32 = unsafe { ::std::mem::transmute(reserved3) };
12754			reserved3 as u64
12755		});
12756		__bindgen_bitfield_unit
12757	}
12758}
12759#[doc = " \\brief FEI frame level control buffer for HEVC"]
12760pub type VAEncMiscParameterFEIFrameControlHEVC = _VAEncMiscParameterFEIFrameControlHEVC;
12761#[doc = " \\brief Application can use this definition as reference to allocate the buffer\n based on MaxNumPredictor returned from attribute VAConfigAttribFEIMVPredictors query.\n this buffer allocation is always based on 16x16 block even block size is indicated as 32x32 or 64x64, and buffer\n layout is always in 32x32 block raster scan order even block size is 16x16 or 64x64. If 32x32 block size is set,\n only the data in the first 16x16 block (block 0) is used for 32x32 block. If 64x64 block size is set\n MV layout is still in 32x32 raster scan order, the same as 32x32 and the first 16x16\n block within each 32x32 block needs to have intended MV data (four 32x32 blocks will have the same MV data in the\n correspondent first 16x16 block). Data structure for each 16x16 block is defined as below (same as AVC except\n BlockSize/Reserved bits)."]
12762#[repr(C)]
12763#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
12764pub struct _VAEncFEIMVPredictorHEVC {
12765	pub ref_idx: [_VAEncFEIMVPredictorHEVC__bindgen_ty_1; 4usize],
12766	pub _bitfield_align_1: [u32; 0],
12767	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
12768	pub mv: [VAMotionVector; 4usize],
12769}
12770#[doc = " \\brief Feference index corresponding to the entry of RefPicList0 & RefPicList1 in slice header (final reference\n list). Note that RefPicList0 & RefPicList1 needs to be the same for all slices.\n Ref0xIndex – RefPicList0; Ref1xIndex – RefPicList1; x – 0 ~ MaxNumPredictor"]
12771#[repr(C)]
12772#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
12773pub struct _VAEncFEIMVPredictorHEVC__bindgen_ty_1 {
12774	pub _bitfield_align_1: [u8; 0],
12775	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
12776}
12777impl _VAEncFEIMVPredictorHEVC__bindgen_ty_1 {
12778	#[inline]
12779	pub fn ref_idx_l0(&self) -> u8 {
12780		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
12781	}
12782	#[inline]
12783	pub fn set_ref_idx_l0(&mut self, val: u8) {
12784		unsafe {
12785			let val: u8 = ::std::mem::transmute(val);
12786			self._bitfield_1.set(0usize, 4u8, val as u64)
12787		}
12788	}
12789	#[inline]
12790	pub unsafe fn ref_idx_l0_raw(this: *const Self) -> u8 {
12791		unsafe {
12792			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
12793				::std::ptr::addr_of!((*this)._bitfield_1),
12794				0usize,
12795				4u8,
12796			) as u8)
12797		}
12798	}
12799	#[inline]
12800	pub unsafe fn set_ref_idx_l0_raw(this: *mut Self, val: u8) {
12801		unsafe {
12802			let val: u8 = ::std::mem::transmute(val);
12803			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
12804				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12805				0usize,
12806				4u8,
12807				val as u64,
12808			)
12809		}
12810	}
12811	#[inline]
12812	pub fn ref_idx_l1(&self) -> u8 {
12813		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
12814	}
12815	#[inline]
12816	pub fn set_ref_idx_l1(&mut self, val: u8) {
12817		unsafe {
12818			let val: u8 = ::std::mem::transmute(val);
12819			self._bitfield_1.set(4usize, 4u8, val as u64)
12820		}
12821	}
12822	#[inline]
12823	pub unsafe fn ref_idx_l1_raw(this: *const Self) -> u8 {
12824		unsafe {
12825			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
12826				::std::ptr::addr_of!((*this)._bitfield_1),
12827				4usize,
12828				4u8,
12829			) as u8)
12830		}
12831	}
12832	#[inline]
12833	pub unsafe fn set_ref_idx_l1_raw(this: *mut Self, val: u8) {
12834		unsafe {
12835			let val: u8 = ::std::mem::transmute(val);
12836			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
12837				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12838				4usize,
12839				4u8,
12840				val as u64,
12841			)
12842		}
12843	}
12844	#[inline]
12845	pub fn new_bitfield_1(ref_idx_l0: u8, ref_idx_l1: u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
12846		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
12847		__bindgen_bitfield_unit.set(0usize, 4u8, {
12848			let ref_idx_l0: u8 = unsafe { ::std::mem::transmute(ref_idx_l0) };
12849			ref_idx_l0 as u64
12850		});
12851		__bindgen_bitfield_unit.set(4usize, 4u8, {
12852			let ref_idx_l1: u8 = unsafe { ::std::mem::transmute(ref_idx_l1) };
12853			ref_idx_l1 as u64
12854		});
12855		__bindgen_bitfield_unit
12856	}
12857}
12858impl _VAEncFEIMVPredictorHEVC {
12859	#[inline]
12860	pub fn block_size(&self) -> u32 {
12861		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
12862	}
12863	#[inline]
12864	pub fn set_block_size(&mut self, val: u32) {
12865		unsafe {
12866			let val: u32 = ::std::mem::transmute(val);
12867			self._bitfield_1.set(0usize, 2u8, val as u64)
12868		}
12869	}
12870	#[inline]
12871	pub unsafe fn block_size_raw(this: *const Self) -> u32 {
12872		unsafe {
12873			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
12874				::std::ptr::addr_of!((*this)._bitfield_1),
12875				0usize,
12876				2u8,
12877			) as u32)
12878		}
12879	}
12880	#[inline]
12881	pub unsafe fn set_block_size_raw(this: *mut Self, val: u32) {
12882		unsafe {
12883			let val: u32 = ::std::mem::transmute(val);
12884			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
12885				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12886				0usize,
12887				2u8,
12888				val as u64,
12889			)
12890		}
12891	}
12892	#[inline]
12893	pub fn reserved(&self) -> u32 {
12894		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
12895	}
12896	#[inline]
12897	pub fn set_reserved(&mut self, val: u32) {
12898		unsafe {
12899			let val: u32 = ::std::mem::transmute(val);
12900			self._bitfield_1.set(2usize, 30u8, val as u64)
12901		}
12902	}
12903	#[inline]
12904	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
12905		unsafe {
12906			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
12907				::std::ptr::addr_of!((*this)._bitfield_1),
12908				2usize,
12909				30u8,
12910			) as u32)
12911		}
12912	}
12913	#[inline]
12914	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
12915		unsafe {
12916			let val: u32 = ::std::mem::transmute(val);
12917			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
12918				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12919				2usize,
12920				30u8,
12921				val as u64,
12922			)
12923		}
12924	}
12925	#[inline]
12926	pub fn new_bitfield_1(block_size: u32, reserved: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
12927		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
12928		__bindgen_bitfield_unit.set(0usize, 2u8, {
12929			let block_size: u32 = unsafe { ::std::mem::transmute(block_size) };
12930			block_size as u64
12931		});
12932		__bindgen_bitfield_unit.set(2usize, 30u8, {
12933			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
12934			reserved as u64
12935		});
12936		__bindgen_bitfield_unit
12937	}
12938}
12939#[doc = " \\brief Application can use this definition as reference to allocate the buffer\n based on MaxNumPredictor returned from attribute VAConfigAttribFEIMVPredictors query.\n this buffer allocation is always based on 16x16 block even block size is indicated as 32x32 or 64x64, and buffer\n layout is always in 32x32 block raster scan order even block size is 16x16 or 64x64. If 32x32 block size is set,\n only the data in the first 16x16 block (block 0) is used for 32x32 block. If 64x64 block size is set\n MV layout is still in 32x32 raster scan order, the same as 32x32 and the first 16x16\n block within each 32x32 block needs to have intended MV data (four 32x32 blocks will have the same MV data in the\n correspondent first 16x16 block). Data structure for each 16x16 block is defined as below (same as AVC except\n BlockSize/Reserved bits)."]
12940pub type VAEncFEIMVPredictorHEVC = _VAEncFEIMVPredictorHEVC;
12941#[doc = " \\brief FEI CTB level control data structure"]
12942#[repr(C)]
12943#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
12944pub struct _VAEncFEICTBControlHEVC {
12945	pub _bitfield_align_1: [u32; 0],
12946	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
12947	pub reserved1: u32,
12948	pub reserved2: u32,
12949	pub reserved3: u32,
12950}
12951impl _VAEncFEICTBControlHEVC {
12952	#[inline]
12953	pub fn force_to_intra(&self) -> u32 {
12954		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
12955	}
12956	#[inline]
12957	pub fn set_force_to_intra(&mut self, val: u32) {
12958		unsafe {
12959			let val: u32 = ::std::mem::transmute(val);
12960			self._bitfield_1.set(0usize, 1u8, val as u64)
12961		}
12962	}
12963	#[inline]
12964	pub unsafe fn force_to_intra_raw(this: *const Self) -> u32 {
12965		unsafe {
12966			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
12967				::std::ptr::addr_of!((*this)._bitfield_1),
12968				0usize,
12969				1u8,
12970			) as u32)
12971		}
12972	}
12973	#[inline]
12974	pub unsafe fn set_force_to_intra_raw(this: *mut Self, val: u32) {
12975		unsafe {
12976			let val: u32 = ::std::mem::transmute(val);
12977			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
12978				::std::ptr::addr_of_mut!((*this)._bitfield_1),
12979				0usize,
12980				1u8,
12981				val as u64,
12982			)
12983		}
12984	}
12985	#[inline]
12986	pub fn force_to_inter(&self) -> u32 {
12987		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
12988	}
12989	#[inline]
12990	pub fn set_force_to_inter(&mut self, val: u32) {
12991		unsafe {
12992			let val: u32 = ::std::mem::transmute(val);
12993			self._bitfield_1.set(1usize, 1u8, val as u64)
12994		}
12995	}
12996	#[inline]
12997	pub unsafe fn force_to_inter_raw(this: *const Self) -> u32 {
12998		unsafe {
12999			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13000				::std::ptr::addr_of!((*this)._bitfield_1),
13001				1usize,
13002				1u8,
13003			) as u32)
13004		}
13005	}
13006	#[inline]
13007	pub unsafe fn set_force_to_inter_raw(this: *mut Self, val: u32) {
13008		unsafe {
13009			let val: u32 = ::std::mem::transmute(val);
13010			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13011				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13012				1usize,
13013				1u8,
13014				val as u64,
13015			)
13016		}
13017	}
13018	#[inline]
13019	pub fn force_to_skip(&self) -> u32 {
13020		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
13021	}
13022	#[inline]
13023	pub fn set_force_to_skip(&mut self, val: u32) {
13024		unsafe {
13025			let val: u32 = ::std::mem::transmute(val);
13026			self._bitfield_1.set(2usize, 1u8, val as u64)
13027		}
13028	}
13029	#[inline]
13030	pub unsafe fn force_to_skip_raw(this: *const Self) -> u32 {
13031		unsafe {
13032			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13033				::std::ptr::addr_of!((*this)._bitfield_1),
13034				2usize,
13035				1u8,
13036			) as u32)
13037		}
13038	}
13039	#[inline]
13040	pub unsafe fn set_force_to_skip_raw(this: *mut Self, val: u32) {
13041		unsafe {
13042			let val: u32 = ::std::mem::transmute(val);
13043			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13044				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13045				2usize,
13046				1u8,
13047				val as u64,
13048			)
13049		}
13050	}
13051	#[inline]
13052	pub fn force_to_zero_coeff(&self) -> u32 {
13053		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
13054	}
13055	#[inline]
13056	pub fn set_force_to_zero_coeff(&mut self, val: u32) {
13057		unsafe {
13058			let val: u32 = ::std::mem::transmute(val);
13059			self._bitfield_1.set(3usize, 1u8, val as u64)
13060		}
13061	}
13062	#[inline]
13063	pub unsafe fn force_to_zero_coeff_raw(this: *const Self) -> u32 {
13064		unsafe {
13065			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13066				::std::ptr::addr_of!((*this)._bitfield_1),
13067				3usize,
13068				1u8,
13069			) as u32)
13070		}
13071	}
13072	#[inline]
13073	pub unsafe fn set_force_to_zero_coeff_raw(this: *mut Self, val: u32) {
13074		unsafe {
13075			let val: u32 = ::std::mem::transmute(val);
13076			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13077				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13078				3usize,
13079				1u8,
13080				val as u64,
13081			)
13082		}
13083	}
13084	#[inline]
13085	pub fn reserved0(&self) -> u32 {
13086		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 28u8) as u32) }
13087	}
13088	#[inline]
13089	pub fn set_reserved0(&mut self, val: u32) {
13090		unsafe {
13091			let val: u32 = ::std::mem::transmute(val);
13092			self._bitfield_1.set(4usize, 28u8, val as u64)
13093		}
13094	}
13095	#[inline]
13096	pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
13097		unsafe {
13098			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13099				::std::ptr::addr_of!((*this)._bitfield_1),
13100				4usize,
13101				28u8,
13102			) as u32)
13103		}
13104	}
13105	#[inline]
13106	pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
13107		unsafe {
13108			let val: u32 = ::std::mem::transmute(val);
13109			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13110				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13111				4usize,
13112				28u8,
13113				val as u64,
13114			)
13115		}
13116	}
13117	#[inline]
13118	pub fn new_bitfield_1(
13119		force_to_intra: u32,
13120		force_to_inter: u32,
13121		force_to_skip: u32,
13122		force_to_zero_coeff: u32,
13123		reserved0: u32,
13124	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
13125		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
13126		__bindgen_bitfield_unit.set(0usize, 1u8, {
13127			let force_to_intra: u32 = unsafe { ::std::mem::transmute(force_to_intra) };
13128			force_to_intra as u64
13129		});
13130		__bindgen_bitfield_unit.set(1usize, 1u8, {
13131			let force_to_inter: u32 = unsafe { ::std::mem::transmute(force_to_inter) };
13132			force_to_inter as u64
13133		});
13134		__bindgen_bitfield_unit.set(2usize, 1u8, {
13135			let force_to_skip: u32 = unsafe { ::std::mem::transmute(force_to_skip) };
13136			force_to_skip as u64
13137		});
13138		__bindgen_bitfield_unit.set(3usize, 1u8, {
13139			let force_to_zero_coeff: u32 = unsafe { ::std::mem::transmute(force_to_zero_coeff) };
13140			force_to_zero_coeff as u64
13141		});
13142		__bindgen_bitfield_unit.set(4usize, 28u8, {
13143			let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
13144			reserved0 as u64
13145		});
13146		__bindgen_bitfield_unit
13147	}
13148}
13149#[doc = " \\brief FEI CTB level control data structure"]
13150pub type VAEncFEICTBControlHEVC = _VAEncFEICTBControlHEVC;
13151pub mod VAEncPackedHeaderTypeH264 {
13152	#[doc = " \\brief Packed header types specific to H.264 encoding.\n\n Types of packed headers generally used for H.264 encoding. Each\n associated packed header data buffer shall contain the start code\n prefix 0x000001 followed by the complete NAL unit, thus also\n including the \\c nal_unit_type.\n\n Note: the start code prefix can contain an arbitrary number of leading\n zeros. The driver will skip them for emulation prevention bytes insertion,\n if necessary."]
13153	pub type Type = ::std::os::raw::c_uint;
13154	#[doc = " \\brief Packed Sequence Parameter Set (SPS).\n\n The corresponding packed header data buffer shall contain the\n complete seq_parameter_set_rbsp() syntax element.\n\n Note: packed \\c nal_unit_type shall be equal to 7."]
13155	pub const VAEncPackedHeaderH264_SPS: Type = 1;
13156	#[doc = " \\brief Packed Picture Parameter Set (PPS).\n\n The corresponding packed header data buffer shall contain the\n complete pic_parameter_set_rbsp() syntax element.\n\n Note: packed \\c nal_unit_type shall be equal to 8."]
13157	pub const VAEncPackedHeaderH264_PPS: Type = 2;
13158	#[doc = " \\brief Packed slice header.\n\n The corresponding packed header data buffer shall contain the\n \\c slice_header() syntax element only, along with any start\n code prefix and NAL unit type preceeding it. i.e. this means\n that the buffer does not contain any of the \\c slice_data() or\n the \\c rbsp_slice_trailing_bits().\n\n Note: packed \\c nal_unit_type shall be equal to 1 (non-IDR\n picture), or 5 (IDR picture)."]
13159	pub const VAEncPackedHeaderH264_Slice: Type = 3;
13160	#[doc = " \\brief Packed Supplemental Enhancement Information (SEI).\n\n The corresponding packed header data buffer shall contain the\n complete sei_rbsp() syntax element, thus including several\n sei_message() elements if necessary.\n\n Note: packed \\c nal_unit_type shall be equal to 6.\n\n @deprecated\n This is a deprecated packed header flag, All applications can use\n \\c VA_ENC_PACKED_HEADER_RAW_DATA to pass the corresponding packed\n SEI header data buffer to the driver"]
13161	pub const VAEncPackedHeaderH264_SEI: Type = 2147483649;
13162}
13163#[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."]
13164#[repr(C)]
13165#[derive(Copy, Clone)]
13166pub struct _VAEncSequenceParameterBufferH264 {
13167	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13168	pub seq_parameter_set_id: u8,
13169	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13170	pub level_idc: u8,
13171	#[doc = " \\brief Period between I frames."]
13172	pub intra_period: u32,
13173	#[doc = " \\brief Period between IDR frames."]
13174	pub intra_idr_period: u32,
13175	#[doc = " \\brief Period between I/P frames."]
13176	pub ip_period: u32,
13177	#[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."]
13178	pub bits_per_second: u32,
13179	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13180	pub max_num_ref_frames: u32,
13181	#[doc = " \\brief Picture width in macroblocks."]
13182	pub picture_width_in_mbs: u16,
13183	#[doc = " \\brief Picture height in macroblocks."]
13184	pub picture_height_in_mbs: u16,
13185	pub seq_fields: _VAEncSequenceParameterBufferH264__bindgen_ty_1,
13186	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13187	pub bit_depth_luma_minus8: u8,
13188	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13189	pub bit_depth_chroma_minus8: u8,
13190	#[doc = " if pic_order_cnt_type == 1 */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
13191	pub num_ref_frames_in_pic_order_cnt_cycle: u8,
13192	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13193	pub offset_for_non_ref_pic: i32,
13194	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13195	pub offset_for_top_to_bottom_field: i32,
13196	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13197	pub offset_for_ref_frame: [i32; 256usize],
13198	#[doc = " @name Cropping (optional) */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
13199	pub frame_cropping_flag: u8,
13200	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13201	pub frame_crop_left_offset: u32,
13202	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13203	pub frame_crop_right_offset: u32,
13204	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13205	pub frame_crop_top_offset: u32,
13206	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13207	pub frame_crop_bottom_offset: u32,
13208	#[doc = " @name VUI parameters (optional) */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
13209	pub vui_parameters_present_flag: u8,
13210	pub vui_fields: _VAEncSequenceParameterBufferH264__bindgen_ty_2,
13211	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13212	pub aspect_ratio_idc: u8,
13213	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13214	pub sar_width: u32,
13215	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13216	pub sar_height: u32,
13217	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13218	pub num_units_in_tick: u32,
13219	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
13220	pub time_scale: u32,
13221	#[doc = " \\brief Reserved bytes for future use, must be zero"]
13222	pub va_reserved: [u32; 4usize],
13223}
13224#[repr(C)]
13225#[derive(Copy, Clone)]
13226pub union _VAEncSequenceParameterBufferH264__bindgen_ty_1 {
13227	pub bits: _VAEncSequenceParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
13228	pub value: u32,
13229}
13230#[repr(C)]
13231#[repr(align(4))]
13232#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
13233pub struct _VAEncSequenceParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
13234	pub _bitfield_align_1: [u8; 0],
13235	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3usize]>,
13236	pub __bindgen_padding_0: u8,
13237}
13238impl _VAEncSequenceParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
13239	#[inline]
13240	pub fn chroma_format_idc(&self) -> u32 {
13241		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
13242	}
13243	#[inline]
13244	pub fn set_chroma_format_idc(&mut self, val: u32) {
13245		unsafe {
13246			let val: u32 = ::std::mem::transmute(val);
13247			self._bitfield_1.set(0usize, 2u8, val as u64)
13248		}
13249	}
13250	#[inline]
13251	pub unsafe fn chroma_format_idc_raw(this: *const Self) -> u32 {
13252		unsafe {
13253			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13254				::std::ptr::addr_of!((*this)._bitfield_1),
13255				0usize,
13256				2u8,
13257			) as u32)
13258		}
13259	}
13260	#[inline]
13261	pub unsafe fn set_chroma_format_idc_raw(this: *mut Self, val: u32) {
13262		unsafe {
13263			let val: u32 = ::std::mem::transmute(val);
13264			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13265				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13266				0usize,
13267				2u8,
13268				val as u64,
13269			)
13270		}
13271	}
13272	#[inline]
13273	pub fn frame_mbs_only_flag(&self) -> u32 {
13274		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
13275	}
13276	#[inline]
13277	pub fn set_frame_mbs_only_flag(&mut self, val: u32) {
13278		unsafe {
13279			let val: u32 = ::std::mem::transmute(val);
13280			self._bitfield_1.set(2usize, 1u8, val as u64)
13281		}
13282	}
13283	#[inline]
13284	pub unsafe fn frame_mbs_only_flag_raw(this: *const Self) -> u32 {
13285		unsafe {
13286			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13287				::std::ptr::addr_of!((*this)._bitfield_1),
13288				2usize,
13289				1u8,
13290			) as u32)
13291		}
13292	}
13293	#[inline]
13294	pub unsafe fn set_frame_mbs_only_flag_raw(this: *mut Self, val: u32) {
13295		unsafe {
13296			let val: u32 = ::std::mem::transmute(val);
13297			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13298				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13299				2usize,
13300				1u8,
13301				val as u64,
13302			)
13303		}
13304	}
13305	#[inline]
13306	pub fn mb_adaptive_frame_field_flag(&self) -> u32 {
13307		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
13308	}
13309	#[inline]
13310	pub fn set_mb_adaptive_frame_field_flag(&mut self, val: u32) {
13311		unsafe {
13312			let val: u32 = ::std::mem::transmute(val);
13313			self._bitfield_1.set(3usize, 1u8, val as u64)
13314		}
13315	}
13316	#[inline]
13317	pub unsafe fn mb_adaptive_frame_field_flag_raw(this: *const Self) -> u32 {
13318		unsafe {
13319			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13320				::std::ptr::addr_of!((*this)._bitfield_1),
13321				3usize,
13322				1u8,
13323			) as u32)
13324		}
13325	}
13326	#[inline]
13327	pub unsafe fn set_mb_adaptive_frame_field_flag_raw(this: *mut Self, val: u32) {
13328		unsafe {
13329			let val: u32 = ::std::mem::transmute(val);
13330			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13331				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13332				3usize,
13333				1u8,
13334				val as u64,
13335			)
13336		}
13337	}
13338	#[inline]
13339	pub fn seq_scaling_matrix_present_flag(&self) -> u32 {
13340		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
13341	}
13342	#[inline]
13343	pub fn set_seq_scaling_matrix_present_flag(&mut self, val: u32) {
13344		unsafe {
13345			let val: u32 = ::std::mem::transmute(val);
13346			self._bitfield_1.set(4usize, 1u8, val as u64)
13347		}
13348	}
13349	#[inline]
13350	pub unsafe fn seq_scaling_matrix_present_flag_raw(this: *const Self) -> u32 {
13351		unsafe {
13352			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13353				::std::ptr::addr_of!((*this)._bitfield_1),
13354				4usize,
13355				1u8,
13356			) as u32)
13357		}
13358	}
13359	#[inline]
13360	pub unsafe fn set_seq_scaling_matrix_present_flag_raw(this: *mut Self, val: u32) {
13361		unsafe {
13362			let val: u32 = ::std::mem::transmute(val);
13363			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13364				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13365				4usize,
13366				1u8,
13367				val as u64,
13368			)
13369		}
13370	}
13371	#[inline]
13372	pub fn direct_8x8_inference_flag(&self) -> u32 {
13373		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
13374	}
13375	#[inline]
13376	pub fn set_direct_8x8_inference_flag(&mut self, val: u32) {
13377		unsafe {
13378			let val: u32 = ::std::mem::transmute(val);
13379			self._bitfield_1.set(5usize, 1u8, val as u64)
13380		}
13381	}
13382	#[inline]
13383	pub unsafe fn direct_8x8_inference_flag_raw(this: *const Self) -> u32 {
13384		unsafe {
13385			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13386				::std::ptr::addr_of!((*this)._bitfield_1),
13387				5usize,
13388				1u8,
13389			) as u32)
13390		}
13391	}
13392	#[inline]
13393	pub unsafe fn set_direct_8x8_inference_flag_raw(this: *mut Self, val: u32) {
13394		unsafe {
13395			let val: u32 = ::std::mem::transmute(val);
13396			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13397				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13398				5usize,
13399				1u8,
13400				val as u64,
13401			)
13402		}
13403	}
13404	#[inline]
13405	pub fn log2_max_frame_num_minus4(&self) -> u32 {
13406		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 4u8) as u32) }
13407	}
13408	#[inline]
13409	pub fn set_log2_max_frame_num_minus4(&mut self, val: u32) {
13410		unsafe {
13411			let val: u32 = ::std::mem::transmute(val);
13412			self._bitfield_1.set(6usize, 4u8, val as u64)
13413		}
13414	}
13415	#[inline]
13416	pub unsafe fn log2_max_frame_num_minus4_raw(this: *const Self) -> u32 {
13417		unsafe {
13418			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13419				::std::ptr::addr_of!((*this)._bitfield_1),
13420				6usize,
13421				4u8,
13422			) as u32)
13423		}
13424	}
13425	#[inline]
13426	pub unsafe fn set_log2_max_frame_num_minus4_raw(this: *mut Self, val: u32) {
13427		unsafe {
13428			let val: u32 = ::std::mem::transmute(val);
13429			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13430				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13431				6usize,
13432				4u8,
13433				val as u64,
13434			)
13435		}
13436	}
13437	#[inline]
13438	pub fn pic_order_cnt_type(&self) -> u32 {
13439		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 2u8) as u32) }
13440	}
13441	#[inline]
13442	pub fn set_pic_order_cnt_type(&mut self, val: u32) {
13443		unsafe {
13444			let val: u32 = ::std::mem::transmute(val);
13445			self._bitfield_1.set(10usize, 2u8, val as u64)
13446		}
13447	}
13448	#[inline]
13449	pub unsafe fn pic_order_cnt_type_raw(this: *const Self) -> u32 {
13450		unsafe {
13451			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13452				::std::ptr::addr_of!((*this)._bitfield_1),
13453				10usize,
13454				2u8,
13455			) as u32)
13456		}
13457	}
13458	#[inline]
13459	pub unsafe fn set_pic_order_cnt_type_raw(this: *mut Self, val: u32) {
13460		unsafe {
13461			let val: u32 = ::std::mem::transmute(val);
13462			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13463				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13464				10usize,
13465				2u8,
13466				val as u64,
13467			)
13468		}
13469	}
13470	#[inline]
13471	pub fn log2_max_pic_order_cnt_lsb_minus4(&self) -> u32 {
13472		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 4u8) as u32) }
13473	}
13474	#[inline]
13475	pub fn set_log2_max_pic_order_cnt_lsb_minus4(&mut self, val: u32) {
13476		unsafe {
13477			let val: u32 = ::std::mem::transmute(val);
13478			self._bitfield_1.set(12usize, 4u8, val as u64)
13479		}
13480	}
13481	#[inline]
13482	pub unsafe fn log2_max_pic_order_cnt_lsb_minus4_raw(this: *const Self) -> u32 {
13483		unsafe {
13484			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13485				::std::ptr::addr_of!((*this)._bitfield_1),
13486				12usize,
13487				4u8,
13488			) as u32)
13489		}
13490	}
13491	#[inline]
13492	pub unsafe fn set_log2_max_pic_order_cnt_lsb_minus4_raw(this: *mut Self, val: u32) {
13493		unsafe {
13494			let val: u32 = ::std::mem::transmute(val);
13495			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13496				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13497				12usize,
13498				4u8,
13499				val as u64,
13500			)
13501		}
13502	}
13503	#[inline]
13504	pub fn delta_pic_order_always_zero_flag(&self) -> u32 {
13505		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
13506	}
13507	#[inline]
13508	pub fn set_delta_pic_order_always_zero_flag(&mut self, val: u32) {
13509		unsafe {
13510			let val: u32 = ::std::mem::transmute(val);
13511			self._bitfield_1.set(16usize, 1u8, val as u64)
13512		}
13513	}
13514	#[inline]
13515	pub unsafe fn delta_pic_order_always_zero_flag_raw(this: *const Self) -> u32 {
13516		unsafe {
13517			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_get(
13518				::std::ptr::addr_of!((*this)._bitfield_1),
13519				16usize,
13520				1u8,
13521			) as u32)
13522		}
13523	}
13524	#[inline]
13525	pub unsafe fn set_delta_pic_order_always_zero_flag_raw(this: *mut Self, val: u32) {
13526		unsafe {
13527			let val: u32 = ::std::mem::transmute(val);
13528			<__BindgenBitfieldUnit<[u8; 3usize]>>::raw_set(
13529				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13530				16usize,
13531				1u8,
13532				val as u64,
13533			)
13534		}
13535	}
13536	#[inline]
13537	pub fn new_bitfield_1(
13538		chroma_format_idc: u32,
13539		frame_mbs_only_flag: u32,
13540		mb_adaptive_frame_field_flag: u32,
13541		seq_scaling_matrix_present_flag: u32,
13542		direct_8x8_inference_flag: u32,
13543		log2_max_frame_num_minus4: u32,
13544		pic_order_cnt_type: u32,
13545		log2_max_pic_order_cnt_lsb_minus4: u32,
13546		delta_pic_order_always_zero_flag: u32,
13547	) -> __BindgenBitfieldUnit<[u8; 3usize]> {
13548		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 3usize]> = Default::default();
13549		__bindgen_bitfield_unit.set(0usize, 2u8, {
13550			let chroma_format_idc: u32 = unsafe { ::std::mem::transmute(chroma_format_idc) };
13551			chroma_format_idc as u64
13552		});
13553		__bindgen_bitfield_unit.set(2usize, 1u8, {
13554			let frame_mbs_only_flag: u32 = unsafe { ::std::mem::transmute(frame_mbs_only_flag) };
13555			frame_mbs_only_flag as u64
13556		});
13557		__bindgen_bitfield_unit.set(3usize, 1u8, {
13558			let mb_adaptive_frame_field_flag: u32 = unsafe { ::std::mem::transmute(mb_adaptive_frame_field_flag) };
13559			mb_adaptive_frame_field_flag as u64
13560		});
13561		__bindgen_bitfield_unit.set(4usize, 1u8, {
13562			let seq_scaling_matrix_present_flag: u32 =
13563				unsafe { ::std::mem::transmute(seq_scaling_matrix_present_flag) };
13564			seq_scaling_matrix_present_flag as u64
13565		});
13566		__bindgen_bitfield_unit.set(5usize, 1u8, {
13567			let direct_8x8_inference_flag: u32 = unsafe { ::std::mem::transmute(direct_8x8_inference_flag) };
13568			direct_8x8_inference_flag as u64
13569		});
13570		__bindgen_bitfield_unit.set(6usize, 4u8, {
13571			let log2_max_frame_num_minus4: u32 = unsafe { ::std::mem::transmute(log2_max_frame_num_minus4) };
13572			log2_max_frame_num_minus4 as u64
13573		});
13574		__bindgen_bitfield_unit.set(10usize, 2u8, {
13575			let pic_order_cnt_type: u32 = unsafe { ::std::mem::transmute(pic_order_cnt_type) };
13576			pic_order_cnt_type as u64
13577		});
13578		__bindgen_bitfield_unit.set(12usize, 4u8, {
13579			let log2_max_pic_order_cnt_lsb_minus4: u32 =
13580				unsafe { ::std::mem::transmute(log2_max_pic_order_cnt_lsb_minus4) };
13581			log2_max_pic_order_cnt_lsb_minus4 as u64
13582		});
13583		__bindgen_bitfield_unit.set(16usize, 1u8, {
13584			let delta_pic_order_always_zero_flag: u32 =
13585				unsafe { ::std::mem::transmute(delta_pic_order_always_zero_flag) };
13586			delta_pic_order_always_zero_flag as u64
13587		});
13588		__bindgen_bitfield_unit
13589	}
13590}
13591impl Default for _VAEncSequenceParameterBufferH264__bindgen_ty_1 {
13592	fn default() -> Self {
13593		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
13594		unsafe {
13595			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
13596			s.assume_init()
13597		}
13598	}
13599}
13600#[repr(C)]
13601#[derive(Copy, Clone)]
13602pub union _VAEncSequenceParameterBufferH264__bindgen_ty_2 {
13603	pub bits: _VAEncSequenceParameterBufferH264__bindgen_ty_2__bindgen_ty_1,
13604	pub value: u32,
13605}
13606#[repr(C)]
13607#[repr(align(4))]
13608#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
13609pub struct _VAEncSequenceParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
13610	pub _bitfield_align_1: [u16; 0],
13611	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
13612}
13613impl _VAEncSequenceParameterBufferH264__bindgen_ty_2__bindgen_ty_1 {
13614	#[inline]
13615	pub fn aspect_ratio_info_present_flag(&self) -> u32 {
13616		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
13617	}
13618	#[inline]
13619	pub fn set_aspect_ratio_info_present_flag(&mut self, val: u32) {
13620		unsafe {
13621			let val: u32 = ::std::mem::transmute(val);
13622			self._bitfield_1.set(0usize, 1u8, val as u64)
13623		}
13624	}
13625	#[inline]
13626	pub unsafe fn aspect_ratio_info_present_flag_raw(this: *const Self) -> u32 {
13627		unsafe {
13628			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13629				::std::ptr::addr_of!((*this)._bitfield_1),
13630				0usize,
13631				1u8,
13632			) as u32)
13633		}
13634	}
13635	#[inline]
13636	pub unsafe fn set_aspect_ratio_info_present_flag_raw(this: *mut Self, val: u32) {
13637		unsafe {
13638			let val: u32 = ::std::mem::transmute(val);
13639			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13640				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13641				0usize,
13642				1u8,
13643				val as u64,
13644			)
13645		}
13646	}
13647	#[inline]
13648	pub fn timing_info_present_flag(&self) -> u32 {
13649		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
13650	}
13651	#[inline]
13652	pub fn set_timing_info_present_flag(&mut self, val: u32) {
13653		unsafe {
13654			let val: u32 = ::std::mem::transmute(val);
13655			self._bitfield_1.set(1usize, 1u8, val as u64)
13656		}
13657	}
13658	#[inline]
13659	pub unsafe fn timing_info_present_flag_raw(this: *const Self) -> u32 {
13660		unsafe {
13661			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13662				::std::ptr::addr_of!((*this)._bitfield_1),
13663				1usize,
13664				1u8,
13665			) as u32)
13666		}
13667	}
13668	#[inline]
13669	pub unsafe fn set_timing_info_present_flag_raw(this: *mut Self, val: u32) {
13670		unsafe {
13671			let val: u32 = ::std::mem::transmute(val);
13672			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13673				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13674				1usize,
13675				1u8,
13676				val as u64,
13677			)
13678		}
13679	}
13680	#[inline]
13681	pub fn bitstream_restriction_flag(&self) -> u32 {
13682		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
13683	}
13684	#[inline]
13685	pub fn set_bitstream_restriction_flag(&mut self, val: u32) {
13686		unsafe {
13687			let val: u32 = ::std::mem::transmute(val);
13688			self._bitfield_1.set(2usize, 1u8, val as u64)
13689		}
13690	}
13691	#[inline]
13692	pub unsafe fn bitstream_restriction_flag_raw(this: *const Self) -> u32 {
13693		unsafe {
13694			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13695				::std::ptr::addr_of!((*this)._bitfield_1),
13696				2usize,
13697				1u8,
13698			) as u32)
13699		}
13700	}
13701	#[inline]
13702	pub unsafe fn set_bitstream_restriction_flag_raw(this: *mut Self, val: u32) {
13703		unsafe {
13704			let val: u32 = ::std::mem::transmute(val);
13705			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13706				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13707				2usize,
13708				1u8,
13709				val as u64,
13710			)
13711		}
13712	}
13713	#[inline]
13714	pub fn log2_max_mv_length_horizontal(&self) -> u32 {
13715		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 5u8) as u32) }
13716	}
13717	#[inline]
13718	pub fn set_log2_max_mv_length_horizontal(&mut self, val: u32) {
13719		unsafe {
13720			let val: u32 = ::std::mem::transmute(val);
13721			self._bitfield_1.set(3usize, 5u8, val as u64)
13722		}
13723	}
13724	#[inline]
13725	pub unsafe fn log2_max_mv_length_horizontal_raw(this: *const Self) -> u32 {
13726		unsafe {
13727			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13728				::std::ptr::addr_of!((*this)._bitfield_1),
13729				3usize,
13730				5u8,
13731			) as u32)
13732		}
13733	}
13734	#[inline]
13735	pub unsafe fn set_log2_max_mv_length_horizontal_raw(this: *mut Self, val: u32) {
13736		unsafe {
13737			let val: u32 = ::std::mem::transmute(val);
13738			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13739				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13740				3usize,
13741				5u8,
13742				val as u64,
13743			)
13744		}
13745	}
13746	#[inline]
13747	pub fn log2_max_mv_length_vertical(&self) -> u32 {
13748		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) }
13749	}
13750	#[inline]
13751	pub fn set_log2_max_mv_length_vertical(&mut self, val: u32) {
13752		unsafe {
13753			let val: u32 = ::std::mem::transmute(val);
13754			self._bitfield_1.set(8usize, 5u8, val as u64)
13755		}
13756	}
13757	#[inline]
13758	pub unsafe fn log2_max_mv_length_vertical_raw(this: *const Self) -> u32 {
13759		unsafe {
13760			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13761				::std::ptr::addr_of!((*this)._bitfield_1),
13762				8usize,
13763				5u8,
13764			) as u32)
13765		}
13766	}
13767	#[inline]
13768	pub unsafe fn set_log2_max_mv_length_vertical_raw(this: *mut Self, val: u32) {
13769		unsafe {
13770			let val: u32 = ::std::mem::transmute(val);
13771			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13772				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13773				8usize,
13774				5u8,
13775				val as u64,
13776			)
13777		}
13778	}
13779	#[inline]
13780	pub fn fixed_frame_rate_flag(&self) -> u32 {
13781		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
13782	}
13783	#[inline]
13784	pub fn set_fixed_frame_rate_flag(&mut self, val: u32) {
13785		unsafe {
13786			let val: u32 = ::std::mem::transmute(val);
13787			self._bitfield_1.set(13usize, 1u8, val as u64)
13788		}
13789	}
13790	#[inline]
13791	pub unsafe fn fixed_frame_rate_flag_raw(this: *const Self) -> u32 {
13792		unsafe {
13793			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13794				::std::ptr::addr_of!((*this)._bitfield_1),
13795				13usize,
13796				1u8,
13797			) as u32)
13798		}
13799	}
13800	#[inline]
13801	pub unsafe fn set_fixed_frame_rate_flag_raw(this: *mut Self, val: u32) {
13802		unsafe {
13803			let val: u32 = ::std::mem::transmute(val);
13804			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13805				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13806				13usize,
13807				1u8,
13808				val as u64,
13809			)
13810		}
13811	}
13812	#[inline]
13813	pub fn low_delay_hrd_flag(&self) -> u32 {
13814		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
13815	}
13816	#[inline]
13817	pub fn set_low_delay_hrd_flag(&mut self, val: u32) {
13818		unsafe {
13819			let val: u32 = ::std::mem::transmute(val);
13820			self._bitfield_1.set(14usize, 1u8, val as u64)
13821		}
13822	}
13823	#[inline]
13824	pub unsafe fn low_delay_hrd_flag_raw(this: *const Self) -> u32 {
13825		unsafe {
13826			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13827				::std::ptr::addr_of!((*this)._bitfield_1),
13828				14usize,
13829				1u8,
13830			) as u32)
13831		}
13832	}
13833	#[inline]
13834	pub unsafe fn set_low_delay_hrd_flag_raw(this: *mut Self, val: u32) {
13835		unsafe {
13836			let val: u32 = ::std::mem::transmute(val);
13837			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13838				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13839				14usize,
13840				1u8,
13841				val as u64,
13842			)
13843		}
13844	}
13845	#[inline]
13846	pub fn motion_vectors_over_pic_boundaries_flag(&self) -> u32 {
13847		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
13848	}
13849	#[inline]
13850	pub fn set_motion_vectors_over_pic_boundaries_flag(&mut self, val: u32) {
13851		unsafe {
13852			let val: u32 = ::std::mem::transmute(val);
13853			self._bitfield_1.set(15usize, 1u8, val as u64)
13854		}
13855	}
13856	#[inline]
13857	pub unsafe fn motion_vectors_over_pic_boundaries_flag_raw(this: *const Self) -> u32 {
13858		unsafe {
13859			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13860				::std::ptr::addr_of!((*this)._bitfield_1),
13861				15usize,
13862				1u8,
13863			) as u32)
13864		}
13865	}
13866	#[inline]
13867	pub unsafe fn set_motion_vectors_over_pic_boundaries_flag_raw(this: *mut Self, val: u32) {
13868		unsafe {
13869			let val: u32 = ::std::mem::transmute(val);
13870			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13871				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13872				15usize,
13873				1u8,
13874				val as u64,
13875			)
13876		}
13877	}
13878	#[inline]
13879	pub fn reserved(&self) -> u32 {
13880		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
13881	}
13882	#[inline]
13883	pub fn set_reserved(&mut self, val: u32) {
13884		unsafe {
13885			let val: u32 = ::std::mem::transmute(val);
13886			self._bitfield_1.set(16usize, 16u8, val as u64)
13887		}
13888	}
13889	#[inline]
13890	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
13891		unsafe {
13892			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
13893				::std::ptr::addr_of!((*this)._bitfield_1),
13894				16usize,
13895				16u8,
13896			) as u32)
13897		}
13898	}
13899	#[inline]
13900	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
13901		unsafe {
13902			let val: u32 = ::std::mem::transmute(val);
13903			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
13904				::std::ptr::addr_of_mut!((*this)._bitfield_1),
13905				16usize,
13906				16u8,
13907				val as u64,
13908			)
13909		}
13910	}
13911	#[inline]
13912	pub fn new_bitfield_1(
13913		aspect_ratio_info_present_flag: u32,
13914		timing_info_present_flag: u32,
13915		bitstream_restriction_flag: u32,
13916		log2_max_mv_length_horizontal: u32,
13917		log2_max_mv_length_vertical: u32,
13918		fixed_frame_rate_flag: u32,
13919		low_delay_hrd_flag: u32,
13920		motion_vectors_over_pic_boundaries_flag: u32,
13921		reserved: u32,
13922	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
13923		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
13924		__bindgen_bitfield_unit.set(0usize, 1u8, {
13925			let aspect_ratio_info_present_flag: u32 = unsafe { ::std::mem::transmute(aspect_ratio_info_present_flag) };
13926			aspect_ratio_info_present_flag as u64
13927		});
13928		__bindgen_bitfield_unit.set(1usize, 1u8, {
13929			let timing_info_present_flag: u32 = unsafe { ::std::mem::transmute(timing_info_present_flag) };
13930			timing_info_present_flag as u64
13931		});
13932		__bindgen_bitfield_unit.set(2usize, 1u8, {
13933			let bitstream_restriction_flag: u32 = unsafe { ::std::mem::transmute(bitstream_restriction_flag) };
13934			bitstream_restriction_flag as u64
13935		});
13936		__bindgen_bitfield_unit.set(3usize, 5u8, {
13937			let log2_max_mv_length_horizontal: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_horizontal) };
13938			log2_max_mv_length_horizontal as u64
13939		});
13940		__bindgen_bitfield_unit.set(8usize, 5u8, {
13941			let log2_max_mv_length_vertical: u32 = unsafe { ::std::mem::transmute(log2_max_mv_length_vertical) };
13942			log2_max_mv_length_vertical as u64
13943		});
13944		__bindgen_bitfield_unit.set(13usize, 1u8, {
13945			let fixed_frame_rate_flag: u32 = unsafe { ::std::mem::transmute(fixed_frame_rate_flag) };
13946			fixed_frame_rate_flag as u64
13947		});
13948		__bindgen_bitfield_unit.set(14usize, 1u8, {
13949			let low_delay_hrd_flag: u32 = unsafe { ::std::mem::transmute(low_delay_hrd_flag) };
13950			low_delay_hrd_flag as u64
13951		});
13952		__bindgen_bitfield_unit.set(15usize, 1u8, {
13953			let motion_vectors_over_pic_boundaries_flag: u32 =
13954				unsafe { ::std::mem::transmute(motion_vectors_over_pic_boundaries_flag) };
13955			motion_vectors_over_pic_boundaries_flag as u64
13956		});
13957		__bindgen_bitfield_unit.set(16usize, 16u8, {
13958			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
13959			reserved as u64
13960		});
13961		__bindgen_bitfield_unit
13962	}
13963}
13964impl Default for _VAEncSequenceParameterBufferH264__bindgen_ty_2 {
13965	fn default() -> Self {
13966		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
13967		unsafe {
13968			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
13969			s.assume_init()
13970		}
13971	}
13972}
13973impl Default for _VAEncSequenceParameterBufferH264 {
13974	fn default() -> Self {
13975		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
13976		unsafe {
13977			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
13978			s.assume_init()
13979		}
13980	}
13981}
13982#[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."]
13983pub type VAEncSequenceParameterBufferH264 = _VAEncSequenceParameterBufferH264;
13984#[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."]
13985#[repr(C)]
13986#[derive(Copy, Clone)]
13987pub struct _VAEncPictureParameterBufferH264 {
13988	#[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."]
13989	pub CurrPic: VAPictureH264,
13990	#[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."]
13991	pub ReferenceFrames: [VAPictureH264; 16usize],
13992	#[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."]
13993	pub coded_buf: VABufferID,
13994	#[doc = " \\brief The picture parameter set referred to in the slice header."]
13995	pub pic_parameter_set_id: u8,
13996	#[doc = " \\brief The active sequence parameter set. Range: 0 to 31, inclusive."]
13997	pub seq_parameter_set_id: u8,
13998	#[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."]
13999	pub last_picture: u8,
14000	#[doc = " \\brief The picture identifier.\n   Range: 0 to \\f$2^{log2\\_max\\_frame\\_num\\_minus4 + 4} - 1\\f$, inclusive."]
14001	pub frame_num: u16,
14002	#[doc = " \\brief \\c pic_init_qp_minus26 + 26."]
14003	pub pic_init_qp: u8,
14004	#[doc = " \\brief Maximum reference index for reference picture list 0.\n   Range: 0 to 31, inclusive."]
14005	pub num_ref_idx_l0_active_minus1: u8,
14006	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  Range: 0 to 31, inclusive."]
14007	pub num_ref_idx_l1_active_minus1: u8,
14008	#[doc = " \\brief Range: -12 to 12, inclusive."]
14009	pub chroma_qp_index_offset: i8,
14010	#[doc = " \\brief Range: -12 to 12, inclusive."]
14011	pub second_chroma_qp_index_offset: i8,
14012	pub pic_fields: _VAEncPictureParameterBufferH264__bindgen_ty_1,
14013	#[doc = " \\brief Reserved bytes for future use, must be zero"]
14014	pub va_reserved: [u32; 4usize],
14015}
14016#[repr(C)]
14017#[derive(Copy, Clone)]
14018pub union _VAEncPictureParameterBufferH264__bindgen_ty_1 {
14019	pub bits: _VAEncPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
14020	pub value: u32,
14021}
14022#[repr(C)]
14023#[repr(align(4))]
14024#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
14025pub struct _VAEncPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
14026	pub _bitfield_align_1: [u8; 0],
14027	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
14028	pub __bindgen_padding_0: u16,
14029}
14030impl _VAEncPictureParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
14031	#[inline]
14032	pub fn idr_pic_flag(&self) -> u32 {
14033		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
14034	}
14035	#[inline]
14036	pub fn set_idr_pic_flag(&mut self, val: u32) {
14037		unsafe {
14038			let val: u32 = ::std::mem::transmute(val);
14039			self._bitfield_1.set(0usize, 1u8, val as u64)
14040		}
14041	}
14042	#[inline]
14043	pub unsafe fn idr_pic_flag_raw(this: *const Self) -> u32 {
14044		unsafe {
14045			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14046				::std::ptr::addr_of!((*this)._bitfield_1),
14047				0usize,
14048				1u8,
14049			) as u32)
14050		}
14051	}
14052	#[inline]
14053	pub unsafe fn set_idr_pic_flag_raw(this: *mut Self, val: u32) {
14054		unsafe {
14055			let val: u32 = ::std::mem::transmute(val);
14056			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14057				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14058				0usize,
14059				1u8,
14060				val as u64,
14061			)
14062		}
14063	}
14064	#[inline]
14065	pub fn reference_pic_flag(&self) -> u32 {
14066		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) }
14067	}
14068	#[inline]
14069	pub fn set_reference_pic_flag(&mut self, val: u32) {
14070		unsafe {
14071			let val: u32 = ::std::mem::transmute(val);
14072			self._bitfield_1.set(1usize, 2u8, val as u64)
14073		}
14074	}
14075	#[inline]
14076	pub unsafe fn reference_pic_flag_raw(this: *const Self) -> u32 {
14077		unsafe {
14078			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14079				::std::ptr::addr_of!((*this)._bitfield_1),
14080				1usize,
14081				2u8,
14082			) as u32)
14083		}
14084	}
14085	#[inline]
14086	pub unsafe fn set_reference_pic_flag_raw(this: *mut Self, val: u32) {
14087		unsafe {
14088			let val: u32 = ::std::mem::transmute(val);
14089			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14090				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14091				1usize,
14092				2u8,
14093				val as u64,
14094			)
14095		}
14096	}
14097	#[inline]
14098	pub fn entropy_coding_mode_flag(&self) -> u32 {
14099		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
14100	}
14101	#[inline]
14102	pub fn set_entropy_coding_mode_flag(&mut self, val: u32) {
14103		unsafe {
14104			let val: u32 = ::std::mem::transmute(val);
14105			self._bitfield_1.set(3usize, 1u8, val as u64)
14106		}
14107	}
14108	#[inline]
14109	pub unsafe fn entropy_coding_mode_flag_raw(this: *const Self) -> u32 {
14110		unsafe {
14111			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14112				::std::ptr::addr_of!((*this)._bitfield_1),
14113				3usize,
14114				1u8,
14115			) as u32)
14116		}
14117	}
14118	#[inline]
14119	pub unsafe fn set_entropy_coding_mode_flag_raw(this: *mut Self, val: u32) {
14120		unsafe {
14121			let val: u32 = ::std::mem::transmute(val);
14122			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14123				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14124				3usize,
14125				1u8,
14126				val as u64,
14127			)
14128		}
14129	}
14130	#[inline]
14131	pub fn weighted_pred_flag(&self) -> u32 {
14132		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
14133	}
14134	#[inline]
14135	pub fn set_weighted_pred_flag(&mut self, val: u32) {
14136		unsafe {
14137			let val: u32 = ::std::mem::transmute(val);
14138			self._bitfield_1.set(4usize, 1u8, val as u64)
14139		}
14140	}
14141	#[inline]
14142	pub unsafe fn weighted_pred_flag_raw(this: *const Self) -> u32 {
14143		unsafe {
14144			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14145				::std::ptr::addr_of!((*this)._bitfield_1),
14146				4usize,
14147				1u8,
14148			) as u32)
14149		}
14150	}
14151	#[inline]
14152	pub unsafe fn set_weighted_pred_flag_raw(this: *mut Self, val: u32) {
14153		unsafe {
14154			let val: u32 = ::std::mem::transmute(val);
14155			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14156				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14157				4usize,
14158				1u8,
14159				val as u64,
14160			)
14161		}
14162	}
14163	#[inline]
14164	pub fn weighted_bipred_idc(&self) -> u32 {
14165		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 2u8) as u32) }
14166	}
14167	#[inline]
14168	pub fn set_weighted_bipred_idc(&mut self, val: u32) {
14169		unsafe {
14170			let val: u32 = ::std::mem::transmute(val);
14171			self._bitfield_1.set(5usize, 2u8, val as u64)
14172		}
14173	}
14174	#[inline]
14175	pub unsafe fn weighted_bipred_idc_raw(this: *const Self) -> u32 {
14176		unsafe {
14177			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14178				::std::ptr::addr_of!((*this)._bitfield_1),
14179				5usize,
14180				2u8,
14181			) as u32)
14182		}
14183	}
14184	#[inline]
14185	pub unsafe fn set_weighted_bipred_idc_raw(this: *mut Self, val: u32) {
14186		unsafe {
14187			let val: u32 = ::std::mem::transmute(val);
14188			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14189				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14190				5usize,
14191				2u8,
14192				val as u64,
14193			)
14194		}
14195	}
14196	#[inline]
14197	pub fn constrained_intra_pred_flag(&self) -> u32 {
14198		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
14199	}
14200	#[inline]
14201	pub fn set_constrained_intra_pred_flag(&mut self, val: u32) {
14202		unsafe {
14203			let val: u32 = ::std::mem::transmute(val);
14204			self._bitfield_1.set(7usize, 1u8, val as u64)
14205		}
14206	}
14207	#[inline]
14208	pub unsafe fn constrained_intra_pred_flag_raw(this: *const Self) -> u32 {
14209		unsafe {
14210			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14211				::std::ptr::addr_of!((*this)._bitfield_1),
14212				7usize,
14213				1u8,
14214			) as u32)
14215		}
14216	}
14217	#[inline]
14218	pub unsafe fn set_constrained_intra_pred_flag_raw(this: *mut Self, val: u32) {
14219		unsafe {
14220			let val: u32 = ::std::mem::transmute(val);
14221			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14222				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14223				7usize,
14224				1u8,
14225				val as u64,
14226			)
14227		}
14228	}
14229	#[inline]
14230	pub fn transform_8x8_mode_flag(&self) -> u32 {
14231		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
14232	}
14233	#[inline]
14234	pub fn set_transform_8x8_mode_flag(&mut self, val: u32) {
14235		unsafe {
14236			let val: u32 = ::std::mem::transmute(val);
14237			self._bitfield_1.set(8usize, 1u8, val as u64)
14238		}
14239	}
14240	#[inline]
14241	pub unsafe fn transform_8x8_mode_flag_raw(this: *const Self) -> u32 {
14242		unsafe {
14243			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14244				::std::ptr::addr_of!((*this)._bitfield_1),
14245				8usize,
14246				1u8,
14247			) as u32)
14248		}
14249	}
14250	#[inline]
14251	pub unsafe fn set_transform_8x8_mode_flag_raw(this: *mut Self, val: u32) {
14252		unsafe {
14253			let val: u32 = ::std::mem::transmute(val);
14254			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14255				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14256				8usize,
14257				1u8,
14258				val as u64,
14259			)
14260		}
14261	}
14262	#[inline]
14263	pub fn deblocking_filter_control_present_flag(&self) -> u32 {
14264		unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
14265	}
14266	#[inline]
14267	pub fn set_deblocking_filter_control_present_flag(&mut self, val: u32) {
14268		unsafe {
14269			let val: u32 = ::std::mem::transmute(val);
14270			self._bitfield_1.set(9usize, 1u8, val as u64)
14271		}
14272	}
14273	#[inline]
14274	pub unsafe fn deblocking_filter_control_present_flag_raw(this: *const Self) -> u32 {
14275		unsafe {
14276			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14277				::std::ptr::addr_of!((*this)._bitfield_1),
14278				9usize,
14279				1u8,
14280			) as u32)
14281		}
14282	}
14283	#[inline]
14284	pub unsafe fn set_deblocking_filter_control_present_flag_raw(this: *mut Self, val: u32) {
14285		unsafe {
14286			let val: u32 = ::std::mem::transmute(val);
14287			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14288				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14289				9usize,
14290				1u8,
14291				val as u64,
14292			)
14293		}
14294	}
14295	#[inline]
14296	pub fn redundant_pic_cnt_present_flag(&self) -> u32 {
14297		unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) }
14298	}
14299	#[inline]
14300	pub fn set_redundant_pic_cnt_present_flag(&mut self, val: u32) {
14301		unsafe {
14302			let val: u32 = ::std::mem::transmute(val);
14303			self._bitfield_1.set(10usize, 1u8, val as u64)
14304		}
14305	}
14306	#[inline]
14307	pub unsafe fn redundant_pic_cnt_present_flag_raw(this: *const Self) -> u32 {
14308		unsafe {
14309			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14310				::std::ptr::addr_of!((*this)._bitfield_1),
14311				10usize,
14312				1u8,
14313			) as u32)
14314		}
14315	}
14316	#[inline]
14317	pub unsafe fn set_redundant_pic_cnt_present_flag_raw(this: *mut Self, val: u32) {
14318		unsafe {
14319			let val: u32 = ::std::mem::transmute(val);
14320			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14321				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14322				10usize,
14323				1u8,
14324				val as u64,
14325			)
14326		}
14327	}
14328	#[inline]
14329	pub fn pic_order_present_flag(&self) -> u32 {
14330		unsafe { ::std::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) }
14331	}
14332	#[inline]
14333	pub fn set_pic_order_present_flag(&mut self, val: u32) {
14334		unsafe {
14335			let val: u32 = ::std::mem::transmute(val);
14336			self._bitfield_1.set(11usize, 1u8, val as u64)
14337		}
14338	}
14339	#[inline]
14340	pub unsafe fn pic_order_present_flag_raw(this: *const Self) -> u32 {
14341		unsafe {
14342			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14343				::std::ptr::addr_of!((*this)._bitfield_1),
14344				11usize,
14345				1u8,
14346			) as u32)
14347		}
14348	}
14349	#[inline]
14350	pub unsafe fn set_pic_order_present_flag_raw(this: *mut Self, val: u32) {
14351		unsafe {
14352			let val: u32 = ::std::mem::transmute(val);
14353			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14354				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14355				11usize,
14356				1u8,
14357				val as u64,
14358			)
14359		}
14360	}
14361	#[inline]
14362	pub fn pic_scaling_matrix_present_flag(&self) -> u32 {
14363		unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) }
14364	}
14365	#[inline]
14366	pub fn set_pic_scaling_matrix_present_flag(&mut self, val: u32) {
14367		unsafe {
14368			let val: u32 = ::std::mem::transmute(val);
14369			self._bitfield_1.set(12usize, 1u8, val as u64)
14370		}
14371	}
14372	#[inline]
14373	pub unsafe fn pic_scaling_matrix_present_flag_raw(this: *const Self) -> u32 {
14374		unsafe {
14375			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14376				::std::ptr::addr_of!((*this)._bitfield_1),
14377				12usize,
14378				1u8,
14379			) as u32)
14380		}
14381	}
14382	#[inline]
14383	pub unsafe fn set_pic_scaling_matrix_present_flag_raw(this: *mut Self, val: u32) {
14384		unsafe {
14385			let val: u32 = ::std::mem::transmute(val);
14386			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14387				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14388				12usize,
14389				1u8,
14390				val as u64,
14391			)
14392		}
14393	}
14394	#[inline]
14395	pub fn new_bitfield_1(
14396		idr_pic_flag: u32,
14397		reference_pic_flag: u32,
14398		entropy_coding_mode_flag: u32,
14399		weighted_pred_flag: u32,
14400		weighted_bipred_idc: u32,
14401		constrained_intra_pred_flag: u32,
14402		transform_8x8_mode_flag: u32,
14403		deblocking_filter_control_present_flag: u32,
14404		redundant_pic_cnt_present_flag: u32,
14405		pic_order_present_flag: u32,
14406		pic_scaling_matrix_present_flag: u32,
14407	) -> __BindgenBitfieldUnit<[u8; 2usize]> {
14408		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
14409		__bindgen_bitfield_unit.set(0usize, 1u8, {
14410			let idr_pic_flag: u32 = unsafe { ::std::mem::transmute(idr_pic_flag) };
14411			idr_pic_flag as u64
14412		});
14413		__bindgen_bitfield_unit.set(1usize, 2u8, {
14414			let reference_pic_flag: u32 = unsafe { ::std::mem::transmute(reference_pic_flag) };
14415			reference_pic_flag as u64
14416		});
14417		__bindgen_bitfield_unit.set(3usize, 1u8, {
14418			let entropy_coding_mode_flag: u32 = unsafe { ::std::mem::transmute(entropy_coding_mode_flag) };
14419			entropy_coding_mode_flag as u64
14420		});
14421		__bindgen_bitfield_unit.set(4usize, 1u8, {
14422			let weighted_pred_flag: u32 = unsafe { ::std::mem::transmute(weighted_pred_flag) };
14423			weighted_pred_flag as u64
14424		});
14425		__bindgen_bitfield_unit.set(5usize, 2u8, {
14426			let weighted_bipred_idc: u32 = unsafe { ::std::mem::transmute(weighted_bipred_idc) };
14427			weighted_bipred_idc as u64
14428		});
14429		__bindgen_bitfield_unit.set(7usize, 1u8, {
14430			let constrained_intra_pred_flag: u32 = unsafe { ::std::mem::transmute(constrained_intra_pred_flag) };
14431			constrained_intra_pred_flag as u64
14432		});
14433		__bindgen_bitfield_unit.set(8usize, 1u8, {
14434			let transform_8x8_mode_flag: u32 = unsafe { ::std::mem::transmute(transform_8x8_mode_flag) };
14435			transform_8x8_mode_flag as u64
14436		});
14437		__bindgen_bitfield_unit.set(9usize, 1u8, {
14438			let deblocking_filter_control_present_flag: u32 =
14439				unsafe { ::std::mem::transmute(deblocking_filter_control_present_flag) };
14440			deblocking_filter_control_present_flag as u64
14441		});
14442		__bindgen_bitfield_unit.set(10usize, 1u8, {
14443			let redundant_pic_cnt_present_flag: u32 = unsafe { ::std::mem::transmute(redundant_pic_cnt_present_flag) };
14444			redundant_pic_cnt_present_flag as u64
14445		});
14446		__bindgen_bitfield_unit.set(11usize, 1u8, {
14447			let pic_order_present_flag: u32 = unsafe { ::std::mem::transmute(pic_order_present_flag) };
14448			pic_order_present_flag as u64
14449		});
14450		__bindgen_bitfield_unit.set(12usize, 1u8, {
14451			let pic_scaling_matrix_present_flag: u32 =
14452				unsafe { ::std::mem::transmute(pic_scaling_matrix_present_flag) };
14453			pic_scaling_matrix_present_flag as u64
14454		});
14455		__bindgen_bitfield_unit
14456	}
14457}
14458impl Default for _VAEncPictureParameterBufferH264__bindgen_ty_1 {
14459	fn default() -> Self {
14460		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
14461		unsafe {
14462			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
14463			s.assume_init()
14464		}
14465	}
14466}
14467impl Default for _VAEncPictureParameterBufferH264 {
14468	fn default() -> Self {
14469		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
14470		unsafe {
14471			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
14472			s.assume_init()
14473		}
14474	}
14475}
14476#[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."]
14477pub type VAEncPictureParameterBufferH264 = _VAEncPictureParameterBufferH264;
14478#[repr(C)]
14479#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
14480pub struct _VAEncQPBufferH264 {
14481	pub qp: u8,
14482}
14483pub type VAEncQPBufferH264 = _VAEncQPBufferH264;
14484#[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."]
14485#[repr(C)]
14486#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
14487pub struct _VAEncSliceParameterBufferH264 {
14488	#[doc = " \\brief Starting MB address for this slice."]
14489	pub macroblock_address: u32,
14490	#[doc = " \\brief Number of macroblocks in this slice."]
14491	pub num_macroblocks: u32,
14492	#[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."]
14493	pub macroblock_info: VABufferID,
14494	#[doc = " \\brief Slice type.\n  Range: 0..2, 5..7, i.e. no switching slices."]
14495	pub slice_type: u8,
14496	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14497	pub pic_parameter_set_id: u8,
14498	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14499	pub idr_pic_id: u16,
14500	#[doc = " @name If pic_order_cnt_type == 0 */\n/**@{*/\n/** \\brief The picture order count modulo MaxPicOrderCntLsb."]
14501	pub pic_order_cnt_lsb: u16,
14502	#[doc = " \\brief Valid if \\c pic_order_present_flag and this is a bottom field."]
14503	pub delta_pic_order_cnt_bottom: i32,
14504	#[doc = "@}*/\n/** @name If pic_order_cnt_type == 1 && !delta_pic_order_always_zero_flag */\n/**@{*/\n/** \\brief [0]: top, [1]: bottom."]
14505	pub delta_pic_order_cnt: [i32; 2usize],
14506	#[doc = " @name If slice_type == B */\n/**@{"]
14507	pub direct_spatial_mv_pred_flag: u8,
14508	#[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."]
14509	pub num_ref_idx_active_override_flag: u8,
14510	#[doc = " \\brief Maximum reference index for reference picture list 0.\n  Range: 0 to 31, inclusive."]
14511	pub num_ref_idx_l0_active_minus1: u8,
14512	#[doc = " \\brief Maximum reference index for reference picture list 1.\n  Range: 0 to 31, inclusive."]
14513	pub num_ref_idx_l1_active_minus1: u8,
14514	#[doc = " \\brief Reference picture list 0 (for P slices)."]
14515	pub RefPicList0: [VAPictureH264; 32usize],
14516	#[doc = " \\brief Reference picture list 1 (for B slices)."]
14517	pub RefPicList1: [VAPictureH264; 32usize],
14518	#[doc = " @name pred_weight_table() */\n/**@{*/\n/** \\brief Same as the H.264 bitstream syntax element."]
14519	pub luma_log2_weight_denom: u8,
14520	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14521	pub chroma_log2_weight_denom: u8,
14522	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14523	pub luma_weight_l0_flag: u8,
14524	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14525	pub luma_weight_l0: [::std::os::raw::c_short; 32usize],
14526	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14527	pub luma_offset_l0: [::std::os::raw::c_short; 32usize],
14528	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14529	pub chroma_weight_l0_flag: u8,
14530	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14531	pub chroma_weight_l0: [[::std::os::raw::c_short; 2usize]; 32usize],
14532	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14533	pub chroma_offset_l0: [[::std::os::raw::c_short; 2usize]; 32usize],
14534	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14535	pub luma_weight_l1_flag: u8,
14536	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14537	pub luma_weight_l1: [::std::os::raw::c_short; 32usize],
14538	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14539	pub luma_offset_l1: [::std::os::raw::c_short; 32usize],
14540	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14541	pub chroma_weight_l1_flag: u8,
14542	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14543	pub chroma_weight_l1: [[::std::os::raw::c_short; 2usize]; 32usize],
14544	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14545	pub chroma_offset_l1: [[::std::os::raw::c_short; 2usize]; 32usize],
14546	#[doc = " \\brief Range: 0 to 2, inclusive."]
14547	pub cabac_init_idc: u8,
14548	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14549	pub slice_qp_delta: i8,
14550	#[doc = " @name If deblocking_filter_control_present_flag */\n/**@{*/\n/** \\brief Range: 0 to 2, inclusive."]
14551	pub disable_deblocking_filter_idc: u8,
14552	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14553	pub slice_alpha_c0_offset_div2: i8,
14554	#[doc = " \\brief Same as the H.264 bitstream syntax element."]
14555	pub slice_beta_offset_div2: i8,
14556	#[doc = " \\brief Reserved bytes for future use, must be zero"]
14557	pub va_reserved: [u32; 4usize],
14558}
14559#[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."]
14560pub type VAEncSliceParameterBufferH264 = _VAEncSliceParameterBufferH264;
14561#[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."]
14562#[repr(C)]
14563#[derive(Copy, Clone)]
14564pub struct _VAEncMacroblockParameterBufferH264 {
14565	#[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."]
14566	pub qp: u8,
14567	pub info: _VAEncMacroblockParameterBufferH264__bindgen_ty_1,
14568	#[doc = " \\brief Reserved bytes for future use, must be zero"]
14569	pub va_reserved: [u32; 4usize],
14570}
14571#[repr(C)]
14572#[derive(Copy, Clone)]
14573pub union _VAEncMacroblockParameterBufferH264__bindgen_ty_1 {
14574	pub intra_fields: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1,
14575	pub inter_fields: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2,
14576}
14577#[doc = " @name Data for intra macroblock */\n/**@{"]
14578#[repr(C)]
14579#[derive(Copy, Clone)]
14580pub union _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
14581	pub bits: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
14582	pub value: u32,
14583}
14584#[repr(C)]
14585#[repr(align(4))]
14586#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
14587pub struct _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
14588	pub _bitfield_align_1: [u8; 0],
14589	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
14590	pub __bindgen_padding_0: u16,
14591}
14592impl _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
14593	#[inline]
14594	pub fn pred_avail_override_flag(&self) -> u32 {
14595		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
14596	}
14597	#[inline]
14598	pub fn set_pred_avail_override_flag(&mut self, val: u32) {
14599		unsafe {
14600			let val: u32 = ::std::mem::transmute(val);
14601			self._bitfield_1.set(0usize, 1u8, val as u64)
14602		}
14603	}
14604	#[inline]
14605	pub unsafe fn pred_avail_override_flag_raw(this: *const Self) -> u32 {
14606		unsafe {
14607			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14608				::std::ptr::addr_of!((*this)._bitfield_1),
14609				0usize,
14610				1u8,
14611			) as u32)
14612		}
14613	}
14614	#[inline]
14615	pub unsafe fn set_pred_avail_override_flag_raw(this: *mut Self, val: u32) {
14616		unsafe {
14617			let val: u32 = ::std::mem::transmute(val);
14618			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14619				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14620				0usize,
14621				1u8,
14622				val as u64,
14623			)
14624		}
14625	}
14626	#[inline]
14627	pub fn pred_avail_flags(&self) -> u32 {
14628		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 8u8) as u32) }
14629	}
14630	#[inline]
14631	pub fn set_pred_avail_flags(&mut self, val: u32) {
14632		unsafe {
14633			let val: u32 = ::std::mem::transmute(val);
14634			self._bitfield_1.set(1usize, 8u8, val as u64)
14635		}
14636	}
14637	#[inline]
14638	pub unsafe fn pred_avail_flags_raw(this: *const Self) -> u32 {
14639		unsafe {
14640			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
14641				::std::ptr::addr_of!((*this)._bitfield_1),
14642				1usize,
14643				8u8,
14644			) as u32)
14645		}
14646	}
14647	#[inline]
14648	pub unsafe fn set_pred_avail_flags_raw(this: *mut Self, val: u32) {
14649		unsafe {
14650			let val: u32 = ::std::mem::transmute(val);
14651			<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
14652				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14653				1usize,
14654				8u8,
14655				val as u64,
14656			)
14657		}
14658	}
14659	#[inline]
14660	pub fn new_bitfield_1(pred_avail_override_flag: u32, pred_avail_flags: u32) -> __BindgenBitfieldUnit<[u8; 2usize]> {
14661		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
14662		__bindgen_bitfield_unit.set(0usize, 1u8, {
14663			let pred_avail_override_flag: u32 = unsafe { ::std::mem::transmute(pred_avail_override_flag) };
14664			pred_avail_override_flag as u64
14665		});
14666		__bindgen_bitfield_unit.set(1usize, 8u8, {
14667			let pred_avail_flags: u32 = unsafe { ::std::mem::transmute(pred_avail_flags) };
14668			pred_avail_flags as u64
14669		});
14670		__bindgen_bitfield_unit
14671	}
14672}
14673impl Default for _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_1 {
14674	fn default() -> Self {
14675		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
14676		unsafe {
14677			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
14678			s.assume_init()
14679		}
14680	}
14681}
14682#[doc = " @name Data for inter macroblock */\n/**@{"]
14683#[repr(C)]
14684#[derive(Copy, Clone)]
14685pub union _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2 {
14686	pub bits: _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
14687	pub value: u32,
14688}
14689#[repr(C)]
14690#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
14691pub struct _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
14692	pub reserved: u32,
14693}
14694impl Default for _VAEncMacroblockParameterBufferH264__bindgen_ty_1__bindgen_ty_2 {
14695	fn default() -> Self {
14696		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
14697		unsafe {
14698			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
14699			s.assume_init()
14700		}
14701	}
14702}
14703impl Default for _VAEncMacroblockParameterBufferH264__bindgen_ty_1 {
14704	fn default() -> Self {
14705		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
14706		unsafe {
14707			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
14708			s.assume_init()
14709		}
14710	}
14711}
14712impl Default for _VAEncMacroblockParameterBufferH264 {
14713	fn default() -> Self {
14714		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
14715		unsafe {
14716			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
14717			s.assume_init()
14718		}
14719	}
14720}
14721#[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."]
14722pub type VAEncMacroblockParameterBufferH264 = _VAEncMacroblockParameterBufferH264;
14723#[doc = " \\brief MB partition modes and 1/2 1/4 motion search configuration\n\n Specifies MB partition modes that are disabled. Specifies Half-pel\n mode and Quarter-pel mode searching"]
14724#[repr(C)]
14725#[derive(Copy, Clone)]
14726pub struct _VAEncMiscParameterSubMbPartPelH264 {
14727	pub disable_inter_sub_mb_partition: u32,
14728	pub inter_sub_mb_partition_mask: _VAEncMiscParameterSubMbPartPelH264__bindgen_ty_1,
14729	#[doc = " \\brief Precison of motion search\n 0:Integer mode searching\n 1:Half-pel mode searching\n 2:Reserved\n 3:Quarter-pel mode searching"]
14730	pub enable_sub_pel_mode: u32,
14731	pub sub_pel_mode: u8,
14732	pub reserved: [u8; 3usize],
14733}
14734#[repr(C)]
14735#[derive(Copy, Clone)]
14736pub union _VAEncMiscParameterSubMbPartPelH264__bindgen_ty_1 {
14737	pub bits: _VAEncMiscParameterSubMbPartPelH264__bindgen_ty_1__bindgen_ty_1,
14738	pub value: u8,
14739}
14740#[repr(C)]
14741#[repr(align(4))]
14742#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
14743pub struct _VAEncMiscParameterSubMbPartPelH264__bindgen_ty_1__bindgen_ty_1 {
14744	pub _bitfield_align_1: [u8; 0],
14745	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
14746	pub __bindgen_padding_0: [u8; 3usize],
14747}
14748impl _VAEncMiscParameterSubMbPartPelH264__bindgen_ty_1__bindgen_ty_1 {
14749	#[inline]
14750	pub fn disable_16x16_inter_mb_partition(&self) -> u32 {
14751		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
14752	}
14753	#[inline]
14754	pub fn set_disable_16x16_inter_mb_partition(&mut self, val: u32) {
14755		unsafe {
14756			let val: u32 = ::std::mem::transmute(val);
14757			self._bitfield_1.set(0usize, 1u8, val as u64)
14758		}
14759	}
14760	#[inline]
14761	pub unsafe fn disable_16x16_inter_mb_partition_raw(this: *const Self) -> u32 {
14762		unsafe {
14763			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14764				::std::ptr::addr_of!((*this)._bitfield_1),
14765				0usize,
14766				1u8,
14767			) as u32)
14768		}
14769	}
14770	#[inline]
14771	pub unsafe fn set_disable_16x16_inter_mb_partition_raw(this: *mut Self, val: u32) {
14772		unsafe {
14773			let val: u32 = ::std::mem::transmute(val);
14774			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
14775				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14776				0usize,
14777				1u8,
14778				val as u64,
14779			)
14780		}
14781	}
14782	#[inline]
14783	pub fn disable_16x8_inter_mb_partition(&self) -> u32 {
14784		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
14785	}
14786	#[inline]
14787	pub fn set_disable_16x8_inter_mb_partition(&mut self, val: u32) {
14788		unsafe {
14789			let val: u32 = ::std::mem::transmute(val);
14790			self._bitfield_1.set(1usize, 1u8, val as u64)
14791		}
14792	}
14793	#[inline]
14794	pub unsafe fn disable_16x8_inter_mb_partition_raw(this: *const Self) -> u32 {
14795		unsafe {
14796			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14797				::std::ptr::addr_of!((*this)._bitfield_1),
14798				1usize,
14799				1u8,
14800			) as u32)
14801		}
14802	}
14803	#[inline]
14804	pub unsafe fn set_disable_16x8_inter_mb_partition_raw(this: *mut Self, val: u32) {
14805		unsafe {
14806			let val: u32 = ::std::mem::transmute(val);
14807			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
14808				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14809				1usize,
14810				1u8,
14811				val as u64,
14812			)
14813		}
14814	}
14815	#[inline]
14816	pub fn disable_8x16_inter_mb_partition(&self) -> u32 {
14817		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
14818	}
14819	#[inline]
14820	pub fn set_disable_8x16_inter_mb_partition(&mut self, val: u32) {
14821		unsafe {
14822			let val: u32 = ::std::mem::transmute(val);
14823			self._bitfield_1.set(2usize, 1u8, val as u64)
14824		}
14825	}
14826	#[inline]
14827	pub unsafe fn disable_8x16_inter_mb_partition_raw(this: *const Self) -> u32 {
14828		unsafe {
14829			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14830				::std::ptr::addr_of!((*this)._bitfield_1),
14831				2usize,
14832				1u8,
14833			) as u32)
14834		}
14835	}
14836	#[inline]
14837	pub unsafe fn set_disable_8x16_inter_mb_partition_raw(this: *mut Self, val: u32) {
14838		unsafe {
14839			let val: u32 = ::std::mem::transmute(val);
14840			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
14841				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14842				2usize,
14843				1u8,
14844				val as u64,
14845			)
14846		}
14847	}
14848	#[inline]
14849	pub fn disable_8x8_inter_mb_partition(&self) -> u32 {
14850		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
14851	}
14852	#[inline]
14853	pub fn set_disable_8x8_inter_mb_partition(&mut self, val: u32) {
14854		unsafe {
14855			let val: u32 = ::std::mem::transmute(val);
14856			self._bitfield_1.set(3usize, 1u8, val as u64)
14857		}
14858	}
14859	#[inline]
14860	pub unsafe fn disable_8x8_inter_mb_partition_raw(this: *const Self) -> u32 {
14861		unsafe {
14862			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14863				::std::ptr::addr_of!((*this)._bitfield_1),
14864				3usize,
14865				1u8,
14866			) as u32)
14867		}
14868	}
14869	#[inline]
14870	pub unsafe fn set_disable_8x8_inter_mb_partition_raw(this: *mut Self, val: u32) {
14871		unsafe {
14872			let val: u32 = ::std::mem::transmute(val);
14873			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
14874				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14875				3usize,
14876				1u8,
14877				val as u64,
14878			)
14879		}
14880	}
14881	#[inline]
14882	pub fn disable_8x4_inter_mb_partition(&self) -> u32 {
14883		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
14884	}
14885	#[inline]
14886	pub fn set_disable_8x4_inter_mb_partition(&mut self, val: u32) {
14887		unsafe {
14888			let val: u32 = ::std::mem::transmute(val);
14889			self._bitfield_1.set(4usize, 1u8, val as u64)
14890		}
14891	}
14892	#[inline]
14893	pub unsafe fn disable_8x4_inter_mb_partition_raw(this: *const Self) -> u32 {
14894		unsafe {
14895			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14896				::std::ptr::addr_of!((*this)._bitfield_1),
14897				4usize,
14898				1u8,
14899			) as u32)
14900		}
14901	}
14902	#[inline]
14903	pub unsafe fn set_disable_8x4_inter_mb_partition_raw(this: *mut Self, val: u32) {
14904		unsafe {
14905			let val: u32 = ::std::mem::transmute(val);
14906			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
14907				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14908				4usize,
14909				1u8,
14910				val as u64,
14911			)
14912		}
14913	}
14914	#[inline]
14915	pub fn disable_4x8_inter_mb_partition(&self) -> u32 {
14916		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
14917	}
14918	#[inline]
14919	pub fn set_disable_4x8_inter_mb_partition(&mut self, val: u32) {
14920		unsafe {
14921			let val: u32 = ::std::mem::transmute(val);
14922			self._bitfield_1.set(5usize, 1u8, val as u64)
14923		}
14924	}
14925	#[inline]
14926	pub unsafe fn disable_4x8_inter_mb_partition_raw(this: *const Self) -> u32 {
14927		unsafe {
14928			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14929				::std::ptr::addr_of!((*this)._bitfield_1),
14930				5usize,
14931				1u8,
14932			) as u32)
14933		}
14934	}
14935	#[inline]
14936	pub unsafe fn set_disable_4x8_inter_mb_partition_raw(this: *mut Self, val: u32) {
14937		unsafe {
14938			let val: u32 = ::std::mem::transmute(val);
14939			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
14940				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14941				5usize,
14942				1u8,
14943				val as u64,
14944			)
14945		}
14946	}
14947	#[inline]
14948	pub fn disable_4x4_inter_mb_partition(&self) -> u32 {
14949		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
14950	}
14951	#[inline]
14952	pub fn set_disable_4x4_inter_mb_partition(&mut self, val: u32) {
14953		unsafe {
14954			let val: u32 = ::std::mem::transmute(val);
14955			self._bitfield_1.set(6usize, 1u8, val as u64)
14956		}
14957	}
14958	#[inline]
14959	pub unsafe fn disable_4x4_inter_mb_partition_raw(this: *const Self) -> u32 {
14960		unsafe {
14961			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14962				::std::ptr::addr_of!((*this)._bitfield_1),
14963				6usize,
14964				1u8,
14965			) as u32)
14966		}
14967	}
14968	#[inline]
14969	pub unsafe fn set_disable_4x4_inter_mb_partition_raw(this: *mut Self, val: u32) {
14970		unsafe {
14971			let val: u32 = ::std::mem::transmute(val);
14972			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
14973				::std::ptr::addr_of_mut!((*this)._bitfield_1),
14974				6usize,
14975				1u8,
14976				val as u64,
14977			)
14978		}
14979	}
14980	#[inline]
14981	pub fn reserved(&self) -> u32 {
14982		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
14983	}
14984	#[inline]
14985	pub fn set_reserved(&mut self, val: u32) {
14986		unsafe {
14987			let val: u32 = ::std::mem::transmute(val);
14988			self._bitfield_1.set(7usize, 1u8, val as u64)
14989		}
14990	}
14991	#[inline]
14992	pub unsafe fn reserved_raw(this: *const Self) -> u32 {
14993		unsafe {
14994			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
14995				::std::ptr::addr_of!((*this)._bitfield_1),
14996				7usize,
14997				1u8,
14998			) as u32)
14999		}
15000	}
15001	#[inline]
15002	pub unsafe fn set_reserved_raw(this: *mut Self, val: u32) {
15003		unsafe {
15004			let val: u32 = ::std::mem::transmute(val);
15005			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
15006				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15007				7usize,
15008				1u8,
15009				val as u64,
15010			)
15011		}
15012	}
15013	#[inline]
15014	pub fn new_bitfield_1(
15015		disable_16x16_inter_mb_partition: u32,
15016		disable_16x8_inter_mb_partition: u32,
15017		disable_8x16_inter_mb_partition: u32,
15018		disable_8x8_inter_mb_partition: u32,
15019		disable_8x4_inter_mb_partition: u32,
15020		disable_4x8_inter_mb_partition: u32,
15021		disable_4x4_inter_mb_partition: u32,
15022		reserved: u32,
15023	) -> __BindgenBitfieldUnit<[u8; 1usize]> {
15024		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
15025		__bindgen_bitfield_unit.set(0usize, 1u8, {
15026			let disable_16x16_inter_mb_partition: u32 =
15027				unsafe { ::std::mem::transmute(disable_16x16_inter_mb_partition) };
15028			disable_16x16_inter_mb_partition as u64
15029		});
15030		__bindgen_bitfield_unit.set(1usize, 1u8, {
15031			let disable_16x8_inter_mb_partition: u32 =
15032				unsafe { ::std::mem::transmute(disable_16x8_inter_mb_partition) };
15033			disable_16x8_inter_mb_partition as u64
15034		});
15035		__bindgen_bitfield_unit.set(2usize, 1u8, {
15036			let disable_8x16_inter_mb_partition: u32 =
15037				unsafe { ::std::mem::transmute(disable_8x16_inter_mb_partition) };
15038			disable_8x16_inter_mb_partition as u64
15039		});
15040		__bindgen_bitfield_unit.set(3usize, 1u8, {
15041			let disable_8x8_inter_mb_partition: u32 = unsafe { ::std::mem::transmute(disable_8x8_inter_mb_partition) };
15042			disable_8x8_inter_mb_partition as u64
15043		});
15044		__bindgen_bitfield_unit.set(4usize, 1u8, {
15045			let disable_8x4_inter_mb_partition: u32 = unsafe { ::std::mem::transmute(disable_8x4_inter_mb_partition) };
15046			disable_8x4_inter_mb_partition as u64
15047		});
15048		__bindgen_bitfield_unit.set(5usize, 1u8, {
15049			let disable_4x8_inter_mb_partition: u32 = unsafe { ::std::mem::transmute(disable_4x8_inter_mb_partition) };
15050			disable_4x8_inter_mb_partition as u64
15051		});
15052		__bindgen_bitfield_unit.set(6usize, 1u8, {
15053			let disable_4x4_inter_mb_partition: u32 = unsafe { ::std::mem::transmute(disable_4x4_inter_mb_partition) };
15054			disable_4x4_inter_mb_partition as u64
15055		});
15056		__bindgen_bitfield_unit.set(7usize, 1u8, {
15057			let reserved: u32 = unsafe { ::std::mem::transmute(reserved) };
15058			reserved as u64
15059		});
15060		__bindgen_bitfield_unit
15061	}
15062}
15063impl Default for _VAEncMiscParameterSubMbPartPelH264__bindgen_ty_1 {
15064	fn default() -> Self {
15065		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
15066		unsafe {
15067			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
15068			s.assume_init()
15069		}
15070	}
15071}
15072impl Default for _VAEncMiscParameterSubMbPartPelH264 {
15073	fn default() -> Self {
15074		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
15075		unsafe {
15076			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
15077			s.assume_init()
15078		}
15079	}
15080}
15081#[doc = " \\brief MB partition modes and 1/2 1/4 motion search configuration\n\n Specifies MB partition modes that are disabled. Specifies Half-pel\n mode and Quarter-pel mode searching"]
15082pub type VAEncMiscParameterSubMbPartPelH264 = _VAEncMiscParameterSubMbPartPelH264;
15083pub mod VAEncPackedHeaderTypeMPEG2 {
15084	#[doc = " \\brief Packed header types specific to MPEG-2 encoding.\n\n Types of packed headers generally used for MPEG-2 encoding."]
15085	pub type Type = ::std::os::raw::c_uint;
15086	#[doc = " \\brief Packed Sequence Parameter Set (SPS).\n"]
15087	pub const VAEncPackedHeaderMPEG2_SPS: Type = 1;
15088	#[doc = " \\brief Packed Picture Parameter Set (PPS).\n"]
15089	pub const VAEncPackedHeaderMPEG2_PPS: Type = 2;
15090	#[doc = " \\brief Packed slice header.\n"]
15091	pub const VAEncPackedHeaderMPEG2_Slice: Type = 3;
15092}
15093#[repr(C)]
15094#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
15095pub struct _VAEncMiscParameterExtensionDataSeqDisplayMPEG2 {
15096	#[doc = " should always be 0x02 to identify it is Sequence Display Extension ISO-13818"]
15097	pub extension_start_code_identifier: u8,
15098	#[doc = " these field should follow ISO-13818 6.3.6"]
15099	pub video_format: u8,
15100	pub colour_description: u8,
15101	pub colour_primaries: u8,
15102	pub transfer_characteristics: u8,
15103	pub matrix_coefficients: u8,
15104	pub display_horizontal_size: u16,
15105	pub display_vertical_size: u16,
15106}
15107pub type VAEncMiscParameterExtensionDataSeqDisplayMPEG2 = _VAEncMiscParameterExtensionDataSeqDisplayMPEG2;
15108#[doc = " \\brief Per segment parameters"]
15109#[repr(C)]
15110#[derive(Copy, Clone)]
15111pub struct _VAEncSegParamVP9 {
15112	pub seg_flags: _VAEncSegParamVP9__bindgen_ty_1,
15113	#[doc = " \\brief Specifies per segment Loop Filter Delta.\n  Must be 0 when segmentation_enabled == 0.\n  value range: [-63..63]"]
15114	pub segment_lf_level_delta: i8,
15115	#[doc = " \\brief Specifies per segment QIndex Delta.\n  Must be 0 when segmentation_enabled == 0.\n  value range: [-255..255]"]
15116	pub segment_qindex_delta: i16,
15117	#[doc = " \\brief Reserved bytes for future use, must be zero"]
15118	pub va_reserved: [u32; 4usize],
15119}
15120#[repr(C)]
15121#[derive(Copy, Clone)]
15122pub union _VAEncSegParamVP9__bindgen_ty_1 {
15123	pub bits: _VAEncSegParamVP9__bindgen_ty_1__bindgen_ty_1,
15124	pub value: u8,
15125}
15126#[repr(C)]
15127#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
15128pub struct _VAEncSegParamVP9__bindgen_ty_1__bindgen_ty_1 {
15129	pub _bitfield_align_1: [u8; 0],
15130	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
15131}
15132impl _VAEncSegParamVP9__bindgen_ty_1__bindgen_ty_1 {
15133	#[inline]
15134	pub fn segment_reference_enabled(&self) -> u8 {
15135		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u8) }
15136	}
15137	#[inline]
15138	pub fn set_segment_reference_enabled(&mut self, val: u8) {
15139		unsafe {
15140			let val: u8 = ::std::mem::transmute(val);
15141			self._bitfield_1.set(0usize, 1u8, val as u64)
15142		}
15143	}
15144	#[inline]
15145	pub unsafe fn segment_reference_enabled_raw(this: *const Self) -> u8 {
15146		unsafe {
15147			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
15148				::std::ptr::addr_of!((*this)._bitfield_1),
15149				0usize,
15150				1u8,
15151			) as u8)
15152		}
15153	}
15154	#[inline]
15155	pub unsafe fn set_segment_reference_enabled_raw(this: *mut Self, val: u8) {
15156		unsafe {
15157			let val: u8 = ::std::mem::transmute(val);
15158			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
15159				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15160				0usize,
15161				1u8,
15162				val as u64,
15163			)
15164		}
15165	}
15166	#[inline]
15167	pub fn segment_reference(&self) -> u8 {
15168		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u8) }
15169	}
15170	#[inline]
15171	pub fn set_segment_reference(&mut self, val: u8) {
15172		unsafe {
15173			let val: u8 = ::std::mem::transmute(val);
15174			self._bitfield_1.set(1usize, 2u8, val as u64)
15175		}
15176	}
15177	#[inline]
15178	pub unsafe fn segment_reference_raw(this: *const Self) -> u8 {
15179		unsafe {
15180			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
15181				::std::ptr::addr_of!((*this)._bitfield_1),
15182				1usize,
15183				2u8,
15184			) as u8)
15185		}
15186	}
15187	#[inline]
15188	pub unsafe fn set_segment_reference_raw(this: *mut Self, val: u8) {
15189		unsafe {
15190			let val: u8 = ::std::mem::transmute(val);
15191			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
15192				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15193				1usize,
15194				2u8,
15195				val as u64,
15196			)
15197		}
15198	}
15199	#[inline]
15200	pub fn segment_reference_skipped(&self) -> u8 {
15201		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u8) }
15202	}
15203	#[inline]
15204	pub fn set_segment_reference_skipped(&mut self, val: u8) {
15205		unsafe {
15206			let val: u8 = ::std::mem::transmute(val);
15207			self._bitfield_1.set(3usize, 1u8, val as u64)
15208		}
15209	}
15210	#[inline]
15211	pub unsafe fn segment_reference_skipped_raw(this: *const Self) -> u8 {
15212		unsafe {
15213			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
15214				::std::ptr::addr_of!((*this)._bitfield_1),
15215				3usize,
15216				1u8,
15217			) as u8)
15218		}
15219	}
15220	#[inline]
15221	pub unsafe fn set_segment_reference_skipped_raw(this: *mut Self, val: u8) {
15222		unsafe {
15223			let val: u8 = ::std::mem::transmute(val);
15224			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
15225				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15226				3usize,
15227				1u8,
15228				val as u64,
15229			)
15230		}
15231	}
15232	#[inline]
15233	pub fn reserved(&self) -> u8 {
15234		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
15235	}
15236	#[inline]
15237	pub fn set_reserved(&mut self, val: u8) {
15238		unsafe {
15239			let val: u8 = ::std::mem::transmute(val);
15240			self._bitfield_1.set(4usize, 4u8, val as u64)
15241		}
15242	}
15243	#[inline]
15244	pub unsafe fn reserved_raw(this: *const Self) -> u8 {
15245		unsafe {
15246			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
15247				::std::ptr::addr_of!((*this)._bitfield_1),
15248				4usize,
15249				4u8,
15250			) as u8)
15251		}
15252	}
15253	#[inline]
15254	pub unsafe fn set_reserved_raw(this: *mut Self, val: u8) {
15255		unsafe {
15256			let val: u8 = ::std::mem::transmute(val);
15257			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
15258				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15259				4usize,
15260				4u8,
15261				val as u64,
15262			)
15263		}
15264	}
15265	#[inline]
15266	pub fn new_bitfield_1(
15267		segment_reference_enabled: u8,
15268		segment_reference: u8,
15269		segment_reference_skipped: u8,
15270		reserved: u8,
15271	) -> __BindgenBitfieldUnit<[u8; 1usize]> {
15272		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
15273		__bindgen_bitfield_unit.set(0usize, 1u8, {
15274			let segment_reference_enabled: u8 = unsafe { ::std::mem::transmute(segment_reference_enabled) };
15275			segment_reference_enabled as u64
15276		});
15277		__bindgen_bitfield_unit.set(1usize, 2u8, {
15278			let segment_reference: u8 = unsafe { ::std::mem::transmute(segment_reference) };
15279			segment_reference as u64
15280		});
15281		__bindgen_bitfield_unit.set(3usize, 1u8, {
15282			let segment_reference_skipped: u8 = unsafe { ::std::mem::transmute(segment_reference_skipped) };
15283			segment_reference_skipped as u64
15284		});
15285		__bindgen_bitfield_unit.set(4usize, 4u8, {
15286			let reserved: u8 = unsafe { ::std::mem::transmute(reserved) };
15287			reserved as u64
15288		});
15289		__bindgen_bitfield_unit
15290	}
15291}
15292impl Default for _VAEncSegParamVP9__bindgen_ty_1 {
15293	fn default() -> Self {
15294		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
15295		unsafe {
15296			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
15297			s.assume_init()
15298		}
15299	}
15300}
15301impl Default for _VAEncSegParamVP9 {
15302	fn default() -> Self {
15303		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
15304		unsafe {
15305			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
15306			s.assume_init()
15307		}
15308	}
15309}
15310#[doc = " \\brief Per segment parameters"]
15311pub type VAEncSegParamVP9 = _VAEncSegParamVP9;
15312#[doc = "  Structure to convey all segment related information.\n  If segmentation is disabled, this data structure is still required.\n  In this case, only seg_data[0] contains valid data.\n  This buffer is sent once per frame.\n\n  The buffer is created with VABufferType VAQMatrixBufferType.\n"]
15313#[repr(C)]
15314#[derive(Copy, Clone)]
15315pub struct _VAEncMiscParameterTypeVP9PerSegmantParam {
15316	#[doc = "  Parameters for 8 segments."]
15317	pub seg_data: [VAEncSegParamVP9; 8usize],
15318	#[doc = " \\brief Reserved bytes for future use, must be zero"]
15319	pub va_reserved: [u32; 4usize],
15320}
15321impl Default for _VAEncMiscParameterTypeVP9PerSegmantParam {
15322	fn default() -> Self {
15323		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
15324		unsafe {
15325			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
15326			s.assume_init()
15327		}
15328	}
15329}
15330#[doc = "  Structure to convey all segment related information.\n  If segmentation is disabled, this data structure is still required.\n  In this case, only seg_data[0] contains valid data.\n  This buffer is sent once per frame.\n\n  The buffer is created with VABufferType VAQMatrixBufferType.\n"]
15331pub type VAEncMiscParameterTypeVP9PerSegmantParam = _VAEncMiscParameterTypeVP9PerSegmantParam;
15332pub mod VAEncPackedHeaderTypeAV1 {
15333	#[doc = " \\brief Packed header types specific to AV1 encoding.\n\n Types of packed headers generally used for AV1 encoding.\n"]
15334	pub type Type = ::std::os::raw::c_uint;
15335	#[doc = " \\brief Packed Sequence Parameter Set (SPS).\n\n The corresponding packed header data buffer shall contain the\n complete sequence_header_obu() syntax element.\n"]
15336	pub const VAEncPackedHeaderAV1_SPS: Type = 1;
15337	#[doc = " \\brief Packed Picture Parameter Set (PPS).\n\n The corresponding packed header data buffer shall contain the\n complete frame_header_obu() syntax element.\n"]
15338	pub const VAEncPackedHeaderAV1_PPS: Type = 2;
15339}
15340#[doc = " \\brief FEI frame level control buffer for H.264"]
15341#[repr(C)]
15342#[derive(Debug, Copy, Clone, PartialEq, Eq)]
15343pub struct _VAEncMiscParameterFEIFrameControlH264 {
15344	pub function: u32,
15345	#[doc = " \\brief MB (16x16) control input buffer. It is valid only when (mb_input | mb_size_ctrl)\n is set to 1. The data in this buffer correspond to the input source. 16x16 MB is in raster scan order,\n each MB control data structure is defined by VAEncFEIMBControlH264.\n Buffer size shall not be less than the number of 16x16 blocks multiplied by\n sizeof(VAEncFEIMBControlH264).\n Note: if mb_qp is set, VAEncQPBufferH264 is expected."]
15346	pub mb_ctrl: VABufferID,
15347	#[doc = " \\brief distortion output of MB ENC or ENC_PAK.\n Each 16x16 block has one distortion data with VAEncFEIDistortionH264 layout\n Buffer size shall not be less than the number of 16x16 blocks multiplied by\n sizeof(VAEncFEIDistortionH264)."]
15348	pub distortion: VABufferID,
15349	#[doc = " \\brief MVs data output of MB ENC.\n Each 16x16 block has one MVs data with layout VAMotionVector\n Buffer size shall not be less than the number of 16x16 blocks multiplied by\n sizeof(VAMotionVector) * 16."]
15350	pub mv_data: VABufferID,
15351	#[doc = " \\brief MBCode data output of MB ENC.\n Each 16x16 block has one MB Code data with layout VAEncFEIMBCodeH264\n Buffer size shall not be less than the number of 16x16 blocks multiplied by\n sizeof(VAEncFEIMBCodeH264)."]
15352	pub mb_code_data: VABufferID,
15353	#[doc = " \\brief QP input buffer with layout VAEncQPBufferH264. It is valid only when mb_qp is set to 1.\n The data in this buffer correspond to the input source.\n One QP per 16x16 block in raster scan order, each QP is a signed char (8-bit) value."]
15354	pub qp: VABufferID,
15355	#[doc = " \\brief MV predictor. It is valid only when mv_predictor_enable is set to 1.\n Each 16x16 block has one or more pair of motion vectors and the corresponding\n reference indexes as defined by VAEncFEIMVPredictorH264. 16x16 block is in raster scan order.\n Buffer size shall not be less than the number of 16x16 blocks multiplied by\n sizeof(VAEncFEIMVPredictorH264)."]
15356	pub mv_predictor: VABufferID,
15357	pub _bitfield_align_1: [u16; 0],
15358	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 16usize]>,
15359	#[doc = " \\brief max frame size control with multi passes QP setting"]
15360	pub max_frame_size: u32,
15361	#[doc = " \\brief number of passes, every pass has different QP"]
15362	pub num_passes: u32,
15363	#[doc = " \\brief delta QP list for every pass"]
15364	pub delta_qp: *mut u8,
15365	pub reserved3: [u32; 4usize],
15366}
15367impl Default for _VAEncMiscParameterFEIFrameControlH264 {
15368	fn default() -> Self {
15369		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
15370		unsafe {
15371			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
15372			s.assume_init()
15373		}
15374	}
15375}
15376impl _VAEncMiscParameterFEIFrameControlH264 {
15377	#[inline]
15378	pub fn num_mv_predictors_l0(&self) -> u32 {
15379		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
15380	}
15381	#[inline]
15382	pub fn set_num_mv_predictors_l0(&mut self, val: u32) {
15383		unsafe {
15384			let val: u32 = ::std::mem::transmute(val);
15385			self._bitfield_1.set(0usize, 16u8, val as u64)
15386		}
15387	}
15388	#[inline]
15389	pub unsafe fn num_mv_predictors_l0_raw(this: *const Self) -> u32 {
15390		unsafe {
15391			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15392				::std::ptr::addr_of!((*this)._bitfield_1),
15393				0usize,
15394				16u8,
15395			) as u32)
15396		}
15397	}
15398	#[inline]
15399	pub unsafe fn set_num_mv_predictors_l0_raw(this: *mut Self, val: u32) {
15400		unsafe {
15401			let val: u32 = ::std::mem::transmute(val);
15402			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15403				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15404				0usize,
15405				16u8,
15406				val as u64,
15407			)
15408		}
15409	}
15410	#[inline]
15411	pub fn num_mv_predictors_l1(&self) -> u32 {
15412		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
15413	}
15414	#[inline]
15415	pub fn set_num_mv_predictors_l1(&mut self, val: u32) {
15416		unsafe {
15417			let val: u32 = ::std::mem::transmute(val);
15418			self._bitfield_1.set(16usize, 16u8, val as u64)
15419		}
15420	}
15421	#[inline]
15422	pub unsafe fn num_mv_predictors_l1_raw(this: *const Self) -> u32 {
15423		unsafe {
15424			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15425				::std::ptr::addr_of!((*this)._bitfield_1),
15426				16usize,
15427				16u8,
15428			) as u32)
15429		}
15430	}
15431	#[inline]
15432	pub unsafe fn set_num_mv_predictors_l1_raw(this: *mut Self, val: u32) {
15433		unsafe {
15434			let val: u32 = ::std::mem::transmute(val);
15435			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15436				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15437				16usize,
15438				16u8,
15439				val as u64,
15440			)
15441		}
15442	}
15443	#[inline]
15444	pub fn search_path(&self) -> u32 {
15445		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 8u8) as u32) }
15446	}
15447	#[inline]
15448	pub fn set_search_path(&mut self, val: u32) {
15449		unsafe {
15450			let val: u32 = ::std::mem::transmute(val);
15451			self._bitfield_1.set(32usize, 8u8, val as u64)
15452		}
15453	}
15454	#[inline]
15455	pub unsafe fn search_path_raw(this: *const Self) -> u32 {
15456		unsafe {
15457			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15458				::std::ptr::addr_of!((*this)._bitfield_1),
15459				32usize,
15460				8u8,
15461			) as u32)
15462		}
15463	}
15464	#[inline]
15465	pub unsafe fn set_search_path_raw(this: *mut Self, val: u32) {
15466		unsafe {
15467			let val: u32 = ::std::mem::transmute(val);
15468			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15469				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15470				32usize,
15471				8u8,
15472				val as u64,
15473			)
15474		}
15475	}
15476	#[inline]
15477	pub fn len_sp(&self) -> u32 {
15478		unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 8u8) as u32) }
15479	}
15480	#[inline]
15481	pub fn set_len_sp(&mut self, val: u32) {
15482		unsafe {
15483			let val: u32 = ::std::mem::transmute(val);
15484			self._bitfield_1.set(40usize, 8u8, val as u64)
15485		}
15486	}
15487	#[inline]
15488	pub unsafe fn len_sp_raw(this: *const Self) -> u32 {
15489		unsafe {
15490			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15491				::std::ptr::addr_of!((*this)._bitfield_1),
15492				40usize,
15493				8u8,
15494			) as u32)
15495		}
15496	}
15497	#[inline]
15498	pub unsafe fn set_len_sp_raw(this: *mut Self, val: u32) {
15499		unsafe {
15500			let val: u32 = ::std::mem::transmute(val);
15501			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15502				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15503				40usize,
15504				8u8,
15505				val as u64,
15506			)
15507		}
15508	}
15509	#[inline]
15510	pub fn reserved0(&self) -> u32 {
15511		unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 16u8) as u32) }
15512	}
15513	#[inline]
15514	pub fn set_reserved0(&mut self, val: u32) {
15515		unsafe {
15516			let val: u32 = ::std::mem::transmute(val);
15517			self._bitfield_1.set(48usize, 16u8, val as u64)
15518		}
15519	}
15520	#[inline]
15521	pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
15522		unsafe {
15523			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15524				::std::ptr::addr_of!((*this)._bitfield_1),
15525				48usize,
15526				16u8,
15527			) as u32)
15528		}
15529	}
15530	#[inline]
15531	pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
15532		unsafe {
15533			let val: u32 = ::std::mem::transmute(val);
15534			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15535				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15536				48usize,
15537				16u8,
15538				val as u64,
15539			)
15540		}
15541	}
15542	#[inline]
15543	pub fn sub_mb_part_mask(&self) -> u32 {
15544		unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 7u8) as u32) }
15545	}
15546	#[inline]
15547	pub fn set_sub_mb_part_mask(&mut self, val: u32) {
15548		unsafe {
15549			let val: u32 = ::std::mem::transmute(val);
15550			self._bitfield_1.set(64usize, 7u8, val as u64)
15551		}
15552	}
15553	#[inline]
15554	pub unsafe fn sub_mb_part_mask_raw(this: *const Self) -> u32 {
15555		unsafe {
15556			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15557				::std::ptr::addr_of!((*this)._bitfield_1),
15558				64usize,
15559				7u8,
15560			) as u32)
15561		}
15562	}
15563	#[inline]
15564	pub unsafe fn set_sub_mb_part_mask_raw(this: *mut Self, val: u32) {
15565		unsafe {
15566			let val: u32 = ::std::mem::transmute(val);
15567			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15568				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15569				64usize,
15570				7u8,
15571				val as u64,
15572			)
15573		}
15574	}
15575	#[inline]
15576	pub fn intra_part_mask(&self) -> u32 {
15577		unsafe { ::std::mem::transmute(self._bitfield_1.get(71usize, 5u8) as u32) }
15578	}
15579	#[inline]
15580	pub fn set_intra_part_mask(&mut self, val: u32) {
15581		unsafe {
15582			let val: u32 = ::std::mem::transmute(val);
15583			self._bitfield_1.set(71usize, 5u8, val as u64)
15584		}
15585	}
15586	#[inline]
15587	pub unsafe fn intra_part_mask_raw(this: *const Self) -> u32 {
15588		unsafe {
15589			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15590				::std::ptr::addr_of!((*this)._bitfield_1),
15591				71usize,
15592				5u8,
15593			) as u32)
15594		}
15595	}
15596	#[inline]
15597	pub unsafe fn set_intra_part_mask_raw(this: *mut Self, val: u32) {
15598		unsafe {
15599			let val: u32 = ::std::mem::transmute(val);
15600			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15601				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15602				71usize,
15603				5u8,
15604				val as u64,
15605			)
15606		}
15607	}
15608	#[inline]
15609	pub fn multi_pred_l0(&self) -> u32 {
15610		unsafe { ::std::mem::transmute(self._bitfield_1.get(76usize, 1u8) as u32) }
15611	}
15612	#[inline]
15613	pub fn set_multi_pred_l0(&mut self, val: u32) {
15614		unsafe {
15615			let val: u32 = ::std::mem::transmute(val);
15616			self._bitfield_1.set(76usize, 1u8, val as u64)
15617		}
15618	}
15619	#[inline]
15620	pub unsafe fn multi_pred_l0_raw(this: *const Self) -> u32 {
15621		unsafe {
15622			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15623				::std::ptr::addr_of!((*this)._bitfield_1),
15624				76usize,
15625				1u8,
15626			) as u32)
15627		}
15628	}
15629	#[inline]
15630	pub unsafe fn set_multi_pred_l0_raw(this: *mut Self, val: u32) {
15631		unsafe {
15632			let val: u32 = ::std::mem::transmute(val);
15633			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15634				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15635				76usize,
15636				1u8,
15637				val as u64,
15638			)
15639		}
15640	}
15641	#[inline]
15642	pub fn multi_pred_l1(&self) -> u32 {
15643		unsafe { ::std::mem::transmute(self._bitfield_1.get(77usize, 1u8) as u32) }
15644	}
15645	#[inline]
15646	pub fn set_multi_pred_l1(&mut self, val: u32) {
15647		unsafe {
15648			let val: u32 = ::std::mem::transmute(val);
15649			self._bitfield_1.set(77usize, 1u8, val as u64)
15650		}
15651	}
15652	#[inline]
15653	pub unsafe fn multi_pred_l1_raw(this: *const Self) -> u32 {
15654		unsafe {
15655			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15656				::std::ptr::addr_of!((*this)._bitfield_1),
15657				77usize,
15658				1u8,
15659			) as u32)
15660		}
15661	}
15662	#[inline]
15663	pub unsafe fn set_multi_pred_l1_raw(this: *mut Self, val: u32) {
15664		unsafe {
15665			let val: u32 = ::std::mem::transmute(val);
15666			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15667				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15668				77usize,
15669				1u8,
15670				val as u64,
15671			)
15672		}
15673	}
15674	#[inline]
15675	pub fn sub_pel_mode(&self) -> u32 {
15676		unsafe { ::std::mem::transmute(self._bitfield_1.get(78usize, 2u8) as u32) }
15677	}
15678	#[inline]
15679	pub fn set_sub_pel_mode(&mut self, val: u32) {
15680		unsafe {
15681			let val: u32 = ::std::mem::transmute(val);
15682			self._bitfield_1.set(78usize, 2u8, val as u64)
15683		}
15684	}
15685	#[inline]
15686	pub unsafe fn sub_pel_mode_raw(this: *const Self) -> u32 {
15687		unsafe {
15688			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15689				::std::ptr::addr_of!((*this)._bitfield_1),
15690				78usize,
15691				2u8,
15692			) as u32)
15693		}
15694	}
15695	#[inline]
15696	pub unsafe fn set_sub_pel_mode_raw(this: *mut Self, val: u32) {
15697		unsafe {
15698			let val: u32 = ::std::mem::transmute(val);
15699			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15700				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15701				78usize,
15702				2u8,
15703				val as u64,
15704			)
15705		}
15706	}
15707	#[inline]
15708	pub fn inter_sad(&self) -> u32 {
15709		unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 2u8) as u32) }
15710	}
15711	#[inline]
15712	pub fn set_inter_sad(&mut self, val: u32) {
15713		unsafe {
15714			let val: u32 = ::std::mem::transmute(val);
15715			self._bitfield_1.set(80usize, 2u8, val as u64)
15716		}
15717	}
15718	#[inline]
15719	pub unsafe fn inter_sad_raw(this: *const Self) -> u32 {
15720		unsafe {
15721			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15722				::std::ptr::addr_of!((*this)._bitfield_1),
15723				80usize,
15724				2u8,
15725			) as u32)
15726		}
15727	}
15728	#[inline]
15729	pub unsafe fn set_inter_sad_raw(this: *mut Self, val: u32) {
15730		unsafe {
15731			let val: u32 = ::std::mem::transmute(val);
15732			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15733				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15734				80usize,
15735				2u8,
15736				val as u64,
15737			)
15738		}
15739	}
15740	#[inline]
15741	pub fn intra_sad(&self) -> u32 {
15742		unsafe { ::std::mem::transmute(self._bitfield_1.get(82usize, 2u8) as u32) }
15743	}
15744	#[inline]
15745	pub fn set_intra_sad(&mut self, val: u32) {
15746		unsafe {
15747			let val: u32 = ::std::mem::transmute(val);
15748			self._bitfield_1.set(82usize, 2u8, val as u64)
15749		}
15750	}
15751	#[inline]
15752	pub unsafe fn intra_sad_raw(this: *const Self) -> u32 {
15753		unsafe {
15754			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15755				::std::ptr::addr_of!((*this)._bitfield_1),
15756				82usize,
15757				2u8,
15758			) as u32)
15759		}
15760	}
15761	#[inline]
15762	pub unsafe fn set_intra_sad_raw(this: *mut Self, val: u32) {
15763		unsafe {
15764			let val: u32 = ::std::mem::transmute(val);
15765			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15766				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15767				82usize,
15768				2u8,
15769				val as u64,
15770			)
15771		}
15772	}
15773	#[inline]
15774	pub fn distortion_type(&self) -> u32 {
15775		unsafe { ::std::mem::transmute(self._bitfield_1.get(84usize, 1u8) as u32) }
15776	}
15777	#[inline]
15778	pub fn set_distortion_type(&mut self, val: u32) {
15779		unsafe {
15780			let val: u32 = ::std::mem::transmute(val);
15781			self._bitfield_1.set(84usize, 1u8, val as u64)
15782		}
15783	}
15784	#[inline]
15785	pub unsafe fn distortion_type_raw(this: *const Self) -> u32 {
15786		unsafe {
15787			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15788				::std::ptr::addr_of!((*this)._bitfield_1),
15789				84usize,
15790				1u8,
15791			) as u32)
15792		}
15793	}
15794	#[inline]
15795	pub unsafe fn set_distortion_type_raw(this: *mut Self, val: u32) {
15796		unsafe {
15797			let val: u32 = ::std::mem::transmute(val);
15798			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15799				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15800				84usize,
15801				1u8,
15802				val as u64,
15803			)
15804		}
15805	}
15806	#[inline]
15807	pub fn repartition_check_enable(&self) -> u32 {
15808		unsafe { ::std::mem::transmute(self._bitfield_1.get(85usize, 1u8) as u32) }
15809	}
15810	#[inline]
15811	pub fn set_repartition_check_enable(&mut self, val: u32) {
15812		unsafe {
15813			let val: u32 = ::std::mem::transmute(val);
15814			self._bitfield_1.set(85usize, 1u8, val as u64)
15815		}
15816	}
15817	#[inline]
15818	pub unsafe fn repartition_check_enable_raw(this: *const Self) -> u32 {
15819		unsafe {
15820			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15821				::std::ptr::addr_of!((*this)._bitfield_1),
15822				85usize,
15823				1u8,
15824			) as u32)
15825		}
15826	}
15827	#[inline]
15828	pub unsafe fn set_repartition_check_enable_raw(this: *mut Self, val: u32) {
15829		unsafe {
15830			let val: u32 = ::std::mem::transmute(val);
15831			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15832				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15833				85usize,
15834				1u8,
15835				val as u64,
15836			)
15837		}
15838	}
15839	#[inline]
15840	pub fn adaptive_search(&self) -> u32 {
15841		unsafe { ::std::mem::transmute(self._bitfield_1.get(86usize, 1u8) as u32) }
15842	}
15843	#[inline]
15844	pub fn set_adaptive_search(&mut self, val: u32) {
15845		unsafe {
15846			let val: u32 = ::std::mem::transmute(val);
15847			self._bitfield_1.set(86usize, 1u8, val as u64)
15848		}
15849	}
15850	#[inline]
15851	pub unsafe fn adaptive_search_raw(this: *const Self) -> u32 {
15852		unsafe {
15853			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15854				::std::ptr::addr_of!((*this)._bitfield_1),
15855				86usize,
15856				1u8,
15857			) as u32)
15858		}
15859	}
15860	#[inline]
15861	pub unsafe fn set_adaptive_search_raw(this: *mut Self, val: u32) {
15862		unsafe {
15863			let val: u32 = ::std::mem::transmute(val);
15864			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15865				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15866				86usize,
15867				1u8,
15868				val as u64,
15869			)
15870		}
15871	}
15872	#[inline]
15873	pub fn mv_predictor_enable(&self) -> u32 {
15874		unsafe { ::std::mem::transmute(self._bitfield_1.get(87usize, 1u8) as u32) }
15875	}
15876	#[inline]
15877	pub fn set_mv_predictor_enable(&mut self, val: u32) {
15878		unsafe {
15879			let val: u32 = ::std::mem::transmute(val);
15880			self._bitfield_1.set(87usize, 1u8, val as u64)
15881		}
15882	}
15883	#[inline]
15884	pub unsafe fn mv_predictor_enable_raw(this: *const Self) -> u32 {
15885		unsafe {
15886			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15887				::std::ptr::addr_of!((*this)._bitfield_1),
15888				87usize,
15889				1u8,
15890			) as u32)
15891		}
15892	}
15893	#[inline]
15894	pub unsafe fn set_mv_predictor_enable_raw(this: *mut Self, val: u32) {
15895		unsafe {
15896			let val: u32 = ::std::mem::transmute(val);
15897			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15898				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15899				87usize,
15900				1u8,
15901				val as u64,
15902			)
15903		}
15904	}
15905	#[inline]
15906	pub fn mb_qp(&self) -> u32 {
15907		unsafe { ::std::mem::transmute(self._bitfield_1.get(88usize, 1u8) as u32) }
15908	}
15909	#[inline]
15910	pub fn set_mb_qp(&mut self, val: u32) {
15911		unsafe {
15912			let val: u32 = ::std::mem::transmute(val);
15913			self._bitfield_1.set(88usize, 1u8, val as u64)
15914		}
15915	}
15916	#[inline]
15917	pub unsafe fn mb_qp_raw(this: *const Self) -> u32 {
15918		unsafe {
15919			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15920				::std::ptr::addr_of!((*this)._bitfield_1),
15921				88usize,
15922				1u8,
15923			) as u32)
15924		}
15925	}
15926	#[inline]
15927	pub unsafe fn set_mb_qp_raw(this: *mut Self, val: u32) {
15928		unsafe {
15929			let val: u32 = ::std::mem::transmute(val);
15930			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15931				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15932				88usize,
15933				1u8,
15934				val as u64,
15935			)
15936		}
15937	}
15938	#[inline]
15939	pub fn mb_input(&self) -> u32 {
15940		unsafe { ::std::mem::transmute(self._bitfield_1.get(89usize, 1u8) as u32) }
15941	}
15942	#[inline]
15943	pub fn set_mb_input(&mut self, val: u32) {
15944		unsafe {
15945			let val: u32 = ::std::mem::transmute(val);
15946			self._bitfield_1.set(89usize, 1u8, val as u64)
15947		}
15948	}
15949	#[inline]
15950	pub unsafe fn mb_input_raw(this: *const Self) -> u32 {
15951		unsafe {
15952			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15953				::std::ptr::addr_of!((*this)._bitfield_1),
15954				89usize,
15955				1u8,
15956			) as u32)
15957		}
15958	}
15959	#[inline]
15960	pub unsafe fn set_mb_input_raw(this: *mut Self, val: u32) {
15961		unsafe {
15962			let val: u32 = ::std::mem::transmute(val);
15963			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15964				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15965				89usize,
15966				1u8,
15967				val as u64,
15968			)
15969		}
15970	}
15971	#[inline]
15972	pub fn mb_size_ctrl(&self) -> u32 {
15973		unsafe { ::std::mem::transmute(self._bitfield_1.get(90usize, 1u8) as u32) }
15974	}
15975	#[inline]
15976	pub fn set_mb_size_ctrl(&mut self, val: u32) {
15977		unsafe {
15978			let val: u32 = ::std::mem::transmute(val);
15979			self._bitfield_1.set(90usize, 1u8, val as u64)
15980		}
15981	}
15982	#[inline]
15983	pub unsafe fn mb_size_ctrl_raw(this: *const Self) -> u32 {
15984		unsafe {
15985			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
15986				::std::ptr::addr_of!((*this)._bitfield_1),
15987				90usize,
15988				1u8,
15989			) as u32)
15990		}
15991	}
15992	#[inline]
15993	pub unsafe fn set_mb_size_ctrl_raw(this: *mut Self, val: u32) {
15994		unsafe {
15995			let val: u32 = ::std::mem::transmute(val);
15996			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
15997				::std::ptr::addr_of_mut!((*this)._bitfield_1),
15998				90usize,
15999				1u8,
16000				val as u64,
16001			)
16002		}
16003	}
16004	#[inline]
16005	pub fn colocated_mb_distortion(&self) -> u32 {
16006		unsafe { ::std::mem::transmute(self._bitfield_1.get(91usize, 1u8) as u32) }
16007	}
16008	#[inline]
16009	pub fn set_colocated_mb_distortion(&mut self, val: u32) {
16010		unsafe {
16011			let val: u32 = ::std::mem::transmute(val);
16012			self._bitfield_1.set(91usize, 1u8, val as u64)
16013		}
16014	}
16015	#[inline]
16016	pub unsafe fn colocated_mb_distortion_raw(this: *const Self) -> u32 {
16017		unsafe {
16018			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16019				::std::ptr::addr_of!((*this)._bitfield_1),
16020				91usize,
16021				1u8,
16022			) as u32)
16023		}
16024	}
16025	#[inline]
16026	pub unsafe fn set_colocated_mb_distortion_raw(this: *mut Self, val: u32) {
16027		unsafe {
16028			let val: u32 = ::std::mem::transmute(val);
16029			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16030				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16031				91usize,
16032				1u8,
16033				val as u64,
16034			)
16035		}
16036	}
16037	#[inline]
16038	pub fn reserved1(&self) -> u32 {
16039		unsafe { ::std::mem::transmute(self._bitfield_1.get(92usize, 4u8) as u32) }
16040	}
16041	#[inline]
16042	pub fn set_reserved1(&mut self, val: u32) {
16043		unsafe {
16044			let val: u32 = ::std::mem::transmute(val);
16045			self._bitfield_1.set(92usize, 4u8, val as u64)
16046		}
16047	}
16048	#[inline]
16049	pub unsafe fn reserved1_raw(this: *const Self) -> u32 {
16050		unsafe {
16051			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16052				::std::ptr::addr_of!((*this)._bitfield_1),
16053				92usize,
16054				4u8,
16055			) as u32)
16056		}
16057	}
16058	#[inline]
16059	pub unsafe fn set_reserved1_raw(this: *mut Self, val: u32) {
16060		unsafe {
16061			let val: u32 = ::std::mem::transmute(val);
16062			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16063				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16064				92usize,
16065				4u8,
16066				val as u64,
16067			)
16068		}
16069	}
16070	#[inline]
16071	pub fn ref_width(&self) -> u32 {
16072		unsafe { ::std::mem::transmute(self._bitfield_1.get(96usize, 8u8) as u32) }
16073	}
16074	#[inline]
16075	pub fn set_ref_width(&mut self, val: u32) {
16076		unsafe {
16077			let val: u32 = ::std::mem::transmute(val);
16078			self._bitfield_1.set(96usize, 8u8, val as u64)
16079		}
16080	}
16081	#[inline]
16082	pub unsafe fn ref_width_raw(this: *const Self) -> u32 {
16083		unsafe {
16084			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16085				::std::ptr::addr_of!((*this)._bitfield_1),
16086				96usize,
16087				8u8,
16088			) as u32)
16089		}
16090	}
16091	#[inline]
16092	pub unsafe fn set_ref_width_raw(this: *mut Self, val: u32) {
16093		unsafe {
16094			let val: u32 = ::std::mem::transmute(val);
16095			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16096				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16097				96usize,
16098				8u8,
16099				val as u64,
16100			)
16101		}
16102	}
16103	#[inline]
16104	pub fn ref_height(&self) -> u32 {
16105		unsafe { ::std::mem::transmute(self._bitfield_1.get(104usize, 8u8) as u32) }
16106	}
16107	#[inline]
16108	pub fn set_ref_height(&mut self, val: u32) {
16109		unsafe {
16110			let val: u32 = ::std::mem::transmute(val);
16111			self._bitfield_1.set(104usize, 8u8, val as u64)
16112		}
16113	}
16114	#[inline]
16115	pub unsafe fn ref_height_raw(this: *const Self) -> u32 {
16116		unsafe {
16117			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16118				::std::ptr::addr_of!((*this)._bitfield_1),
16119				104usize,
16120				8u8,
16121			) as u32)
16122		}
16123	}
16124	#[inline]
16125	pub unsafe fn set_ref_height_raw(this: *mut Self, val: u32) {
16126		unsafe {
16127			let val: u32 = ::std::mem::transmute(val);
16128			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16129				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16130				104usize,
16131				8u8,
16132				val as u64,
16133			)
16134		}
16135	}
16136	#[inline]
16137	pub fn search_window(&self) -> u32 {
16138		unsafe { ::std::mem::transmute(self._bitfield_1.get(112usize, 4u8) as u32) }
16139	}
16140	#[inline]
16141	pub fn set_search_window(&mut self, val: u32) {
16142		unsafe {
16143			let val: u32 = ::std::mem::transmute(val);
16144			self._bitfield_1.set(112usize, 4u8, val as u64)
16145		}
16146	}
16147	#[inline]
16148	pub unsafe fn search_window_raw(this: *const Self) -> u32 {
16149		unsafe {
16150			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16151				::std::ptr::addr_of!((*this)._bitfield_1),
16152				112usize,
16153				4u8,
16154			) as u32)
16155		}
16156	}
16157	#[inline]
16158	pub unsafe fn set_search_window_raw(this: *mut Self, val: u32) {
16159		unsafe {
16160			let val: u32 = ::std::mem::transmute(val);
16161			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16162				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16163				112usize,
16164				4u8,
16165				val as u64,
16166			)
16167		}
16168	}
16169	#[inline]
16170	pub fn reserved2(&self) -> u32 {
16171		unsafe { ::std::mem::transmute(self._bitfield_1.get(116usize, 12u8) as u32) }
16172	}
16173	#[inline]
16174	pub fn set_reserved2(&mut self, val: u32) {
16175		unsafe {
16176			let val: u32 = ::std::mem::transmute(val);
16177			self._bitfield_1.set(116usize, 12u8, val as u64)
16178		}
16179	}
16180	#[inline]
16181	pub unsafe fn reserved2_raw(this: *const Self) -> u32 {
16182		unsafe {
16183			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
16184				::std::ptr::addr_of!((*this)._bitfield_1),
16185				116usize,
16186				12u8,
16187			) as u32)
16188		}
16189	}
16190	#[inline]
16191	pub unsafe fn set_reserved2_raw(this: *mut Self, val: u32) {
16192		unsafe {
16193			let val: u32 = ::std::mem::transmute(val);
16194			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
16195				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16196				116usize,
16197				12u8,
16198				val as u64,
16199			)
16200		}
16201	}
16202	#[inline]
16203	pub fn new_bitfield_1(
16204		num_mv_predictors_l0: u32,
16205		num_mv_predictors_l1: u32,
16206		search_path: u32,
16207		len_sp: u32,
16208		reserved0: u32,
16209		sub_mb_part_mask: u32,
16210		intra_part_mask: u32,
16211		multi_pred_l0: u32,
16212		multi_pred_l1: u32,
16213		sub_pel_mode: u32,
16214		inter_sad: u32,
16215		intra_sad: u32,
16216		distortion_type: u32,
16217		repartition_check_enable: u32,
16218		adaptive_search: u32,
16219		mv_predictor_enable: u32,
16220		mb_qp: u32,
16221		mb_input: u32,
16222		mb_size_ctrl: u32,
16223		colocated_mb_distortion: u32,
16224		reserved1: u32,
16225		ref_width: u32,
16226		ref_height: u32,
16227		search_window: u32,
16228		reserved2: u32,
16229	) -> __BindgenBitfieldUnit<[u8; 16usize]> {
16230		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 16usize]> = Default::default();
16231		__bindgen_bitfield_unit.set(0usize, 16u8, {
16232			let num_mv_predictors_l0: u32 = unsafe { ::std::mem::transmute(num_mv_predictors_l0) };
16233			num_mv_predictors_l0 as u64
16234		});
16235		__bindgen_bitfield_unit.set(16usize, 16u8, {
16236			let num_mv_predictors_l1: u32 = unsafe { ::std::mem::transmute(num_mv_predictors_l1) };
16237			num_mv_predictors_l1 as u64
16238		});
16239		__bindgen_bitfield_unit.set(32usize, 8u8, {
16240			let search_path: u32 = unsafe { ::std::mem::transmute(search_path) };
16241			search_path as u64
16242		});
16243		__bindgen_bitfield_unit.set(40usize, 8u8, {
16244			let len_sp: u32 = unsafe { ::std::mem::transmute(len_sp) };
16245			len_sp as u64
16246		});
16247		__bindgen_bitfield_unit.set(48usize, 16u8, {
16248			let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
16249			reserved0 as u64
16250		});
16251		__bindgen_bitfield_unit.set(64usize, 7u8, {
16252			let sub_mb_part_mask: u32 = unsafe { ::std::mem::transmute(sub_mb_part_mask) };
16253			sub_mb_part_mask as u64
16254		});
16255		__bindgen_bitfield_unit.set(71usize, 5u8, {
16256			let intra_part_mask: u32 = unsafe { ::std::mem::transmute(intra_part_mask) };
16257			intra_part_mask as u64
16258		});
16259		__bindgen_bitfield_unit.set(76usize, 1u8, {
16260			let multi_pred_l0: u32 = unsafe { ::std::mem::transmute(multi_pred_l0) };
16261			multi_pred_l0 as u64
16262		});
16263		__bindgen_bitfield_unit.set(77usize, 1u8, {
16264			let multi_pred_l1: u32 = unsafe { ::std::mem::transmute(multi_pred_l1) };
16265			multi_pred_l1 as u64
16266		});
16267		__bindgen_bitfield_unit.set(78usize, 2u8, {
16268			let sub_pel_mode: u32 = unsafe { ::std::mem::transmute(sub_pel_mode) };
16269			sub_pel_mode as u64
16270		});
16271		__bindgen_bitfield_unit.set(80usize, 2u8, {
16272			let inter_sad: u32 = unsafe { ::std::mem::transmute(inter_sad) };
16273			inter_sad as u64
16274		});
16275		__bindgen_bitfield_unit.set(82usize, 2u8, {
16276			let intra_sad: u32 = unsafe { ::std::mem::transmute(intra_sad) };
16277			intra_sad as u64
16278		});
16279		__bindgen_bitfield_unit.set(84usize, 1u8, {
16280			let distortion_type: u32 = unsafe { ::std::mem::transmute(distortion_type) };
16281			distortion_type as u64
16282		});
16283		__bindgen_bitfield_unit.set(85usize, 1u8, {
16284			let repartition_check_enable: u32 = unsafe { ::std::mem::transmute(repartition_check_enable) };
16285			repartition_check_enable as u64
16286		});
16287		__bindgen_bitfield_unit.set(86usize, 1u8, {
16288			let adaptive_search: u32 = unsafe { ::std::mem::transmute(adaptive_search) };
16289			adaptive_search as u64
16290		});
16291		__bindgen_bitfield_unit.set(87usize, 1u8, {
16292			let mv_predictor_enable: u32 = unsafe { ::std::mem::transmute(mv_predictor_enable) };
16293			mv_predictor_enable as u64
16294		});
16295		__bindgen_bitfield_unit.set(88usize, 1u8, {
16296			let mb_qp: u32 = unsafe { ::std::mem::transmute(mb_qp) };
16297			mb_qp as u64
16298		});
16299		__bindgen_bitfield_unit.set(89usize, 1u8, {
16300			let mb_input: u32 = unsafe { ::std::mem::transmute(mb_input) };
16301			mb_input as u64
16302		});
16303		__bindgen_bitfield_unit.set(90usize, 1u8, {
16304			let mb_size_ctrl: u32 = unsafe { ::std::mem::transmute(mb_size_ctrl) };
16305			mb_size_ctrl as u64
16306		});
16307		__bindgen_bitfield_unit.set(91usize, 1u8, {
16308			let colocated_mb_distortion: u32 = unsafe { ::std::mem::transmute(colocated_mb_distortion) };
16309			colocated_mb_distortion as u64
16310		});
16311		__bindgen_bitfield_unit.set(92usize, 4u8, {
16312			let reserved1: u32 = unsafe { ::std::mem::transmute(reserved1) };
16313			reserved1 as u64
16314		});
16315		__bindgen_bitfield_unit.set(96usize, 8u8, {
16316			let ref_width: u32 = unsafe { ::std::mem::transmute(ref_width) };
16317			ref_width as u64
16318		});
16319		__bindgen_bitfield_unit.set(104usize, 8u8, {
16320			let ref_height: u32 = unsafe { ::std::mem::transmute(ref_height) };
16321			ref_height as u64
16322		});
16323		__bindgen_bitfield_unit.set(112usize, 4u8, {
16324			let search_window: u32 = unsafe { ::std::mem::transmute(search_window) };
16325			search_window as u64
16326		});
16327		__bindgen_bitfield_unit.set(116usize, 12u8, {
16328			let reserved2: u32 = unsafe { ::std::mem::transmute(reserved2) };
16329			reserved2 as u64
16330		});
16331		__bindgen_bitfield_unit
16332	}
16333}
16334#[doc = " \\brief FEI frame level control buffer for H.264"]
16335pub type VAEncMiscParameterFEIFrameControlH264 = _VAEncMiscParameterFEIFrameControlH264;
16336#[doc = " \\brief FEI MB level control data structure"]
16337#[repr(C)]
16338#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
16339pub struct _VAEncFEIMBControlH264 {
16340	pub _bitfield_align_1: [u32; 0],
16341	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
16342	pub reserved1: u32,
16343	pub reserved2: u32,
16344	pub _bitfield_align_2: [u16; 0],
16345	pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>,
16346}
16347impl _VAEncFEIMBControlH264 {
16348	#[inline]
16349	pub fn force_to_intra(&self) -> u32 {
16350		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
16351	}
16352	#[inline]
16353	pub fn set_force_to_intra(&mut self, val: u32) {
16354		unsafe {
16355			let val: u32 = ::std::mem::transmute(val);
16356			self._bitfield_1.set(0usize, 1u8, val as u64)
16357		}
16358	}
16359	#[inline]
16360	pub unsafe fn force_to_intra_raw(this: *const Self) -> u32 {
16361		unsafe {
16362			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16363				::std::ptr::addr_of!((*this)._bitfield_1),
16364				0usize,
16365				1u8,
16366			) as u32)
16367		}
16368	}
16369	#[inline]
16370	pub unsafe fn set_force_to_intra_raw(this: *mut Self, val: u32) {
16371		unsafe {
16372			let val: u32 = ::std::mem::transmute(val);
16373			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16374				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16375				0usize,
16376				1u8,
16377				val as u64,
16378			)
16379		}
16380	}
16381	#[inline]
16382	pub fn force_to_skip(&self) -> u32 {
16383		unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
16384	}
16385	#[inline]
16386	pub fn set_force_to_skip(&mut self, val: u32) {
16387		unsafe {
16388			let val: u32 = ::std::mem::transmute(val);
16389			self._bitfield_1.set(1usize, 1u8, val as u64)
16390		}
16391	}
16392	#[inline]
16393	pub unsafe fn force_to_skip_raw(this: *const Self) -> u32 {
16394		unsafe {
16395			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16396				::std::ptr::addr_of!((*this)._bitfield_1),
16397				1usize,
16398				1u8,
16399			) as u32)
16400		}
16401	}
16402	#[inline]
16403	pub unsafe fn set_force_to_skip_raw(this: *mut Self, val: u32) {
16404		unsafe {
16405			let val: u32 = ::std::mem::transmute(val);
16406			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16407				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16408				1usize,
16409				1u8,
16410				val as u64,
16411			)
16412		}
16413	}
16414	#[inline]
16415	pub fn force_to_nonskip(&self) -> u32 {
16416		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
16417	}
16418	#[inline]
16419	pub fn set_force_to_nonskip(&mut self, val: u32) {
16420		unsafe {
16421			let val: u32 = ::std::mem::transmute(val);
16422			self._bitfield_1.set(2usize, 1u8, val as u64)
16423		}
16424	}
16425	#[inline]
16426	pub unsafe fn force_to_nonskip_raw(this: *const Self) -> u32 {
16427		unsafe {
16428			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16429				::std::ptr::addr_of!((*this)._bitfield_1),
16430				2usize,
16431				1u8,
16432			) as u32)
16433		}
16434	}
16435	#[inline]
16436	pub unsafe fn set_force_to_nonskip_raw(this: *mut Self, val: u32) {
16437		unsafe {
16438			let val: u32 = ::std::mem::transmute(val);
16439			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16440				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16441				2usize,
16442				1u8,
16443				val as u64,
16444			)
16445		}
16446	}
16447	#[inline]
16448	pub fn enable_direct_bias_adjustment(&self) -> u32 {
16449		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
16450	}
16451	#[inline]
16452	pub fn set_enable_direct_bias_adjustment(&mut self, val: u32) {
16453		unsafe {
16454			let val: u32 = ::std::mem::transmute(val);
16455			self._bitfield_1.set(3usize, 1u8, val as u64)
16456		}
16457	}
16458	#[inline]
16459	pub unsafe fn enable_direct_bias_adjustment_raw(this: *const Self) -> u32 {
16460		unsafe {
16461			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16462				::std::ptr::addr_of!((*this)._bitfield_1),
16463				3usize,
16464				1u8,
16465			) as u32)
16466		}
16467	}
16468	#[inline]
16469	pub unsafe fn set_enable_direct_bias_adjustment_raw(this: *mut Self, val: u32) {
16470		unsafe {
16471			let val: u32 = ::std::mem::transmute(val);
16472			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16473				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16474				3usize,
16475				1u8,
16476				val as u64,
16477			)
16478		}
16479	}
16480	#[inline]
16481	pub fn enable_motion_bias_adjustment(&self) -> u32 {
16482		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
16483	}
16484	#[inline]
16485	pub fn set_enable_motion_bias_adjustment(&mut self, val: u32) {
16486		unsafe {
16487			let val: u32 = ::std::mem::transmute(val);
16488			self._bitfield_1.set(4usize, 1u8, val as u64)
16489		}
16490	}
16491	#[inline]
16492	pub unsafe fn enable_motion_bias_adjustment_raw(this: *const Self) -> u32 {
16493		unsafe {
16494			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16495				::std::ptr::addr_of!((*this)._bitfield_1),
16496				4usize,
16497				1u8,
16498			) as u32)
16499		}
16500	}
16501	#[inline]
16502	pub unsafe fn set_enable_motion_bias_adjustment_raw(this: *mut Self, val: u32) {
16503		unsafe {
16504			let val: u32 = ::std::mem::transmute(val);
16505			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16506				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16507				4usize,
16508				1u8,
16509				val as u64,
16510			)
16511		}
16512	}
16513	#[inline]
16514	pub fn ext_mv_cost_scaling_factor(&self) -> u32 {
16515		unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) }
16516	}
16517	#[inline]
16518	pub fn set_ext_mv_cost_scaling_factor(&mut self, val: u32) {
16519		unsafe {
16520			let val: u32 = ::std::mem::transmute(val);
16521			self._bitfield_1.set(5usize, 3u8, val as u64)
16522		}
16523	}
16524	#[inline]
16525	pub unsafe fn ext_mv_cost_scaling_factor_raw(this: *const Self) -> u32 {
16526		unsafe {
16527			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16528				::std::ptr::addr_of!((*this)._bitfield_1),
16529				5usize,
16530				3u8,
16531			) as u32)
16532		}
16533	}
16534	#[inline]
16535	pub unsafe fn set_ext_mv_cost_scaling_factor_raw(this: *mut Self, val: u32) {
16536		unsafe {
16537			let val: u32 = ::std::mem::transmute(val);
16538			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16539				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16540				5usize,
16541				3u8,
16542				val as u64,
16543			)
16544		}
16545	}
16546	#[inline]
16547	pub fn reserved0(&self) -> u32 {
16548		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 24u8) as u32) }
16549	}
16550	#[inline]
16551	pub fn set_reserved0(&mut self, val: u32) {
16552		unsafe {
16553			let val: u32 = ::std::mem::transmute(val);
16554			self._bitfield_1.set(8usize, 24u8, val as u64)
16555		}
16556	}
16557	#[inline]
16558	pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
16559		unsafe {
16560			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16561				::std::ptr::addr_of!((*this)._bitfield_1),
16562				8usize,
16563				24u8,
16564			) as u32)
16565		}
16566	}
16567	#[inline]
16568	pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
16569		unsafe {
16570			let val: u32 = ::std::mem::transmute(val);
16571			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16572				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16573				8usize,
16574				24u8,
16575				val as u64,
16576			)
16577		}
16578	}
16579	#[inline]
16580	pub fn new_bitfield_1(
16581		force_to_intra: u32,
16582		force_to_skip: u32,
16583		force_to_nonskip: u32,
16584		enable_direct_bias_adjustment: u32,
16585		enable_motion_bias_adjustment: u32,
16586		ext_mv_cost_scaling_factor: u32,
16587		reserved0: u32,
16588	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
16589		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
16590		__bindgen_bitfield_unit.set(0usize, 1u8, {
16591			let force_to_intra: u32 = unsafe { ::std::mem::transmute(force_to_intra) };
16592			force_to_intra as u64
16593		});
16594		__bindgen_bitfield_unit.set(1usize, 1u8, {
16595			let force_to_skip: u32 = unsafe { ::std::mem::transmute(force_to_skip) };
16596			force_to_skip as u64
16597		});
16598		__bindgen_bitfield_unit.set(2usize, 1u8, {
16599			let force_to_nonskip: u32 = unsafe { ::std::mem::transmute(force_to_nonskip) };
16600			force_to_nonskip as u64
16601		});
16602		__bindgen_bitfield_unit.set(3usize, 1u8, {
16603			let enable_direct_bias_adjustment: u32 = unsafe { ::std::mem::transmute(enable_direct_bias_adjustment) };
16604			enable_direct_bias_adjustment as u64
16605		});
16606		__bindgen_bitfield_unit.set(4usize, 1u8, {
16607			let enable_motion_bias_adjustment: u32 = unsafe { ::std::mem::transmute(enable_motion_bias_adjustment) };
16608			enable_motion_bias_adjustment as u64
16609		});
16610		__bindgen_bitfield_unit.set(5usize, 3u8, {
16611			let ext_mv_cost_scaling_factor: u32 = unsafe { ::std::mem::transmute(ext_mv_cost_scaling_factor) };
16612			ext_mv_cost_scaling_factor as u64
16613		});
16614		__bindgen_bitfield_unit.set(8usize, 24u8, {
16615			let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
16616			reserved0 as u64
16617		});
16618		__bindgen_bitfield_unit
16619	}
16620	#[inline]
16621	pub fn reserved3(&self) -> u32 {
16622		unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 16u8) as u32) }
16623	}
16624	#[inline]
16625	pub fn set_reserved3(&mut self, val: u32) {
16626		unsafe {
16627			let val: u32 = ::std::mem::transmute(val);
16628			self._bitfield_2.set(0usize, 16u8, val as u64)
16629		}
16630	}
16631	#[inline]
16632	pub unsafe fn reserved3_raw(this: *const Self) -> u32 {
16633		unsafe {
16634			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16635				::std::ptr::addr_of!((*this)._bitfield_2),
16636				0usize,
16637				16u8,
16638			) as u32)
16639		}
16640	}
16641	#[inline]
16642	pub unsafe fn set_reserved3_raw(this: *mut Self, val: u32) {
16643		unsafe {
16644			let val: u32 = ::std::mem::transmute(val);
16645			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16646				::std::ptr::addr_of_mut!((*this)._bitfield_2),
16647				0usize,
16648				16u8,
16649				val as u64,
16650			)
16651		}
16652	}
16653	#[inline]
16654	pub fn target_size_in_word(&self) -> u32 {
16655		unsafe { ::std::mem::transmute(self._bitfield_2.get(16usize, 8u8) as u32) }
16656	}
16657	#[inline]
16658	pub fn set_target_size_in_word(&mut self, val: u32) {
16659		unsafe {
16660			let val: u32 = ::std::mem::transmute(val);
16661			self._bitfield_2.set(16usize, 8u8, val as u64)
16662		}
16663	}
16664	#[inline]
16665	pub unsafe fn target_size_in_word_raw(this: *const Self) -> u32 {
16666		unsafe {
16667			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16668				::std::ptr::addr_of!((*this)._bitfield_2),
16669				16usize,
16670				8u8,
16671			) as u32)
16672		}
16673	}
16674	#[inline]
16675	pub unsafe fn set_target_size_in_word_raw(this: *mut Self, val: u32) {
16676		unsafe {
16677			let val: u32 = ::std::mem::transmute(val);
16678			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16679				::std::ptr::addr_of_mut!((*this)._bitfield_2),
16680				16usize,
16681				8u8,
16682				val as u64,
16683			)
16684		}
16685	}
16686	#[inline]
16687	pub fn max_size_in_word(&self) -> u32 {
16688		unsafe { ::std::mem::transmute(self._bitfield_2.get(24usize, 8u8) as u32) }
16689	}
16690	#[inline]
16691	pub fn set_max_size_in_word(&mut self, val: u32) {
16692		unsafe {
16693			let val: u32 = ::std::mem::transmute(val);
16694			self._bitfield_2.set(24usize, 8u8, val as u64)
16695		}
16696	}
16697	#[inline]
16698	pub unsafe fn max_size_in_word_raw(this: *const Self) -> u32 {
16699		unsafe {
16700			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
16701				::std::ptr::addr_of!((*this)._bitfield_2),
16702				24usize,
16703				8u8,
16704			) as u32)
16705		}
16706	}
16707	#[inline]
16708	pub unsafe fn set_max_size_in_word_raw(this: *mut Self, val: u32) {
16709		unsafe {
16710			let val: u32 = ::std::mem::transmute(val);
16711			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
16712				::std::ptr::addr_of_mut!((*this)._bitfield_2),
16713				24usize,
16714				8u8,
16715				val as u64,
16716			)
16717		}
16718	}
16719	#[inline]
16720	pub fn new_bitfield_2(
16721		reserved3: u32,
16722		target_size_in_word: u32,
16723		max_size_in_word: u32,
16724	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
16725		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
16726		__bindgen_bitfield_unit.set(0usize, 16u8, {
16727			let reserved3: u32 = unsafe { ::std::mem::transmute(reserved3) };
16728			reserved3 as u64
16729		});
16730		__bindgen_bitfield_unit.set(16usize, 8u8, {
16731			let target_size_in_word: u32 = unsafe { ::std::mem::transmute(target_size_in_word) };
16732			target_size_in_word as u64
16733		});
16734		__bindgen_bitfield_unit.set(24usize, 8u8, {
16735			let max_size_in_word: u32 = unsafe { ::std::mem::transmute(max_size_in_word) };
16736			max_size_in_word as u64
16737		});
16738		__bindgen_bitfield_unit
16739	}
16740}
16741#[doc = " \\brief FEI MB level control data structure"]
16742pub type VAEncFEIMBControlH264 = _VAEncFEIMBControlH264;
16743#[doc = " \\brief Application can use this definition as reference to allocate the buffer\n based on MaxNumPredictor returned from attribute VAConfigAttribFEIMVPredictors query."]
16744#[repr(C)]
16745#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
16746pub struct _VAEncFEIMVPredictorH264 {
16747	pub ref_idx: [_VAEncFEIMVPredictorH264__bindgen_ty_1; 4usize],
16748	pub reserved: u32,
16749	#[doc = " \\brief MV. MaxNumPredictor must be the returned value from attribute VAConfigAttribFEIMVPredictors query.\n Even application doesn't use the maximum predictors, the VAFEIMVPredictorH264 structure size\n has to be defined as maximum so each MB can be at a fixed location.\n Note that 0x8000 must be used for correspondent intra block."]
16750	pub mv: [VAMotionVector; 4usize],
16751}
16752#[doc = " \\brief Reference index corresponding to the entry of RefPicList0 & RefPicList1 in VAEncSliceParameterBufferH264.\n Note that RefPicList0 & RefPicList1 needs to be the same for all slices.\n ref_idx_l0_x : index to RefPicList0; ref_idx_l1_x : index to RefPicList1; x : 0 - MaxNumPredictor."]
16753#[repr(C)]
16754#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
16755pub struct _VAEncFEIMVPredictorH264__bindgen_ty_1 {
16756	pub _bitfield_align_1: [u8; 0],
16757	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
16758}
16759impl _VAEncFEIMVPredictorH264__bindgen_ty_1 {
16760	#[inline]
16761	pub fn ref_idx_l0(&self) -> u8 {
16762		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) }
16763	}
16764	#[inline]
16765	pub fn set_ref_idx_l0(&mut self, val: u8) {
16766		unsafe {
16767			let val: u8 = ::std::mem::transmute(val);
16768			self._bitfield_1.set(0usize, 4u8, val as u64)
16769		}
16770	}
16771	#[inline]
16772	pub unsafe fn ref_idx_l0_raw(this: *const Self) -> u8 {
16773		unsafe {
16774			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
16775				::std::ptr::addr_of!((*this)._bitfield_1),
16776				0usize,
16777				4u8,
16778			) as u8)
16779		}
16780	}
16781	#[inline]
16782	pub unsafe fn set_ref_idx_l0_raw(this: *mut Self, val: u8) {
16783		unsafe {
16784			let val: u8 = ::std::mem::transmute(val);
16785			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
16786				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16787				0usize,
16788				4u8,
16789				val as u64,
16790			)
16791		}
16792	}
16793	#[inline]
16794	pub fn ref_idx_l1(&self) -> u8 {
16795		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) }
16796	}
16797	#[inline]
16798	pub fn set_ref_idx_l1(&mut self, val: u8) {
16799		unsafe {
16800			let val: u8 = ::std::mem::transmute(val);
16801			self._bitfield_1.set(4usize, 4u8, val as u64)
16802		}
16803	}
16804	#[inline]
16805	pub unsafe fn ref_idx_l1_raw(this: *const Self) -> u8 {
16806		unsafe {
16807			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
16808				::std::ptr::addr_of!((*this)._bitfield_1),
16809				4usize,
16810				4u8,
16811			) as u8)
16812		}
16813	}
16814	#[inline]
16815	pub unsafe fn set_ref_idx_l1_raw(this: *mut Self, val: u8) {
16816		unsafe {
16817			let val: u8 = ::std::mem::transmute(val);
16818			<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
16819				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16820				4usize,
16821				4u8,
16822				val as u64,
16823			)
16824		}
16825	}
16826	#[inline]
16827	pub fn new_bitfield_1(ref_idx_l0: u8, ref_idx_l1: u8) -> __BindgenBitfieldUnit<[u8; 1usize]> {
16828		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
16829		__bindgen_bitfield_unit.set(0usize, 4u8, {
16830			let ref_idx_l0: u8 = unsafe { ::std::mem::transmute(ref_idx_l0) };
16831			ref_idx_l0 as u64
16832		});
16833		__bindgen_bitfield_unit.set(4usize, 4u8, {
16834			let ref_idx_l1: u8 = unsafe { ::std::mem::transmute(ref_idx_l1) };
16835			ref_idx_l1 as u64
16836		});
16837		__bindgen_bitfield_unit
16838	}
16839}
16840#[doc = " \\brief Application can use this definition as reference to allocate the buffer\n based on MaxNumPredictor returned from attribute VAConfigAttribFEIMVPredictors query."]
16841pub type VAEncFEIMVPredictorH264 = _VAEncFEIMVPredictorH264;
16842#[doc = " \\brief VAEncFEIMBCodeH264 defines the data structure for VAEncFEIMBCodeBufferType per 16x16 MB block.\n it is output buffer of ENC and ENC_PAK modes, it's also input buffer of PAK mode.\n The 16x16 block is in raster scan order. Buffer size shall not be less than the number of 16x16 blocks\n multiplied by sizeof(VAEncFEIMBCodeH264). Note that, when separate ENC and PAK is enabled,\n the exact layout of this buffer is needed for PAK input. App can reuse this buffer,\n or copy to a different buffer as PAK input, reserved elements must not be modified when used as PAK input."]
16843#[repr(C)]
16844#[derive(Copy, Clone)]
16845pub struct _VAEncFEIMBCodeH264 {
16846	pub reserved0: [u32; 3usize],
16847	pub _bitfield_align_1: [u32; 0],
16848	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 16usize]>,
16849	pub mb_mode: _VAEncFEIMBCodeH264__bindgen_ty_1,
16850	pub _bitfield_align_2: [u16; 0],
16851	pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>,
16852	pub reserved9: [u32; 4usize],
16853	pub reserved10: u32,
16854}
16855#[repr(C)]
16856#[derive(Copy, Clone)]
16857pub union _VAEncFEIMBCodeH264__bindgen_ty_1 {
16858	pub intra_mb: _VAEncFEIMBCodeH264__bindgen_ty_1__bindgen_ty_1,
16859	pub inter_mb: _VAEncFEIMBCodeH264__bindgen_ty_1__bindgen_ty_2,
16860}
16861#[repr(C)]
16862#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
16863pub struct _VAEncFEIMBCodeH264__bindgen_ty_1__bindgen_ty_1 {
16864	pub _bitfield_align_1: [u32; 0],
16865	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 12usize]>,
16866}
16867impl _VAEncFEIMBCodeH264__bindgen_ty_1__bindgen_ty_1 {
16868	#[inline]
16869	pub fn luma_intra_pred_modes0(&self) -> u32 {
16870		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
16871	}
16872	#[inline]
16873	pub fn set_luma_intra_pred_modes0(&mut self, val: u32) {
16874		unsafe {
16875			let val: u32 = ::std::mem::transmute(val);
16876			self._bitfield_1.set(0usize, 16u8, val as u64)
16877		}
16878	}
16879	#[inline]
16880	pub unsafe fn luma_intra_pred_modes0_raw(this: *const Self) -> u32 {
16881		unsafe {
16882			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
16883				::std::ptr::addr_of!((*this)._bitfield_1),
16884				0usize,
16885				16u8,
16886			) as u32)
16887		}
16888	}
16889	#[inline]
16890	pub unsafe fn set_luma_intra_pred_modes0_raw(this: *mut Self, val: u32) {
16891		unsafe {
16892			let val: u32 = ::std::mem::transmute(val);
16893			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
16894				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16895				0usize,
16896				16u8,
16897				val as u64,
16898			)
16899		}
16900	}
16901	#[inline]
16902	pub fn luma_intra_pred_modes1(&self) -> u32 {
16903		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
16904	}
16905	#[inline]
16906	pub fn set_luma_intra_pred_modes1(&mut self, val: u32) {
16907		unsafe {
16908			let val: u32 = ::std::mem::transmute(val);
16909			self._bitfield_1.set(16usize, 16u8, val as u64)
16910		}
16911	}
16912	#[inline]
16913	pub unsafe fn luma_intra_pred_modes1_raw(this: *const Self) -> u32 {
16914		unsafe {
16915			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
16916				::std::ptr::addr_of!((*this)._bitfield_1),
16917				16usize,
16918				16u8,
16919			) as u32)
16920		}
16921	}
16922	#[inline]
16923	pub unsafe fn set_luma_intra_pred_modes1_raw(this: *mut Self, val: u32) {
16924		unsafe {
16925			let val: u32 = ::std::mem::transmute(val);
16926			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
16927				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16928				16usize,
16929				16u8,
16930				val as u64,
16931			)
16932		}
16933	}
16934	#[inline]
16935	pub fn luma_intra_pred_modes2(&self) -> u32 {
16936		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 16u8) as u32) }
16937	}
16938	#[inline]
16939	pub fn set_luma_intra_pred_modes2(&mut self, val: u32) {
16940		unsafe {
16941			let val: u32 = ::std::mem::transmute(val);
16942			self._bitfield_1.set(32usize, 16u8, val as u64)
16943		}
16944	}
16945	#[inline]
16946	pub unsafe fn luma_intra_pred_modes2_raw(this: *const Self) -> u32 {
16947		unsafe {
16948			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
16949				::std::ptr::addr_of!((*this)._bitfield_1),
16950				32usize,
16951				16u8,
16952			) as u32)
16953		}
16954	}
16955	#[inline]
16956	pub unsafe fn set_luma_intra_pred_modes2_raw(this: *mut Self, val: u32) {
16957		unsafe {
16958			let val: u32 = ::std::mem::transmute(val);
16959			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
16960				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16961				32usize,
16962				16u8,
16963				val as u64,
16964			)
16965		}
16966	}
16967	#[inline]
16968	pub fn luma_intra_pred_modes3(&self) -> u32 {
16969		unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 16u8) as u32) }
16970	}
16971	#[inline]
16972	pub fn set_luma_intra_pred_modes3(&mut self, val: u32) {
16973		unsafe {
16974			let val: u32 = ::std::mem::transmute(val);
16975			self._bitfield_1.set(48usize, 16u8, val as u64)
16976		}
16977	}
16978	#[inline]
16979	pub unsafe fn luma_intra_pred_modes3_raw(this: *const Self) -> u32 {
16980		unsafe {
16981			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
16982				::std::ptr::addr_of!((*this)._bitfield_1),
16983				48usize,
16984				16u8,
16985			) as u32)
16986		}
16987	}
16988	#[inline]
16989	pub unsafe fn set_luma_intra_pred_modes3_raw(this: *mut Self, val: u32) {
16990		unsafe {
16991			let val: u32 = ::std::mem::transmute(val);
16992			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
16993				::std::ptr::addr_of_mut!((*this)._bitfield_1),
16994				48usize,
16995				16u8,
16996				val as u64,
16997			)
16998		}
16999	}
17000	#[inline]
17001	pub fn chroma_intra_pred_mode(&self) -> u32 {
17002		unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 2u8) as u32) }
17003	}
17004	#[inline]
17005	pub fn set_chroma_intra_pred_mode(&mut self, val: u32) {
17006		unsafe {
17007			let val: u32 = ::std::mem::transmute(val);
17008			self._bitfield_1.set(64usize, 2u8, val as u64)
17009		}
17010	}
17011	#[inline]
17012	pub unsafe fn chroma_intra_pred_mode_raw(this: *const Self) -> u32 {
17013		unsafe {
17014			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17015				::std::ptr::addr_of!((*this)._bitfield_1),
17016				64usize,
17017				2u8,
17018			) as u32)
17019		}
17020	}
17021	#[inline]
17022	pub unsafe fn set_chroma_intra_pred_mode_raw(this: *mut Self, val: u32) {
17023		unsafe {
17024			let val: u32 = ::std::mem::transmute(val);
17025			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17026				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17027				64usize,
17028				2u8,
17029				val as u64,
17030			)
17031		}
17032	}
17033	#[inline]
17034	pub fn intra_pred_avail_flag(&self) -> u32 {
17035		unsafe { ::std::mem::transmute(self._bitfield_1.get(66usize, 5u8) as u32) }
17036	}
17037	#[inline]
17038	pub fn set_intra_pred_avail_flag(&mut self, val: u32) {
17039		unsafe {
17040			let val: u32 = ::std::mem::transmute(val);
17041			self._bitfield_1.set(66usize, 5u8, val as u64)
17042		}
17043	}
17044	#[inline]
17045	pub unsafe fn intra_pred_avail_flag_raw(this: *const Self) -> u32 {
17046		unsafe {
17047			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17048				::std::ptr::addr_of!((*this)._bitfield_1),
17049				66usize,
17050				5u8,
17051			) as u32)
17052		}
17053	}
17054	#[inline]
17055	pub unsafe fn set_intra_pred_avail_flag_raw(this: *mut Self, val: u32) {
17056		unsafe {
17057			let val: u32 = ::std::mem::transmute(val);
17058			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17059				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17060				66usize,
17061				5u8,
17062				val as u64,
17063			)
17064		}
17065	}
17066	#[inline]
17067	pub fn intra_pred_avail_flagF(&self) -> u32 {
17068		unsafe { ::std::mem::transmute(self._bitfield_1.get(71usize, 1u8) as u32) }
17069	}
17070	#[inline]
17071	pub fn set_intra_pred_avail_flagF(&mut self, val: u32) {
17072		unsafe {
17073			let val: u32 = ::std::mem::transmute(val);
17074			self._bitfield_1.set(71usize, 1u8, val as u64)
17075		}
17076	}
17077	#[inline]
17078	pub unsafe fn intra_pred_avail_flagF_raw(this: *const Self) -> u32 {
17079		unsafe {
17080			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17081				::std::ptr::addr_of!((*this)._bitfield_1),
17082				71usize,
17083				1u8,
17084			) as u32)
17085		}
17086	}
17087	#[inline]
17088	pub unsafe fn set_intra_pred_avail_flagF_raw(this: *mut Self, val: u32) {
17089		unsafe {
17090			let val: u32 = ::std::mem::transmute(val);
17091			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17092				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17093				71usize,
17094				1u8,
17095				val as u64,
17096			)
17097		}
17098	}
17099	#[inline]
17100	pub fn reserved6(&self) -> u32 {
17101		unsafe { ::std::mem::transmute(self._bitfield_1.get(72usize, 24u8) as u32) }
17102	}
17103	#[inline]
17104	pub fn set_reserved6(&mut self, val: u32) {
17105		unsafe {
17106			let val: u32 = ::std::mem::transmute(val);
17107			self._bitfield_1.set(72usize, 24u8, val as u64)
17108		}
17109	}
17110	#[inline]
17111	pub unsafe fn reserved6_raw(this: *const Self) -> u32 {
17112		unsafe {
17113			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17114				::std::ptr::addr_of!((*this)._bitfield_1),
17115				72usize,
17116				24u8,
17117			) as u32)
17118		}
17119	}
17120	#[inline]
17121	pub unsafe fn set_reserved6_raw(this: *mut Self, val: u32) {
17122		unsafe {
17123			let val: u32 = ::std::mem::transmute(val);
17124			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17125				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17126				72usize,
17127				24u8,
17128				val as u64,
17129			)
17130		}
17131	}
17132	#[inline]
17133	pub fn new_bitfield_1(
17134		luma_intra_pred_modes0: u32,
17135		luma_intra_pred_modes1: u32,
17136		luma_intra_pred_modes2: u32,
17137		luma_intra_pred_modes3: u32,
17138		chroma_intra_pred_mode: u32,
17139		intra_pred_avail_flag: u32,
17140		intra_pred_avail_flagF: u32,
17141		reserved6: u32,
17142	) -> __BindgenBitfieldUnit<[u8; 12usize]> {
17143		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 12usize]> = Default::default();
17144		__bindgen_bitfield_unit.set(0usize, 16u8, {
17145			let luma_intra_pred_modes0: u32 = unsafe { ::std::mem::transmute(luma_intra_pred_modes0) };
17146			luma_intra_pred_modes0 as u64
17147		});
17148		__bindgen_bitfield_unit.set(16usize, 16u8, {
17149			let luma_intra_pred_modes1: u32 = unsafe { ::std::mem::transmute(luma_intra_pred_modes1) };
17150			luma_intra_pred_modes1 as u64
17151		});
17152		__bindgen_bitfield_unit.set(32usize, 16u8, {
17153			let luma_intra_pred_modes2: u32 = unsafe { ::std::mem::transmute(luma_intra_pred_modes2) };
17154			luma_intra_pred_modes2 as u64
17155		});
17156		__bindgen_bitfield_unit.set(48usize, 16u8, {
17157			let luma_intra_pred_modes3: u32 = unsafe { ::std::mem::transmute(luma_intra_pred_modes3) };
17158			luma_intra_pred_modes3 as u64
17159		});
17160		__bindgen_bitfield_unit.set(64usize, 2u8, {
17161			let chroma_intra_pred_mode: u32 = unsafe { ::std::mem::transmute(chroma_intra_pred_mode) };
17162			chroma_intra_pred_mode as u64
17163		});
17164		__bindgen_bitfield_unit.set(66usize, 5u8, {
17165			let intra_pred_avail_flag: u32 = unsafe { ::std::mem::transmute(intra_pred_avail_flag) };
17166			intra_pred_avail_flag as u64
17167		});
17168		__bindgen_bitfield_unit.set(71usize, 1u8, {
17169			let intra_pred_avail_flagF: u32 = unsafe { ::std::mem::transmute(intra_pred_avail_flagF) };
17170			intra_pred_avail_flagF as u64
17171		});
17172		__bindgen_bitfield_unit.set(72usize, 24u8, {
17173			let reserved6: u32 = unsafe { ::std::mem::transmute(reserved6) };
17174			reserved6 as u64
17175		});
17176		__bindgen_bitfield_unit
17177	}
17178}
17179#[repr(C)]
17180#[repr(align(4))]
17181#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
17182pub struct _VAEncFEIMBCodeH264__bindgen_ty_1__bindgen_ty_2 {
17183	pub _bitfield_align_1: [u16; 0],
17184	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 12usize]>,
17185}
17186impl _VAEncFEIMBCodeH264__bindgen_ty_1__bindgen_ty_2 {
17187	#[inline]
17188	pub fn sub_mb_shapes(&self) -> u32 {
17189		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
17190	}
17191	#[inline]
17192	pub fn set_sub_mb_shapes(&mut self, val: u32) {
17193		unsafe {
17194			let val: u32 = ::std::mem::transmute(val);
17195			self._bitfield_1.set(0usize, 8u8, val as u64)
17196		}
17197	}
17198	#[inline]
17199	pub unsafe fn sub_mb_shapes_raw(this: *const Self) -> u32 {
17200		unsafe {
17201			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17202				::std::ptr::addr_of!((*this)._bitfield_1),
17203				0usize,
17204				8u8,
17205			) as u32)
17206		}
17207	}
17208	#[inline]
17209	pub unsafe fn set_sub_mb_shapes_raw(this: *mut Self, val: u32) {
17210		unsafe {
17211			let val: u32 = ::std::mem::transmute(val);
17212			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17213				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17214				0usize,
17215				8u8,
17216				val as u64,
17217			)
17218		}
17219	}
17220	#[inline]
17221	pub fn sub_mb_pred_modes(&self) -> u32 {
17222		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
17223	}
17224	#[inline]
17225	pub fn set_sub_mb_pred_modes(&mut self, val: u32) {
17226		unsafe {
17227			let val: u32 = ::std::mem::transmute(val);
17228			self._bitfield_1.set(8usize, 8u8, val as u64)
17229		}
17230	}
17231	#[inline]
17232	pub unsafe fn sub_mb_pred_modes_raw(this: *const Self) -> u32 {
17233		unsafe {
17234			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17235				::std::ptr::addr_of!((*this)._bitfield_1),
17236				8usize,
17237				8u8,
17238			) as u32)
17239		}
17240	}
17241	#[inline]
17242	pub unsafe fn set_sub_mb_pred_modes_raw(this: *mut Self, val: u32) {
17243		unsafe {
17244			let val: u32 = ::std::mem::transmute(val);
17245			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17246				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17247				8usize,
17248				8u8,
17249				val as u64,
17250			)
17251		}
17252	}
17253	#[inline]
17254	pub fn reserved7(&self) -> u32 {
17255		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
17256	}
17257	#[inline]
17258	pub fn set_reserved7(&mut self, val: u32) {
17259		unsafe {
17260			let val: u32 = ::std::mem::transmute(val);
17261			self._bitfield_1.set(16usize, 16u8, val as u64)
17262		}
17263	}
17264	#[inline]
17265	pub unsafe fn reserved7_raw(this: *const Self) -> u32 {
17266		unsafe {
17267			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17268				::std::ptr::addr_of!((*this)._bitfield_1),
17269				16usize,
17270				16u8,
17271			) as u32)
17272		}
17273	}
17274	#[inline]
17275	pub unsafe fn set_reserved7_raw(this: *mut Self, val: u32) {
17276		unsafe {
17277			let val: u32 = ::std::mem::transmute(val);
17278			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17279				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17280				16usize,
17281				16u8,
17282				val as u64,
17283			)
17284		}
17285	}
17286	#[inline]
17287	pub fn ref_idx_l0_0(&self) -> u32 {
17288		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 8u8) as u32) }
17289	}
17290	#[inline]
17291	pub fn set_ref_idx_l0_0(&mut self, val: u32) {
17292		unsafe {
17293			let val: u32 = ::std::mem::transmute(val);
17294			self._bitfield_1.set(32usize, 8u8, val as u64)
17295		}
17296	}
17297	#[inline]
17298	pub unsafe fn ref_idx_l0_0_raw(this: *const Self) -> u32 {
17299		unsafe {
17300			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17301				::std::ptr::addr_of!((*this)._bitfield_1),
17302				32usize,
17303				8u8,
17304			) as u32)
17305		}
17306	}
17307	#[inline]
17308	pub unsafe fn set_ref_idx_l0_0_raw(this: *mut Self, val: u32) {
17309		unsafe {
17310			let val: u32 = ::std::mem::transmute(val);
17311			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17312				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17313				32usize,
17314				8u8,
17315				val as u64,
17316			)
17317		}
17318	}
17319	#[inline]
17320	pub fn ref_idx_l0_1(&self) -> u32 {
17321		unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 8u8) as u32) }
17322	}
17323	#[inline]
17324	pub fn set_ref_idx_l0_1(&mut self, val: u32) {
17325		unsafe {
17326			let val: u32 = ::std::mem::transmute(val);
17327			self._bitfield_1.set(40usize, 8u8, val as u64)
17328		}
17329	}
17330	#[inline]
17331	pub unsafe fn ref_idx_l0_1_raw(this: *const Self) -> u32 {
17332		unsafe {
17333			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17334				::std::ptr::addr_of!((*this)._bitfield_1),
17335				40usize,
17336				8u8,
17337			) as u32)
17338		}
17339	}
17340	#[inline]
17341	pub unsafe fn set_ref_idx_l0_1_raw(this: *mut Self, val: u32) {
17342		unsafe {
17343			let val: u32 = ::std::mem::transmute(val);
17344			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17345				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17346				40usize,
17347				8u8,
17348				val as u64,
17349			)
17350		}
17351	}
17352	#[inline]
17353	pub fn ref_idx_l0_2(&self) -> u32 {
17354		unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 8u8) as u32) }
17355	}
17356	#[inline]
17357	pub fn set_ref_idx_l0_2(&mut self, val: u32) {
17358		unsafe {
17359			let val: u32 = ::std::mem::transmute(val);
17360			self._bitfield_1.set(48usize, 8u8, val as u64)
17361		}
17362	}
17363	#[inline]
17364	pub unsafe fn ref_idx_l0_2_raw(this: *const Self) -> u32 {
17365		unsafe {
17366			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17367				::std::ptr::addr_of!((*this)._bitfield_1),
17368				48usize,
17369				8u8,
17370			) as u32)
17371		}
17372	}
17373	#[inline]
17374	pub unsafe fn set_ref_idx_l0_2_raw(this: *mut Self, val: u32) {
17375		unsafe {
17376			let val: u32 = ::std::mem::transmute(val);
17377			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17378				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17379				48usize,
17380				8u8,
17381				val as u64,
17382			)
17383		}
17384	}
17385	#[inline]
17386	pub fn ref_idx_l0_3(&self) -> u32 {
17387		unsafe { ::std::mem::transmute(self._bitfield_1.get(56usize, 8u8) as u32) }
17388	}
17389	#[inline]
17390	pub fn set_ref_idx_l0_3(&mut self, val: u32) {
17391		unsafe {
17392			let val: u32 = ::std::mem::transmute(val);
17393			self._bitfield_1.set(56usize, 8u8, val as u64)
17394		}
17395	}
17396	#[inline]
17397	pub unsafe fn ref_idx_l0_3_raw(this: *const Self) -> u32 {
17398		unsafe {
17399			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17400				::std::ptr::addr_of!((*this)._bitfield_1),
17401				56usize,
17402				8u8,
17403			) as u32)
17404		}
17405	}
17406	#[inline]
17407	pub unsafe fn set_ref_idx_l0_3_raw(this: *mut Self, val: u32) {
17408		unsafe {
17409			let val: u32 = ::std::mem::transmute(val);
17410			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17411				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17412				56usize,
17413				8u8,
17414				val as u64,
17415			)
17416		}
17417	}
17418	#[inline]
17419	pub fn ref_idx_l1_0(&self) -> u32 {
17420		unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 8u8) as u32) }
17421	}
17422	#[inline]
17423	pub fn set_ref_idx_l1_0(&mut self, val: u32) {
17424		unsafe {
17425			let val: u32 = ::std::mem::transmute(val);
17426			self._bitfield_1.set(64usize, 8u8, val as u64)
17427		}
17428	}
17429	#[inline]
17430	pub unsafe fn ref_idx_l1_0_raw(this: *const Self) -> u32 {
17431		unsafe {
17432			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17433				::std::ptr::addr_of!((*this)._bitfield_1),
17434				64usize,
17435				8u8,
17436			) as u32)
17437		}
17438	}
17439	#[inline]
17440	pub unsafe fn set_ref_idx_l1_0_raw(this: *mut Self, val: u32) {
17441		unsafe {
17442			let val: u32 = ::std::mem::transmute(val);
17443			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17444				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17445				64usize,
17446				8u8,
17447				val as u64,
17448			)
17449		}
17450	}
17451	#[inline]
17452	pub fn ref_idx_l1_1(&self) -> u32 {
17453		unsafe { ::std::mem::transmute(self._bitfield_1.get(72usize, 8u8) as u32) }
17454	}
17455	#[inline]
17456	pub fn set_ref_idx_l1_1(&mut self, val: u32) {
17457		unsafe {
17458			let val: u32 = ::std::mem::transmute(val);
17459			self._bitfield_1.set(72usize, 8u8, val as u64)
17460		}
17461	}
17462	#[inline]
17463	pub unsafe fn ref_idx_l1_1_raw(this: *const Self) -> u32 {
17464		unsafe {
17465			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17466				::std::ptr::addr_of!((*this)._bitfield_1),
17467				72usize,
17468				8u8,
17469			) as u32)
17470		}
17471	}
17472	#[inline]
17473	pub unsafe fn set_ref_idx_l1_1_raw(this: *mut Self, val: u32) {
17474		unsafe {
17475			let val: u32 = ::std::mem::transmute(val);
17476			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17477				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17478				72usize,
17479				8u8,
17480				val as u64,
17481			)
17482		}
17483	}
17484	#[inline]
17485	pub fn ref_idx_l1_2(&self) -> u32 {
17486		unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 8u8) as u32) }
17487	}
17488	#[inline]
17489	pub fn set_ref_idx_l1_2(&mut self, val: u32) {
17490		unsafe {
17491			let val: u32 = ::std::mem::transmute(val);
17492			self._bitfield_1.set(80usize, 8u8, val as u64)
17493		}
17494	}
17495	#[inline]
17496	pub unsafe fn ref_idx_l1_2_raw(this: *const Self) -> u32 {
17497		unsafe {
17498			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17499				::std::ptr::addr_of!((*this)._bitfield_1),
17500				80usize,
17501				8u8,
17502			) as u32)
17503		}
17504	}
17505	#[inline]
17506	pub unsafe fn set_ref_idx_l1_2_raw(this: *mut Self, val: u32) {
17507		unsafe {
17508			let val: u32 = ::std::mem::transmute(val);
17509			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17510				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17511				80usize,
17512				8u8,
17513				val as u64,
17514			)
17515		}
17516	}
17517	#[inline]
17518	pub fn ref_idx_l1_3(&self) -> u32 {
17519		unsafe { ::std::mem::transmute(self._bitfield_1.get(88usize, 8u8) as u32) }
17520	}
17521	#[inline]
17522	pub fn set_ref_idx_l1_3(&mut self, val: u32) {
17523		unsafe {
17524			let val: u32 = ::std::mem::transmute(val);
17525			self._bitfield_1.set(88usize, 8u8, val as u64)
17526		}
17527	}
17528	#[inline]
17529	pub unsafe fn ref_idx_l1_3_raw(this: *const Self) -> u32 {
17530		unsafe {
17531			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get(
17532				::std::ptr::addr_of!((*this)._bitfield_1),
17533				88usize,
17534				8u8,
17535			) as u32)
17536		}
17537	}
17538	#[inline]
17539	pub unsafe fn set_ref_idx_l1_3_raw(this: *mut Self, val: u32) {
17540		unsafe {
17541			let val: u32 = ::std::mem::transmute(val);
17542			<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set(
17543				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17544				88usize,
17545				8u8,
17546				val as u64,
17547			)
17548		}
17549	}
17550	#[inline]
17551	pub fn new_bitfield_1(
17552		sub_mb_shapes: u32,
17553		sub_mb_pred_modes: u32,
17554		reserved7: u32,
17555		ref_idx_l0_0: u32,
17556		ref_idx_l0_1: u32,
17557		ref_idx_l0_2: u32,
17558		ref_idx_l0_3: u32,
17559		ref_idx_l1_0: u32,
17560		ref_idx_l1_1: u32,
17561		ref_idx_l1_2: u32,
17562		ref_idx_l1_3: u32,
17563	) -> __BindgenBitfieldUnit<[u8; 12usize]> {
17564		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 12usize]> = Default::default();
17565		__bindgen_bitfield_unit.set(0usize, 8u8, {
17566			let sub_mb_shapes: u32 = unsafe { ::std::mem::transmute(sub_mb_shapes) };
17567			sub_mb_shapes as u64
17568		});
17569		__bindgen_bitfield_unit.set(8usize, 8u8, {
17570			let sub_mb_pred_modes: u32 = unsafe { ::std::mem::transmute(sub_mb_pred_modes) };
17571			sub_mb_pred_modes as u64
17572		});
17573		__bindgen_bitfield_unit.set(16usize, 16u8, {
17574			let reserved7: u32 = unsafe { ::std::mem::transmute(reserved7) };
17575			reserved7 as u64
17576		});
17577		__bindgen_bitfield_unit.set(32usize, 8u8, {
17578			let ref_idx_l0_0: u32 = unsafe { ::std::mem::transmute(ref_idx_l0_0) };
17579			ref_idx_l0_0 as u64
17580		});
17581		__bindgen_bitfield_unit.set(40usize, 8u8, {
17582			let ref_idx_l0_1: u32 = unsafe { ::std::mem::transmute(ref_idx_l0_1) };
17583			ref_idx_l0_1 as u64
17584		});
17585		__bindgen_bitfield_unit.set(48usize, 8u8, {
17586			let ref_idx_l0_2: u32 = unsafe { ::std::mem::transmute(ref_idx_l0_2) };
17587			ref_idx_l0_2 as u64
17588		});
17589		__bindgen_bitfield_unit.set(56usize, 8u8, {
17590			let ref_idx_l0_3: u32 = unsafe { ::std::mem::transmute(ref_idx_l0_3) };
17591			ref_idx_l0_3 as u64
17592		});
17593		__bindgen_bitfield_unit.set(64usize, 8u8, {
17594			let ref_idx_l1_0: u32 = unsafe { ::std::mem::transmute(ref_idx_l1_0) };
17595			ref_idx_l1_0 as u64
17596		});
17597		__bindgen_bitfield_unit.set(72usize, 8u8, {
17598			let ref_idx_l1_1: u32 = unsafe { ::std::mem::transmute(ref_idx_l1_1) };
17599			ref_idx_l1_1 as u64
17600		});
17601		__bindgen_bitfield_unit.set(80usize, 8u8, {
17602			let ref_idx_l1_2: u32 = unsafe { ::std::mem::transmute(ref_idx_l1_2) };
17603			ref_idx_l1_2 as u64
17604		});
17605		__bindgen_bitfield_unit.set(88usize, 8u8, {
17606			let ref_idx_l1_3: u32 = unsafe { ::std::mem::transmute(ref_idx_l1_3) };
17607			ref_idx_l1_3 as u64
17608		});
17609		__bindgen_bitfield_unit
17610	}
17611}
17612impl Default for _VAEncFEIMBCodeH264__bindgen_ty_1 {
17613	fn default() -> Self {
17614		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
17615		unsafe {
17616			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
17617			s.assume_init()
17618		}
17619	}
17620}
17621impl Default for _VAEncFEIMBCodeH264 {
17622	fn default() -> Self {
17623		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
17624		unsafe {
17625			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
17626			s.assume_init()
17627		}
17628	}
17629}
17630impl _VAEncFEIMBCodeH264 {
17631	#[inline]
17632	pub fn inter_mb_mode(&self) -> u32 {
17633		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
17634	}
17635	#[inline]
17636	pub fn set_inter_mb_mode(&mut self, val: u32) {
17637		unsafe {
17638			let val: u32 = ::std::mem::transmute(val);
17639			self._bitfield_1.set(0usize, 2u8, val as u64)
17640		}
17641	}
17642	#[inline]
17643	pub unsafe fn inter_mb_mode_raw(this: *const Self) -> u32 {
17644		unsafe {
17645			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17646				::std::ptr::addr_of!((*this)._bitfield_1),
17647				0usize,
17648				2u8,
17649			) as u32)
17650		}
17651	}
17652	#[inline]
17653	pub unsafe fn set_inter_mb_mode_raw(this: *mut Self, val: u32) {
17654		unsafe {
17655			let val: u32 = ::std::mem::transmute(val);
17656			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17657				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17658				0usize,
17659				2u8,
17660				val as u64,
17661			)
17662		}
17663	}
17664	#[inline]
17665	pub fn mb_skip_flag(&self) -> u32 {
17666		unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
17667	}
17668	#[inline]
17669	pub fn set_mb_skip_flag(&mut self, val: u32) {
17670		unsafe {
17671			let val: u32 = ::std::mem::transmute(val);
17672			self._bitfield_1.set(2usize, 1u8, val as u64)
17673		}
17674	}
17675	#[inline]
17676	pub unsafe fn mb_skip_flag_raw(this: *const Self) -> u32 {
17677		unsafe {
17678			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17679				::std::ptr::addr_of!((*this)._bitfield_1),
17680				2usize,
17681				1u8,
17682			) as u32)
17683		}
17684	}
17685	#[inline]
17686	pub unsafe fn set_mb_skip_flag_raw(this: *mut Self, val: u32) {
17687		unsafe {
17688			let val: u32 = ::std::mem::transmute(val);
17689			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17690				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17691				2usize,
17692				1u8,
17693				val as u64,
17694			)
17695		}
17696	}
17697	#[inline]
17698	pub fn reserved1(&self) -> u32 {
17699		unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
17700	}
17701	#[inline]
17702	pub fn set_reserved1(&mut self, val: u32) {
17703		unsafe {
17704			let val: u32 = ::std::mem::transmute(val);
17705			self._bitfield_1.set(3usize, 1u8, val as u64)
17706		}
17707	}
17708	#[inline]
17709	pub unsafe fn reserved1_raw(this: *const Self) -> u32 {
17710		unsafe {
17711			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17712				::std::ptr::addr_of!((*this)._bitfield_1),
17713				3usize,
17714				1u8,
17715			) as u32)
17716		}
17717	}
17718	#[inline]
17719	pub unsafe fn set_reserved1_raw(this: *mut Self, val: u32) {
17720		unsafe {
17721			let val: u32 = ::std::mem::transmute(val);
17722			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17723				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17724				3usize,
17725				1u8,
17726				val as u64,
17727			)
17728		}
17729	}
17730	#[inline]
17731	pub fn intra_mb_mode(&self) -> u32 {
17732		unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 2u8) as u32) }
17733	}
17734	#[inline]
17735	pub fn set_intra_mb_mode(&mut self, val: u32) {
17736		unsafe {
17737			let val: u32 = ::std::mem::transmute(val);
17738			self._bitfield_1.set(4usize, 2u8, val as u64)
17739		}
17740	}
17741	#[inline]
17742	pub unsafe fn intra_mb_mode_raw(this: *const Self) -> u32 {
17743		unsafe {
17744			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17745				::std::ptr::addr_of!((*this)._bitfield_1),
17746				4usize,
17747				2u8,
17748			) as u32)
17749		}
17750	}
17751	#[inline]
17752	pub unsafe fn set_intra_mb_mode_raw(this: *mut Self, val: u32) {
17753		unsafe {
17754			let val: u32 = ::std::mem::transmute(val);
17755			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17756				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17757				4usize,
17758				2u8,
17759				val as u64,
17760			)
17761		}
17762	}
17763	#[inline]
17764	pub fn reserved2(&self) -> u32 {
17765		unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
17766	}
17767	#[inline]
17768	pub fn set_reserved2(&mut self, val: u32) {
17769		unsafe {
17770			let val: u32 = ::std::mem::transmute(val);
17771			self._bitfield_1.set(6usize, 1u8, val as u64)
17772		}
17773	}
17774	#[inline]
17775	pub unsafe fn reserved2_raw(this: *const Self) -> u32 {
17776		unsafe {
17777			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17778				::std::ptr::addr_of!((*this)._bitfield_1),
17779				6usize,
17780				1u8,
17781			) as u32)
17782		}
17783	}
17784	#[inline]
17785	pub unsafe fn set_reserved2_raw(this: *mut Self, val: u32) {
17786		unsafe {
17787			let val: u32 = ::std::mem::transmute(val);
17788			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17789				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17790				6usize,
17791				1u8,
17792				val as u64,
17793			)
17794		}
17795	}
17796	#[inline]
17797	pub fn field_mb_polarity_flag(&self) -> u32 {
17798		unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
17799	}
17800	#[inline]
17801	pub fn set_field_mb_polarity_flag(&mut self, val: u32) {
17802		unsafe {
17803			let val: u32 = ::std::mem::transmute(val);
17804			self._bitfield_1.set(7usize, 1u8, val as u64)
17805		}
17806	}
17807	#[inline]
17808	pub unsafe fn field_mb_polarity_flag_raw(this: *const Self) -> u32 {
17809		unsafe {
17810			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17811				::std::ptr::addr_of!((*this)._bitfield_1),
17812				7usize,
17813				1u8,
17814			) as u32)
17815		}
17816	}
17817	#[inline]
17818	pub unsafe fn set_field_mb_polarity_flag_raw(this: *mut Self, val: u32) {
17819		unsafe {
17820			let val: u32 = ::std::mem::transmute(val);
17821			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17822				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17823				7usize,
17824				1u8,
17825				val as u64,
17826			)
17827		}
17828	}
17829	#[inline]
17830	pub fn mb_type(&self) -> u32 {
17831		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 5u8) as u32) }
17832	}
17833	#[inline]
17834	pub fn set_mb_type(&mut self, val: u32) {
17835		unsafe {
17836			let val: u32 = ::std::mem::transmute(val);
17837			self._bitfield_1.set(8usize, 5u8, val as u64)
17838		}
17839	}
17840	#[inline]
17841	pub unsafe fn mb_type_raw(this: *const Self) -> u32 {
17842		unsafe {
17843			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17844				::std::ptr::addr_of!((*this)._bitfield_1),
17845				8usize,
17846				5u8,
17847			) as u32)
17848		}
17849	}
17850	#[inline]
17851	pub unsafe fn set_mb_type_raw(this: *mut Self, val: u32) {
17852		unsafe {
17853			let val: u32 = ::std::mem::transmute(val);
17854			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17855				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17856				8usize,
17857				5u8,
17858				val as u64,
17859			)
17860		}
17861	}
17862	#[inline]
17863	pub fn intra_mb_flag(&self) -> u32 {
17864		unsafe { ::std::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) }
17865	}
17866	#[inline]
17867	pub fn set_intra_mb_flag(&mut self, val: u32) {
17868		unsafe {
17869			let val: u32 = ::std::mem::transmute(val);
17870			self._bitfield_1.set(13usize, 1u8, val as u64)
17871		}
17872	}
17873	#[inline]
17874	pub unsafe fn intra_mb_flag_raw(this: *const Self) -> u32 {
17875		unsafe {
17876			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17877				::std::ptr::addr_of!((*this)._bitfield_1),
17878				13usize,
17879				1u8,
17880			) as u32)
17881		}
17882	}
17883	#[inline]
17884	pub unsafe fn set_intra_mb_flag_raw(this: *mut Self, val: u32) {
17885		unsafe {
17886			let val: u32 = ::std::mem::transmute(val);
17887			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17888				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17889				13usize,
17890				1u8,
17891				val as u64,
17892			)
17893		}
17894	}
17895	#[inline]
17896	pub fn field_mb_flag(&self) -> u32 {
17897		unsafe { ::std::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u32) }
17898	}
17899	#[inline]
17900	pub fn set_field_mb_flag(&mut self, val: u32) {
17901		unsafe {
17902			let val: u32 = ::std::mem::transmute(val);
17903			self._bitfield_1.set(14usize, 1u8, val as u64)
17904		}
17905	}
17906	#[inline]
17907	pub unsafe fn field_mb_flag_raw(this: *const Self) -> u32 {
17908		unsafe {
17909			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17910				::std::ptr::addr_of!((*this)._bitfield_1),
17911				14usize,
17912				1u8,
17913			) as u32)
17914		}
17915	}
17916	#[inline]
17917	pub unsafe fn set_field_mb_flag_raw(this: *mut Self, val: u32) {
17918		unsafe {
17919			let val: u32 = ::std::mem::transmute(val);
17920			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17921				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17922				14usize,
17923				1u8,
17924				val as u64,
17925			)
17926		}
17927	}
17928	#[inline]
17929	pub fn transform8x8_flag(&self) -> u32 {
17930		unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u32) }
17931	}
17932	#[inline]
17933	pub fn set_transform8x8_flag(&mut self, val: u32) {
17934		unsafe {
17935			let val: u32 = ::std::mem::transmute(val);
17936			self._bitfield_1.set(15usize, 1u8, val as u64)
17937		}
17938	}
17939	#[inline]
17940	pub unsafe fn transform8x8_flag_raw(this: *const Self) -> u32 {
17941		unsafe {
17942			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17943				::std::ptr::addr_of!((*this)._bitfield_1),
17944				15usize,
17945				1u8,
17946			) as u32)
17947		}
17948	}
17949	#[inline]
17950	pub unsafe fn set_transform8x8_flag_raw(this: *mut Self, val: u32) {
17951		unsafe {
17952			let val: u32 = ::std::mem::transmute(val);
17953			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17954				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17955				15usize,
17956				1u8,
17957				val as u64,
17958			)
17959		}
17960	}
17961	#[inline]
17962	pub fn reserved3(&self) -> u32 {
17963		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 1u8) as u32) }
17964	}
17965	#[inline]
17966	pub fn set_reserved3(&mut self, val: u32) {
17967		unsafe {
17968			let val: u32 = ::std::mem::transmute(val);
17969			self._bitfield_1.set(16usize, 1u8, val as u64)
17970		}
17971	}
17972	#[inline]
17973	pub unsafe fn reserved3_raw(this: *const Self) -> u32 {
17974		unsafe {
17975			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
17976				::std::ptr::addr_of!((*this)._bitfield_1),
17977				16usize,
17978				1u8,
17979			) as u32)
17980		}
17981	}
17982	#[inline]
17983	pub unsafe fn set_reserved3_raw(this: *mut Self, val: u32) {
17984		unsafe {
17985			let val: u32 = ::std::mem::transmute(val);
17986			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
17987				::std::ptr::addr_of_mut!((*this)._bitfield_1),
17988				16usize,
17989				1u8,
17990				val as u64,
17991			)
17992		}
17993	}
17994	#[inline]
17995	pub fn dc_block_coded_cr_flag(&self) -> u32 {
17996		unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 1u8) as u32) }
17997	}
17998	#[inline]
17999	pub fn set_dc_block_coded_cr_flag(&mut self, val: u32) {
18000		unsafe {
18001			let val: u32 = ::std::mem::transmute(val);
18002			self._bitfield_1.set(17usize, 1u8, val as u64)
18003		}
18004	}
18005	#[inline]
18006	pub unsafe fn dc_block_coded_cr_flag_raw(this: *const Self) -> u32 {
18007		unsafe {
18008			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18009				::std::ptr::addr_of!((*this)._bitfield_1),
18010				17usize,
18011				1u8,
18012			) as u32)
18013		}
18014	}
18015	#[inline]
18016	pub unsafe fn set_dc_block_coded_cr_flag_raw(this: *mut Self, val: u32) {
18017		unsafe {
18018			let val: u32 = ::std::mem::transmute(val);
18019			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18020				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18021				17usize,
18022				1u8,
18023				val as u64,
18024			)
18025		}
18026	}
18027	#[inline]
18028	pub fn dc_block_coded_cb_flag(&self) -> u32 {
18029		unsafe { ::std::mem::transmute(self._bitfield_1.get(18usize, 1u8) as u32) }
18030	}
18031	#[inline]
18032	pub fn set_dc_block_coded_cb_flag(&mut self, val: u32) {
18033		unsafe {
18034			let val: u32 = ::std::mem::transmute(val);
18035			self._bitfield_1.set(18usize, 1u8, val as u64)
18036		}
18037	}
18038	#[inline]
18039	pub unsafe fn dc_block_coded_cb_flag_raw(this: *const Self) -> u32 {
18040		unsafe {
18041			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18042				::std::ptr::addr_of!((*this)._bitfield_1),
18043				18usize,
18044				1u8,
18045			) as u32)
18046		}
18047	}
18048	#[inline]
18049	pub unsafe fn set_dc_block_coded_cb_flag_raw(this: *mut Self, val: u32) {
18050		unsafe {
18051			let val: u32 = ::std::mem::transmute(val);
18052			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18053				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18054				18usize,
18055				1u8,
18056				val as u64,
18057			)
18058		}
18059	}
18060	#[inline]
18061	pub fn dc_block_coded_y_flag(&self) -> u32 {
18062		unsafe { ::std::mem::transmute(self._bitfield_1.get(19usize, 1u8) as u32) }
18063	}
18064	#[inline]
18065	pub fn set_dc_block_coded_y_flag(&mut self, val: u32) {
18066		unsafe {
18067			let val: u32 = ::std::mem::transmute(val);
18068			self._bitfield_1.set(19usize, 1u8, val as u64)
18069		}
18070	}
18071	#[inline]
18072	pub unsafe fn dc_block_coded_y_flag_raw(this: *const Self) -> u32 {
18073		unsafe {
18074			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18075				::std::ptr::addr_of!((*this)._bitfield_1),
18076				19usize,
18077				1u8,
18078			) as u32)
18079		}
18080	}
18081	#[inline]
18082	pub unsafe fn set_dc_block_coded_y_flag_raw(this: *mut Self, val: u32) {
18083		unsafe {
18084			let val: u32 = ::std::mem::transmute(val);
18085			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18086				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18087				19usize,
18088				1u8,
18089				val as u64,
18090			)
18091		}
18092	}
18093	#[inline]
18094	pub fn reserved4(&self) -> u32 {
18095		unsafe { ::std::mem::transmute(self._bitfield_1.get(20usize, 12u8) as u32) }
18096	}
18097	#[inline]
18098	pub fn set_reserved4(&mut self, val: u32) {
18099		unsafe {
18100			let val: u32 = ::std::mem::transmute(val);
18101			self._bitfield_1.set(20usize, 12u8, val as u64)
18102		}
18103	}
18104	#[inline]
18105	pub unsafe fn reserved4_raw(this: *const Self) -> u32 {
18106		unsafe {
18107			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18108				::std::ptr::addr_of!((*this)._bitfield_1),
18109				20usize,
18110				12u8,
18111			) as u32)
18112		}
18113	}
18114	#[inline]
18115	pub unsafe fn set_reserved4_raw(this: *mut Self, val: u32) {
18116		unsafe {
18117			let val: u32 = ::std::mem::transmute(val);
18118			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18119				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18120				20usize,
18121				12u8,
18122				val as u64,
18123			)
18124		}
18125	}
18126	#[inline]
18127	pub fn horz_origin(&self) -> u32 {
18128		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 8u8) as u32) }
18129	}
18130	#[inline]
18131	pub fn set_horz_origin(&mut self, val: u32) {
18132		unsafe {
18133			let val: u32 = ::std::mem::transmute(val);
18134			self._bitfield_1.set(32usize, 8u8, val as u64)
18135		}
18136	}
18137	#[inline]
18138	pub unsafe fn horz_origin_raw(this: *const Self) -> u32 {
18139		unsafe {
18140			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18141				::std::ptr::addr_of!((*this)._bitfield_1),
18142				32usize,
18143				8u8,
18144			) as u32)
18145		}
18146	}
18147	#[inline]
18148	pub unsafe fn set_horz_origin_raw(this: *mut Self, val: u32) {
18149		unsafe {
18150			let val: u32 = ::std::mem::transmute(val);
18151			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18152				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18153				32usize,
18154				8u8,
18155				val as u64,
18156			)
18157		}
18158	}
18159	#[inline]
18160	pub fn vert_origin(&self) -> u32 {
18161		unsafe { ::std::mem::transmute(self._bitfield_1.get(40usize, 8u8) as u32) }
18162	}
18163	#[inline]
18164	pub fn set_vert_origin(&mut self, val: u32) {
18165		unsafe {
18166			let val: u32 = ::std::mem::transmute(val);
18167			self._bitfield_1.set(40usize, 8u8, val as u64)
18168		}
18169	}
18170	#[inline]
18171	pub unsafe fn vert_origin_raw(this: *const Self) -> u32 {
18172		unsafe {
18173			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18174				::std::ptr::addr_of!((*this)._bitfield_1),
18175				40usize,
18176				8u8,
18177			) as u32)
18178		}
18179	}
18180	#[inline]
18181	pub unsafe fn set_vert_origin_raw(this: *mut Self, val: u32) {
18182		unsafe {
18183			let val: u32 = ::std::mem::transmute(val);
18184			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18185				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18186				40usize,
18187				8u8,
18188				val as u64,
18189			)
18190		}
18191	}
18192	#[inline]
18193	pub fn cbp_y(&self) -> u32 {
18194		unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 16u8) as u32) }
18195	}
18196	#[inline]
18197	pub fn set_cbp_y(&mut self, val: u32) {
18198		unsafe {
18199			let val: u32 = ::std::mem::transmute(val);
18200			self._bitfield_1.set(48usize, 16u8, val as u64)
18201		}
18202	}
18203	#[inline]
18204	pub unsafe fn cbp_y_raw(this: *const Self) -> u32 {
18205		unsafe {
18206			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18207				::std::ptr::addr_of!((*this)._bitfield_1),
18208				48usize,
18209				16u8,
18210			) as u32)
18211		}
18212	}
18213	#[inline]
18214	pub unsafe fn set_cbp_y_raw(this: *mut Self, val: u32) {
18215		unsafe {
18216			let val: u32 = ::std::mem::transmute(val);
18217			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18218				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18219				48usize,
18220				16u8,
18221				val as u64,
18222			)
18223		}
18224	}
18225	#[inline]
18226	pub fn cbp_cb(&self) -> u32 {
18227		unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 16u8) as u32) }
18228	}
18229	#[inline]
18230	pub fn set_cbp_cb(&mut self, val: u32) {
18231		unsafe {
18232			let val: u32 = ::std::mem::transmute(val);
18233			self._bitfield_1.set(64usize, 16u8, val as u64)
18234		}
18235	}
18236	#[inline]
18237	pub unsafe fn cbp_cb_raw(this: *const Self) -> u32 {
18238		unsafe {
18239			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18240				::std::ptr::addr_of!((*this)._bitfield_1),
18241				64usize,
18242				16u8,
18243			) as u32)
18244		}
18245	}
18246	#[inline]
18247	pub unsafe fn set_cbp_cb_raw(this: *mut Self, val: u32) {
18248		unsafe {
18249			let val: u32 = ::std::mem::transmute(val);
18250			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18251				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18252				64usize,
18253				16u8,
18254				val as u64,
18255			)
18256		}
18257	}
18258	#[inline]
18259	pub fn cbp_cr(&self) -> u32 {
18260		unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 16u8) as u32) }
18261	}
18262	#[inline]
18263	pub fn set_cbp_cr(&mut self, val: u32) {
18264		unsafe {
18265			let val: u32 = ::std::mem::transmute(val);
18266			self._bitfield_1.set(80usize, 16u8, val as u64)
18267		}
18268	}
18269	#[inline]
18270	pub unsafe fn cbp_cr_raw(this: *const Self) -> u32 {
18271		unsafe {
18272			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18273				::std::ptr::addr_of!((*this)._bitfield_1),
18274				80usize,
18275				16u8,
18276			) as u32)
18277		}
18278	}
18279	#[inline]
18280	pub unsafe fn set_cbp_cr_raw(this: *mut Self, val: u32) {
18281		unsafe {
18282			let val: u32 = ::std::mem::transmute(val);
18283			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18284				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18285				80usize,
18286				16u8,
18287				val as u64,
18288			)
18289		}
18290	}
18291	#[inline]
18292	pub fn qp_prime_y(&self) -> u32 {
18293		unsafe { ::std::mem::transmute(self._bitfield_1.get(96usize, 8u8) as u32) }
18294	}
18295	#[inline]
18296	pub fn set_qp_prime_y(&mut self, val: u32) {
18297		unsafe {
18298			let val: u32 = ::std::mem::transmute(val);
18299			self._bitfield_1.set(96usize, 8u8, val as u64)
18300		}
18301	}
18302	#[inline]
18303	pub unsafe fn qp_prime_y_raw(this: *const Self) -> u32 {
18304		unsafe {
18305			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18306				::std::ptr::addr_of!((*this)._bitfield_1),
18307				96usize,
18308				8u8,
18309			) as u32)
18310		}
18311	}
18312	#[inline]
18313	pub unsafe fn set_qp_prime_y_raw(this: *mut Self, val: u32) {
18314		unsafe {
18315			let val: u32 = ::std::mem::transmute(val);
18316			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18317				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18318				96usize,
18319				8u8,
18320				val as u64,
18321			)
18322		}
18323	}
18324	#[inline]
18325	pub fn reserved5(&self) -> u32 {
18326		unsafe { ::std::mem::transmute(self._bitfield_1.get(104usize, 17u8) as u32) }
18327	}
18328	#[inline]
18329	pub fn set_reserved5(&mut self, val: u32) {
18330		unsafe {
18331			let val: u32 = ::std::mem::transmute(val);
18332			self._bitfield_1.set(104usize, 17u8, val as u64)
18333		}
18334	}
18335	#[inline]
18336	pub unsafe fn reserved5_raw(this: *const Self) -> u32 {
18337		unsafe {
18338			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18339				::std::ptr::addr_of!((*this)._bitfield_1),
18340				104usize,
18341				17u8,
18342			) as u32)
18343		}
18344	}
18345	#[inline]
18346	pub unsafe fn set_reserved5_raw(this: *mut Self, val: u32) {
18347		unsafe {
18348			let val: u32 = ::std::mem::transmute(val);
18349			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18350				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18351				104usize,
18352				17u8,
18353				val as u64,
18354			)
18355		}
18356	}
18357	#[inline]
18358	pub fn mb_skip_conv_disable(&self) -> u32 {
18359		unsafe { ::std::mem::transmute(self._bitfield_1.get(121usize, 1u8) as u32) }
18360	}
18361	#[inline]
18362	pub fn set_mb_skip_conv_disable(&mut self, val: u32) {
18363		unsafe {
18364			let val: u32 = ::std::mem::transmute(val);
18365			self._bitfield_1.set(121usize, 1u8, val as u64)
18366		}
18367	}
18368	#[inline]
18369	pub unsafe fn mb_skip_conv_disable_raw(this: *const Self) -> u32 {
18370		unsafe {
18371			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18372				::std::ptr::addr_of!((*this)._bitfield_1),
18373				121usize,
18374				1u8,
18375			) as u32)
18376		}
18377	}
18378	#[inline]
18379	pub unsafe fn set_mb_skip_conv_disable_raw(this: *mut Self, val: u32) {
18380		unsafe {
18381			let val: u32 = ::std::mem::transmute(val);
18382			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18383				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18384				121usize,
18385				1u8,
18386				val as u64,
18387			)
18388		}
18389	}
18390	#[inline]
18391	pub fn is_last_mb(&self) -> u32 {
18392		unsafe { ::std::mem::transmute(self._bitfield_1.get(122usize, 1u8) as u32) }
18393	}
18394	#[inline]
18395	pub fn set_is_last_mb(&mut self, val: u32) {
18396		unsafe {
18397			let val: u32 = ::std::mem::transmute(val);
18398			self._bitfield_1.set(122usize, 1u8, val as u64)
18399		}
18400	}
18401	#[inline]
18402	pub unsafe fn is_last_mb_raw(this: *const Self) -> u32 {
18403		unsafe {
18404			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18405				::std::ptr::addr_of!((*this)._bitfield_1),
18406				122usize,
18407				1u8,
18408			) as u32)
18409		}
18410	}
18411	#[inline]
18412	pub unsafe fn set_is_last_mb_raw(this: *mut Self, val: u32) {
18413		unsafe {
18414			let val: u32 = ::std::mem::transmute(val);
18415			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18416				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18417				122usize,
18418				1u8,
18419				val as u64,
18420			)
18421		}
18422	}
18423	#[inline]
18424	pub fn enable_coefficient_clamp(&self) -> u32 {
18425		unsafe { ::std::mem::transmute(self._bitfield_1.get(123usize, 1u8) as u32) }
18426	}
18427	#[inline]
18428	pub fn set_enable_coefficient_clamp(&mut self, val: u32) {
18429		unsafe {
18430			let val: u32 = ::std::mem::transmute(val);
18431			self._bitfield_1.set(123usize, 1u8, val as u64)
18432		}
18433	}
18434	#[inline]
18435	pub unsafe fn enable_coefficient_clamp_raw(this: *const Self) -> u32 {
18436		unsafe {
18437			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18438				::std::ptr::addr_of!((*this)._bitfield_1),
18439				123usize,
18440				1u8,
18441			) as u32)
18442		}
18443	}
18444	#[inline]
18445	pub unsafe fn set_enable_coefficient_clamp_raw(this: *mut Self, val: u32) {
18446		unsafe {
18447			let val: u32 = ::std::mem::transmute(val);
18448			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18449				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18450				123usize,
18451				1u8,
18452				val as u64,
18453			)
18454		}
18455	}
18456	#[inline]
18457	pub fn direct8x8_pattern(&self) -> u32 {
18458		unsafe { ::std::mem::transmute(self._bitfield_1.get(124usize, 4u8) as u32) }
18459	}
18460	#[inline]
18461	pub fn set_direct8x8_pattern(&mut self, val: u32) {
18462		unsafe {
18463			let val: u32 = ::std::mem::transmute(val);
18464			self._bitfield_1.set(124usize, 4u8, val as u64)
18465		}
18466	}
18467	#[inline]
18468	pub unsafe fn direct8x8_pattern_raw(this: *const Self) -> u32 {
18469		unsafe {
18470			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18471				::std::ptr::addr_of!((*this)._bitfield_1),
18472				124usize,
18473				4u8,
18474			) as u32)
18475		}
18476	}
18477	#[inline]
18478	pub unsafe fn set_direct8x8_pattern_raw(this: *mut Self, val: u32) {
18479		unsafe {
18480			let val: u32 = ::std::mem::transmute(val);
18481			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18482				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18483				124usize,
18484				4u8,
18485				val as u64,
18486			)
18487		}
18488	}
18489	#[inline]
18490	pub fn new_bitfield_1(
18491		inter_mb_mode: u32,
18492		mb_skip_flag: u32,
18493		reserved1: u32,
18494		intra_mb_mode: u32,
18495		reserved2: u32,
18496		field_mb_polarity_flag: u32,
18497		mb_type: u32,
18498		intra_mb_flag: u32,
18499		field_mb_flag: u32,
18500		transform8x8_flag: u32,
18501		reserved3: u32,
18502		dc_block_coded_cr_flag: u32,
18503		dc_block_coded_cb_flag: u32,
18504		dc_block_coded_y_flag: u32,
18505		reserved4: u32,
18506		horz_origin: u32,
18507		vert_origin: u32,
18508		cbp_y: u32,
18509		cbp_cb: u32,
18510		cbp_cr: u32,
18511		qp_prime_y: u32,
18512		reserved5: u32,
18513		mb_skip_conv_disable: u32,
18514		is_last_mb: u32,
18515		enable_coefficient_clamp: u32,
18516		direct8x8_pattern: u32,
18517	) -> __BindgenBitfieldUnit<[u8; 16usize]> {
18518		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 16usize]> = Default::default();
18519		__bindgen_bitfield_unit.set(0usize, 2u8, {
18520			let inter_mb_mode: u32 = unsafe { ::std::mem::transmute(inter_mb_mode) };
18521			inter_mb_mode as u64
18522		});
18523		__bindgen_bitfield_unit.set(2usize, 1u8, {
18524			let mb_skip_flag: u32 = unsafe { ::std::mem::transmute(mb_skip_flag) };
18525			mb_skip_flag as u64
18526		});
18527		__bindgen_bitfield_unit.set(3usize, 1u8, {
18528			let reserved1: u32 = unsafe { ::std::mem::transmute(reserved1) };
18529			reserved1 as u64
18530		});
18531		__bindgen_bitfield_unit.set(4usize, 2u8, {
18532			let intra_mb_mode: u32 = unsafe { ::std::mem::transmute(intra_mb_mode) };
18533			intra_mb_mode as u64
18534		});
18535		__bindgen_bitfield_unit.set(6usize, 1u8, {
18536			let reserved2: u32 = unsafe { ::std::mem::transmute(reserved2) };
18537			reserved2 as u64
18538		});
18539		__bindgen_bitfield_unit.set(7usize, 1u8, {
18540			let field_mb_polarity_flag: u32 = unsafe { ::std::mem::transmute(field_mb_polarity_flag) };
18541			field_mb_polarity_flag as u64
18542		});
18543		__bindgen_bitfield_unit.set(8usize, 5u8, {
18544			let mb_type: u32 = unsafe { ::std::mem::transmute(mb_type) };
18545			mb_type as u64
18546		});
18547		__bindgen_bitfield_unit.set(13usize, 1u8, {
18548			let intra_mb_flag: u32 = unsafe { ::std::mem::transmute(intra_mb_flag) };
18549			intra_mb_flag as u64
18550		});
18551		__bindgen_bitfield_unit.set(14usize, 1u8, {
18552			let field_mb_flag: u32 = unsafe { ::std::mem::transmute(field_mb_flag) };
18553			field_mb_flag as u64
18554		});
18555		__bindgen_bitfield_unit.set(15usize, 1u8, {
18556			let transform8x8_flag: u32 = unsafe { ::std::mem::transmute(transform8x8_flag) };
18557			transform8x8_flag as u64
18558		});
18559		__bindgen_bitfield_unit.set(16usize, 1u8, {
18560			let reserved3: u32 = unsafe { ::std::mem::transmute(reserved3) };
18561			reserved3 as u64
18562		});
18563		__bindgen_bitfield_unit.set(17usize, 1u8, {
18564			let dc_block_coded_cr_flag: u32 = unsafe { ::std::mem::transmute(dc_block_coded_cr_flag) };
18565			dc_block_coded_cr_flag as u64
18566		});
18567		__bindgen_bitfield_unit.set(18usize, 1u8, {
18568			let dc_block_coded_cb_flag: u32 = unsafe { ::std::mem::transmute(dc_block_coded_cb_flag) };
18569			dc_block_coded_cb_flag as u64
18570		});
18571		__bindgen_bitfield_unit.set(19usize, 1u8, {
18572			let dc_block_coded_y_flag: u32 = unsafe { ::std::mem::transmute(dc_block_coded_y_flag) };
18573			dc_block_coded_y_flag as u64
18574		});
18575		__bindgen_bitfield_unit.set(20usize, 12u8, {
18576			let reserved4: u32 = unsafe { ::std::mem::transmute(reserved4) };
18577			reserved4 as u64
18578		});
18579		__bindgen_bitfield_unit.set(32usize, 8u8, {
18580			let horz_origin: u32 = unsafe { ::std::mem::transmute(horz_origin) };
18581			horz_origin as u64
18582		});
18583		__bindgen_bitfield_unit.set(40usize, 8u8, {
18584			let vert_origin: u32 = unsafe { ::std::mem::transmute(vert_origin) };
18585			vert_origin as u64
18586		});
18587		__bindgen_bitfield_unit.set(48usize, 16u8, {
18588			let cbp_y: u32 = unsafe { ::std::mem::transmute(cbp_y) };
18589			cbp_y as u64
18590		});
18591		__bindgen_bitfield_unit.set(64usize, 16u8, {
18592			let cbp_cb: u32 = unsafe { ::std::mem::transmute(cbp_cb) };
18593			cbp_cb as u64
18594		});
18595		__bindgen_bitfield_unit.set(80usize, 16u8, {
18596			let cbp_cr: u32 = unsafe { ::std::mem::transmute(cbp_cr) };
18597			cbp_cr as u64
18598		});
18599		__bindgen_bitfield_unit.set(96usize, 8u8, {
18600			let qp_prime_y: u32 = unsafe { ::std::mem::transmute(qp_prime_y) };
18601			qp_prime_y as u64
18602		});
18603		__bindgen_bitfield_unit.set(104usize, 17u8, {
18604			let reserved5: u32 = unsafe { ::std::mem::transmute(reserved5) };
18605			reserved5 as u64
18606		});
18607		__bindgen_bitfield_unit.set(121usize, 1u8, {
18608			let mb_skip_conv_disable: u32 = unsafe { ::std::mem::transmute(mb_skip_conv_disable) };
18609			mb_skip_conv_disable as u64
18610		});
18611		__bindgen_bitfield_unit.set(122usize, 1u8, {
18612			let is_last_mb: u32 = unsafe { ::std::mem::transmute(is_last_mb) };
18613			is_last_mb as u64
18614		});
18615		__bindgen_bitfield_unit.set(123usize, 1u8, {
18616			let enable_coefficient_clamp: u32 = unsafe { ::std::mem::transmute(enable_coefficient_clamp) };
18617			enable_coefficient_clamp as u64
18618		});
18619		__bindgen_bitfield_unit.set(124usize, 4u8, {
18620			let direct8x8_pattern: u32 = unsafe { ::std::mem::transmute(direct8x8_pattern) };
18621			direct8x8_pattern as u64
18622		});
18623		__bindgen_bitfield_unit
18624	}
18625	#[inline]
18626	pub fn reserved8(&self) -> u32 {
18627		unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 16u8) as u32) }
18628	}
18629	#[inline]
18630	pub fn set_reserved8(&mut self, val: u32) {
18631		unsafe {
18632			let val: u32 = ::std::mem::transmute(val);
18633			self._bitfield_2.set(0usize, 16u8, val as u64)
18634		}
18635	}
18636	#[inline]
18637	pub unsafe fn reserved8_raw(this: *const Self) -> u32 {
18638		unsafe {
18639			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
18640				::std::ptr::addr_of!((*this)._bitfield_2),
18641				0usize,
18642				16u8,
18643			) as u32)
18644		}
18645	}
18646	#[inline]
18647	pub unsafe fn set_reserved8_raw(this: *mut Self, val: u32) {
18648		unsafe {
18649			let val: u32 = ::std::mem::transmute(val);
18650			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
18651				::std::ptr::addr_of_mut!((*this)._bitfield_2),
18652				0usize,
18653				16u8,
18654				val as u64,
18655			)
18656		}
18657	}
18658	#[inline]
18659	pub fn target_size_in_word(&self) -> u32 {
18660		unsafe { ::std::mem::transmute(self._bitfield_2.get(16usize, 8u8) as u32) }
18661	}
18662	#[inline]
18663	pub fn set_target_size_in_word(&mut self, val: u32) {
18664		unsafe {
18665			let val: u32 = ::std::mem::transmute(val);
18666			self._bitfield_2.set(16usize, 8u8, val as u64)
18667		}
18668	}
18669	#[inline]
18670	pub unsafe fn target_size_in_word_raw(this: *const Self) -> u32 {
18671		unsafe {
18672			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
18673				::std::ptr::addr_of!((*this)._bitfield_2),
18674				16usize,
18675				8u8,
18676			) as u32)
18677		}
18678	}
18679	#[inline]
18680	pub unsafe fn set_target_size_in_word_raw(this: *mut Self, val: u32) {
18681		unsafe {
18682			let val: u32 = ::std::mem::transmute(val);
18683			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
18684				::std::ptr::addr_of_mut!((*this)._bitfield_2),
18685				16usize,
18686				8u8,
18687				val as u64,
18688			)
18689		}
18690	}
18691	#[inline]
18692	pub fn max_size_in_word(&self) -> u32 {
18693		unsafe { ::std::mem::transmute(self._bitfield_2.get(24usize, 8u8) as u32) }
18694	}
18695	#[inline]
18696	pub fn set_max_size_in_word(&mut self, val: u32) {
18697		unsafe {
18698			let val: u32 = ::std::mem::transmute(val);
18699			self._bitfield_2.set(24usize, 8u8, val as u64)
18700		}
18701	}
18702	#[inline]
18703	pub unsafe fn max_size_in_word_raw(this: *const Self) -> u32 {
18704		unsafe {
18705			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
18706				::std::ptr::addr_of!((*this)._bitfield_2),
18707				24usize,
18708				8u8,
18709			) as u32)
18710		}
18711	}
18712	#[inline]
18713	pub unsafe fn set_max_size_in_word_raw(this: *mut Self, val: u32) {
18714		unsafe {
18715			let val: u32 = ::std::mem::transmute(val);
18716			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
18717				::std::ptr::addr_of_mut!((*this)._bitfield_2),
18718				24usize,
18719				8u8,
18720				val as u64,
18721			)
18722		}
18723	}
18724	#[inline]
18725	pub fn new_bitfield_2(
18726		reserved8: u32,
18727		target_size_in_word: u32,
18728		max_size_in_word: u32,
18729	) -> __BindgenBitfieldUnit<[u8; 4usize]> {
18730		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
18731		__bindgen_bitfield_unit.set(0usize, 16u8, {
18732			let reserved8: u32 = unsafe { ::std::mem::transmute(reserved8) };
18733			reserved8 as u64
18734		});
18735		__bindgen_bitfield_unit.set(16usize, 8u8, {
18736			let target_size_in_word: u32 = unsafe { ::std::mem::transmute(target_size_in_word) };
18737			target_size_in_word as u64
18738		});
18739		__bindgen_bitfield_unit.set(24usize, 8u8, {
18740			let max_size_in_word: u32 = unsafe { ::std::mem::transmute(max_size_in_word) };
18741			max_size_in_word as u64
18742		});
18743		__bindgen_bitfield_unit
18744	}
18745}
18746#[doc = " \\brief VAEncFEIMBCodeH264 defines the data structure for VAEncFEIMBCodeBufferType per 16x16 MB block.\n it is output buffer of ENC and ENC_PAK modes, it's also input buffer of PAK mode.\n The 16x16 block is in raster scan order. Buffer size shall not be less than the number of 16x16 blocks\n multiplied by sizeof(VAEncFEIMBCodeH264). Note that, when separate ENC and PAK is enabled,\n the exact layout of this buffer is needed for PAK input. App can reuse this buffer,\n or copy to a different buffer as PAK input, reserved elements must not be modified when used as PAK input."]
18747pub type VAEncFEIMBCodeH264 = _VAEncFEIMBCodeH264;
18748#[doc = " \\brief VAEncFEIDistortionH264 defines the data structure for VAEncFEIDistortionBufferType per 16x16 MB block.\n It is output buffer of ENC and ENC_PAK modes, The 16x16 block is in raster scan order.\n Buffer size shall not be less than the number of 16x16 blocks multiple by sizeof(VAEncFEIDistortionH264)."]
18749#[repr(C)]
18750#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
18751pub struct _VAEncFEIDistortionH264 {
18752	#[doc = " \\brief Inter-prediction-distortion associated with motion vector i (co-located with subblock_4x4_i).\n Its meaning is determined by sub-shape. It must be zero if the corresponding sub-shape is not chosen."]
18753	pub inter_distortion: [u16; 16usize],
18754	pub _bitfield_align_1: [u16; 0],
18755	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
18756	pub reserved1: [u32; 2usize],
18757}
18758impl _VAEncFEIDistortionH264 {
18759	#[inline]
18760	pub fn best_inter_distortion(&self) -> u32 {
18761		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
18762	}
18763	#[inline]
18764	pub fn set_best_inter_distortion(&mut self, val: u32) {
18765		unsafe {
18766			let val: u32 = ::std::mem::transmute(val);
18767			self._bitfield_1.set(0usize, 16u8, val as u64)
18768		}
18769	}
18770	#[inline]
18771	pub unsafe fn best_inter_distortion_raw(this: *const Self) -> u32 {
18772		unsafe {
18773			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
18774				::std::ptr::addr_of!((*this)._bitfield_1),
18775				0usize,
18776				16u8,
18777			) as u32)
18778		}
18779	}
18780	#[inline]
18781	pub unsafe fn set_best_inter_distortion_raw(this: *mut Self, val: u32) {
18782		unsafe {
18783			let val: u32 = ::std::mem::transmute(val);
18784			<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
18785				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18786				0usize,
18787				16u8,
18788				val as u64,
18789			)
18790		}
18791	}
18792	#[inline]
18793	pub fn best_intra_distortion(&self) -> u32 {
18794		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
18795	}
18796	#[inline]
18797	pub fn set_best_intra_distortion(&mut self, val: u32) {
18798		unsafe {
18799			let val: u32 = ::std::mem::transmute(val);
18800			self._bitfield_1.set(16usize, 16u8, val as u64)
18801		}
18802	}
18803	#[inline]
18804	pub unsafe fn best_intra_distortion_raw(this: *const Self) -> u32 {
18805		unsafe {
18806			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
18807				::std::ptr::addr_of!((*this)._bitfield_1),
18808				16usize,
18809				16u8,
18810			) as u32)
18811		}
18812	}
18813	#[inline]
18814	pub unsafe fn set_best_intra_distortion_raw(this: *mut Self, val: u32) {
18815		unsafe {
18816			let val: u32 = ::std::mem::transmute(val);
18817			<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
18818				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18819				16usize,
18820				16u8,
18821				val as u64,
18822			)
18823		}
18824	}
18825	#[inline]
18826	pub fn colocated_mb_distortion(&self) -> u32 {
18827		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 16u8) as u32) }
18828	}
18829	#[inline]
18830	pub fn set_colocated_mb_distortion(&mut self, val: u32) {
18831		unsafe {
18832			let val: u32 = ::std::mem::transmute(val);
18833			self._bitfield_1.set(32usize, 16u8, val as u64)
18834		}
18835	}
18836	#[inline]
18837	pub unsafe fn colocated_mb_distortion_raw(this: *const Self) -> u32 {
18838		unsafe {
18839			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
18840				::std::ptr::addr_of!((*this)._bitfield_1),
18841				32usize,
18842				16u8,
18843			) as u32)
18844		}
18845	}
18846	#[inline]
18847	pub unsafe fn set_colocated_mb_distortion_raw(this: *mut Self, val: u32) {
18848		unsafe {
18849			let val: u32 = ::std::mem::transmute(val);
18850			<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
18851				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18852				32usize,
18853				16u8,
18854				val as u64,
18855			)
18856		}
18857	}
18858	#[inline]
18859	pub fn reserved0(&self) -> u32 {
18860		unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 16u8) as u32) }
18861	}
18862	#[inline]
18863	pub fn set_reserved0(&mut self, val: u32) {
18864		unsafe {
18865			let val: u32 = ::std::mem::transmute(val);
18866			self._bitfield_1.set(48usize, 16u8, val as u64)
18867		}
18868	}
18869	#[inline]
18870	pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
18871		unsafe {
18872			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
18873				::std::ptr::addr_of!((*this)._bitfield_1),
18874				48usize,
18875				16u8,
18876			) as u32)
18877		}
18878	}
18879	#[inline]
18880	pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
18881		unsafe {
18882			let val: u32 = ::std::mem::transmute(val);
18883			<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
18884				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18885				48usize,
18886				16u8,
18887				val as u64,
18888			)
18889		}
18890	}
18891	#[inline]
18892	pub fn new_bitfield_1(
18893		best_inter_distortion: u32,
18894		best_intra_distortion: u32,
18895		colocated_mb_distortion: u32,
18896		reserved0: u32,
18897	) -> __BindgenBitfieldUnit<[u8; 8usize]> {
18898		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
18899		__bindgen_bitfield_unit.set(0usize, 16u8, {
18900			let best_inter_distortion: u32 = unsafe { ::std::mem::transmute(best_inter_distortion) };
18901			best_inter_distortion as u64
18902		});
18903		__bindgen_bitfield_unit.set(16usize, 16u8, {
18904			let best_intra_distortion: u32 = unsafe { ::std::mem::transmute(best_intra_distortion) };
18905			best_intra_distortion as u64
18906		});
18907		__bindgen_bitfield_unit.set(32usize, 16u8, {
18908			let colocated_mb_distortion: u32 = unsafe { ::std::mem::transmute(colocated_mb_distortion) };
18909			colocated_mb_distortion as u64
18910		});
18911		__bindgen_bitfield_unit.set(48usize, 16u8, {
18912			let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
18913			reserved0 as u64
18914		});
18915		__bindgen_bitfield_unit
18916	}
18917}
18918#[doc = " \\brief VAEncFEIDistortionH264 defines the data structure for VAEncFEIDistortionBufferType per 16x16 MB block.\n It is output buffer of ENC and ENC_PAK modes, The 16x16 block is in raster scan order.\n Buffer size shall not be less than the number of 16x16 blocks multiple by sizeof(VAEncFEIDistortionH264)."]
18919pub type VAEncFEIDistortionH264 = _VAEncFEIDistortionH264;
18920#[doc = " \\brief Motion Vector and Statistics frame level controls.\n VAStatsStatisticsParameterBufferType for H264 16x16 block"]
18921#[repr(C)]
18922#[derive(Debug, Copy, Clone, PartialEq, Eq)]
18923pub struct _VAStatsStatisticsParameterH264 {
18924	pub stats_params: VAStatsStatisticsParameter,
18925	pub _bitfield_align_1: [u32; 0],
18926	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 16usize]>,
18927	pub reserved4: [u32; 2usize],
18928}
18929impl Default for _VAStatsStatisticsParameterH264 {
18930	fn default() -> Self {
18931		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
18932		unsafe {
18933			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
18934			s.assume_init()
18935		}
18936	}
18937}
18938impl _VAStatsStatisticsParameterH264 {
18939	#[inline]
18940	pub fn frame_qp(&self) -> u32 {
18941		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
18942	}
18943	#[inline]
18944	pub fn set_frame_qp(&mut self, val: u32) {
18945		unsafe {
18946			let val: u32 = ::std::mem::transmute(val);
18947			self._bitfield_1.set(0usize, 8u8, val as u64)
18948		}
18949	}
18950	#[inline]
18951	pub unsafe fn frame_qp_raw(this: *const Self) -> u32 {
18952		unsafe {
18953			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18954				::std::ptr::addr_of!((*this)._bitfield_1),
18955				0usize,
18956				8u8,
18957			) as u32)
18958		}
18959	}
18960	#[inline]
18961	pub unsafe fn set_frame_qp_raw(this: *mut Self, val: u32) {
18962		unsafe {
18963			let val: u32 = ::std::mem::transmute(val);
18964			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18965				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18966				0usize,
18967				8u8,
18968				val as u64,
18969			)
18970		}
18971	}
18972	#[inline]
18973	pub fn len_sp(&self) -> u32 {
18974		unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
18975	}
18976	#[inline]
18977	pub fn set_len_sp(&mut self, val: u32) {
18978		unsafe {
18979			let val: u32 = ::std::mem::transmute(val);
18980			self._bitfield_1.set(8usize, 8u8, val as u64)
18981		}
18982	}
18983	#[inline]
18984	pub unsafe fn len_sp_raw(this: *const Self) -> u32 {
18985		unsafe {
18986			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
18987				::std::ptr::addr_of!((*this)._bitfield_1),
18988				8usize,
18989				8u8,
18990			) as u32)
18991		}
18992	}
18993	#[inline]
18994	pub unsafe fn set_len_sp_raw(this: *mut Self, val: u32) {
18995		unsafe {
18996			let val: u32 = ::std::mem::transmute(val);
18997			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
18998				::std::ptr::addr_of_mut!((*this)._bitfield_1),
18999				8usize,
19000				8u8,
19001				val as u64,
19002			)
19003		}
19004	}
19005	#[inline]
19006	pub fn search_path(&self) -> u32 {
19007		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 8u8) as u32) }
19008	}
19009	#[inline]
19010	pub fn set_search_path(&mut self, val: u32) {
19011		unsafe {
19012			let val: u32 = ::std::mem::transmute(val);
19013			self._bitfield_1.set(16usize, 8u8, val as u64)
19014		}
19015	}
19016	#[inline]
19017	pub unsafe fn search_path_raw(this: *const Self) -> u32 {
19018		unsafe {
19019			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19020				::std::ptr::addr_of!((*this)._bitfield_1),
19021				16usize,
19022				8u8,
19023			) as u32)
19024		}
19025	}
19026	#[inline]
19027	pub unsafe fn set_search_path_raw(this: *mut Self, val: u32) {
19028		unsafe {
19029			let val: u32 = ::std::mem::transmute(val);
19030			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19031				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19032				16usize,
19033				8u8,
19034				val as u64,
19035			)
19036		}
19037	}
19038	#[inline]
19039	pub fn reserved0(&self) -> u32 {
19040		unsafe { ::std::mem::transmute(self._bitfield_1.get(24usize, 8u8) as u32) }
19041	}
19042	#[inline]
19043	pub fn set_reserved0(&mut self, val: u32) {
19044		unsafe {
19045			let val: u32 = ::std::mem::transmute(val);
19046			self._bitfield_1.set(24usize, 8u8, val as u64)
19047		}
19048	}
19049	#[inline]
19050	pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
19051		unsafe {
19052			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19053				::std::ptr::addr_of!((*this)._bitfield_1),
19054				24usize,
19055				8u8,
19056			) as u32)
19057		}
19058	}
19059	#[inline]
19060	pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
19061		unsafe {
19062			let val: u32 = ::std::mem::transmute(val);
19063			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19064				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19065				24usize,
19066				8u8,
19067				val as u64,
19068			)
19069		}
19070	}
19071	#[inline]
19072	pub fn sub_mb_part_mask(&self) -> u32 {
19073		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 7u8) as u32) }
19074	}
19075	#[inline]
19076	pub fn set_sub_mb_part_mask(&mut self, val: u32) {
19077		unsafe {
19078			let val: u32 = ::std::mem::transmute(val);
19079			self._bitfield_1.set(32usize, 7u8, val as u64)
19080		}
19081	}
19082	#[inline]
19083	pub unsafe fn sub_mb_part_mask_raw(this: *const Self) -> u32 {
19084		unsafe {
19085			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19086				::std::ptr::addr_of!((*this)._bitfield_1),
19087				32usize,
19088				7u8,
19089			) as u32)
19090		}
19091	}
19092	#[inline]
19093	pub unsafe fn set_sub_mb_part_mask_raw(this: *mut Self, val: u32) {
19094		unsafe {
19095			let val: u32 = ::std::mem::transmute(val);
19096			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19097				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19098				32usize,
19099				7u8,
19100				val as u64,
19101			)
19102		}
19103	}
19104	#[inline]
19105	pub fn sub_pel_mode(&self) -> u32 {
19106		unsafe { ::std::mem::transmute(self._bitfield_1.get(39usize, 2u8) as u32) }
19107	}
19108	#[inline]
19109	pub fn set_sub_pel_mode(&mut self, val: u32) {
19110		unsafe {
19111			let val: u32 = ::std::mem::transmute(val);
19112			self._bitfield_1.set(39usize, 2u8, val as u64)
19113		}
19114	}
19115	#[inline]
19116	pub unsafe fn sub_pel_mode_raw(this: *const Self) -> u32 {
19117		unsafe {
19118			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19119				::std::ptr::addr_of!((*this)._bitfield_1),
19120				39usize,
19121				2u8,
19122			) as u32)
19123		}
19124	}
19125	#[inline]
19126	pub unsafe fn set_sub_pel_mode_raw(this: *mut Self, val: u32) {
19127		unsafe {
19128			let val: u32 = ::std::mem::transmute(val);
19129			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19130				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19131				39usize,
19132				2u8,
19133				val as u64,
19134			)
19135		}
19136	}
19137	#[inline]
19138	pub fn inter_sad(&self) -> u32 {
19139		unsafe { ::std::mem::transmute(self._bitfield_1.get(41usize, 2u8) as u32) }
19140	}
19141	#[inline]
19142	pub fn set_inter_sad(&mut self, val: u32) {
19143		unsafe {
19144			let val: u32 = ::std::mem::transmute(val);
19145			self._bitfield_1.set(41usize, 2u8, val as u64)
19146		}
19147	}
19148	#[inline]
19149	pub unsafe fn inter_sad_raw(this: *const Self) -> u32 {
19150		unsafe {
19151			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19152				::std::ptr::addr_of!((*this)._bitfield_1),
19153				41usize,
19154				2u8,
19155			) as u32)
19156		}
19157	}
19158	#[inline]
19159	pub unsafe fn set_inter_sad_raw(this: *mut Self, val: u32) {
19160		unsafe {
19161			let val: u32 = ::std::mem::transmute(val);
19162			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19163				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19164				41usize,
19165				2u8,
19166				val as u64,
19167			)
19168		}
19169	}
19170	#[inline]
19171	pub fn intra_sad(&self) -> u32 {
19172		unsafe { ::std::mem::transmute(self._bitfield_1.get(43usize, 2u8) as u32) }
19173	}
19174	#[inline]
19175	pub fn set_intra_sad(&mut self, val: u32) {
19176		unsafe {
19177			let val: u32 = ::std::mem::transmute(val);
19178			self._bitfield_1.set(43usize, 2u8, val as u64)
19179		}
19180	}
19181	#[inline]
19182	pub unsafe fn intra_sad_raw(this: *const Self) -> u32 {
19183		unsafe {
19184			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19185				::std::ptr::addr_of!((*this)._bitfield_1),
19186				43usize,
19187				2u8,
19188			) as u32)
19189		}
19190	}
19191	#[inline]
19192	pub unsafe fn set_intra_sad_raw(this: *mut Self, val: u32) {
19193		unsafe {
19194			let val: u32 = ::std::mem::transmute(val);
19195			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19196				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19197				43usize,
19198				2u8,
19199				val as u64,
19200			)
19201		}
19202	}
19203	#[inline]
19204	pub fn adaptive_search(&self) -> u32 {
19205		unsafe { ::std::mem::transmute(self._bitfield_1.get(45usize, 1u8) as u32) }
19206	}
19207	#[inline]
19208	pub fn set_adaptive_search(&mut self, val: u32) {
19209		unsafe {
19210			let val: u32 = ::std::mem::transmute(val);
19211			self._bitfield_1.set(45usize, 1u8, val as u64)
19212		}
19213	}
19214	#[inline]
19215	pub unsafe fn adaptive_search_raw(this: *const Self) -> u32 {
19216		unsafe {
19217			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19218				::std::ptr::addr_of!((*this)._bitfield_1),
19219				45usize,
19220				1u8,
19221			) as u32)
19222		}
19223	}
19224	#[inline]
19225	pub unsafe fn set_adaptive_search_raw(this: *mut Self, val: u32) {
19226		unsafe {
19227			let val: u32 = ::std::mem::transmute(val);
19228			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19229				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19230				45usize,
19231				1u8,
19232				val as u64,
19233			)
19234		}
19235	}
19236	#[inline]
19237	pub fn mv_predictor_ctrl(&self) -> u32 {
19238		unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 3u8) as u32) }
19239	}
19240	#[inline]
19241	pub fn set_mv_predictor_ctrl(&mut self, val: u32) {
19242		unsafe {
19243			let val: u32 = ::std::mem::transmute(val);
19244			self._bitfield_1.set(46usize, 3u8, val as u64)
19245		}
19246	}
19247	#[inline]
19248	pub unsafe fn mv_predictor_ctrl_raw(this: *const Self) -> u32 {
19249		unsafe {
19250			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19251				::std::ptr::addr_of!((*this)._bitfield_1),
19252				46usize,
19253				3u8,
19254			) as u32)
19255		}
19256	}
19257	#[inline]
19258	pub unsafe fn set_mv_predictor_ctrl_raw(this: *mut Self, val: u32) {
19259		unsafe {
19260			let val: u32 = ::std::mem::transmute(val);
19261			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19262				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19263				46usize,
19264				3u8,
19265				val as u64,
19266			)
19267		}
19268	}
19269	#[inline]
19270	pub fn mb_qp(&self) -> u32 {
19271		unsafe { ::std::mem::transmute(self._bitfield_1.get(49usize, 1u8) as u32) }
19272	}
19273	#[inline]
19274	pub fn set_mb_qp(&mut self, val: u32) {
19275		unsafe {
19276			let val: u32 = ::std::mem::transmute(val);
19277			self._bitfield_1.set(49usize, 1u8, val as u64)
19278		}
19279	}
19280	#[inline]
19281	pub unsafe fn mb_qp_raw(this: *const Self) -> u32 {
19282		unsafe {
19283			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19284				::std::ptr::addr_of!((*this)._bitfield_1),
19285				49usize,
19286				1u8,
19287			) as u32)
19288		}
19289	}
19290	#[inline]
19291	pub unsafe fn set_mb_qp_raw(this: *mut Self, val: u32) {
19292		unsafe {
19293			let val: u32 = ::std::mem::transmute(val);
19294			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19295				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19296				49usize,
19297				1u8,
19298				val as u64,
19299			)
19300		}
19301	}
19302	#[inline]
19303	pub fn ft_enable(&self) -> u32 {
19304		unsafe { ::std::mem::transmute(self._bitfield_1.get(50usize, 1u8) as u32) }
19305	}
19306	#[inline]
19307	pub fn set_ft_enable(&mut self, val: u32) {
19308		unsafe {
19309			let val: u32 = ::std::mem::transmute(val);
19310			self._bitfield_1.set(50usize, 1u8, val as u64)
19311		}
19312	}
19313	#[inline]
19314	pub unsafe fn ft_enable_raw(this: *const Self) -> u32 {
19315		unsafe {
19316			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19317				::std::ptr::addr_of!((*this)._bitfield_1),
19318				50usize,
19319				1u8,
19320			) as u32)
19321		}
19322	}
19323	#[inline]
19324	pub unsafe fn set_ft_enable_raw(this: *mut Self, val: u32) {
19325		unsafe {
19326			let val: u32 = ::std::mem::transmute(val);
19327			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19328				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19329				50usize,
19330				1u8,
19331				val as u64,
19332			)
19333		}
19334	}
19335	#[inline]
19336	pub fn intra_part_mask(&self) -> u32 {
19337		unsafe { ::std::mem::transmute(self._bitfield_1.get(51usize, 5u8) as u32) }
19338	}
19339	#[inline]
19340	pub fn set_intra_part_mask(&mut self, val: u32) {
19341		unsafe {
19342			let val: u32 = ::std::mem::transmute(val);
19343			self._bitfield_1.set(51usize, 5u8, val as u64)
19344		}
19345	}
19346	#[inline]
19347	pub unsafe fn intra_part_mask_raw(this: *const Self) -> u32 {
19348		unsafe {
19349			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19350				::std::ptr::addr_of!((*this)._bitfield_1),
19351				51usize,
19352				5u8,
19353			) as u32)
19354		}
19355	}
19356	#[inline]
19357	pub unsafe fn set_intra_part_mask_raw(this: *mut Self, val: u32) {
19358		unsafe {
19359			let val: u32 = ::std::mem::transmute(val);
19360			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19361				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19362				51usize,
19363				5u8,
19364				val as u64,
19365			)
19366		}
19367	}
19368	#[inline]
19369	pub fn reserved1(&self) -> u32 {
19370		unsafe { ::std::mem::transmute(self._bitfield_1.get(56usize, 8u8) as u32) }
19371	}
19372	#[inline]
19373	pub fn set_reserved1(&mut self, val: u32) {
19374		unsafe {
19375			let val: u32 = ::std::mem::transmute(val);
19376			self._bitfield_1.set(56usize, 8u8, val as u64)
19377		}
19378	}
19379	#[inline]
19380	pub unsafe fn reserved1_raw(this: *const Self) -> u32 {
19381		unsafe {
19382			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19383				::std::ptr::addr_of!((*this)._bitfield_1),
19384				56usize,
19385				8u8,
19386			) as u32)
19387		}
19388	}
19389	#[inline]
19390	pub unsafe fn set_reserved1_raw(this: *mut Self, val: u32) {
19391		unsafe {
19392			let val: u32 = ::std::mem::transmute(val);
19393			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19394				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19395				56usize,
19396				8u8,
19397				val as u64,
19398			)
19399		}
19400	}
19401	#[inline]
19402	pub fn ref_width(&self) -> u32 {
19403		unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 8u8) as u32) }
19404	}
19405	#[inline]
19406	pub fn set_ref_width(&mut self, val: u32) {
19407		unsafe {
19408			let val: u32 = ::std::mem::transmute(val);
19409			self._bitfield_1.set(64usize, 8u8, val as u64)
19410		}
19411	}
19412	#[inline]
19413	pub unsafe fn ref_width_raw(this: *const Self) -> u32 {
19414		unsafe {
19415			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19416				::std::ptr::addr_of!((*this)._bitfield_1),
19417				64usize,
19418				8u8,
19419			) as u32)
19420		}
19421	}
19422	#[inline]
19423	pub unsafe fn set_ref_width_raw(this: *mut Self, val: u32) {
19424		unsafe {
19425			let val: u32 = ::std::mem::transmute(val);
19426			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19427				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19428				64usize,
19429				8u8,
19430				val as u64,
19431			)
19432		}
19433	}
19434	#[inline]
19435	pub fn ref_height(&self) -> u32 {
19436		unsafe { ::std::mem::transmute(self._bitfield_1.get(72usize, 8u8) as u32) }
19437	}
19438	#[inline]
19439	pub fn set_ref_height(&mut self, val: u32) {
19440		unsafe {
19441			let val: u32 = ::std::mem::transmute(val);
19442			self._bitfield_1.set(72usize, 8u8, val as u64)
19443		}
19444	}
19445	#[inline]
19446	pub unsafe fn ref_height_raw(this: *const Self) -> u32 {
19447		unsafe {
19448			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19449				::std::ptr::addr_of!((*this)._bitfield_1),
19450				72usize,
19451				8u8,
19452			) as u32)
19453		}
19454	}
19455	#[inline]
19456	pub unsafe fn set_ref_height_raw(this: *mut Self, val: u32) {
19457		unsafe {
19458			let val: u32 = ::std::mem::transmute(val);
19459			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19460				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19461				72usize,
19462				8u8,
19463				val as u64,
19464			)
19465		}
19466	}
19467	#[inline]
19468	pub fn search_window(&self) -> u32 {
19469		unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 4u8) as u32) }
19470	}
19471	#[inline]
19472	pub fn set_search_window(&mut self, val: u32) {
19473		unsafe {
19474			let val: u32 = ::std::mem::transmute(val);
19475			self._bitfield_1.set(80usize, 4u8, val as u64)
19476		}
19477	}
19478	#[inline]
19479	pub unsafe fn search_window_raw(this: *const Self) -> u32 {
19480		unsafe {
19481			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19482				::std::ptr::addr_of!((*this)._bitfield_1),
19483				80usize,
19484				4u8,
19485			) as u32)
19486		}
19487	}
19488	#[inline]
19489	pub unsafe fn set_search_window_raw(this: *mut Self, val: u32) {
19490		unsafe {
19491			let val: u32 = ::std::mem::transmute(val);
19492			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19493				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19494				80usize,
19495				4u8,
19496				val as u64,
19497			)
19498		}
19499	}
19500	#[inline]
19501	pub fn reserved2(&self) -> u32 {
19502		unsafe { ::std::mem::transmute(self._bitfield_1.get(84usize, 12u8) as u32) }
19503	}
19504	#[inline]
19505	pub fn set_reserved2(&mut self, val: u32) {
19506		unsafe {
19507			let val: u32 = ::std::mem::transmute(val);
19508			self._bitfield_1.set(84usize, 12u8, val as u64)
19509		}
19510	}
19511	#[inline]
19512	pub unsafe fn reserved2_raw(this: *const Self) -> u32 {
19513		unsafe {
19514			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19515				::std::ptr::addr_of!((*this)._bitfield_1),
19516				84usize,
19517				12u8,
19518			) as u32)
19519		}
19520	}
19521	#[inline]
19522	pub unsafe fn set_reserved2_raw(this: *mut Self, val: u32) {
19523		unsafe {
19524			let val: u32 = ::std::mem::transmute(val);
19525			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19526				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19527				84usize,
19528				12u8,
19529				val as u64,
19530			)
19531		}
19532	}
19533	#[inline]
19534	pub fn disable_mv_output(&self) -> u32 {
19535		unsafe { ::std::mem::transmute(self._bitfield_1.get(96usize, 1u8) as u32) }
19536	}
19537	#[inline]
19538	pub fn set_disable_mv_output(&mut self, val: u32) {
19539		unsafe {
19540			let val: u32 = ::std::mem::transmute(val);
19541			self._bitfield_1.set(96usize, 1u8, val as u64)
19542		}
19543	}
19544	#[inline]
19545	pub unsafe fn disable_mv_output_raw(this: *const Self) -> u32 {
19546		unsafe {
19547			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19548				::std::ptr::addr_of!((*this)._bitfield_1),
19549				96usize,
19550				1u8,
19551			) as u32)
19552		}
19553	}
19554	#[inline]
19555	pub unsafe fn set_disable_mv_output_raw(this: *mut Self, val: u32) {
19556		unsafe {
19557			let val: u32 = ::std::mem::transmute(val);
19558			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19559				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19560				96usize,
19561				1u8,
19562				val as u64,
19563			)
19564		}
19565	}
19566	#[inline]
19567	pub fn disable_statistics_output(&self) -> u32 {
19568		unsafe { ::std::mem::transmute(self._bitfield_1.get(97usize, 1u8) as u32) }
19569	}
19570	#[inline]
19571	pub fn set_disable_statistics_output(&mut self, val: u32) {
19572		unsafe {
19573			let val: u32 = ::std::mem::transmute(val);
19574			self._bitfield_1.set(97usize, 1u8, val as u64)
19575		}
19576	}
19577	#[inline]
19578	pub unsafe fn disable_statistics_output_raw(this: *const Self) -> u32 {
19579		unsafe {
19580			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19581				::std::ptr::addr_of!((*this)._bitfield_1),
19582				97usize,
19583				1u8,
19584			) as u32)
19585		}
19586	}
19587	#[inline]
19588	pub unsafe fn set_disable_statistics_output_raw(this: *mut Self, val: u32) {
19589		unsafe {
19590			let val: u32 = ::std::mem::transmute(val);
19591			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19592				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19593				97usize,
19594				1u8,
19595				val as u64,
19596			)
19597		}
19598	}
19599	#[inline]
19600	pub fn enable_8x8_statistics(&self) -> u32 {
19601		unsafe { ::std::mem::transmute(self._bitfield_1.get(98usize, 1u8) as u32) }
19602	}
19603	#[inline]
19604	pub fn set_enable_8x8_statistics(&mut self, val: u32) {
19605		unsafe {
19606			let val: u32 = ::std::mem::transmute(val);
19607			self._bitfield_1.set(98usize, 1u8, val as u64)
19608		}
19609	}
19610	#[inline]
19611	pub unsafe fn enable_8x8_statistics_raw(this: *const Self) -> u32 {
19612		unsafe {
19613			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19614				::std::ptr::addr_of!((*this)._bitfield_1),
19615				98usize,
19616				1u8,
19617			) as u32)
19618		}
19619	}
19620	#[inline]
19621	pub unsafe fn set_enable_8x8_statistics_raw(this: *mut Self, val: u32) {
19622		unsafe {
19623			let val: u32 = ::std::mem::transmute(val);
19624			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19625				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19626				98usize,
19627				1u8,
19628				val as u64,
19629			)
19630		}
19631	}
19632	#[inline]
19633	pub fn reserved3(&self) -> u32 {
19634		unsafe { ::std::mem::transmute(self._bitfield_1.get(99usize, 29u8) as u32) }
19635	}
19636	#[inline]
19637	pub fn set_reserved3(&mut self, val: u32) {
19638		unsafe {
19639			let val: u32 = ::std::mem::transmute(val);
19640			self._bitfield_1.set(99usize, 29u8, val as u64)
19641		}
19642	}
19643	#[inline]
19644	pub unsafe fn reserved3_raw(this: *const Self) -> u32 {
19645		unsafe {
19646			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19647				::std::ptr::addr_of!((*this)._bitfield_1),
19648				99usize,
19649				29u8,
19650			) as u32)
19651		}
19652	}
19653	#[inline]
19654	pub unsafe fn set_reserved3_raw(this: *mut Self, val: u32) {
19655		unsafe {
19656			let val: u32 = ::std::mem::transmute(val);
19657			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19658				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19659				99usize,
19660				29u8,
19661				val as u64,
19662			)
19663		}
19664	}
19665	#[inline]
19666	pub fn new_bitfield_1(
19667		frame_qp: u32,
19668		len_sp: u32,
19669		search_path: u32,
19670		reserved0: u32,
19671		sub_mb_part_mask: u32,
19672		sub_pel_mode: u32,
19673		inter_sad: u32,
19674		intra_sad: u32,
19675		adaptive_search: u32,
19676		mv_predictor_ctrl: u32,
19677		mb_qp: u32,
19678		ft_enable: u32,
19679		intra_part_mask: u32,
19680		reserved1: u32,
19681		ref_width: u32,
19682		ref_height: u32,
19683		search_window: u32,
19684		reserved2: u32,
19685		disable_mv_output: u32,
19686		disable_statistics_output: u32,
19687		enable_8x8_statistics: u32,
19688		reserved3: u32,
19689	) -> __BindgenBitfieldUnit<[u8; 16usize]> {
19690		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 16usize]> = Default::default();
19691		__bindgen_bitfield_unit.set(0usize, 8u8, {
19692			let frame_qp: u32 = unsafe { ::std::mem::transmute(frame_qp) };
19693			frame_qp as u64
19694		});
19695		__bindgen_bitfield_unit.set(8usize, 8u8, {
19696			let len_sp: u32 = unsafe { ::std::mem::transmute(len_sp) };
19697			len_sp as u64
19698		});
19699		__bindgen_bitfield_unit.set(16usize, 8u8, {
19700			let search_path: u32 = unsafe { ::std::mem::transmute(search_path) };
19701			search_path as u64
19702		});
19703		__bindgen_bitfield_unit.set(24usize, 8u8, {
19704			let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
19705			reserved0 as u64
19706		});
19707		__bindgen_bitfield_unit.set(32usize, 7u8, {
19708			let sub_mb_part_mask: u32 = unsafe { ::std::mem::transmute(sub_mb_part_mask) };
19709			sub_mb_part_mask as u64
19710		});
19711		__bindgen_bitfield_unit.set(39usize, 2u8, {
19712			let sub_pel_mode: u32 = unsafe { ::std::mem::transmute(sub_pel_mode) };
19713			sub_pel_mode as u64
19714		});
19715		__bindgen_bitfield_unit.set(41usize, 2u8, {
19716			let inter_sad: u32 = unsafe { ::std::mem::transmute(inter_sad) };
19717			inter_sad as u64
19718		});
19719		__bindgen_bitfield_unit.set(43usize, 2u8, {
19720			let intra_sad: u32 = unsafe { ::std::mem::transmute(intra_sad) };
19721			intra_sad as u64
19722		});
19723		__bindgen_bitfield_unit.set(45usize, 1u8, {
19724			let adaptive_search: u32 = unsafe { ::std::mem::transmute(adaptive_search) };
19725			adaptive_search as u64
19726		});
19727		__bindgen_bitfield_unit.set(46usize, 3u8, {
19728			let mv_predictor_ctrl: u32 = unsafe { ::std::mem::transmute(mv_predictor_ctrl) };
19729			mv_predictor_ctrl as u64
19730		});
19731		__bindgen_bitfield_unit.set(49usize, 1u8, {
19732			let mb_qp: u32 = unsafe { ::std::mem::transmute(mb_qp) };
19733			mb_qp as u64
19734		});
19735		__bindgen_bitfield_unit.set(50usize, 1u8, {
19736			let ft_enable: u32 = unsafe { ::std::mem::transmute(ft_enable) };
19737			ft_enable as u64
19738		});
19739		__bindgen_bitfield_unit.set(51usize, 5u8, {
19740			let intra_part_mask: u32 = unsafe { ::std::mem::transmute(intra_part_mask) };
19741			intra_part_mask as u64
19742		});
19743		__bindgen_bitfield_unit.set(56usize, 8u8, {
19744			let reserved1: u32 = unsafe { ::std::mem::transmute(reserved1) };
19745			reserved1 as u64
19746		});
19747		__bindgen_bitfield_unit.set(64usize, 8u8, {
19748			let ref_width: u32 = unsafe { ::std::mem::transmute(ref_width) };
19749			ref_width as u64
19750		});
19751		__bindgen_bitfield_unit.set(72usize, 8u8, {
19752			let ref_height: u32 = unsafe { ::std::mem::transmute(ref_height) };
19753			ref_height as u64
19754		});
19755		__bindgen_bitfield_unit.set(80usize, 4u8, {
19756			let search_window: u32 = unsafe { ::std::mem::transmute(search_window) };
19757			search_window as u64
19758		});
19759		__bindgen_bitfield_unit.set(84usize, 12u8, {
19760			let reserved2: u32 = unsafe { ::std::mem::transmute(reserved2) };
19761			reserved2 as u64
19762		});
19763		__bindgen_bitfield_unit.set(96usize, 1u8, {
19764			let disable_mv_output: u32 = unsafe { ::std::mem::transmute(disable_mv_output) };
19765			disable_mv_output as u64
19766		});
19767		__bindgen_bitfield_unit.set(97usize, 1u8, {
19768			let disable_statistics_output: u32 = unsafe { ::std::mem::transmute(disable_statistics_output) };
19769			disable_statistics_output as u64
19770		});
19771		__bindgen_bitfield_unit.set(98usize, 1u8, {
19772			let enable_8x8_statistics: u32 = unsafe { ::std::mem::transmute(enable_8x8_statistics) };
19773			enable_8x8_statistics as u64
19774		});
19775		__bindgen_bitfield_unit.set(99usize, 29u8, {
19776			let reserved3: u32 = unsafe { ::std::mem::transmute(reserved3) };
19777			reserved3 as u64
19778		});
19779		__bindgen_bitfield_unit
19780	}
19781}
19782#[doc = " \\brief Motion Vector and Statistics frame level controls.\n VAStatsStatisticsParameterBufferType for H264 16x16 block"]
19783pub type VAStatsStatisticsParameterH264 = _VAStatsStatisticsParameterH264;
19784#[doc = " \\brief VAStatsStatisticsH264. H264 Statistics buffer layout for VAStatsStatisticsBufferType\n and VAStatsStatisticsBottomFieldBufferType(for interlaced only).\n Statistics output is per 16x16 block. Data structure per 16x16 block is defined below.\n The 16x16 block is in raster scan order. The buffer size shall be greater than or equal to\n the number of 16x16 blocks multiplied by sizeof(VAStatsStatisticsH264)."]
19785#[repr(C)]
19786#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
19787pub struct _VAStatsStatisticsH264 {
19788	pub _bitfield_align_1: [u16; 0],
19789	pub _bitfield_1: __BindgenBitfieldUnit<[u8; 16usize]>,
19790	pub sum_coef: u32,
19791	pub _bitfield_align_2: [u32; 0],
19792	pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>,
19793	#[doc = " \\brief DWORD 6 variance for block16x16"]
19794	pub variance_16x16: u32,
19795	#[doc = " \\brief DWORD 7 ~ 10, variance for block8x8"]
19796	pub variance_8x8: [u32; 4usize],
19797	#[doc = " \\brief DWORD 11 pixel_average for block16x16"]
19798	pub pixel_average_16x16: u32,
19799	#[doc = " \\brief DWORD 12 ~ 15, pixel_average for block8x8"]
19800	pub pixel_average_8x8: [u32; 4usize],
19801}
19802impl _VAStatsStatisticsH264 {
19803	#[inline]
19804	pub fn best_inter_distortion0(&self) -> u32 {
19805		unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 16u8) as u32) }
19806	}
19807	#[inline]
19808	pub fn set_best_inter_distortion0(&mut self, val: u32) {
19809		unsafe {
19810			let val: u32 = ::std::mem::transmute(val);
19811			self._bitfield_1.set(0usize, 16u8, val as u64)
19812		}
19813	}
19814	#[inline]
19815	pub unsafe fn best_inter_distortion0_raw(this: *const Self) -> u32 {
19816		unsafe {
19817			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19818				::std::ptr::addr_of!((*this)._bitfield_1),
19819				0usize,
19820				16u8,
19821			) as u32)
19822		}
19823	}
19824	#[inline]
19825	pub unsafe fn set_best_inter_distortion0_raw(this: *mut Self, val: u32) {
19826		unsafe {
19827			let val: u32 = ::std::mem::transmute(val);
19828			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19829				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19830				0usize,
19831				16u8,
19832				val as u64,
19833			)
19834		}
19835	}
19836	#[inline]
19837	pub fn inter_mode0(&self) -> u32 {
19838		unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
19839	}
19840	#[inline]
19841	pub fn set_inter_mode0(&mut self, val: u32) {
19842		unsafe {
19843			let val: u32 = ::std::mem::transmute(val);
19844			self._bitfield_1.set(16usize, 16u8, val as u64)
19845		}
19846	}
19847	#[inline]
19848	pub unsafe fn inter_mode0_raw(this: *const Self) -> u32 {
19849		unsafe {
19850			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19851				::std::ptr::addr_of!((*this)._bitfield_1),
19852				16usize,
19853				16u8,
19854			) as u32)
19855		}
19856	}
19857	#[inline]
19858	pub unsafe fn set_inter_mode0_raw(this: *mut Self, val: u32) {
19859		unsafe {
19860			let val: u32 = ::std::mem::transmute(val);
19861			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19862				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19863				16usize,
19864				16u8,
19865				val as u64,
19866			)
19867		}
19868	}
19869	#[inline]
19870	pub fn best_inter_distortion1(&self) -> u32 {
19871		unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 16u8) as u32) }
19872	}
19873	#[inline]
19874	pub fn set_best_inter_distortion1(&mut self, val: u32) {
19875		unsafe {
19876			let val: u32 = ::std::mem::transmute(val);
19877			self._bitfield_1.set(32usize, 16u8, val as u64)
19878		}
19879	}
19880	#[inline]
19881	pub unsafe fn best_inter_distortion1_raw(this: *const Self) -> u32 {
19882		unsafe {
19883			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19884				::std::ptr::addr_of!((*this)._bitfield_1),
19885				32usize,
19886				16u8,
19887			) as u32)
19888		}
19889	}
19890	#[inline]
19891	pub unsafe fn set_best_inter_distortion1_raw(this: *mut Self, val: u32) {
19892		unsafe {
19893			let val: u32 = ::std::mem::transmute(val);
19894			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19895				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19896				32usize,
19897				16u8,
19898				val as u64,
19899			)
19900		}
19901	}
19902	#[inline]
19903	pub fn inter_mode1(&self) -> u32 {
19904		unsafe { ::std::mem::transmute(self._bitfield_1.get(48usize, 16u8) as u32) }
19905	}
19906	#[inline]
19907	pub fn set_inter_mode1(&mut self, val: u32) {
19908		unsafe {
19909			let val: u32 = ::std::mem::transmute(val);
19910			self._bitfield_1.set(48usize, 16u8, val as u64)
19911		}
19912	}
19913	#[inline]
19914	pub unsafe fn inter_mode1_raw(this: *const Self) -> u32 {
19915		unsafe {
19916			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19917				::std::ptr::addr_of!((*this)._bitfield_1),
19918				48usize,
19919				16u8,
19920			) as u32)
19921		}
19922	}
19923	#[inline]
19924	pub unsafe fn set_inter_mode1_raw(this: *mut Self, val: u32) {
19925		unsafe {
19926			let val: u32 = ::std::mem::transmute(val);
19927			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19928				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19929				48usize,
19930				16u8,
19931				val as u64,
19932			)
19933		}
19934	}
19935	#[inline]
19936	pub fn best_intra_distortion(&self) -> u32 {
19937		unsafe { ::std::mem::transmute(self._bitfield_1.get(64usize, 16u8) as u32) }
19938	}
19939	#[inline]
19940	pub fn set_best_intra_distortion(&mut self, val: u32) {
19941		unsafe {
19942			let val: u32 = ::std::mem::transmute(val);
19943			self._bitfield_1.set(64usize, 16u8, val as u64)
19944		}
19945	}
19946	#[inline]
19947	pub unsafe fn best_intra_distortion_raw(this: *const Self) -> u32 {
19948		unsafe {
19949			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19950				::std::ptr::addr_of!((*this)._bitfield_1),
19951				64usize,
19952				16u8,
19953			) as u32)
19954		}
19955	}
19956	#[inline]
19957	pub unsafe fn set_best_intra_distortion_raw(this: *mut Self, val: u32) {
19958		unsafe {
19959			let val: u32 = ::std::mem::transmute(val);
19960			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19961				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19962				64usize,
19963				16u8,
19964				val as u64,
19965			)
19966		}
19967	}
19968	#[inline]
19969	pub fn intra_mode(&self) -> u32 {
19970		unsafe { ::std::mem::transmute(self._bitfield_1.get(80usize, 16u8) as u32) }
19971	}
19972	#[inline]
19973	pub fn set_intra_mode(&mut self, val: u32) {
19974		unsafe {
19975			let val: u32 = ::std::mem::transmute(val);
19976			self._bitfield_1.set(80usize, 16u8, val as u64)
19977		}
19978	}
19979	#[inline]
19980	pub unsafe fn intra_mode_raw(this: *const Self) -> u32 {
19981		unsafe {
19982			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
19983				::std::ptr::addr_of!((*this)._bitfield_1),
19984				80usize,
19985				16u8,
19986			) as u32)
19987		}
19988	}
19989	#[inline]
19990	pub unsafe fn set_intra_mode_raw(this: *mut Self, val: u32) {
19991		unsafe {
19992			let val: u32 = ::std::mem::transmute(val);
19993			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
19994				::std::ptr::addr_of_mut!((*this)._bitfield_1),
19995				80usize,
19996				16u8,
19997				val as u64,
19998			)
19999		}
20000	}
20001	#[inline]
20002	pub fn num_non_zero_coef(&self) -> u32 {
20003		unsafe { ::std::mem::transmute(self._bitfield_1.get(96usize, 16u8) as u32) }
20004	}
20005	#[inline]
20006	pub fn set_num_non_zero_coef(&mut self, val: u32) {
20007		unsafe {
20008			let val: u32 = ::std::mem::transmute(val);
20009			self._bitfield_1.set(96usize, 16u8, val as u64)
20010		}
20011	}
20012	#[inline]
20013	pub unsafe fn num_non_zero_coef_raw(this: *const Self) -> u32 {
20014		unsafe {
20015			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
20016				::std::ptr::addr_of!((*this)._bitfield_1),
20017				96usize,
20018				16u8,
20019			) as u32)
20020		}
20021	}
20022	#[inline]
20023	pub unsafe fn set_num_non_zero_coef_raw(this: *mut Self, val: u32) {
20024		unsafe {
20025			let val: u32 = ::std::mem::transmute(val);
20026			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
20027				::std::ptr::addr_of_mut!((*this)._bitfield_1),
20028				96usize,
20029				16u8,
20030				val as u64,
20031			)
20032		}
20033	}
20034	#[inline]
20035	pub fn reserved0(&self) -> u32 {
20036		unsafe { ::std::mem::transmute(self._bitfield_1.get(112usize, 16u8) as u32) }
20037	}
20038	#[inline]
20039	pub fn set_reserved0(&mut self, val: u32) {
20040		unsafe {
20041			let val: u32 = ::std::mem::transmute(val);
20042			self._bitfield_1.set(112usize, 16u8, val as u64)
20043		}
20044	}
20045	#[inline]
20046	pub unsafe fn reserved0_raw(this: *const Self) -> u32 {
20047		unsafe {
20048			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_get(
20049				::std::ptr::addr_of!((*this)._bitfield_1),
20050				112usize,
20051				16u8,
20052			) as u32)
20053		}
20054	}
20055	#[inline]
20056	pub unsafe fn set_reserved0_raw(this: *mut Self, val: u32) {
20057		unsafe {
20058			let val: u32 = ::std::mem::transmute(val);
20059			<__BindgenBitfieldUnit<[u8; 16usize]>>::raw_set(
20060				::std::ptr::addr_of_mut!((*this)._bitfield_1),
20061				112usize,
20062				16u8,
20063				val as u64,
20064			)
20065		}
20066	}
20067	#[inline]
20068	pub fn new_bitfield_1(
20069		best_inter_distortion0: u32,
20070		inter_mode0: u32,
20071		best_inter_distortion1: u32,
20072		inter_mode1: u32,
20073		best_intra_distortion: u32,
20074		intra_mode: u32,
20075		num_non_zero_coef: u32,
20076		reserved0: u32,
20077	) -> __BindgenBitfieldUnit<[u8; 16usize]> {
20078		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 16usize]> = Default::default();
20079		__bindgen_bitfield_unit.set(0usize, 16u8, {
20080			let best_inter_distortion0: u32 = unsafe { ::std::mem::transmute(best_inter_distortion0) };
20081			best_inter_distortion0 as u64
20082		});
20083		__bindgen_bitfield_unit.set(16usize, 16u8, {
20084			let inter_mode0: u32 = unsafe { ::std::mem::transmute(inter_mode0) };
20085			inter_mode0 as u64
20086		});
20087		__bindgen_bitfield_unit.set(32usize, 16u8, {
20088			let best_inter_distortion1: u32 = unsafe { ::std::mem::transmute(best_inter_distortion1) };
20089			best_inter_distortion1 as u64
20090		});
20091		__bindgen_bitfield_unit.set(48usize, 16u8, {
20092			let inter_mode1: u32 = unsafe { ::std::mem::transmute(inter_mode1) };
20093			inter_mode1 as u64
20094		});
20095		__bindgen_bitfield_unit.set(64usize, 16u8, {
20096			let best_intra_distortion: u32 = unsafe { ::std::mem::transmute(best_intra_distortion) };
20097			best_intra_distortion as u64
20098		});
20099		__bindgen_bitfield_unit.set(80usize, 16u8, {
20100			let intra_mode: u32 = unsafe { ::std::mem::transmute(intra_mode) };
20101			intra_mode as u64
20102		});
20103		__bindgen_bitfield_unit.set(96usize, 16u8, {
20104			let num_non_zero_coef: u32 = unsafe { ::std::mem::transmute(num_non_zero_coef) };
20105			num_non_zero_coef as u64
20106		});
20107		__bindgen_bitfield_unit.set(112usize, 16u8, {
20108			let reserved0: u32 = unsafe { ::std::mem::transmute(reserved0) };
20109			reserved0 as u64
20110		});
20111		__bindgen_bitfield_unit
20112	}
20113	#[inline]
20114	pub fn mb_is_flat(&self) -> u32 {
20115		unsafe { ::std::mem::transmute(self._bitfield_2.get(0usize, 1u8) as u32) }
20116	}
20117	#[inline]
20118	pub fn set_mb_is_flat(&mut self, val: u32) {
20119		unsafe {
20120			let val: u32 = ::std::mem::transmute(val);
20121			self._bitfield_2.set(0usize, 1u8, val as u64)
20122		}
20123	}
20124	#[inline]
20125	pub unsafe fn mb_is_flat_raw(this: *const Self) -> u32 {
20126		unsafe {
20127			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
20128				::std::ptr::addr_of!((*this)._bitfield_2),
20129				0usize,
20130				1u8,
20131			) as u32)
20132		}
20133	}
20134	#[inline]
20135	pub unsafe fn set_mb_is_flat_raw(this: *mut Self, val: u32) {
20136		unsafe {
20137			let val: u32 = ::std::mem::transmute(val);
20138			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
20139				::std::ptr::addr_of_mut!((*this)._bitfield_2),
20140				0usize,
20141				1u8,
20142				val as u64,
20143			)
20144		}
20145	}
20146	#[inline]
20147	pub fn reserved1(&self) -> u32 {
20148		unsafe { ::std::mem::transmute(self._bitfield_2.get(1usize, 31u8) as u32) }
20149	}
20150	#[inline]
20151	pub fn set_reserved1(&mut self, val: u32) {
20152		unsafe {
20153			let val: u32 = ::std::mem::transmute(val);
20154			self._bitfield_2.set(1usize, 31u8, val as u64)
20155		}
20156	}
20157	#[inline]
20158	pub unsafe fn reserved1_raw(this: *const Self) -> u32 {
20159		unsafe {
20160			::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
20161				::std::ptr::addr_of!((*this)._bitfield_2),
20162				1usize,
20163				31u8,
20164			) as u32)
20165		}
20166	}
20167	#[inline]
20168	pub unsafe fn set_reserved1_raw(this: *mut Self, val: u32) {
20169		unsafe {
20170			let val: u32 = ::std::mem::transmute(val);
20171			<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
20172				::std::ptr::addr_of_mut!((*this)._bitfield_2),
20173				1usize,
20174				31u8,
20175				val as u64,
20176			)
20177		}
20178	}
20179	#[inline]
20180	pub fn new_bitfield_2(mb_is_flat: u32, reserved1: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
20181		let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
20182		__bindgen_bitfield_unit.set(0usize, 1u8, {
20183			let mb_is_flat: u32 = unsafe { ::std::mem::transmute(mb_is_flat) };
20184			mb_is_flat as u64
20185		});
20186		__bindgen_bitfield_unit.set(1usize, 31u8, {
20187			let reserved1: u32 = unsafe { ::std::mem::transmute(reserved1) };
20188			reserved1 as u64
20189		});
20190		__bindgen_bitfield_unit
20191	}
20192}
20193#[doc = " \\brief VAStatsStatisticsH264. H264 Statistics buffer layout for VAStatsStatisticsBufferType\n and VAStatsStatisticsBottomFieldBufferType(for interlaced only).\n Statistics output is per 16x16 block. Data structure per 16x16 block is defined below.\n The 16x16 block is in raster scan order. The buffer size shall be greater than or equal to\n the number of 16x16 blocks multiplied by sizeof(VAStatsStatisticsH264)."]
20194pub type VAStatsStatisticsH264 = _VAStatsStatisticsH264;
20195pub const _VAProcFilterType_VAProcFilterNone: _VAProcFilterType = 0;
20196#[doc = " \\brief Noise reduction filter."]
20197pub const _VAProcFilterType_VAProcFilterNoiseReduction: _VAProcFilterType = 1;
20198#[doc = " \\brief Deinterlacing filter."]
20199pub const _VAProcFilterType_VAProcFilterDeinterlacing: _VAProcFilterType = 2;
20200#[doc = " \\brief Sharpening filter."]
20201pub const _VAProcFilterType_VAProcFilterSharpening: _VAProcFilterType = 3;
20202#[doc = " \\brief Color balance parameters."]
20203pub const _VAProcFilterType_VAProcFilterColorBalance: _VAProcFilterType = 4;
20204#[doc = " \\brief Skin Tone Enhancement."]
20205pub const _VAProcFilterType_VAProcFilterSkinToneEnhancement: _VAProcFilterType = 5;
20206#[doc = " \\brief Total Color Correction."]
20207pub const _VAProcFilterType_VAProcFilterTotalColorCorrection: _VAProcFilterType = 6;
20208#[doc = " \\brief Human Vision System(HVS) Noise reduction filter."]
20209pub const _VAProcFilterType_VAProcFilterHVSNoiseReduction: _VAProcFilterType = 7;
20210#[doc = " \\brief High Dynamic Range Tone Mapping."]
20211pub const _VAProcFilterType_VAProcFilterHighDynamicRangeToneMapping: _VAProcFilterType = 8;
20212#[doc = " \\brief Three-Dimensional Look Up Table (3DLUT)."]
20213pub const _VAProcFilterType_VAProcFilter3DLUT: _VAProcFilterType = 9;
20214#[doc = " \\brief Number of video filters."]
20215pub const _VAProcFilterType_VAProcFilterCount: _VAProcFilterType = 10;
20216#[doc = " \\brief Video filter types."]
20217pub type _VAProcFilterType = ::std::os::raw::c_uint;
20218#[doc = " \\brief Video filter types."]
20219pub use self::_VAProcFilterType as VAProcFilterType;
20220pub const _VAProcDeinterlacingType_VAProcDeinterlacingNone: _VAProcDeinterlacingType = 0;
20221#[doc = " \\brief Bob deinterlacing algorithm."]
20222pub const _VAProcDeinterlacingType_VAProcDeinterlacingBob: _VAProcDeinterlacingType = 1;
20223#[doc = " \\brief Weave deinterlacing algorithm."]
20224pub const _VAProcDeinterlacingType_VAProcDeinterlacingWeave: _VAProcDeinterlacingType = 2;
20225#[doc = " \\brief Motion adaptive deinterlacing algorithm."]
20226pub const _VAProcDeinterlacingType_VAProcDeinterlacingMotionAdaptive: _VAProcDeinterlacingType = 3;
20227#[doc = " \\brief Motion compensated deinterlacing algorithm."]
20228pub const _VAProcDeinterlacingType_VAProcDeinterlacingMotionCompensated: _VAProcDeinterlacingType = 4;
20229#[doc = " \\brief Number of deinterlacing algorithms."]
20230pub const _VAProcDeinterlacingType_VAProcDeinterlacingCount: _VAProcDeinterlacingType = 5;
20231#[doc = " \\brief Deinterlacing types."]
20232pub type _VAProcDeinterlacingType = ::std::os::raw::c_uint;
20233#[doc = " \\brief Deinterlacing types."]
20234pub use self::_VAProcDeinterlacingType as VAProcDeinterlacingType;
20235pub const _VAProcColorBalanceType_VAProcColorBalanceNone: _VAProcColorBalanceType = 0;
20236#[doc = " \\brief Hue."]
20237pub const _VAProcColorBalanceType_VAProcColorBalanceHue: _VAProcColorBalanceType = 1;
20238#[doc = " \\brief Saturation."]
20239pub const _VAProcColorBalanceType_VAProcColorBalanceSaturation: _VAProcColorBalanceType = 2;
20240#[doc = " \\brief Brightness."]
20241pub const _VAProcColorBalanceType_VAProcColorBalanceBrightness: _VAProcColorBalanceType = 3;
20242#[doc = " \\brief Contrast."]
20243pub const _VAProcColorBalanceType_VAProcColorBalanceContrast: _VAProcColorBalanceType = 4;
20244#[doc = " \\brief Automatically adjusted saturation."]
20245pub const _VAProcColorBalanceType_VAProcColorBalanceAutoSaturation: _VAProcColorBalanceType = 5;
20246#[doc = " \\brief Automatically adjusted brightness."]
20247pub const _VAProcColorBalanceType_VAProcColorBalanceAutoBrightness: _VAProcColorBalanceType = 6;
20248#[doc = " \\brief Automatically adjusted contrast."]
20249pub const _VAProcColorBalanceType_VAProcColorBalanceAutoContrast: _VAProcColorBalanceType = 7;
20250#[doc = " \\brief Number of color balance attributes."]
20251pub const _VAProcColorBalanceType_VAProcColorBalanceCount: _VAProcColorBalanceType = 8;
20252#[doc = " \\brief Color balance types."]
20253pub type _VAProcColorBalanceType = ::std::os::raw::c_uint;
20254#[doc = " \\brief Color balance types."]
20255pub use self::_VAProcColorBalanceType as VAProcColorBalanceType;
20256pub const _VAProcColorStandardType_VAProcColorStandardNone: _VAProcColorStandardType = 0;
20257#[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"]
20258pub const _VAProcColorStandardType_VAProcColorStandardBT601: _VAProcColorStandardType = 1;
20259#[doc = " \\brief ITU-R BT.709.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 1\n   matrix_coefficients = 1"]
20260pub const _VAProcColorStandardType_VAProcColorStandardBT709: _VAProcColorStandardType = 2;
20261#[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"]
20262pub const _VAProcColorStandardType_VAProcColorStandardBT470M: _VAProcColorStandardType = 3;
20263#[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"]
20264pub const _VAProcColorStandardType_VAProcColorStandardBT470BG: _VAProcColorStandardType = 4;
20265#[doc = " \\brief SMPTE-170M.\n\n Equivalent to:\n   colour_primaries = 6\n   transfer_characteristics = 6\n   matrix_coefficients = 6"]
20266pub const _VAProcColorStandardType_VAProcColorStandardSMPTE170M: _VAProcColorStandardType = 5;
20267#[doc = " \\brief SMPTE-240M.\n\n Equivalent to:\n   colour_primaries = 7\n   transfer_characteristics = 7\n   matrix_coefficients = 7"]
20268pub const _VAProcColorStandardType_VAProcColorStandardSMPTE240M: _VAProcColorStandardType = 6;
20269#[doc = " \\brief Generic film.\n\n Equivalent to:\n   colour_primaries = 8\n   transfer_characteristics = 1\n   matrix_coefficients = 1"]
20270pub const _VAProcColorStandardType_VAProcColorStandardGenericFilm: _VAProcColorStandardType = 7;
20271#[doc = " \\brief sRGB.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 13\n   matrix_coefficients = 0"]
20272pub const _VAProcColorStandardType_VAProcColorStandardSRGB: _VAProcColorStandardType = 8;
20273#[doc = " \\brief stRGB.\n\n ???"]
20274pub const _VAProcColorStandardType_VAProcColorStandardSTRGB: _VAProcColorStandardType = 9;
20275#[doc = " \\brief xvYCC601.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 11\n   matrix_coefficients = 5"]
20276pub const _VAProcColorStandardType_VAProcColorStandardXVYCC601: _VAProcColorStandardType = 10;
20277#[doc = " \\brief xvYCC709.\n\n Equivalent to:\n   colour_primaries = 1\n   transfer_characteristics = 11\n   matrix_coefficients = 1"]
20278pub const _VAProcColorStandardType_VAProcColorStandardXVYCC709: _VAProcColorStandardType = 11;
20279#[doc = " \\brief ITU-R BT.2020.\n\n Equivalent to:\n   colour_primaries = 9\n   transfer_characteristics = 14\n   matrix_coefficients = 9"]
20280pub const _VAProcColorStandardType_VAProcColorStandardBT2020: _VAProcColorStandardType = 12;
20281#[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"]
20282pub const _VAProcColorStandardType_VAProcColorStandardExplicit: _VAProcColorStandardType = 13;
20283#[doc = " \\brief Number of color standards."]
20284pub const _VAProcColorStandardType_VAProcColorStandardCount: _VAProcColorStandardType = 14;
20285#[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)."]
20286pub type _VAProcColorStandardType = ::std::os::raw::c_uint;
20287#[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)."]
20288pub use self::_VAProcColorStandardType as VAProcColorStandardType;
20289pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionNone: _VAProcTotalColorCorrectionType = 0;
20290#[doc = " \\brief Red Saturation."]
20291pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionRed: _VAProcTotalColorCorrectionType = 1;
20292#[doc = " \\brief Green Saturation."]
20293pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionGreen: _VAProcTotalColorCorrectionType = 2;
20294#[doc = " \\brief Blue Saturation."]
20295pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionBlue: _VAProcTotalColorCorrectionType = 3;
20296#[doc = " \\brief Cyan Saturation."]
20297pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionCyan: _VAProcTotalColorCorrectionType = 4;
20298#[doc = " \\brief Magenta Saturation."]
20299pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionMagenta: _VAProcTotalColorCorrectionType = 5;
20300#[doc = " \\brief Yellow Saturation."]
20301pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionYellow: _VAProcTotalColorCorrectionType = 6;
20302#[doc = " \\brief Number of color correction attributes."]
20303pub const _VAProcTotalColorCorrectionType_VAProcTotalColorCorrectionCount: _VAProcTotalColorCorrectionType = 7;
20304#[doc = " \\brief Total color correction types."]
20305pub type _VAProcTotalColorCorrectionType = ::std::os::raw::c_uint;
20306#[doc = " \\brief Total color correction types."]
20307pub use self::_VAProcTotalColorCorrectionType as VAProcTotalColorCorrectionType;
20308pub const _VAProcHighDynamicRangeMetadataType_VAProcHighDynamicRangeMetadataNone: _VAProcHighDynamicRangeMetadataType =
20309	0;
20310#[doc = " \\brief Metadata type for HDR10."]
20311pub const _VAProcHighDynamicRangeMetadataType_VAProcHighDynamicRangeMetadataHDR10: _VAProcHighDynamicRangeMetadataType =
20312	1;
20313#[doc = " \\brief Number of Metadata type."]
20314pub const _VAProcHighDynamicRangeMetadataType_VAProcHighDynamicRangeMetadataTypeCount:
20315	_VAProcHighDynamicRangeMetadataType = 2;
20316#[doc = " \\brief High Dynamic Range Metadata types."]
20317pub type _VAProcHighDynamicRangeMetadataType = ::std::os::raw::c_uint;
20318#[doc = " \\brief High Dynamic Range Metadata types."]
20319pub use self::_VAProcHighDynamicRangeMetadataType as VAProcHighDynamicRangeMetadataType;
20320#[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."]
20321pub const _VAProcMode_VAProcDefaultMode: _VAProcMode = 0;
20322#[doc = " \\brief Power Saving Mode.\n In this mode, pipeline is optimized for power saving."]
20323pub const _VAProcMode_VAProcPowerSavingMode: _VAProcMode = 1;
20324#[doc = " \\brief Performance Mode.\n In this mode, pipeline is optimized for performance."]
20325pub const _VAProcMode_VAProcPerformanceMode: _VAProcMode = 2;
20326#[doc = " \\brief Video Processing Mode."]
20327pub type _VAProcMode = ::std::os::raw::c_uint;
20328#[doc = " \\brief Video Processing Mode."]
20329pub use self::_VAProcMode as VAProcMode;
20330#[doc = " \\brief Video blending state definition."]
20331#[repr(C)]
20332#[derive(Debug, Default, Copy, Clone, PartialEq)]
20333pub struct _VABlendState {
20334	#[doc = " \\brief Video blending flags."]
20335	pub flags: ::std::os::raw::c_uint,
20336	#[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."]
20337	pub global_alpha: f32,
20338	#[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."]
20339	pub min_luma: f32,
20340	#[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."]
20341	pub max_luma: f32,
20342}
20343#[doc = " \\brief Video blending state definition."]
20344pub type VABlendState = _VABlendState;
20345#[doc = " \\brief Video processing pipeline capabilities."]
20346#[repr(C)]
20347#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20348pub struct _VAProcPipelineCaps {
20349	#[doc = " \\brief Pipeline flags. See VAProcPipelineParameterBuffer::pipeline_flags."]
20350	pub pipeline_flags: u32,
20351	#[doc = " \\brief Extra filter flags. See VAProcPipelineParameterBuffer::filter_flags."]
20352	pub filter_flags: u32,
20353	#[doc = " \\brief Number of forward reference frames that are needed."]
20354	pub num_forward_references: u32,
20355	#[doc = " \\brief Number of backward reference frames that are needed."]
20356	pub num_backward_references: u32,
20357	#[doc = " \\brief List of color standards supported on input."]
20358	pub input_color_standards: *mut VAProcColorStandardType,
20359	#[doc = " \\brief Number of elements in \\ref input_color_standards array."]
20360	pub num_input_color_standards: u32,
20361	#[doc = " \\brief List of color standards supported on output."]
20362	pub output_color_standards: *mut VAProcColorStandardType,
20363	#[doc = " \\brief Number of elements in \\ref output_color_standards array."]
20364	pub num_output_color_standards: u32,
20365	#[doc = " \\brief Rotation flags.\n\n For each rotation angle supported by the underlying hardware,\n the corresponding bit is set in \\ref rotation_flags. See\n \"Rotation angles\" for a description of rotation angles.\n\n A value of 0 means the underlying hardware does not support any\n rotation. Otherwise, a check for a specific rotation angle can be\n performed as follows:\n\n \\code\n VAProcPipelineCaps pipeline_caps;\n ...\n vaQueryVideoProcPipelineCaps(va_dpy, vpp_ctx,\n     filter_bufs, num_filter_bufs,\n     &pipeline_caps\n );\n ...\n if (pipeline_caps.rotation_flags & (1 << VA_ROTATION_xxx)) {\n     // Clockwise rotation by xxx degrees is supported\n     ...\n }\n \\endcode"]
20366	pub rotation_flags: u32,
20367	#[doc = " \\brief Blend flags. See \"Video blending flags\"."]
20368	pub blend_flags: u32,
20369	#[doc = " \\brief Mirroring flags.\n\n For each mirroring direction supported by the underlying hardware,\n the corresponding bit is set in \\ref mirror_flags. See\n \"Mirroring directions\" for a description of mirroring directions.\n"]
20370	pub mirror_flags: u32,
20371	#[doc = " \\brief Number of additional output surfaces supported by the pipeline"]
20372	pub num_additional_outputs: u32,
20373	#[doc = " \\brief Number of elements in \\ref input_pixel_format array."]
20374	pub num_input_pixel_formats: u32,
20375	#[doc = " \\brief List of input pixel formats in fourcc."]
20376	pub input_pixel_format: *mut u32,
20377	#[doc = " \\brief Number of elements in \\ref output_pixel_format array."]
20378	pub num_output_pixel_formats: u32,
20379	#[doc = " \\brief List of output pixel formats in fourcc."]
20380	pub output_pixel_format: *mut u32,
20381	#[doc = " \\brief Max supported input width in pixels."]
20382	pub max_input_width: u32,
20383	#[doc = " \\brief Max supported input height in pixels."]
20384	pub max_input_height: u32,
20385	#[doc = " \\brief Min supported input width in pixels."]
20386	pub min_input_width: u32,
20387	#[doc = " \\brief Min supported input height in pixels."]
20388	pub min_input_height: u32,
20389	#[doc = " \\brief Max supported output width in pixels."]
20390	pub max_output_width: u32,
20391	#[doc = " \\brief Max supported output height in pixels."]
20392	pub max_output_height: u32,
20393	#[doc = " \\brief Min supported output width in pixels."]
20394	pub min_output_width: u32,
20395	#[doc = " \\brief Min supported output height in pixels."]
20396	pub min_output_height: u32,
20397	#[cfg(any(target_arch = "x86_64", all(target_pointer_width = "64", not(windows))))]
20398	pub va_reserved: [u32; 14usize],
20399	#[cfg(not(any(target_arch = "x86_64", all(target_pointer_width = "64", not(windows)))))]
20400	pub va_reserved: [u32; 16usize],
20401}
20402impl Default for _VAProcPipelineCaps {
20403	fn default() -> Self {
20404		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20405		unsafe {
20406			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20407			s.assume_init()
20408		}
20409	}
20410}
20411#[doc = " \\brief Video processing pipeline capabilities."]
20412pub type VAProcPipelineCaps = _VAProcPipelineCaps;
20413#[doc = " \\brief Specification of values supported by the filter."]
20414#[repr(C)]
20415#[derive(Debug, Default, Copy, Clone, PartialEq)]
20416pub struct _VAProcFilterValueRange {
20417	#[doc = " \\brief Minimum value supported, inclusive."]
20418	pub min_value: f32,
20419	#[doc = " \\brief Maximum value supported, inclusive."]
20420	pub max_value: f32,
20421	#[doc = " \\brief Default value."]
20422	pub default_value: f32,
20423	#[doc = " \\brief Step value that alters the filter behaviour in a sensible way."]
20424	pub step: f32,
20425	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20426	pub va_reserved: [u32; 4usize],
20427}
20428#[doc = " \\brief Specification of values supported by the filter."]
20429pub type VAProcFilterValueRange = _VAProcFilterValueRange;
20430#[repr(C)]
20431#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20432pub struct _VAProcColorProperties {
20433	#[doc = " Chroma sample location.\\c VA_CHROMA_SITING_VERTICAL_XXX | VA_CHROMA_SITING_HORIZONTAL_XXX"]
20434	pub chroma_sample_location: u8,
20435	#[doc = " Color range. \\c VA_SOURCE_RANGE_XXX"]
20436	pub color_range: u8,
20437	#[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 ---------------------------------------------------------------------------------"]
20438	pub colour_primaries: u8,
20439	#[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 -----------------------------------------------------------"]
20440	pub transfer_characteristics: u8,
20441	#[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."]
20442	pub matrix_coefficients: u8,
20443	#[doc = " Reserved bytes for future use, must be zero."]
20444	pub reserved: [u8; 3usize],
20445}
20446pub type VAProcColorProperties = _VAProcColorProperties;
20447#[doc = " \\brief Capabilities specification for the High Dynamic Range filter."]
20448#[repr(C)]
20449#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20450pub struct _VAProcFilterCapHighDynamicRange {
20451	#[doc = " \\brief high dynamic range type."]
20452	pub metadata_type: VAProcHighDynamicRangeMetadataType,
20453	#[doc = " \\brief flag for high dynamic range tone mapping\n\n The flag is the combination of VA_TONE_MAPPING_XXX_TO_XXX.\n It could be VA_TONE_MAPPING_HDR_TO_HDR | VA_TONE_MAPPING_HDR_TO_SDR.\n SDR content to SDR display is always supported by default since it is legacy path."]
20454	pub caps_flag: u16,
20455	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20456	pub va_reserved: [u16; 16usize],
20457}
20458impl Default for _VAProcFilterCapHighDynamicRange {
20459	fn default() -> Self {
20460		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20461		unsafe {
20462			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20463			s.assume_init()
20464		}
20465	}
20466}
20467#[doc = " \\brief Capabilities specification for the High Dynamic Range filter."]
20468pub type VAProcFilterCapHighDynamicRange = _VAProcFilterCapHighDynamicRange;
20469#[doc = " \\brief High Dynamic Range Meta Data."]
20470#[repr(C)]
20471#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20472pub struct _VAHdrMetaData {
20473	#[doc = " \\brief high dynamic range metadata type, HDR10 etc."]
20474	pub metadata_type: VAProcHighDynamicRangeMetadataType,
20475	#[doc = "  \\brief Pointer to high dynamic range metadata.\n\n  The pointer could point to VAHdrMetaDataHDR10 or other HDR meta data."]
20476	pub metadata: *mut ::std::os::raw::c_void,
20477	#[doc = "  \\brief Size of high dynamic range metadata."]
20478	pub metadata_size: u32,
20479	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20480	pub reserved: [u32; 4usize],
20481}
20482impl Default for _VAHdrMetaData {
20483	fn default() -> Self {
20484		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20485		unsafe {
20486			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20487			s.assume_init()
20488		}
20489	}
20490}
20491#[doc = " \\brief High Dynamic Range Meta Data."]
20492pub type VAHdrMetaData = _VAHdrMetaData;
20493#[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."]
20494#[repr(C)]
20495#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20496pub struct _VAProcPipelineParameterBuffer {
20497	#[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."]
20498	pub surface: VASurfaceID,
20499	#[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."]
20500	pub surface_region: *const VARectangle,
20501	#[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."]
20502	pub surface_color_standard: VAProcColorStandardType,
20503	#[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."]
20504	pub output_region: *const VARectangle,
20505	#[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."]
20506	pub output_background_color: u32,
20507	#[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."]
20508	pub output_color_standard: VAProcColorStandardType,
20509	#[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."]
20510	pub pipeline_flags: u32,
20511	#[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."]
20512	pub filter_flags: u32,
20513	#[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"]
20514	pub filters: *mut VABufferID,
20515	#[doc = " \\brief Actual number of filters."]
20516	pub num_filters: u32,
20517	#[doc = " \\brief Array of forward reference frames (past frames)."]
20518	pub forward_references: *mut VASurfaceID,
20519	#[doc = " \\brief Number of forward reference frames that were supplied."]
20520	pub num_forward_references: u32,
20521	#[doc = " \\brief Array of backward reference frames (future frames)."]
20522	pub backward_references: *mut VASurfaceID,
20523	#[doc = " \\brief Number of backward reference frames that were supplied."]
20524	pub num_backward_references: u32,
20525	#[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."]
20526	pub rotation_state: u32,
20527	#[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."]
20528	pub blend_state: *const VABlendState,
20529	#[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."]
20530	pub mirror_state: u32,
20531	#[doc = " \\brief Array of additional output surfaces."]
20532	pub additional_outputs: *mut VASurfaceID,
20533	#[doc = " \\brief Number of additional output surfaces."]
20534	pub num_additional_outputs: u32,
20535	#[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"]
20536	pub input_surface_flag: u32,
20537	#[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"]
20538	pub output_surface_flag: u32,
20539	#[doc = " \\brief Input Color Properties. See \"VAProcColorProperties\"."]
20540	pub input_color_properties: VAProcColorProperties,
20541	#[doc = " \\brief Output Color Properties. See \"VAProcColorProperties\"."]
20542	pub output_color_properties: VAProcColorProperties,
20543	#[doc = " \\brief Processing mode. See \"VAProcMode\"."]
20544	pub processing_mode: VAProcMode,
20545	#[doc = " \\brief Output High Dynamic Metadata.\n\n If output_metadata is NULL, then output default to SDR."]
20546	pub output_hdr_metadata: *mut VAHdrMetaData,
20547	#[cfg(any(target_arch = "x86_64", all(target_pointer_width = "64", not(windows))))]
20548	pub va_reserved: [u32; 16usize],
20549	#[cfg(not(any(target_arch = "x86_64", all(target_pointer_width = "64", not(windows)))))]
20550	pub va_reserved: [u32; 19usize],
20551}
20552impl Default for _VAProcPipelineParameterBuffer {
20553	fn default() -> Self {
20554		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20555		unsafe {
20556			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20557			s.assume_init()
20558		}
20559	}
20560}
20561#[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."]
20562pub type VAProcPipelineParameterBuffer = _VAProcPipelineParameterBuffer;
20563#[doc = " \\brief Filter parameter buffer base.\n\n This is a helper structure used by driver implementations only.\n Users are not supposed to allocate filter parameter buffers of this\n type."]
20564#[repr(C)]
20565#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20566pub struct _VAProcFilterParameterBufferBase {
20567	#[doc = " \\brief Filter type."]
20568	pub type_: VAProcFilterType,
20569}
20570impl Default for _VAProcFilterParameterBufferBase {
20571	fn default() -> Self {
20572		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20573		unsafe {
20574			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20575			s.assume_init()
20576		}
20577	}
20578}
20579#[doc = " \\brief Filter parameter buffer base.\n\n This is a helper structure used by driver implementations only.\n Users are not supposed to allocate filter parameter buffers of this\n type."]
20580pub type VAProcFilterParameterBufferBase = _VAProcFilterParameterBufferBase;
20581#[doc = " \\brief Default filter parametrization.\n\n Unless there is a filter-specific parameter buffer,\n #VAProcFilterParameterBuffer is the default type to use."]
20582#[repr(C)]
20583#[derive(Debug, Copy, Clone, PartialEq)]
20584pub struct _VAProcFilterParameterBuffer {
20585	#[doc = " \\brief Filter type."]
20586	pub type_: VAProcFilterType,
20587	#[doc = " \\brief Value."]
20588	pub value: f32,
20589	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20590	pub va_reserved: [u32; 4usize],
20591}
20592impl Default for _VAProcFilterParameterBuffer {
20593	fn default() -> Self {
20594		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20595		unsafe {
20596			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20597			s.assume_init()
20598		}
20599	}
20600}
20601#[doc = " \\brief Default filter parametrization.\n\n Unless there is a filter-specific parameter buffer,\n #VAProcFilterParameterBuffer is the default type to use."]
20602pub type VAProcFilterParameterBuffer = _VAProcFilterParameterBuffer;
20603#[doc = " \\brief Deinterlacing filter parametrization."]
20604#[repr(C)]
20605#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20606pub struct _VAProcFilterParameterBufferDeinterlacing {
20607	#[doc = " \\brief Filter type. Shall be set to #VAProcFilterDeinterlacing."]
20608	pub type_: VAProcFilterType,
20609	#[doc = " \\brief Deinterlacing algorithm."]
20610	pub algorithm: VAProcDeinterlacingType,
20611	#[doc = " \\brief Deinterlacing flags."]
20612	pub flags: u32,
20613	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20614	pub va_reserved: [u32; 4usize],
20615}
20616impl Default for _VAProcFilterParameterBufferDeinterlacing {
20617	fn default() -> Self {
20618		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20619		unsafe {
20620			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20621			s.assume_init()
20622		}
20623	}
20624}
20625#[doc = " \\brief Deinterlacing filter parametrization."]
20626pub type VAProcFilterParameterBufferDeinterlacing = _VAProcFilterParameterBufferDeinterlacing;
20627#[doc = " \\brief Color balance filter parametrization.\n\n This buffer defines color balance attributes. A VA buffer can hold\n several color balance attributes by creating a VA buffer of desired\n number of elements. This can be achieved by the following pseudo-code:\n\n \\code\n enum { kHue, kSaturation, kBrightness, kContrast };\n\n // Initial color balance parameters\n static const VAProcFilterParameterBufferColorBalance colorBalanceParams[4] =\n {\n     [kHue] =\n         { VAProcFilterColorBalance, VAProcColorBalanceHue, 0.5 },\n     [kSaturation] =\n         { VAProcFilterColorBalance, VAProcColorBalanceSaturation, 0.5 },\n     [kBrightness] =\n         { VAProcFilterColorBalance, VAProcColorBalanceBrightness, 0.5 },\n     [kSaturation] =\n         { VAProcFilterColorBalance, VAProcColorBalanceSaturation, 0.5 }\n };\n\n // Create buffer\n VABufferID colorBalanceBuffer;\n vaCreateBuffer(va_dpy, vpp_ctx,\n     VAProcFilterParameterBufferType, sizeof(*pColorBalanceParam), 4,\n     colorBalanceParams,\n     &colorBalanceBuffer\n );\n\n VAProcFilterParameterBufferColorBalance *pColorBalanceParam;\n vaMapBuffer(va_dpy, colorBalanceBuffer, &pColorBalanceParam);\n {\n     // Change brightness only\n     pColorBalanceBuffer[kBrightness].value = 0.75;\n }\n vaUnmapBuffer(va_dpy, colorBalanceBuffer);\n \\endcode"]
20628#[repr(C)]
20629#[derive(Debug, Copy, Clone, PartialEq)]
20630pub struct _VAProcFilterParameterBufferColorBalance {
20631	#[doc = " \\brief Filter type. Shall be set to #VAProcFilterColorBalance."]
20632	pub type_: VAProcFilterType,
20633	#[doc = " \\brief Color balance attribute."]
20634	pub attrib: VAProcColorBalanceType,
20635	#[doc = " \\brief Color balance value.\n\n Special case for automatically adjusted attributes. e.g.\n #VAProcColorBalanceAutoSaturation,\n #VAProcColorBalanceAutoBrightness,\n #VAProcColorBalanceAutoContrast.\n - If \\ref value is \\c 1.0 +/- \\c FLT_EPSILON, the attribute is\n   automatically adjusted and overrides any other attribute of\n   the same type that would have been set explicitly;\n - If \\ref value is \\c 0.0 +/- \\c FLT_EPSILON, the attribute is\n   disabled and other attribute of the same type is used instead."]
20636	pub value: f32,
20637	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20638	pub va_reserved: [u32; 4usize],
20639}
20640impl Default for _VAProcFilterParameterBufferColorBalance {
20641	fn default() -> Self {
20642		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20643		unsafe {
20644			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20645			s.assume_init()
20646		}
20647	}
20648}
20649#[doc = " \\brief Color balance filter parametrization.\n\n This buffer defines color balance attributes. A VA buffer can hold\n several color balance attributes by creating a VA buffer of desired\n number of elements. This can be achieved by the following pseudo-code:\n\n \\code\n enum { kHue, kSaturation, kBrightness, kContrast };\n\n // Initial color balance parameters\n static const VAProcFilterParameterBufferColorBalance colorBalanceParams[4] =\n {\n     [kHue] =\n         { VAProcFilterColorBalance, VAProcColorBalanceHue, 0.5 },\n     [kSaturation] =\n         { VAProcFilterColorBalance, VAProcColorBalanceSaturation, 0.5 },\n     [kBrightness] =\n         { VAProcFilterColorBalance, VAProcColorBalanceBrightness, 0.5 },\n     [kSaturation] =\n         { VAProcFilterColorBalance, VAProcColorBalanceSaturation, 0.5 }\n };\n\n // Create buffer\n VABufferID colorBalanceBuffer;\n vaCreateBuffer(va_dpy, vpp_ctx,\n     VAProcFilterParameterBufferType, sizeof(*pColorBalanceParam), 4,\n     colorBalanceParams,\n     &colorBalanceBuffer\n );\n\n VAProcFilterParameterBufferColorBalance *pColorBalanceParam;\n vaMapBuffer(va_dpy, colorBalanceBuffer, &pColorBalanceParam);\n {\n     // Change brightness only\n     pColorBalanceBuffer[kBrightness].value = 0.75;\n }\n vaUnmapBuffer(va_dpy, colorBalanceBuffer);\n \\endcode"]
20650pub type VAProcFilterParameterBufferColorBalance = _VAProcFilterParameterBufferColorBalance;
20651#[doc = " \\brief Total color correction filter parametrization."]
20652#[repr(C)]
20653#[derive(Debug, Copy, Clone, PartialEq)]
20654pub struct _VAProcFilterParameterBufferTotalColorCorrection {
20655	#[doc = " \\brief Filter type. Shall be set to #VAProcFilterTotalColorCorrection."]
20656	pub type_: VAProcFilterType,
20657	#[doc = " \\brief Color to correct."]
20658	pub attrib: VAProcTotalColorCorrectionType,
20659	#[doc = " \\brief Color correction value."]
20660	pub value: f32,
20661}
20662impl Default for _VAProcFilterParameterBufferTotalColorCorrection {
20663	fn default() -> Self {
20664		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20665		unsafe {
20666			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20667			s.assume_init()
20668		}
20669	}
20670}
20671#[doc = " \\brief Total color correction filter parametrization."]
20672pub type VAProcFilterParameterBufferTotalColorCorrection = _VAProcFilterParameterBufferTotalColorCorrection;
20673#[doc = " \\brief Human Vision System(HVS) Noise reduction filter parametrization."]
20674#[repr(C)]
20675#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20676pub struct _VAProcFilterParameterBufferHVSNoiseReduction {
20677	#[doc = " \\brief Filter type. Shall be set to #VAProcFilterHVSNoiseReduction."]
20678	pub type_: VAProcFilterType,
20679	#[doc = " \\brief QP for encoding, used for HVS Denoise"]
20680	pub qp: u16,
20681	#[doc = "  \\brief QP to Noise Reduction Strength Mode, used for Human Vision System Based Noise Reduction.\n  Controls Noise Reduction strength of conservative and aggressive mode.\n  It is an integer from [0-16].\n  Value 0 means completely turn off Noise Reduction;\n  Value 16 means the most aggressive mode of Noise Reduction;\n  Value 10 is the default value."]
20682	pub strength: u16,
20683	#[doc = "  \\brief HVS Denoise Mode which controls denoise method.\n  It is a value of VA_PROC_HVS_DENOISE_xxx.\n  Please see the definition of VA_PROC_HVS_DENOISE_xxx."]
20684	pub mode: u16,
20685	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20686	pub va_reserved: [u16; 15usize],
20687}
20688impl Default for _VAProcFilterParameterBufferHVSNoiseReduction {
20689	fn default() -> Self {
20690		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20691		unsafe {
20692			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20693			s.assume_init()
20694		}
20695	}
20696}
20697#[doc = " \\brief Human Vision System(HVS) Noise reduction filter parametrization."]
20698pub type VAProcFilterParameterBufferHVSNoiseReduction = _VAProcFilterParameterBufferHVSNoiseReduction;
20699#[doc = " \\brief High Dynamic Range(HDR) Tone Mapping filter parametrization."]
20700#[repr(C)]
20701#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20702pub struct _VAProcFilterParameterBufferHDRToneMapping {
20703	#[doc = " \\brief Filter type. Shall be set to #VAProcFilterHighDynamicRangeToneMapping."]
20704	pub type_: VAProcFilterType,
20705	#[doc = "  \\brief High Dynamic Range metadata, could be HDR10 etc.\n\n  This metadata is mainly for the input surface. Given that dynamic metadata is changing\n  on frame-by-frame or scene-by-scene basis for HDR10 plus, differentiate the metadata\n  for the input and output."]
20706	pub data: VAHdrMetaData,
20707	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20708	pub va_reserved: [u32; 16usize],
20709}
20710impl Default for _VAProcFilterParameterBufferHDRToneMapping {
20711	fn default() -> Self {
20712		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20713		unsafe {
20714			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20715			s.assume_init()
20716		}
20717	}
20718}
20719#[doc = " \\brief High Dynamic Range(HDR) Tone Mapping filter parametrization."]
20720pub type VAProcFilterParameterBufferHDRToneMapping = _VAProcFilterParameterBufferHDRToneMapping;
20721#[doc = "  \\brief 3DLUT filter parametrization.\n\n  3DLUT (Three Dimensional Look Up Table) is often used when converting an image or a video frame\n  from one color representation to another, for example, when converting log and gamma encodings,\n  changing the color space, applying a color correction, changing the dynamic range, gamut mapping etc.\n\n  This buffer defines 3DLUT attributes and memory layout. The typical 3DLUT has fixed number(lut_size)\n  per dimension and memory layout is 3 dimensional array as 3dlut[stride_0][stride_1][stride_2] (lut_size\n  shall be smaller than stride_0/1/2).\n\n  API user should query hardware capability by using the VAProcFilterCap3DLUT to get the 3DLUT attributes\n  which hardware supports, and use these attributes. For example, if the user queries hardware, the API user\n  could get caps with 3dlut[33][33][64] (lut_size = 33, lut_stride[0/1/2] = 33/33/64). API user shall not\n  use the attributes which hardware can not support.\n\n  3DLUT is usually used to transform input RGB/YUV values in one color space to output RGB values in another\n  color space. Based on 1) the format and color space of VPP input and output and 2) 3DLUT memory layout and\n  channel mapping, driver will enable some color space conversion implicitly if needed. For example, the input of\n  VPP is P010 format in BT2020 color space, the output of VPP is NV12 in BT709 color space and the 3DLUT channel\n  mapping is VA_3DLUT_CHANNEL_RGB_RGB, driver could build the data pipeline as P010(BT2020)->RGB(BT2020)\n  ->3DULT(BT709)->NV12(BT709). Please note, the limitation of 3DLUT filter color space is that the color space of\n  3DLUT filter input data needs to be same as the input data of VPP; the color space of 3DLUT filter output data\n  needs to be same as the output data of VPP; format does not have such limitation."]
20722#[repr(C)]
20723#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20724pub struct _VAProcFilterParameterBuffer3DLUT {
20725	#[doc = " \\brief Filter type. Shall be set to #VAProcFilter3DLUT."]
20726	pub type_: VAProcFilterType,
20727	#[doc = " \\brief lut_surface contains 3DLUT data in the 3DLUT memory layout, must be linear"]
20728	pub lut_surface: VASurfaceID,
20729	#[doc = " \\brief lut_size is the number of valid points on every dimension of the three dimensional look up table.\n The size of LUT (lut_size) shall be same among every dimension of the three dimensional look up table.\n The size of LUT (lut_size) shall be smaller than lut_stride[0/1/2]."]
20730	pub lut_size: u16,
20731	#[doc = "  \\brief lut_stride are the number of points on every dimension of the three dimensional look up table.\n  Three dimension can has 3 different stride, lut3d[lut_stride[0]][lut_stride[1]][lut_stride[2]].\n  But the valid point shall start from 0, the range of valid point is [0, lut_size-1] for every dimension."]
20732	pub lut_stride: [u16; 3usize],
20733	#[doc = " \\brief bit_depth is the number of bits for every channel R, G or B (or Y, U, V)"]
20734	pub bit_depth: u16,
20735	#[doc = " \\brief num_channel is the number of channels"]
20736	pub num_channel: u16,
20737	#[doc = " \\brief channel_mapping defines the mapping of input and output channels, could be one of VA_3DLUT_CHANNEL_XXX"]
20738	pub channel_mapping: u32,
20739	#[doc = " \\brief reserved bytes for future use, must be zero"]
20740	pub va_reserved: [u32; 16usize],
20741}
20742impl Default for _VAProcFilterParameterBuffer3DLUT {
20743	fn default() -> Self {
20744		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20745		unsafe {
20746			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20747			s.assume_init()
20748		}
20749	}
20750}
20751#[doc = "  \\brief 3DLUT filter parametrization.\n\n  3DLUT (Three Dimensional Look Up Table) is often used when converting an image or a video frame\n  from one color representation to another, for example, when converting log and gamma encodings,\n  changing the color space, applying a color correction, changing the dynamic range, gamut mapping etc.\n\n  This buffer defines 3DLUT attributes and memory layout. The typical 3DLUT has fixed number(lut_size)\n  per dimension and memory layout is 3 dimensional array as 3dlut[stride_0][stride_1][stride_2] (lut_size\n  shall be smaller than stride_0/1/2).\n\n  API user should query hardware capability by using the VAProcFilterCap3DLUT to get the 3DLUT attributes\n  which hardware supports, and use these attributes. For example, if the user queries hardware, the API user\n  could get caps with 3dlut[33][33][64] (lut_size = 33, lut_stride[0/1/2] = 33/33/64). API user shall not\n  use the attributes which hardware can not support.\n\n  3DLUT is usually used to transform input RGB/YUV values in one color space to output RGB values in another\n  color space. Based on 1) the format and color space of VPP input and output and 2) 3DLUT memory layout and\n  channel mapping, driver will enable some color space conversion implicitly if needed. For example, the input of\n  VPP is P010 format in BT2020 color space, the output of VPP is NV12 in BT709 color space and the 3DLUT channel\n  mapping is VA_3DLUT_CHANNEL_RGB_RGB, driver could build the data pipeline as P010(BT2020)->RGB(BT2020)\n  ->3DULT(BT709)->NV12(BT709). Please note, the limitation of 3DLUT filter color space is that the color space of\n  3DLUT filter input data needs to be same as the input data of VPP; the color space of 3DLUT filter output data\n  needs to be same as the output data of VPP; format does not have such limitation."]
20752pub type VAProcFilterParameterBuffer3DLUT = _VAProcFilterParameterBuffer3DLUT;
20753#[doc = " \\brief Capabilities specification for the 3DLUT filter."]
20754#[repr(C)]
20755#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20756pub struct _VAProcFilterCap3DLUT {
20757	#[doc = " \\brief lut_size is the number of valid points on every dimension of the three dimensional look up table."]
20758	pub lut_size: u16,
20759	#[doc = "  \\brief lut_stride are the number of points on every dimension of the three dimensional look up table. lut3d[lut_stride[0]][lut_stride[1]][lut_stride[2]]"]
20760	pub lut_stride: [u16; 3usize],
20761	#[doc = " \\brief bit_depth is the number of bits for every channel R, G or B (or Y, U, V)"]
20762	pub bit_depth: u16,
20763	#[doc = " \\brief num_channel is the number of channels"]
20764	pub num_channel: u16,
20765	#[doc = " \\brief channel_mapping defines the mapping of channels, could be some combination of VA_3DLUT_CHANNEL_XXX"]
20766	pub channel_mapping: u32,
20767	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20768	pub va_reserved: [u32; 16usize],
20769}
20770#[doc = " \\brief Capabilities specification for the 3DLUT filter."]
20771pub type VAProcFilterCap3DLUT = _VAProcFilterCap3DLUT;
20772#[doc = " \\brief Default filter cap specification (single range value).\n\n Unless there is a filter-specific cap structure, #VAProcFilterCap is the\n default type to use for output caps from vaQueryVideoProcFilterCaps()."]
20773#[repr(C)]
20774#[derive(Debug, Default, Copy, Clone, PartialEq)]
20775pub struct _VAProcFilterCap {
20776	#[doc = " \\brief Range of supported values for the filter."]
20777	pub range: VAProcFilterValueRange,
20778	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20779	pub va_reserved: [u32; 4usize],
20780}
20781#[doc = " \\brief Default filter cap specification (single range value).\n\n Unless there is a filter-specific cap structure, #VAProcFilterCap is the\n default type to use for output caps from vaQueryVideoProcFilterCaps()."]
20782pub type VAProcFilterCap = _VAProcFilterCap;
20783#[doc = " \\brief Capabilities specification for the deinterlacing filter."]
20784#[repr(C)]
20785#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20786pub struct _VAProcFilterCapDeinterlacing {
20787	#[doc = " \\brief Deinterlacing algorithm."]
20788	pub type_: VAProcDeinterlacingType,
20789	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20790	pub va_reserved: [u32; 4usize],
20791}
20792impl Default for _VAProcFilterCapDeinterlacing {
20793	fn default() -> Self {
20794		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20795		unsafe {
20796			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20797			s.assume_init()
20798		}
20799	}
20800}
20801#[doc = " \\brief Capabilities specification for the deinterlacing filter."]
20802pub type VAProcFilterCapDeinterlacing = _VAProcFilterCapDeinterlacing;
20803#[doc = " \\brief Capabilities specification for the color balance filter."]
20804#[repr(C)]
20805#[derive(Debug, Copy, Clone, PartialEq)]
20806pub struct _VAProcFilterCapColorBalance {
20807	#[doc = " \\brief Color balance operation."]
20808	pub type_: VAProcColorBalanceType,
20809	#[doc = " \\brief Range of supported values for the specified operation."]
20810	pub range: VAProcFilterValueRange,
20811	#[doc = " \\brief Reserved bytes for future use, must be zero"]
20812	pub va_reserved: [u32; 4usize],
20813}
20814impl Default for _VAProcFilterCapColorBalance {
20815	fn default() -> Self {
20816		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20817		unsafe {
20818			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20819			s.assume_init()
20820		}
20821	}
20822}
20823#[doc = " \\brief Capabilities specification for the color balance filter."]
20824pub type VAProcFilterCapColorBalance = _VAProcFilterCapColorBalance;
20825#[doc = " \\brief Capabilities specification for the Total Color Correction filter."]
20826#[repr(C)]
20827#[derive(Debug, Copy, Clone, PartialEq)]
20828pub struct _VAProcFilterCapTotalColorCorrection {
20829	#[doc = " \\brief Color to correct."]
20830	pub type_: VAProcTotalColorCorrectionType,
20831	#[doc = " \\brief Range of supported values for the specified color."]
20832	pub range: VAProcFilterValueRange,
20833}
20834impl Default for _VAProcFilterCapTotalColorCorrection {
20835	fn default() -> Self {
20836		let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
20837		unsafe {
20838			::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
20839			s.assume_init()
20840		}
20841	}
20842}
20843#[doc = " \\brief Capabilities specification for the Total Color Correction filter."]
20844pub type VAProcFilterCapTotalColorCorrection = _VAProcFilterCapTotalColorCorrection;
20845#[doc = " ProtectedSessions and Contexts\n\n According to #VAContextID, Context represents a \"virtual\" video decode,\n encode or video processing pipeline. Surfaces are render targets for a given\n context. The data in the surfaces are not accessible to the client except if\n derived image is supported and the internal data format of the surface is\n implementation specific. Application can create a video decode, encode or\n processing context which represents a \"virtualized\" hardware device.\n\n Since Protected Session does not virtualize any HW device or build any\n pipeline but rather accessorize existing virtualized HW device or pipeline\n to operate in protected mode so we decided to create separate function.\n Beside this, a virtualized HW device or pipeline could own several protected\n sessions and operate in those protected modes without ever re-creating\n virtualization of HW device or re-building HW pipeline (an unique protected\n environment multiplexing capability in Intel HW).\n\n The returned protected_session represents a notion of Host and TEE clients\n while representing protection status in GPU and Display.\n\n Both contexts and protected sessions are identified by unique IDs and its\n implementation specific internals are kept opaque to the clients"]
20846pub type VAProtectedSessionID = VAGenericID;
20847pub mod _bindgen_ty_1 {
20848	#[doc = " \\brief DRM authentication type."]
20849	pub type Type = ::std::os::raw::c_uint;
20850	#[doc = " \\brief Disconnected."]
20851	pub const VA_DRM_AUTH_NONE: Type = 0;
20852	#[doc = " \\brief Connected. Authenticated with DRI1 protocol.\n\n @deprecated\n This is a deprecated authentication type. All DRI-based drivers have\n been migrated to use the DRI2 protocol. Newly written drivers shall\n use DRI2 protocol only, or a custom authentication means. e.g. opt\n for authenticating on the VA driver side, instead of libva side."]
20853	pub const VA_DRM_AUTH_DRI1: Type = 1;
20854	#[doc = " \\brief Connected. Authenticated with DRI2 protocol.\n\n This is only useful to VA/X11 drivers. The libva-x11 library provides\n a helper function VA_DRI2Authenticate() for authenticating the\n connection. However, DRI2 conformant drivers don't need to call that\n function since authentication happens on the libva side, implicitly."]
20855	pub const VA_DRM_AUTH_DRI2: Type = 2;
20856	#[doc = " \\brief Connected. Authenticated with some alternate raw protocol.\n\n This authentication mode is mainly used in non-VA/X11 drivers.\n Authentication happens through some alternative method, at the\n discretion of the VA driver implementation."]
20857	pub const VA_DRM_AUTH_CUSTOM: Type = 3;
20858}
20859#[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."]
20860#[repr(C)]
20861#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20862pub struct _VADRMPRIMESurfaceDescriptor {
20863	#[doc = " Pixel format fourcc of the whole surface (VA_FOURCC_*)."]
20864	pub fourcc: u32,
20865	#[doc = " Width of the surface in pixels."]
20866	pub width: u32,
20867	#[doc = " Height of the surface in pixels."]
20868	pub height: u32,
20869	#[doc = " Number of distinct DRM objects making up the surface."]
20870	pub num_objects: u32,
20871	pub objects: [_VADRMPRIMESurfaceDescriptor__bindgen_ty_1; 4usize],
20872	#[doc = " Number of layers making up the surface."]
20873	pub num_layers: u32,
20874	pub layers: [_VADRMPRIMESurfaceDescriptor__bindgen_ty_2; 4usize],
20875}
20876#[doc = " Description of each object."]
20877#[repr(C)]
20878#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20879pub struct _VADRMPRIMESurfaceDescriptor__bindgen_ty_1 {
20880	#[doc = " DRM PRIME file descriptor for this object."]
20881	pub fd: ::std::os::raw::c_int,
20882	#[doc = " Total size of this object (may include regions which are\n  not part of the surface)."]
20883	pub size: u32,
20884	#[doc = " Format modifier applied to this object."]
20885	pub drm_format_modifier: u64,
20886}
20887#[doc = " Description of each layer in the surface."]
20888#[repr(C)]
20889#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20890pub struct _VADRMPRIMESurfaceDescriptor__bindgen_ty_2 {
20891	#[doc = " DRM format fourcc of this layer (DRM_FOURCC_*)."]
20892	pub drm_format: u32,
20893	#[doc = " Number of planes in this layer."]
20894	pub num_planes: u32,
20895	#[doc = " Index in the objects array of the object containing each\n  plane."]
20896	pub object_index: [u32; 4usize],
20897	#[doc = " Offset within the object of each plane."]
20898	pub offset: [u32; 4usize],
20899	#[doc = " Pitch of each plane."]
20900	pub pitch: [u32; 4usize],
20901}
20902#[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."]
20903pub type VADRMPRIMESurfaceDescriptor = _VADRMPRIMESurfaceDescriptor;
20904#[doc = " \\brief External buffer descriptor for a DRM PRIME surface with flags\n\n This structure is an extention for VADRMPRIMESurfaceDescriptor,\n it has the same behavior as if used with VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2.\n\n The field \"flags\" is added, see \"Surface external buffer descriptor flags\".\n To use this structure, use VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3 instead."]
20905#[repr(C)]
20906#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20907pub struct _VADRMPRIME3SurfaceDescriptor {
20908	#[doc = " Pixel format fourcc of the whole surface (VA_FOURCC_*)."]
20909	pub fourcc: u32,
20910	#[doc = " Width of the surface in pixels."]
20911	pub width: u32,
20912	#[doc = " Height of the surface in pixels."]
20913	pub height: u32,
20914	#[doc = " Number of distinct DRM objects making up the surface."]
20915	pub num_objects: u32,
20916	pub objects: [_VADRMPRIME3SurfaceDescriptor__bindgen_ty_1; 4usize],
20917	#[doc = " Number of layers making up the surface."]
20918	pub num_layers: u32,
20919	pub layers: [_VADRMPRIME3SurfaceDescriptor__bindgen_ty_2; 4usize],
20920	#[doc = " \\brief flags. See \"Surface external buffer descriptor flags\"."]
20921	pub flags: u32,
20922	#[doc = " reserved bytes, must be zero"]
20923	pub reserved: [u32; 7usize],
20924}
20925#[doc = " Description of each object."]
20926#[repr(C)]
20927#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20928pub struct _VADRMPRIME3SurfaceDescriptor__bindgen_ty_1 {
20929	#[doc = " DRM PRIME file descriptor for this object."]
20930	pub fd: ::std::os::raw::c_int,
20931	#[doc = " Total size of this object (may include regions which are\n  not part of the surface)."]
20932	pub size: u32,
20933	#[doc = " Format modifier applied to this object."]
20934	pub drm_format_modifier: u64,
20935}
20936#[doc = " Description of each layer in the surface."]
20937#[repr(C)]
20938#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
20939pub struct _VADRMPRIME3SurfaceDescriptor__bindgen_ty_2 {
20940	#[doc = " DRM format fourcc of this layer (DRM_FOURCC_*)."]
20941	pub drm_format: u32,
20942	#[doc = " Number of planes in this layer."]
20943	pub num_planes: u32,
20944	#[doc = " Index in the objects array of the object containing each\n  plane."]
20945	pub object_index: [u32; 4usize],
20946	#[doc = " Offset within the object of each plane."]
20947	pub offset: [u32; 4usize],
20948	#[doc = " Pitch of each plane."]
20949	pub pitch: [u32; 4usize],
20950}
20951#[doc = " \\brief External buffer descriptor for a DRM PRIME surface with flags\n\n This structure is an extention for VADRMPRIMESurfaceDescriptor,\n it has the same behavior as if used with VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2.\n\n The field \"flags\" is added, see \"Surface external buffer descriptor flags\".\n To use this structure, use VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_3 instead."]
20952pub type VADRMPRIME3SurfaceDescriptor = _VADRMPRIME3SurfaceDescriptor;
20953pub struct Va {
20954	__library: ::libloading::Library,
20955	pub vaErrorStr:
20956		Result<unsafe extern "C" fn(error_status: VAStatus) -> *const ::std::os::raw::c_char, ::libloading::Error>,
20957	pub vaSetErrorCallback: Result<
20958		unsafe extern "C" fn(
20959			dpy: VADisplay,
20960			callback: VAMessageCallback,
20961			user_context: *mut ::std::os::raw::c_void,
20962		) -> VAMessageCallback,
20963		::libloading::Error,
20964	>,
20965	pub vaSetInfoCallback: Result<
20966		unsafe extern "C" fn(
20967			dpy: VADisplay,
20968			callback: VAMessageCallback,
20969			user_context: *mut ::std::os::raw::c_void,
20970		) -> VAMessageCallback,
20971		::libloading::Error,
20972	>,
20973	pub vaDisplayIsValid: Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
20974	pub vaSetDriverName: Result<
20975		unsafe extern "C" fn(dpy: VADisplay, driver_name: *mut ::std::os::raw::c_char) -> VAStatus,
20976		::libloading::Error,
20977	>,
20978	pub vaInitialize: Result<
20979		unsafe extern "C" fn(
20980			dpy: VADisplay,
20981			major_version: *mut ::std::os::raw::c_int,
20982			minor_version: *mut ::std::os::raw::c_int,
20983		) -> VAStatus,
20984		::libloading::Error,
20985	>,
20986	pub vaTerminate: Result<unsafe extern "C" fn(dpy: VADisplay) -> VAStatus, ::libloading::Error>,
20987	pub vaQueryVendorString:
20988		Result<unsafe extern "C" fn(dpy: VADisplay) -> *const ::std::os::raw::c_char, ::libloading::Error>,
20989	pub vaGetLibFunc: Result<
20990		unsafe extern "C" fn(dpy: VADisplay, func: *const ::std::os::raw::c_char) -> VAPrivFunc,
20991		::libloading::Error,
20992	>,
20993	pub vaMaxNumProfiles: Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
20994	pub vaMaxNumEntrypoints: Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
20995	pub vaMaxNumConfigAttributes:
20996		Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
20997	pub vaQueryConfigProfiles: Result<
20998		unsafe extern "C" fn(
20999			dpy: VADisplay,
21000			profile_list: *mut VAProfile::Type,
21001			num_profiles: *mut ::std::os::raw::c_int,
21002		) -> VAStatus,
21003		::libloading::Error,
21004	>,
21005	pub vaQueryConfigEntrypoints: Result<
21006		unsafe extern "C" fn(
21007			dpy: VADisplay,
21008			profile: VAProfile::Type,
21009			entrypoint_list: *mut VAEntrypoint::Type,
21010			num_entrypoints: *mut ::std::os::raw::c_int,
21011		) -> VAStatus,
21012		::libloading::Error,
21013	>,
21014	pub vaGetConfigAttributes: Result<
21015		unsafe extern "C" fn(
21016			dpy: VADisplay,
21017			profile: VAProfile::Type,
21018			entrypoint: VAEntrypoint::Type,
21019			attrib_list: *mut VAConfigAttrib,
21020			num_attribs: ::std::os::raw::c_int,
21021		) -> VAStatus,
21022		::libloading::Error,
21023	>,
21024	pub vaCreateConfig: Result<
21025		unsafe extern "C" fn(
21026			dpy: VADisplay,
21027			profile: VAProfile::Type,
21028			entrypoint: VAEntrypoint::Type,
21029			attrib_list: *mut VAConfigAttrib,
21030			num_attribs: ::std::os::raw::c_int,
21031			config_id: *mut VAConfigID,
21032		) -> VAStatus,
21033		::libloading::Error,
21034	>,
21035	pub vaDestroyConfig:
21036		Result<unsafe extern "C" fn(dpy: VADisplay, config_id: VAConfigID) -> VAStatus, ::libloading::Error>,
21037	pub vaQueryConfigAttributes: Result<
21038		unsafe extern "C" fn(
21039			dpy: VADisplay,
21040			config_id: VAConfigID,
21041			profile: *mut VAProfile::Type,
21042			entrypoint: *mut VAEntrypoint::Type,
21043			attrib_list: *mut VAConfigAttrib,
21044			num_attribs: *mut ::std::os::raw::c_int,
21045		) -> VAStatus,
21046		::libloading::Error,
21047	>,
21048	pub vaQuerySurfaceAttributes: Result<
21049		unsafe extern "C" fn(
21050			dpy: VADisplay,
21051			config: VAConfigID,
21052			attrib_list: *mut VASurfaceAttrib,
21053			num_attribs: *mut ::std::os::raw::c_uint,
21054		) -> VAStatus,
21055		::libloading::Error,
21056	>,
21057	pub vaCreateSurfaces: Result<
21058		unsafe extern "C" fn(
21059			dpy: VADisplay,
21060			format: ::std::os::raw::c_uint,
21061			width: ::std::os::raw::c_uint,
21062			height: ::std::os::raw::c_uint,
21063			surfaces: *mut VASurfaceID,
21064			num_surfaces: ::std::os::raw::c_uint,
21065			attrib_list: *mut VASurfaceAttrib,
21066			num_attribs: ::std::os::raw::c_uint,
21067		) -> VAStatus,
21068		::libloading::Error,
21069	>,
21070	pub vaDestroySurfaces: Result<
21071		unsafe extern "C" fn(
21072			dpy: VADisplay,
21073			surfaces: *mut VASurfaceID,
21074			num_surfaces: ::std::os::raw::c_int,
21075		) -> VAStatus,
21076		::libloading::Error,
21077	>,
21078	pub vaCreateContext: Result<
21079		unsafe extern "C" fn(
21080			dpy: VADisplay,
21081			config_id: VAConfigID,
21082			picture_width: ::std::os::raw::c_int,
21083			picture_height: ::std::os::raw::c_int,
21084			flag: ::std::os::raw::c_int,
21085			render_targets: *mut VASurfaceID,
21086			num_render_targets: ::std::os::raw::c_int,
21087			context: *mut VAContextID,
21088		) -> VAStatus,
21089		::libloading::Error,
21090	>,
21091	pub vaDestroyContext:
21092		Result<unsafe extern "C" fn(dpy: VADisplay, context: VAContextID) -> VAStatus, ::libloading::Error>,
21093	pub vaCreateMFContext:
21094		Result<unsafe extern "C" fn(dpy: VADisplay, mf_context: *mut VAMFContextID) -> VAStatus, ::libloading::Error>,
21095	pub vaMFAddContext: Result<
21096		unsafe extern "C" fn(dpy: VADisplay, mf_context: VAMFContextID, context: VAContextID) -> VAStatus,
21097		::libloading::Error,
21098	>,
21099	pub vaMFReleaseContext: Result<
21100		unsafe extern "C" fn(dpy: VADisplay, mf_context: VAMFContextID, context: VAContextID) -> VAStatus,
21101		::libloading::Error,
21102	>,
21103	pub vaQueryProcessingRate: Result<
21104		unsafe extern "C" fn(
21105			dpy: VADisplay,
21106			config: VAConfigID,
21107			proc_buf: *mut VAProcessingRateParameter,
21108			processing_rate: *mut ::std::os::raw::c_uint,
21109		) -> VAStatus,
21110		::libloading::Error,
21111	>,
21112	pub vaCreateBuffer: Result<
21113		unsafe extern "C" fn(
21114			dpy: VADisplay,
21115			context: VAContextID,
21116			type_: VABufferType::Type,
21117			size: ::std::os::raw::c_uint,
21118			num_elements: ::std::os::raw::c_uint,
21119			data: *mut ::std::os::raw::c_void,
21120			buf_id: *mut VABufferID,
21121		) -> VAStatus,
21122		::libloading::Error,
21123	>,
21124	pub vaCreateBuffer2: Result<
21125		unsafe extern "C" fn(
21126			dpy: VADisplay,
21127			context: VAContextID,
21128			type_: VABufferType::Type,
21129			width: ::std::os::raw::c_uint,
21130			height: ::std::os::raw::c_uint,
21131			unit_size: *mut ::std::os::raw::c_uint,
21132			pitch: *mut ::std::os::raw::c_uint,
21133			buf_id: *mut VABufferID,
21134		) -> VAStatus,
21135		::libloading::Error,
21136	>,
21137	pub vaBufferSetNumElements: Result<
21138		unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID, num_elements: ::std::os::raw::c_uint) -> VAStatus,
21139		::libloading::Error,
21140	>,
21141	pub vaMapBuffer: Result<
21142		unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID, pbuf: *mut *mut ::std::os::raw::c_void) -> VAStatus,
21143		::libloading::Error,
21144	>,
21145	pub vaMapBuffer2: Result<
21146		unsafe extern "C" fn(
21147			dpy: VADisplay,
21148			buf_id: VABufferID,
21149			pbuf: *mut *mut ::std::os::raw::c_void,
21150			flags: u32,
21151		) -> VAStatus,
21152		::libloading::Error,
21153	>,
21154	pub vaUnmapBuffer:
21155		Result<unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID) -> VAStatus, ::libloading::Error>,
21156	pub vaDestroyBuffer:
21157		Result<unsafe extern "C" fn(dpy: VADisplay, buffer_id: VABufferID) -> VAStatus, ::libloading::Error>,
21158	pub vaAcquireBufferHandle: Result<
21159		unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID, buf_info: *mut VABufferInfo) -> VAStatus,
21160		::libloading::Error,
21161	>,
21162	pub vaReleaseBufferHandle:
21163		Result<unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID) -> VAStatus, ::libloading::Error>,
21164	pub vaExportSurfaceHandle: Result<
21165		unsafe extern "C" fn(
21166			dpy: VADisplay,
21167			surface_id: VASurfaceID,
21168			mem_type: u32,
21169			flags: u32,
21170			descriptor: *mut ::std::os::raw::c_void,
21171		) -> VAStatus,
21172		::libloading::Error,
21173	>,
21174	pub vaBeginPicture: Result<
21175		unsafe extern "C" fn(dpy: VADisplay, context: VAContextID, render_target: VASurfaceID) -> VAStatus,
21176		::libloading::Error,
21177	>,
21178	pub vaRenderPicture: Result<
21179		unsafe extern "C" fn(
21180			dpy: VADisplay,
21181			context: VAContextID,
21182			buffers: *mut VABufferID,
21183			num_buffers: ::std::os::raw::c_int,
21184		) -> VAStatus,
21185		::libloading::Error,
21186	>,
21187	pub vaEndPicture:
21188		Result<unsafe extern "C" fn(dpy: VADisplay, context: VAContextID) -> VAStatus, ::libloading::Error>,
21189	pub vaMFSubmit: Result<
21190		unsafe extern "C" fn(
21191			dpy: VADisplay,
21192			mf_context: VAMFContextID,
21193			contexts: *mut VAContextID,
21194			num_contexts: ::std::os::raw::c_int,
21195		) -> VAStatus,
21196		::libloading::Error,
21197	>,
21198	pub vaSyncSurface:
21199		Result<unsafe extern "C" fn(dpy: VADisplay, render_target: VASurfaceID) -> VAStatus, ::libloading::Error>,
21200	pub vaSyncSurface2: Result<
21201		unsafe extern "C" fn(dpy: VADisplay, surface: VASurfaceID, timeout_ns: u64) -> VAStatus,
21202		::libloading::Error,
21203	>,
21204	pub vaQuerySurfaceStatus: Result<
21205		unsafe extern "C" fn(
21206			dpy: VADisplay,
21207			render_target: VASurfaceID,
21208			status: *mut VASurfaceStatus::Type,
21209		) -> VAStatus,
21210		::libloading::Error,
21211	>,
21212	pub vaQuerySurfaceError: Result<
21213		unsafe extern "C" fn(
21214			dpy: VADisplay,
21215			surface: VASurfaceID,
21216			error_status: VAStatus,
21217			error_info: *mut *mut ::std::os::raw::c_void,
21218		) -> VAStatus,
21219		::libloading::Error,
21220	>,
21221	pub vaSyncBuffer: Result<
21222		unsafe extern "C" fn(dpy: VADisplay, buf_id: VABufferID, timeout_ns: u64) -> VAStatus,
21223		::libloading::Error,
21224	>,
21225	pub vaMaxNumImageFormats:
21226		Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
21227	pub vaQueryImageFormats: Result<
21228		unsafe extern "C" fn(
21229			dpy: VADisplay,
21230			format_list: *mut VAImageFormat,
21231			num_formats: *mut ::std::os::raw::c_int,
21232		) -> VAStatus,
21233		::libloading::Error,
21234	>,
21235	pub vaCreateImage: Result<
21236		unsafe extern "C" fn(
21237			dpy: VADisplay,
21238			format: *mut VAImageFormat,
21239			width: ::std::os::raw::c_int,
21240			height: ::std::os::raw::c_int,
21241			image: *mut VAImage,
21242		) -> VAStatus,
21243		::libloading::Error,
21244	>,
21245	pub vaDestroyImage: Result<unsafe extern "C" fn(dpy: VADisplay, image: VAImageID) -> VAStatus, ::libloading::Error>,
21246	pub vaSetImagePalette: Result<
21247		unsafe extern "C" fn(dpy: VADisplay, image: VAImageID, palette: *mut ::std::os::raw::c_uchar) -> VAStatus,
21248		::libloading::Error,
21249	>,
21250	pub vaGetImage: Result<
21251		unsafe extern "C" fn(
21252			dpy: VADisplay,
21253			surface: VASurfaceID,
21254			x: ::std::os::raw::c_int,
21255			y: ::std::os::raw::c_int,
21256			width: ::std::os::raw::c_uint,
21257			height: ::std::os::raw::c_uint,
21258			image: VAImageID,
21259		) -> VAStatus,
21260		::libloading::Error,
21261	>,
21262	pub vaPutImage: Result<
21263		unsafe extern "C" fn(
21264			dpy: VADisplay,
21265			surface: VASurfaceID,
21266			image: VAImageID,
21267			src_x: ::std::os::raw::c_int,
21268			src_y: ::std::os::raw::c_int,
21269			src_width: ::std::os::raw::c_uint,
21270			src_height: ::std::os::raw::c_uint,
21271			dest_x: ::std::os::raw::c_int,
21272			dest_y: ::std::os::raw::c_int,
21273			dest_width: ::std::os::raw::c_uint,
21274			dest_height: ::std::os::raw::c_uint,
21275		) -> VAStatus,
21276		::libloading::Error,
21277	>,
21278	pub vaDeriveImage: Result<
21279		unsafe extern "C" fn(dpy: VADisplay, surface: VASurfaceID, image: *mut VAImage) -> VAStatus,
21280		::libloading::Error,
21281	>,
21282	pub vaMaxNumSubpictureFormats:
21283		Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
21284	pub vaQuerySubpictureFormats: Result<
21285		unsafe extern "C" fn(
21286			dpy: VADisplay,
21287			format_list: *mut VAImageFormat,
21288			flags: *mut ::std::os::raw::c_uint,
21289			num_formats: *mut ::std::os::raw::c_uint,
21290		) -> VAStatus,
21291		::libloading::Error,
21292	>,
21293	pub vaCreateSubpicture: Result<
21294		unsafe extern "C" fn(dpy: VADisplay, image: VAImageID, subpicture: *mut VASubpictureID) -> VAStatus,
21295		::libloading::Error,
21296	>,
21297	pub vaDestroySubpicture:
21298		Result<unsafe extern "C" fn(dpy: VADisplay, subpicture: VASubpictureID) -> VAStatus, ::libloading::Error>,
21299	pub vaSetSubpictureImage: Result<
21300		unsafe extern "C" fn(dpy: VADisplay, subpicture: VASubpictureID, image: VAImageID) -> VAStatus,
21301		::libloading::Error,
21302	>,
21303	pub vaSetSubpictureChromakey: Result<
21304		unsafe extern "C" fn(
21305			dpy: VADisplay,
21306			subpicture: VASubpictureID,
21307			chromakey_min: ::std::os::raw::c_uint,
21308			chromakey_max: ::std::os::raw::c_uint,
21309			chromakey_mask: ::std::os::raw::c_uint,
21310		) -> VAStatus,
21311		::libloading::Error,
21312	>,
21313	pub vaSetSubpictureGlobalAlpha: Result<
21314		unsafe extern "C" fn(dpy: VADisplay, subpicture: VASubpictureID, global_alpha: f32) -> VAStatus,
21315		::libloading::Error,
21316	>,
21317	pub vaAssociateSubpicture: Result<
21318		unsafe extern "C" fn(
21319			dpy: VADisplay,
21320			subpicture: VASubpictureID,
21321			target_surfaces: *mut VASurfaceID,
21322			num_surfaces: ::std::os::raw::c_int,
21323			src_x: i16,
21324			src_y: i16,
21325			src_width: u16,
21326			src_height: u16,
21327			dest_x: i16,
21328			dest_y: i16,
21329			dest_width: u16,
21330			dest_height: u16,
21331			flags: u32,
21332		) -> VAStatus,
21333		::libloading::Error,
21334	>,
21335	pub vaDeassociateSubpicture: Result<
21336		unsafe extern "C" fn(
21337			dpy: VADisplay,
21338			subpicture: VASubpictureID,
21339			target_surfaces: *mut VASurfaceID,
21340			num_surfaces: ::std::os::raw::c_int,
21341		) -> VAStatus,
21342		::libloading::Error,
21343	>,
21344	pub vaMaxNumDisplayAttributes:
21345		Result<unsafe extern "C" fn(dpy: VADisplay) -> ::std::os::raw::c_int, ::libloading::Error>,
21346	pub vaQueryDisplayAttributes: Result<
21347		unsafe extern "C" fn(
21348			dpy: VADisplay,
21349			attr_list: *mut VADisplayAttribute,
21350			num_attributes: *mut ::std::os::raw::c_int,
21351		) -> VAStatus,
21352		::libloading::Error,
21353	>,
21354	pub vaGetDisplayAttributes: Result<
21355		unsafe extern "C" fn(
21356			dpy: VADisplay,
21357			attr_list: *mut VADisplayAttribute,
21358			num_attributes: ::std::os::raw::c_int,
21359		) -> VAStatus,
21360		::libloading::Error,
21361	>,
21362	pub vaSetDisplayAttributes: Result<
21363		unsafe extern "C" fn(
21364			dpy: VADisplay,
21365			attr_list: *mut VADisplayAttribute,
21366			num_attributes: ::std::os::raw::c_int,
21367		) -> VAStatus,
21368		::libloading::Error,
21369	>,
21370	pub vaCopy: Result<
21371		unsafe extern "C" fn(
21372			dpy: VADisplay,
21373			dst: *mut VACopyObject,
21374			src: *mut VACopyObject,
21375			option: VACopyOption,
21376		) -> VAStatus,
21377		::libloading::Error,
21378	>,
21379	pub vaQueryVideoProcFilters: Result<
21380		unsafe extern "C" fn(
21381			dpy: VADisplay,
21382			context: VAContextID,
21383			filters: *mut VAProcFilterType,
21384			num_filters: *mut ::std::os::raw::c_uint,
21385		) -> VAStatus,
21386		::libloading::Error,
21387	>,
21388	pub vaQueryVideoProcFilterCaps: Result<
21389		unsafe extern "C" fn(
21390			dpy: VADisplay,
21391			context: VAContextID,
21392			type_: VAProcFilterType,
21393			filter_caps: *mut ::std::os::raw::c_void,
21394			num_filter_caps: *mut ::std::os::raw::c_uint,
21395		) -> VAStatus,
21396		::libloading::Error,
21397	>,
21398	pub vaQueryVideoProcPipelineCaps: Result<
21399		unsafe extern "C" fn(
21400			dpy: VADisplay,
21401			context: VAContextID,
21402			filters: *mut VABufferID,
21403			num_filters: ::std::os::raw::c_uint,
21404			pipeline_caps: *mut VAProcPipelineCaps,
21405		) -> VAStatus,
21406		::libloading::Error,
21407	>,
21408	pub vaCreateProtectedSession: Result<
21409		unsafe extern "C" fn(
21410			dpy: VADisplay,
21411			config_id: VAConfigID,
21412			protected_session: *mut VAProtectedSessionID,
21413		) -> VAStatus,
21414		::libloading::Error,
21415	>,
21416	pub vaDestroyProtectedSession: Result<
21417		unsafe extern "C" fn(dpy: VADisplay, protected_session: VAProtectedSessionID) -> VAStatus,
21418		::libloading::Error,
21419	>,
21420	pub vaAttachProtectedSession: Result<
21421		unsafe extern "C" fn(dpy: VADisplay, id: VAGenericID, protected_session: VAProtectedSessionID) -> VAStatus,
21422		::libloading::Error,
21423	>,
21424	pub vaDetachProtectedSession:
21425		Result<unsafe extern "C" fn(dpy: VADisplay, id: VAGenericID) -> VAStatus, ::libloading::Error>,
21426	pub vaProtectedSessionExecute: Result<
21427		unsafe extern "C" fn(dpy: VADisplay, protected_session: VAProtectedSessionID, buf_id: VABufferID) -> VAStatus,
21428		::libloading::Error,
21429	>,
21430	pub vaGetDisplayDRM: Result<unsafe extern "C" fn(fd: ::std::os::raw::c_int) -> VADisplay, ::libloading::Error>,
21431}
21432impl Va {
21433	pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
21434	where
21435		P: ::libloading::AsFilename,
21436	{
21437		let library = ::libloading::Library::new(path)?;
21438		Self::from_library(library)
21439	}
21440	pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
21441	where
21442		L: Into<::libloading::Library>,
21443	{
21444		let __library = library.into();
21445		let vaErrorStr = __library.get(b"vaErrorStr\0").map(|sym| *sym);
21446		let vaSetErrorCallback = __library.get(b"vaSetErrorCallback\0").map(|sym| *sym);
21447		let vaSetInfoCallback = __library.get(b"vaSetInfoCallback\0").map(|sym| *sym);
21448		let vaDisplayIsValid = __library.get(b"vaDisplayIsValid\0").map(|sym| *sym);
21449		let vaSetDriverName = __library.get(b"vaSetDriverName\0").map(|sym| *sym);
21450		let vaInitialize = __library.get(b"vaInitialize\0").map(|sym| *sym);
21451		let vaTerminate = __library.get(b"vaTerminate\0").map(|sym| *sym);
21452		let vaQueryVendorString = __library.get(b"vaQueryVendorString\0").map(|sym| *sym);
21453		let vaGetLibFunc = __library.get(b"vaGetLibFunc\0").map(|sym| *sym);
21454		let vaMaxNumProfiles = __library.get(b"vaMaxNumProfiles\0").map(|sym| *sym);
21455		let vaMaxNumEntrypoints = __library.get(b"vaMaxNumEntrypoints\0").map(|sym| *sym);
21456		let vaMaxNumConfigAttributes = __library.get(b"vaMaxNumConfigAttributes\0").map(|sym| *sym);
21457		let vaQueryConfigProfiles = __library.get(b"vaQueryConfigProfiles\0").map(|sym| *sym);
21458		let vaQueryConfigEntrypoints = __library.get(b"vaQueryConfigEntrypoints\0").map(|sym| *sym);
21459		let vaGetConfigAttributes = __library.get(b"vaGetConfigAttributes\0").map(|sym| *sym);
21460		let vaCreateConfig = __library.get(b"vaCreateConfig\0").map(|sym| *sym);
21461		let vaDestroyConfig = __library.get(b"vaDestroyConfig\0").map(|sym| *sym);
21462		let vaQueryConfigAttributes = __library.get(b"vaQueryConfigAttributes\0").map(|sym| *sym);
21463		let vaQuerySurfaceAttributes = __library.get(b"vaQuerySurfaceAttributes\0").map(|sym| *sym);
21464		let vaCreateSurfaces = __library.get(b"vaCreateSurfaces\0").map(|sym| *sym);
21465		let vaDestroySurfaces = __library.get(b"vaDestroySurfaces\0").map(|sym| *sym);
21466		let vaCreateContext = __library.get(b"vaCreateContext\0").map(|sym| *sym);
21467		let vaDestroyContext = __library.get(b"vaDestroyContext\0").map(|sym| *sym);
21468		let vaCreateMFContext = __library.get(b"vaCreateMFContext\0").map(|sym| *sym);
21469		let vaMFAddContext = __library.get(b"vaMFAddContext\0").map(|sym| *sym);
21470		let vaMFReleaseContext = __library.get(b"vaMFReleaseContext\0").map(|sym| *sym);
21471		let vaQueryProcessingRate = __library.get(b"vaQueryProcessingRate\0").map(|sym| *sym);
21472		let vaCreateBuffer = __library.get(b"vaCreateBuffer\0").map(|sym| *sym);
21473		let vaCreateBuffer2 = __library.get(b"vaCreateBuffer2\0").map(|sym| *sym);
21474		let vaBufferSetNumElements = __library.get(b"vaBufferSetNumElements\0").map(|sym| *sym);
21475		let vaMapBuffer = __library.get(b"vaMapBuffer\0").map(|sym| *sym);
21476		let vaMapBuffer2 = __library.get(b"vaMapBuffer2\0").map(|sym| *sym);
21477		let vaUnmapBuffer = __library.get(b"vaUnmapBuffer\0").map(|sym| *sym);
21478		let vaDestroyBuffer = __library.get(b"vaDestroyBuffer\0").map(|sym| *sym);
21479		let vaAcquireBufferHandle = __library.get(b"vaAcquireBufferHandle\0").map(|sym| *sym);
21480		let vaReleaseBufferHandle = __library.get(b"vaReleaseBufferHandle\0").map(|sym| *sym);
21481		let vaExportSurfaceHandle = __library.get(b"vaExportSurfaceHandle\0").map(|sym| *sym);
21482		let vaBeginPicture = __library.get(b"vaBeginPicture\0").map(|sym| *sym);
21483		let vaRenderPicture = __library.get(b"vaRenderPicture\0").map(|sym| *sym);
21484		let vaEndPicture = __library.get(b"vaEndPicture\0").map(|sym| *sym);
21485		let vaMFSubmit = __library.get(b"vaMFSubmit\0").map(|sym| *sym);
21486		let vaSyncSurface = __library.get(b"vaSyncSurface\0").map(|sym| *sym);
21487		let vaSyncSurface2 = __library.get(b"vaSyncSurface2\0").map(|sym| *sym);
21488		let vaQuerySurfaceStatus = __library.get(b"vaQuerySurfaceStatus\0").map(|sym| *sym);
21489		let vaQuerySurfaceError = __library.get(b"vaQuerySurfaceError\0").map(|sym| *sym);
21490		let vaSyncBuffer = __library.get(b"vaSyncBuffer\0").map(|sym| *sym);
21491		let vaMaxNumImageFormats = __library.get(b"vaMaxNumImageFormats\0").map(|sym| *sym);
21492		let vaQueryImageFormats = __library.get(b"vaQueryImageFormats\0").map(|sym| *sym);
21493		let vaCreateImage = __library.get(b"vaCreateImage\0").map(|sym| *sym);
21494		let vaDestroyImage = __library.get(b"vaDestroyImage\0").map(|sym| *sym);
21495		let vaSetImagePalette = __library.get(b"vaSetImagePalette\0").map(|sym| *sym);
21496		let vaGetImage = __library.get(b"vaGetImage\0").map(|sym| *sym);
21497		let vaPutImage = __library.get(b"vaPutImage\0").map(|sym| *sym);
21498		let vaDeriveImage = __library.get(b"vaDeriveImage\0").map(|sym| *sym);
21499		let vaMaxNumSubpictureFormats = __library.get(b"vaMaxNumSubpictureFormats\0").map(|sym| *sym);
21500		let vaQuerySubpictureFormats = __library.get(b"vaQuerySubpictureFormats\0").map(|sym| *sym);
21501		let vaCreateSubpicture = __library.get(b"vaCreateSubpicture\0").map(|sym| *sym);
21502		let vaDestroySubpicture = __library.get(b"vaDestroySubpicture\0").map(|sym| *sym);
21503		let vaSetSubpictureImage = __library.get(b"vaSetSubpictureImage\0").map(|sym| *sym);
21504		let vaSetSubpictureChromakey = __library.get(b"vaSetSubpictureChromakey\0").map(|sym| *sym);
21505		let vaSetSubpictureGlobalAlpha = __library.get(b"vaSetSubpictureGlobalAlpha\0").map(|sym| *sym);
21506		let vaAssociateSubpicture = __library.get(b"vaAssociateSubpicture\0").map(|sym| *sym);
21507		let vaDeassociateSubpicture = __library.get(b"vaDeassociateSubpicture\0").map(|sym| *sym);
21508		let vaMaxNumDisplayAttributes = __library.get(b"vaMaxNumDisplayAttributes\0").map(|sym| *sym);
21509		let vaQueryDisplayAttributes = __library.get(b"vaQueryDisplayAttributes\0").map(|sym| *sym);
21510		let vaGetDisplayAttributes = __library.get(b"vaGetDisplayAttributes\0").map(|sym| *sym);
21511		let vaSetDisplayAttributes = __library.get(b"vaSetDisplayAttributes\0").map(|sym| *sym);
21512		let vaCopy = __library.get(b"vaCopy\0").map(|sym| *sym);
21513		let vaQueryVideoProcFilters = __library.get(b"vaQueryVideoProcFilters\0").map(|sym| *sym);
21514		let vaQueryVideoProcFilterCaps = __library.get(b"vaQueryVideoProcFilterCaps\0").map(|sym| *sym);
21515		let vaQueryVideoProcPipelineCaps = __library.get(b"vaQueryVideoProcPipelineCaps\0").map(|sym| *sym);
21516		let vaCreateProtectedSession = __library.get(b"vaCreateProtectedSession\0").map(|sym| *sym);
21517		let vaDestroyProtectedSession = __library.get(b"vaDestroyProtectedSession\0").map(|sym| *sym);
21518		let vaAttachProtectedSession = __library.get(b"vaAttachProtectedSession\0").map(|sym| *sym);
21519		let vaDetachProtectedSession = __library.get(b"vaDetachProtectedSession\0").map(|sym| *sym);
21520		let vaProtectedSessionExecute = __library.get(b"vaProtectedSessionExecute\0").map(|sym| *sym);
21521		let vaGetDisplayDRM = __library.get(b"vaGetDisplayDRM\0").map(|sym| *sym);
21522		Ok(Va {
21523			__library,
21524			vaErrorStr,
21525			vaSetErrorCallback,
21526			vaSetInfoCallback,
21527			vaDisplayIsValid,
21528			vaSetDriverName,
21529			vaInitialize,
21530			vaTerminate,
21531			vaQueryVendorString,
21532			vaGetLibFunc,
21533			vaMaxNumProfiles,
21534			vaMaxNumEntrypoints,
21535			vaMaxNumConfigAttributes,
21536			vaQueryConfigProfiles,
21537			vaQueryConfigEntrypoints,
21538			vaGetConfigAttributes,
21539			vaCreateConfig,
21540			vaDestroyConfig,
21541			vaQueryConfigAttributes,
21542			vaQuerySurfaceAttributes,
21543			vaCreateSurfaces,
21544			vaDestroySurfaces,
21545			vaCreateContext,
21546			vaDestroyContext,
21547			vaCreateMFContext,
21548			vaMFAddContext,
21549			vaMFReleaseContext,
21550			vaQueryProcessingRate,
21551			vaCreateBuffer,
21552			vaCreateBuffer2,
21553			vaBufferSetNumElements,
21554			vaMapBuffer,
21555			vaMapBuffer2,
21556			vaUnmapBuffer,
21557			vaDestroyBuffer,
21558			vaAcquireBufferHandle,
21559			vaReleaseBufferHandle,
21560			vaExportSurfaceHandle,
21561			vaBeginPicture,
21562			vaRenderPicture,
21563			vaEndPicture,
21564			vaMFSubmit,
21565			vaSyncSurface,
21566			vaSyncSurface2,
21567			vaQuerySurfaceStatus,
21568			vaQuerySurfaceError,
21569			vaSyncBuffer,
21570			vaMaxNumImageFormats,
21571			vaQueryImageFormats,
21572			vaCreateImage,
21573			vaDestroyImage,
21574			vaSetImagePalette,
21575			vaGetImage,
21576			vaPutImage,
21577			vaDeriveImage,
21578			vaMaxNumSubpictureFormats,
21579			vaQuerySubpictureFormats,
21580			vaCreateSubpicture,
21581			vaDestroySubpicture,
21582			vaSetSubpictureImage,
21583			vaSetSubpictureChromakey,
21584			vaSetSubpictureGlobalAlpha,
21585			vaAssociateSubpicture,
21586			vaDeassociateSubpicture,
21587			vaMaxNumDisplayAttributes,
21588			vaQueryDisplayAttributes,
21589			vaGetDisplayAttributes,
21590			vaSetDisplayAttributes,
21591			vaCopy,
21592			vaQueryVideoProcFilters,
21593			vaQueryVideoProcFilterCaps,
21594			vaQueryVideoProcPipelineCaps,
21595			vaCreateProtectedSession,
21596			vaDestroyProtectedSession,
21597			vaAttachProtectedSession,
21598			vaDetachProtectedSession,
21599			vaProtectedSessionExecute,
21600			vaGetDisplayDRM,
21601		})
21602	}
21603	#[doc = " Returns a short english description of error_status"]
21604	pub unsafe fn vaErrorStr(&self, error_status: VAStatus) -> *const ::std::os::raw::c_char {
21605		(self.vaErrorStr.as_ref().expect("Expected function, got error."))(error_status)
21606	}
21607	#[doc = " Set the callback for error messages, or NULL for no logging.\n Returns the previous one, or NULL if it was disabled."]
21608	pub unsafe fn vaSetErrorCallback(
21609		&self,
21610		dpy: VADisplay,
21611		callback: VAMessageCallback,
21612		user_context: *mut ::std::os::raw::c_void,
21613	) -> VAMessageCallback {
21614		(self.vaSetErrorCallback.as_ref().expect("Expected function, got error."))(dpy, callback, user_context)
21615	}
21616	#[doc = " Set the callback for info messages, or NULL for no logging.\n Returns the previous one, or NULL if it was disabled."]
21617	pub unsafe fn vaSetInfoCallback(
21618		&self,
21619		dpy: VADisplay,
21620		callback: VAMessageCallback,
21621		user_context: *mut ::std::os::raw::c_void,
21622	) -> VAMessageCallback {
21623		(self.vaSetInfoCallback.as_ref().expect("Expected function, got error."))(dpy, callback, user_context)
21624	}
21625	pub unsafe fn vaDisplayIsValid(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
21626		(self.vaDisplayIsValid.as_ref().expect("Expected function, got error."))(dpy)
21627	}
21628	#[doc = "  Set the override driver name instead of queried driver driver."]
21629	pub unsafe fn vaSetDriverName(&self, dpy: VADisplay, driver_name: *mut ::std::os::raw::c_char) -> VAStatus {
21630		(self.vaSetDriverName.as_ref().expect("Expected function, got error."))(dpy, driver_name)
21631	}
21632	#[doc = " Initialize the library"]
21633	pub unsafe fn vaInitialize(
21634		&self,
21635		dpy: VADisplay,
21636		major_version: *mut ::std::os::raw::c_int,
21637		minor_version: *mut ::std::os::raw::c_int,
21638	) -> VAStatus {
21639		(self.vaInitialize.as_ref().expect("Expected function, got error."))(dpy, major_version, minor_version)
21640	}
21641	#[doc = " After this call, all library internal resources will be cleaned up"]
21642	pub unsafe fn vaTerminate(&self, dpy: VADisplay) -> VAStatus {
21643		(self.vaTerminate.as_ref().expect("Expected function, got error."))(dpy)
21644	}
21645	#[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\""]
21646	pub unsafe fn vaQueryVendorString(&self, dpy: VADisplay) -> *const ::std::os::raw::c_char {
21647		(self
21648			.vaQueryVendorString
21649			.as_ref()
21650			.expect("Expected function, got error."))(dpy)
21651	}
21652	#[doc = " Return a function pointer given a function name in the library.\n This allows private interfaces into the library"]
21653	pub unsafe fn vaGetLibFunc(&self, dpy: VADisplay, func: *const ::std::os::raw::c_char) -> VAPrivFunc {
21654		(self.vaGetLibFunc.as_ref().expect("Expected function, got error."))(dpy, func)
21655	}
21656	#[doc = " Get maximum number of profiles supported by the implementation"]
21657	pub unsafe fn vaMaxNumProfiles(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
21658		(self.vaMaxNumProfiles.as_ref().expect("Expected function, got error."))(dpy)
21659	}
21660	#[doc = " Get maximum number of entrypoints supported by the implementation"]
21661	pub unsafe fn vaMaxNumEntrypoints(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
21662		(self
21663			.vaMaxNumEntrypoints
21664			.as_ref()
21665			.expect("Expected function, got error."))(dpy)
21666	}
21667	#[doc = " Get maximum number of attributs supported by the implementation"]
21668	pub unsafe fn vaMaxNumConfigAttributes(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
21669		(self
21670			.vaMaxNumConfigAttributes
21671			.as_ref()
21672			.expect("Expected function, got error."))(dpy)
21673	}
21674	#[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\"."]
21675	pub unsafe fn vaQueryConfigProfiles(
21676		&self,
21677		dpy: VADisplay,
21678		profile_list: *mut VAProfile::Type,
21679		num_profiles: *mut ::std::os::raw::c_int,
21680	) -> VAStatus {
21681		(self
21682			.vaQueryConfigProfiles
21683			.as_ref()
21684			.expect("Expected function, got error."))(dpy, profile_list, num_profiles)
21685	}
21686	#[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\"."]
21687	pub unsafe fn vaQueryConfigEntrypoints(
21688		&self,
21689		dpy: VADisplay,
21690		profile: VAProfile::Type,
21691		entrypoint_list: *mut VAEntrypoint::Type,
21692		num_entrypoints: *mut ::std::os::raw::c_int,
21693	) -> VAStatus {
21694		(self
21695			.vaQueryConfigEntrypoints
21696			.as_ref()
21697			.expect("Expected function, got error."))(dpy, profile, entrypoint_list, num_entrypoints)
21698	}
21699	#[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"]
21700	pub unsafe fn vaGetConfigAttributes(
21701		&self,
21702		dpy: VADisplay,
21703		profile: VAProfile::Type,
21704		entrypoint: VAEntrypoint::Type,
21705		attrib_list: *mut VAConfigAttrib,
21706		num_attribs: ::std::os::raw::c_int,
21707	) -> VAStatus {
21708		(self
21709			.vaGetConfigAttributes
21710			.as_ref()
21711			.expect("Expected function, got error."))(dpy, profile, entrypoint, attrib_list, num_attribs)
21712	}
21713	#[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."]
21714	pub unsafe fn vaCreateConfig(
21715		&self,
21716		dpy: VADisplay,
21717		profile: VAProfile::Type,
21718		entrypoint: VAEntrypoint::Type,
21719		attrib_list: *mut VAConfigAttrib,
21720		num_attribs: ::std::os::raw::c_int,
21721		config_id: *mut VAConfigID,
21722	) -> VAStatus {
21723		(self.vaCreateConfig.as_ref().expect("Expected function, got error."))(
21724			dpy,
21725			profile,
21726			entrypoint,
21727			attrib_list,
21728			num_attribs,
21729			config_id,
21730		)
21731	}
21732	#[doc = " Free resources associdated with a given config"]
21733	pub unsafe fn vaDestroyConfig(&self, dpy: VADisplay, config_id: VAConfigID) -> VAStatus {
21734		(self.vaDestroyConfig.as_ref().expect("Expected function, got error."))(dpy, config_id)
21735	}
21736	#[doc = " Query all attributes for a given configuration\n The profile of the configuration is returned in \"profile\"\n The entrypoint of the configuration is returned in \"entrypoint\"\n The caller must provide an \"attrib_list\" array that can hold at least\n vaMaxNumConfigAttributes() entries. The actual number of attributes\n returned in \"attrib_list\" is returned in \"num_attribs\""]
21737	pub unsafe fn vaQueryConfigAttributes(
21738		&self,
21739		dpy: VADisplay,
21740		config_id: VAConfigID,
21741		profile: *mut VAProfile::Type,
21742		entrypoint: *mut VAEntrypoint::Type,
21743		attrib_list: *mut VAConfigAttrib,
21744		num_attribs: *mut ::std::os::raw::c_int,
21745	) -> VAStatus {
21746		(self
21747			.vaQueryConfigAttributes
21748			.as_ref()
21749			.expect("Expected function, got error."))(dpy, config_id, profile, entrypoint, attrib_list, num_attribs)
21750	}
21751	#[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"]
21752	pub unsafe fn vaQuerySurfaceAttributes(
21753		&self,
21754		dpy: VADisplay,
21755		config: VAConfigID,
21756		attrib_list: *mut VASurfaceAttrib,
21757		num_attribs: *mut ::std::os::raw::c_uint,
21758	) -> VAStatus {
21759		(self
21760			.vaQuerySurfaceAttributes
21761			.as_ref()
21762			.expect("Expected function, got error."))(dpy, config, attrib_list, num_attribs)
21763	}
21764	#[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"]
21765	pub unsafe fn vaCreateSurfaces(
21766		&self,
21767		dpy: VADisplay,
21768		format: ::std::os::raw::c_uint,
21769		width: ::std::os::raw::c_uint,
21770		height: ::std::os::raw::c_uint,
21771		surfaces: *mut VASurfaceID,
21772		num_surfaces: ::std::os::raw::c_uint,
21773		attrib_list: *mut VASurfaceAttrib,
21774		num_attribs: ::std::os::raw::c_uint,
21775	) -> VAStatus {
21776		(self.vaCreateSurfaces.as_ref().expect("Expected function, got error."))(
21777			dpy,
21778			format,
21779			width,
21780			height,
21781			surfaces,
21782			num_surfaces,
21783			attrib_list,
21784			num_attribs,
21785		)
21786	}
21787	#[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."]
21788	pub unsafe fn vaDestroySurfaces(
21789		&self,
21790		dpy: VADisplay,
21791		surfaces: *mut VASurfaceID,
21792		num_surfaces: ::std::os::raw::c_int,
21793	) -> VAStatus {
21794		(self.vaDestroySurfaces.as_ref().expect("Expected function, got error."))(dpy, surfaces, num_surfaces)
21795	}
21796	#[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"]
21797	pub unsafe fn vaCreateContext(
21798		&self,
21799		dpy: VADisplay,
21800		config_id: VAConfigID,
21801		picture_width: ::std::os::raw::c_int,
21802		picture_height: ::std::os::raw::c_int,
21803		flag: ::std::os::raw::c_int,
21804		render_targets: *mut VASurfaceID,
21805		num_render_targets: ::std::os::raw::c_int,
21806		context: *mut VAContextID,
21807	) -> VAStatus {
21808		(self.vaCreateContext.as_ref().expect("Expected function, got error."))(
21809			dpy,
21810			config_id,
21811			picture_width,
21812			picture_height,
21813			flag,
21814			render_targets,
21815			num_render_targets,
21816			context,
21817		)
21818	}
21819	#[doc = " vaDestroyContext - Destroy a context\n  dpy: display\n  context: context to be destroyed"]
21820	pub unsafe fn vaDestroyContext(&self, dpy: VADisplay, context: VAContextID) -> VAStatus {
21821		(self.vaDestroyContext.as_ref().expect("Expected function, got error."))(dpy, context)
21822	}
21823	#[doc = " vaCreateMFContext - Create a multi-frame context\n  interface encapsulating common for all streams memory objects and structures\n  required for single GPU task submission from several VAContextID's.\n  Allocation: This call only creates an instance, doesn't allocate any additional memory.\n  Support identification: Application can identify multi-frame feature support by ability\n  to create multi-frame context. If driver supports multi-frame - call successful,\n  mf_context != NULL and VAStatus = VA_STATUS_SUCCESS, otherwise if multi-frame processing\n  not supported driver returns VA_STATUS_ERROR_UNIMPLEMENTED and mf_context = NULL.\n  return values:\n  VA_STATUS_SUCCESS - operation successful.\n  VA_STATUS_ERROR_UNIMPLEMENTED - no support for multi-frame.\n  dpy: display adapter.\n  mf_context: Multi-Frame context encapsulating all associated context\n  for multi-frame submission."]
21824	pub unsafe fn vaCreateMFContext(&self, dpy: VADisplay, mf_context: *mut VAMFContextID) -> VAStatus {
21825		(self.vaCreateMFContext.as_ref().expect("Expected function, got error."))(dpy, mf_context)
21826	}
21827	#[doc = " vaMFAddContext - Provide ability to associate each context used for\n  Multi-Frame submission and common Multi-Frame context.\n  Try to add context to understand if it is supported.\n  Allocation: this call allocates and/or reallocates all memory objects\n  common for all contexts associated with particular Multi-Frame context.\n  All memory required for each context(pixel buffers, internal driver\n  buffers required for processing) allocated during standard vaCreateContext call for each context.\n  Runtime dependency - if current implementation doesn't allow to run different entry points/profile,\n  first context added will set entry point/profile for whole Multi-Frame context,\n  all other entry points and profiles can be rejected to be added.\n  Return values:\n  VA_STATUS_SUCCESS - operation successful, context was added.\n  VA_STATUS_ERROR_OPERATION_FAILED - something unexpected happened - application have to close\n  current mf_context and associated contexts and start working with new ones.\n  VA_STATUS_ERROR_INVALID_CONTEXT - ContextID is invalid, means:\n  1 - mf_context is not valid context or\n  2 - driver can't suport different VAEntrypoint or VAProfile simultaneosly\n  and current context contradicts with previously added, application can continue with current mf_context\n  and other contexts passed this call, rejected context can continue work in stand-alone\n  mode or other mf_context.\n  VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT - particular context being added was created with with\n  unsupported VAEntrypoint. Application can continue with current mf_context\n  and other contexts passed this call, rejected context can continue work in stand-alone\n  mode.\n  VA_STATUS_ERROR_UNSUPPORTED_PROFILE - Current context with Particular VAEntrypoint is supported\n  but VAProfile is not supported. Application can continue with current mf_context\n  and other contexts passed this call, rejected context can continue work in stand-alone\n  mode.\n  dpy: display adapter.\n  context: context being associated with Multi-Frame context.\n  mf_context: - multi-frame context used to associate contexts for multi-frame submission."]
21828	pub unsafe fn vaMFAddContext(&self, dpy: VADisplay, mf_context: VAMFContextID, context: VAContextID) -> VAStatus {
21829		(self.vaMFAddContext.as_ref().expect("Expected function, got error."))(dpy, mf_context, context)
21830	}
21831	#[doc = " vaMFReleaseContext - Removes context from multi-frame and\n  association with multi-frame context.\n  After association removed vaEndPicture will submit tasks, but not vaMFSubmit.\n  Return values:\n  VA_STATUS_SUCCESS - operation successful, context was removed.\n  VA_STATUS_ERROR_OPERATION_FAILED - something unexpected happened.\n  application need to destroy this VAMFContextID and all assotiated VAContextID\n  dpy: display\n  mf_context: VAMFContextID where context is added\n  context: VAContextID to be added"]
21832	pub unsafe fn vaMFReleaseContext(
21833		&self,
21834		dpy: VADisplay,
21835		mf_context: VAMFContextID,
21836		context: VAContextID,
21837	) -> VAStatus {
21838		(self.vaMFReleaseContext.as_ref().expect("Expected function, got error."))(dpy, mf_context, context)
21839	}
21840	#[doc = " \\brief Queries processing rate for the supplied config.\n\n This function queries the processing rate based on parameters in\n \\c proc_buf for the given \\c config. Upon successful return, the processing\n rate value will be stored in \\c processing_rate. Processing rate is\n specified as the number of macroblocks/CTU per second.\n\n If NULL is passed to the \\c proc_buf, the default processing rate for the\n given configuration will be returned.\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[in] proc_buf       the buffer that contains the parameters for\neither the encode or decode processing rate\n @param[out] processing_rate  processing rate in number of macroblocks per\nsecond constrained by parameters specified in proc_buf\n"]
21841	pub unsafe fn vaQueryProcessingRate(
21842		&self,
21843		dpy: VADisplay,
21844		config: VAConfigID,
21845		proc_buf: *mut VAProcessingRateParameter,
21846		processing_rate: *mut ::std::os::raw::c_uint,
21847	) -> VAStatus {
21848		(self
21849			.vaQueryProcessingRate
21850			.as_ref()
21851			.expect("Expected function, got error."))(dpy, config, proc_buf, processing_rate)
21852	}
21853	#[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."]
21854	pub unsafe fn vaCreateBuffer(
21855		&self,
21856		dpy: VADisplay,
21857		context: VAContextID,
21858		type_: VABufferType::Type,
21859		size: ::std::os::raw::c_uint,
21860		num_elements: ::std::os::raw::c_uint,
21861		data: *mut ::std::os::raw::c_void,
21862		buf_id: *mut VABufferID,
21863	) -> VAStatus {
21864		(self.vaCreateBuffer.as_ref().expect("Expected function, got error."))(
21865			dpy,
21866			context,
21867			type_,
21868			size,
21869			num_elements,
21870			data,
21871			buf_id,
21872		)
21873	}
21874	#[doc = " Create a buffer for given width & height get unit_size, pitch, buf_id for 2D buffer\n for permb qp buffer, it will return unit_size for one MB or LCU and the pitch for alignments\n can call vaMapBuffer with this Buffer ID to get virtual address.\n e.g. AVC 1080P encode, 1920x1088, the size in MB is 120x68,but inside driver,\n maybe it should align with 256, and one byte present one Qp.so, call the function.\n then get unit_size = 1, pitch = 256. call vaMapBuffer to get the virtual address (pBuf).\n then read write the memory like 2D. the size is 256x68, application can only use 120x68\n pBuf + 256 is the start of next line.\n different driver implementation maybe return different unit_size and pitch"]
21875	pub unsafe fn vaCreateBuffer2(
21876		&self,
21877		dpy: VADisplay,
21878		context: VAContextID,
21879		type_: VABufferType::Type,
21880		width: ::std::os::raw::c_uint,
21881		height: ::std::os::raw::c_uint,
21882		unit_size: *mut ::std::os::raw::c_uint,
21883		pitch: *mut ::std::os::raw::c_uint,
21884		buf_id: *mut VABufferID,
21885	) -> VAStatus {
21886		(self.vaCreateBuffer2.as_ref().expect("Expected function, got error."))(
21887			dpy, context, type_, width, height, unit_size, pitch, buf_id,
21888		)
21889	}
21890	#[doc = " Convey to the server how many valid elements are in the buffer.\n e.g. if multiple slice parameters are being held in a single buffer,\n this will communicate to the server the number of slice parameters\n that are valid in the buffer."]
21891	pub unsafe fn vaBufferSetNumElements(
21892		&self,
21893		dpy: VADisplay,
21894		buf_id: VABufferID,
21895		num_elements: ::std::os::raw::c_uint,
21896	) -> VAStatus {
21897		(self
21898			.vaBufferSetNumElements
21899			.as_ref()
21900			.expect("Expected function, got error."))(dpy, buf_id, num_elements)
21901	}
21902	#[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"]
21903	pub unsafe fn vaMapBuffer(
21904		&self,
21905		dpy: VADisplay,
21906		buf_id: VABufferID,
21907		pbuf: *mut *mut ::std::os::raw::c_void,
21908	) -> VAStatus {
21909		(self.vaMapBuffer.as_ref().expect("Expected function, got error."))(dpy, buf_id, pbuf)
21910	}
21911	pub unsafe fn vaMapBuffer2(
21912		&self,
21913		dpy: VADisplay,
21914		buf_id: VABufferID,
21915		pbuf: *mut *mut ::std::os::raw::c_void,
21916		flags: u32,
21917	) -> VAStatus {
21918		(self.vaMapBuffer2.as_ref().expect("Expected function, got error."))(dpy, buf_id, pbuf, flags)
21919	}
21920	#[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"]
21921	pub unsafe fn vaUnmapBuffer(&self, dpy: VADisplay, buf_id: VABufferID) -> VAStatus {
21922		(self.vaUnmapBuffer.as_ref().expect("Expected function, got error."))(dpy, buf_id)
21923	}
21924	#[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."]
21925	pub unsafe fn vaDestroyBuffer(&self, dpy: VADisplay, buffer_id: VABufferID) -> VAStatus {
21926		(self.vaDestroyBuffer.as_ref().expect("Expected function, got error."))(dpy, buffer_id)
21927	}
21928	#[doc = " \\brief Acquires buffer handle for external API usage\n\n Locks the VA buffer object \\ref buf_id for external API usage like\n EGL or OpenCL (OCL). This function is a synchronization point. This\n means that any pending operation is guaranteed to be completed\n prior to returning from the function.\n\n If the referenced VA buffer object is the backing store of a VA\n surface, then this function acts as if vaSyncSurface() on the\n parent surface was called first.\n\n The \\ref VABufferInfo argument shall be zero'ed on input. On\n successful output, the data structure is filled in with all the\n necessary buffer level implementation details like handle, type,\n memory type and memory size.\n\n Note: the external API implementation, or the application, can\n express the memory types it is interested in by filling in the \\ref\n mem_type field accordingly. On successful output, the memory type\n that fits best the request and that was used is updated in the \\ref\n VABufferInfo data structure. If none of the supplied memory types\n is supported, then a \\ref VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE\n error is returned.\n\n The \\ref VABufferInfo data is valid until vaReleaseBufferHandle()\n is called. Besides, no additional operation is allowed on any of\n the buffer parent object until vaReleaseBufferHandle() is called.\n e.g. decoding into a VA surface backed with the supplied VA buffer\n object \\ref buf_id would fail with a \\ref VA_STATUS_ERROR_SURFACE_BUSY\n error.\n\n Possible errors:\n - \\ref VA_STATUS_ERROR_UNIMPLEMENTED: the VA driver implementation\n   does not support this interface\n - \\ref VA_STATUS_ERROR_INVALID_DISPLAY: an invalid display was supplied\n - \\ref VA_STATUS_ERROR_INVALID_BUFFER: an invalid buffer was supplied\n - \\ref VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE: the implementation\n   does not support exporting buffers of the specified type\n - \\ref VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE: none of the requested\n   memory types in \\ref VABufferInfo.mem_type was supported\n\n @param[in] dpy               the VA display\n @param[in] buf_id            the VA buffer\n @param[in,out] buf_info      the associated VA buffer information\n @return VA_STATUS_SUCCESS if successful"]
21929	pub unsafe fn vaAcquireBufferHandle(
21930		&self,
21931		dpy: VADisplay,
21932		buf_id: VABufferID,
21933		buf_info: *mut VABufferInfo,
21934	) -> VAStatus {
21935		(self
21936			.vaAcquireBufferHandle
21937			.as_ref()
21938			.expect("Expected function, got error."))(dpy, buf_id, buf_info)
21939	}
21940	#[doc = " \\brief Releases buffer after usage from external API\n\n Unlocks the VA buffer object \\ref buf_id from external API usage like\n EGL or OpenCL (OCL). This function is a synchronization point. This\n means that any pending operation is guaranteed to be completed\n prior to returning from the function.\n\n The \\ref VABufferInfo argument shall point to the original data\n structure that was obtained from vaAcquireBufferHandle(), unaltered.\n This is necessary so that the VA driver implementation could\n deallocate any resources that were needed.\n\n In any case, returning from this function invalidates any contents\n in \\ref VABufferInfo. i.e. the underlyng buffer handle is no longer\n valid. Therefore, VA driver implementations are free to reset this\n data structure to safe defaults.\n\n Possible errors:\n - \\ref VA_STATUS_ERROR_UNIMPLEMENTED: the VA driver implementation\n   does not support this interface\n - \\ref VA_STATUS_ERROR_INVALID_DISPLAY: an invalid display was supplied\n - \\ref VA_STATUS_ERROR_INVALID_BUFFER: an invalid buffer was supplied\n - \\ref VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE: the implementation\n   does not support exporting buffers of the specified type\n\n @param[in] dpy               the VA display\n @param[in] buf_id            the VA buffer\n @return VA_STATUS_SUCCESS if successful"]
21941	pub unsafe fn vaReleaseBufferHandle(&self, dpy: VADisplay, buf_id: VABufferID) -> VAStatus {
21942		(self
21943			.vaReleaseBufferHandle
21944			.as_ref()
21945			.expect("Expected function, got error."))(dpy, buf_id)
21946	}
21947	#[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."]
21948	pub unsafe fn vaExportSurfaceHandle(
21949		&self,
21950		dpy: VADisplay,
21951		surface_id: VASurfaceID,
21952		mem_type: u32,
21953		flags: u32,
21954		descriptor: *mut ::std::os::raw::c_void,
21955	) -> VAStatus {
21956		(self
21957			.vaExportSurfaceHandle
21958			.as_ref()
21959			.expect("Expected function, got error."))(dpy, surface_id, mem_type, flags, descriptor)
21960	}
21961	#[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"]
21962	pub unsafe fn vaBeginPicture(&self, dpy: VADisplay, context: VAContextID, render_target: VASurfaceID) -> VAStatus {
21963		(self.vaBeginPicture.as_ref().expect("Expected function, got error."))(dpy, context, render_target)
21964	}
21965	#[doc = " Send video decode, encode or processing buffers to the server."]
21966	pub unsafe fn vaRenderPicture(
21967		&self,
21968		dpy: VADisplay,
21969		context: VAContextID,
21970		buffers: *mut VABufferID,
21971		num_buffers: ::std::os::raw::c_int,
21972	) -> VAStatus {
21973		(self.vaRenderPicture.as_ref().expect("Expected function, got error."))(dpy, context, buffers, num_buffers)
21974	}
21975	#[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"]
21976	pub unsafe fn vaEndPicture(&self, dpy: VADisplay, context: VAContextID) -> VAStatus {
21977		(self.vaEndPicture.as_ref().expect("Expected function, got error."))(dpy, context)
21978	}
21979	#[doc = " Make the end of rendering for a pictures in contexts passed with submission.\n The server should start processing all pending operations for contexts.\n All contexts passed should be associated through vaMFAddContext\n and call sequence Begin/Render/End performed.\n This call is non-blocking. The client can start another\n Begin/Render/End/vaMFSubmit sequence on a different render targets.\n Return values:\n VA_STATUS_SUCCESS - operation successful, context was removed.\n VA_STATUS_ERROR_INVALID_CONTEXT - mf_context or one of contexts are invalid\n due to mf_context not created or one of contexts not assotiated with mf_context\n through vaAddContext.\n VA_STATUS_ERROR_INVALID_PARAMETER - one of context has not submitted it's frame\n through vaBeginPicture vaRenderPicture vaEndPicture call sequence.\n dpy: display\n mf_context: Multi-Frame context\n contexts: list of contexts submitting their tasks for multi-frame operation.\n num_contexts: number of passed contexts."]
21980	pub unsafe fn vaMFSubmit(
21981		&self,
21982		dpy: VADisplay,
21983		mf_context: VAMFContextID,
21984		contexts: *mut VAContextID,
21985		num_contexts: ::std::os::raw::c_int,
21986	) -> VAStatus {
21987		(self.vaMFSubmit.as_ref().expect("Expected function, got error."))(dpy, mf_context, contexts, num_contexts)
21988	}
21989	#[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."]
21990	pub unsafe fn vaSyncSurface(&self, dpy: VADisplay, render_target: VASurfaceID) -> VAStatus {
21991		(self.vaSyncSurface.as_ref().expect("Expected function, got error."))(dpy, render_target)
21992	}
21993	#[doc = " \\brief Synchronizes pending operations associated with the supplied surface.\n\n This function blocks during specified timeout (in nanoseconds) until\n all pending operations on the render target have been completed.\n If timeout is zero, the function returns immediately.\n\n Possible errors:\n - \\ref VA_STATUS_ERROR_UNIMPLEMENTED: the VA driver implementation\n   does not support this interface\n - \\ref VA_STATUS_ERROR_INVALID_DISPLAY: an invalid display was supplied\n - \\ref VA_STATUS_ERROR_INVALID_SURFACE: an invalid surface was supplied\n - \\ref VA_STATUS_ERROR_TIMEDOUT: synchronization is still in progress,\n   client should call the function again to complete synchronization\n\n @param[in] dpy         the VA display\n @param[in] surface     the surface for which synchronization is performed\n @param[in] timeout_ns  the timeout in nanoseconds\n"]
21994	pub unsafe fn vaSyncSurface2(&self, dpy: VADisplay, surface: VASurfaceID, timeout_ns: u64) -> VAStatus {
21995		(self.vaSyncSurface2.as_ref().expect("Expected function, got error."))(dpy, surface, timeout_ns)
21996	}
21997	#[doc = " Find out any pending ops on the render target"]
21998	pub unsafe fn vaQuerySurfaceStatus(
21999		&self,
22000		dpy: VADisplay,
22001		render_target: VASurfaceID,
22002		status: *mut VASurfaceStatus::Type,
22003	) -> VAStatus {
22004		(self
22005			.vaQuerySurfaceStatus
22006			.as_ref()
22007			.expect("Expected function, got error."))(dpy, render_target, status)
22008	}
22009	#[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."]
22010	pub unsafe fn vaQuerySurfaceError(
22011		&self,
22012		dpy: VADisplay,
22013		surface: VASurfaceID,
22014		error_status: VAStatus,
22015		error_info: *mut *mut ::std::os::raw::c_void,
22016	) -> VAStatus {
22017		(self
22018			.vaQuerySurfaceError
22019			.as_ref()
22020			.expect("Expected function, got error."))(dpy, surface, error_status, error_info)
22021	}
22022	#[doc = " \\brief Synchronizes pending operations associated with the supplied buffer.\n\n This function blocks during specified timeout (in nanoseconds) until\n all pending operations on the supplied buffer have been completed.\n If timeout is zero, the function returns immediately.\n\n Possible errors:\n - \\ref VA_STATUS_ERROR_UNIMPLEMENTED: the VA driver implementation\n   does not support this interface\n - \\ref VA_STATUS_ERROR_INVALID_DISPLAY: an invalid display was supplied\n - \\ref VA_STATUS_ERROR_INVALID_BUFFER: an invalid buffer was supplied\n - \\ref VA_STATUS_ERROR_TIMEDOUT: synchronization is still in progress,\n   client should call the function again to complete synchronization\n\n @param[in] dpy         the VA display\n @param[in] buf_id      the buffer for which synchronization is performed\n @param[in] timeout_ns  the timeout in nanoseconds\n"]
22023	pub unsafe fn vaSyncBuffer(&self, dpy: VADisplay, buf_id: VABufferID, timeout_ns: u64) -> VAStatus {
22024		(self.vaSyncBuffer.as_ref().expect("Expected function, got error."))(dpy, buf_id, timeout_ns)
22025	}
22026	#[doc = " Get maximum number of image formats supported by the implementation"]
22027	pub unsafe fn vaMaxNumImageFormats(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
22028		(self
22029			.vaMaxNumImageFormats
22030			.as_ref()
22031			.expect("Expected function, got error."))(dpy)
22032	}
22033	#[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\"."]
22034	pub unsafe fn vaQueryImageFormats(
22035		&self,
22036		dpy: VADisplay,
22037		format_list: *mut VAImageFormat,
22038		num_formats: *mut ::std::os::raw::c_int,
22039	) -> VAStatus {
22040		(self
22041			.vaQueryImageFormats
22042			.as_ref()
22043			.expect("Expected function, got error."))(dpy, format_list, num_formats)
22044	}
22045	#[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."]
22046	pub unsafe fn vaCreateImage(
22047		&self,
22048		dpy: VADisplay,
22049		format: *mut VAImageFormat,
22050		width: ::std::os::raw::c_int,
22051		height: ::std::os::raw::c_int,
22052		image: *mut VAImage,
22053	) -> VAStatus {
22054		(self.vaCreateImage.as_ref().expect("Expected function, got error."))(dpy, format, width, height, image)
22055	}
22056	#[doc = " Should call DestroyImage before destroying the surface it is bound to"]
22057	pub unsafe fn vaDestroyImage(&self, dpy: VADisplay, image: VAImageID) -> VAStatus {
22058		(self.vaDestroyImage.as_ref().expect("Expected function, got error."))(dpy, image)
22059	}
22060	pub unsafe fn vaSetImagePalette(
22061		&self,
22062		dpy: VADisplay,
22063		image: VAImageID,
22064		palette: *mut ::std::os::raw::c_uchar,
22065	) -> VAStatus {
22066		(self.vaSetImagePalette.as_ref().expect("Expected function, got error."))(dpy, image, palette)
22067	}
22068	#[doc = " Retrive surface data into a VAImage\n Image must be in a format supported by the implementation"]
22069	pub unsafe fn vaGetImage(
22070		&self,
22071		dpy: VADisplay,
22072		surface: VASurfaceID,
22073		x: ::std::os::raw::c_int,
22074		y: ::std::os::raw::c_int,
22075		width: ::std::os::raw::c_uint,
22076		height: ::std::os::raw::c_uint,
22077		image: VAImageID,
22078	) -> VAStatus {
22079		(self.vaGetImage.as_ref().expect("Expected function, got error."))(dpy, surface, x, y, width, height, image)
22080	}
22081	#[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"]
22082	pub unsafe fn vaPutImage(
22083		&self,
22084		dpy: VADisplay,
22085		surface: VASurfaceID,
22086		image: VAImageID,
22087		src_x: ::std::os::raw::c_int,
22088		src_y: ::std::os::raw::c_int,
22089		src_width: ::std::os::raw::c_uint,
22090		src_height: ::std::os::raw::c_uint,
22091		dest_x: ::std::os::raw::c_int,
22092		dest_y: ::std::os::raw::c_int,
22093		dest_width: ::std::os::raw::c_uint,
22094		dest_height: ::std::os::raw::c_uint,
22095	) -> VAStatus {
22096		(self.vaPutImage.as_ref().expect("Expected function, got error."))(
22097			dpy,
22098			surface,
22099			image,
22100			src_x,
22101			src_y,
22102			src_width,
22103			src_height,
22104			dest_x,
22105			dest_y,
22106			dest_width,
22107			dest_height,
22108		)
22109	}
22110	#[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."]
22111	pub unsafe fn vaDeriveImage(&self, dpy: VADisplay, surface: VASurfaceID, image: *mut VAImage) -> VAStatus {
22112		(self.vaDeriveImage.as_ref().expect("Expected function, got error."))(dpy, surface, image)
22113	}
22114	#[doc = " Get maximum number of subpicture formats supported by the implementation"]
22115	pub unsafe fn vaMaxNumSubpictureFormats(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
22116		(self
22117			.vaMaxNumSubpictureFormats
22118			.as_ref()
22119			.expect("Expected function, got error."))(dpy)
22120	}
22121	#[doc = " Query supported subpicture formats\n The caller must provide a \"format_list\" array that can hold at\n least vaMaxNumSubpictureFormats() entries. The flags arrary holds the flag\n for each format to indicate additional capabilities for that format. The actual\n number of formats returned in \"format_list\" is returned in \"num_formats\".\n  flags: returned value to indicate addtional capabilities\n         VA_SUBPICTURE_CHROMA_KEYING - supports chroma-keying\n         VA_SUBPICTURE_GLOBAL_ALPHA - supports global alpha\n     VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD - supports unscaled screen relative subpictures for On Screen Display"]
22122	pub unsafe fn vaQuerySubpictureFormats(
22123		&self,
22124		dpy: VADisplay,
22125		format_list: *mut VAImageFormat,
22126		flags: *mut ::std::os::raw::c_uint,
22127		num_formats: *mut ::std::os::raw::c_uint,
22128	) -> VAStatus {
22129		(self
22130			.vaQuerySubpictureFormats
22131			.as_ref()
22132			.expect("Expected function, got error."))(dpy, format_list, flags, num_formats)
22133	}
22134	#[doc = " Subpictures are created with an image associated."]
22135	pub unsafe fn vaCreateSubpicture(
22136		&self,
22137		dpy: VADisplay,
22138		image: VAImageID,
22139		subpicture: *mut VASubpictureID,
22140	) -> VAStatus {
22141		(self.vaCreateSubpicture.as_ref().expect("Expected function, got error."))(dpy, image, subpicture)
22142	}
22143	#[doc = " Destroy the subpicture before destroying the image it is assocated to"]
22144	pub unsafe fn vaDestroySubpicture(&self, dpy: VADisplay, subpicture: VASubpictureID) -> VAStatus {
22145		(self
22146			.vaDestroySubpicture
22147			.as_ref()
22148			.expect("Expected function, got error."))(dpy, subpicture)
22149	}
22150	#[doc = " Bind an image to the subpicture. This image will now be associated with\n the subpicture instead of the one at creation."]
22151	pub unsafe fn vaSetSubpictureImage(
22152		&self,
22153		dpy: VADisplay,
22154		subpicture: VASubpictureID,
22155		image: VAImageID,
22156	) -> VAStatus {
22157		(self
22158			.vaSetSubpictureImage
22159			.as_ref()
22160			.expect("Expected function, got error."))(dpy, subpicture, image)
22161	}
22162	#[doc = " If chromakey is enabled, then the area where the source value falls within\n the chromakey [min, max] range is transparent\n The chromakey component format is the following:\n  For RGB: [0:7] Red [8:15] Blue [16:23] Green\n  For YUV: [0:7] V [8:15] U [16:23] Y\n The chromakey mask can be used to mask out certain components for chromakey\n comparision"]
22163	pub unsafe fn vaSetSubpictureChromakey(
22164		&self,
22165		dpy: VADisplay,
22166		subpicture: VASubpictureID,
22167		chromakey_min: ::std::os::raw::c_uint,
22168		chromakey_max: ::std::os::raw::c_uint,
22169		chromakey_mask: ::std::os::raw::c_uint,
22170	) -> VAStatus {
22171		(self
22172			.vaSetSubpictureChromakey
22173			.as_ref()
22174			.expect("Expected function, got error."))(dpy, subpicture, chromakey_min, chromakey_max, chromakey_mask)
22175	}
22176	#[doc = " Global alpha value is between 0 and 1. A value of 1 means fully opaque and\n a value of 0 means fully transparent. If per-pixel alpha is also specified then\n the overall alpha is per-pixel alpha multiplied by the global alpha"]
22177	pub unsafe fn vaSetSubpictureGlobalAlpha(
22178		&self,
22179		dpy: VADisplay,
22180		subpicture: VASubpictureID,
22181		global_alpha: f32,
22182	) -> VAStatus {
22183		(self
22184			.vaSetSubpictureGlobalAlpha
22185			.as_ref()
22186			.expect("Expected function, got error."))(dpy, subpicture, global_alpha)
22187	}
22188	#[doc = " vaAssociateSubpicture associates the subpicture with target_surfaces.\n It defines the region mapping between the subpicture and the target\n surfaces through source and destination rectangles (with the same width and height).\n Both will be displayed at the next call to vaPutSurface.  Additional\n associations before the call to vaPutSurface simply overrides the association."]
22189	pub unsafe fn vaAssociateSubpicture(
22190		&self,
22191		dpy: VADisplay,
22192		subpicture: VASubpictureID,
22193		target_surfaces: *mut VASurfaceID,
22194		num_surfaces: ::std::os::raw::c_int,
22195		src_x: i16,
22196		src_y: i16,
22197		src_width: u16,
22198		src_height: u16,
22199		dest_x: i16,
22200		dest_y: i16,
22201		dest_width: u16,
22202		dest_height: u16,
22203		flags: u32,
22204	) -> VAStatus {
22205		(self
22206			.vaAssociateSubpicture
22207			.as_ref()
22208			.expect("Expected function, got error."))(
22209			dpy,
22210			subpicture,
22211			target_surfaces,
22212			num_surfaces,
22213			src_x,
22214			src_y,
22215			src_width,
22216			src_height,
22217			dest_x,
22218			dest_y,
22219			dest_width,
22220			dest_height,
22221			flags,
22222		)
22223	}
22224	#[doc = " vaDeassociateSubpicture removes the association of the subpicture with target_surfaces."]
22225	pub unsafe fn vaDeassociateSubpicture(
22226		&self,
22227		dpy: VADisplay,
22228		subpicture: VASubpictureID,
22229		target_surfaces: *mut VASurfaceID,
22230		num_surfaces: ::std::os::raw::c_int,
22231	) -> VAStatus {
22232		(self
22233			.vaDeassociateSubpicture
22234			.as_ref()
22235			.expect("Expected function, got error."))(dpy, subpicture, target_surfaces, num_surfaces)
22236	}
22237	#[doc = " Get maximum number of display attributs supported by the implementation"]
22238	pub unsafe fn vaMaxNumDisplayAttributes(&self, dpy: VADisplay) -> ::std::os::raw::c_int {
22239		(self
22240			.vaMaxNumDisplayAttributes
22241			.as_ref()
22242			.expect("Expected function, got error."))(dpy)
22243	}
22244	#[doc = " Query display attributes\n The caller must provide a \"attr_list\" array that can hold at\n least vaMaxNumDisplayAttributes() entries. The actual number of attributes\n returned in \"attr_list\" is returned in \"num_attributes\"."]
22245	pub unsafe fn vaQueryDisplayAttributes(
22246		&self,
22247		dpy: VADisplay,
22248		attr_list: *mut VADisplayAttribute,
22249		num_attributes: *mut ::std::os::raw::c_int,
22250	) -> VAStatus {
22251		(self
22252			.vaQueryDisplayAttributes
22253			.as_ref()
22254			.expect("Expected function, got error."))(dpy, attr_list, num_attributes)
22255	}
22256	#[doc = " Get display attributes\n This function returns the current attribute values in \"attr_list\".\n Only attributes returned with VA_DISPLAY_ATTRIB_GETTABLE set in the \"flags\" field\n from vaQueryDisplayAttributes() can have their values retrieved."]
22257	pub unsafe fn vaGetDisplayAttributes(
22258		&self,
22259		dpy: VADisplay,
22260		attr_list: *mut VADisplayAttribute,
22261		num_attributes: ::std::os::raw::c_int,
22262	) -> VAStatus {
22263		(self
22264			.vaGetDisplayAttributes
22265			.as_ref()
22266			.expect("Expected function, got error."))(dpy, attr_list, num_attributes)
22267	}
22268	#[doc = " Set display attributes\n Only attributes returned with VA_DISPLAY_ATTRIB_SETTABLE set in the \"flags\" field\n from vaQueryDisplayAttributes() can be set.  If the attribute is not settable or\n the value is out of range, the function returns VA_STATUS_ERROR_ATTR_NOT_SUPPORTED"]
22269	pub unsafe fn vaSetDisplayAttributes(
22270		&self,
22271		dpy: VADisplay,
22272		attr_list: *mut VADisplayAttribute,
22273		num_attributes: ::std::os::raw::c_int,
22274	) -> VAStatus {
22275		(self
22276			.vaSetDisplayAttributes
22277			.as_ref()
22278			.expect("Expected function, got error."))(dpy, attr_list, num_attributes)
22279	}
22280	#[doc = " \\brief Copies an object.\n\n Copies specified object (surface or buffer). If non-blocking copy\n is requested (VA_COPY_NONBLOCK), then need vaSyncBuffer or vaSyncSurface/vaSyncSurface2\n to sync the destination object.\n\n @param[in] dpy               the VA display\n @param[in] dst               Destination object to copy to\n @param[in] src               Source object to copy from\n @param[in] option            VA copy option\n @return VA_STATUS_SUCCESS if successful"]
22281	pub unsafe fn vaCopy(
22282		&self,
22283		dpy: VADisplay,
22284		dst: *mut VACopyObject,
22285		src: *mut VACopyObject,
22286		option: VACopyOption,
22287	) -> VAStatus {
22288		(self.vaCopy.as_ref().expect("Expected function, got error."))(dpy, dst, src, option)
22289	}
22290	#[doc = " \\brief Queries video processing filters.\n\n This function returns the list of video processing filters supported\n by the driver. The \\c filters array is allocated by the user and\n \\c num_filters shall be initialized to the number of allocated\n elements in that array. Upon successful return, the actual number\n of filters will be overwritten into \\c num_filters. Otherwise,\n \\c VA_STATUS_ERROR_MAX_NUM_EXCEEDED is returned and \\c num_filters\n is adjusted to the number of elements that would be returned if enough\n space was available.\n\n The list of video processing filters supported by the driver shall\n be ordered in the way they can be iteratively applied. This is needed\n for both correctness, i.e. some filters would not mean anything if\n applied at the beginning of the pipeline; but also for performance\n since some filters can be applied in a single pass (e.g. noise\n reduction + deinterlacing).\n\n @param[in] dpy               the VA display\n @param[in] context           the video processing context\n @param[out] filters          the output array of #VAProcFilterType elements\n @param[in,out] num_filters the number of elements allocated on input,\n      the number of elements actually filled in on output"]
22291	pub unsafe fn vaQueryVideoProcFilters(
22292		&self,
22293		dpy: VADisplay,
22294		context: VAContextID,
22295		filters: *mut VAProcFilterType,
22296		num_filters: *mut ::std::os::raw::c_uint,
22297	) -> VAStatus {
22298		(self
22299			.vaQueryVideoProcFilters
22300			.as_ref()
22301			.expect("Expected function, got error."))(dpy, context, filters, num_filters)
22302	}
22303	#[doc = " \\brief Queries video filter capabilities.\n\n This function returns the list of capabilities supported by the driver\n for a specific video filter. The \\c filter_caps array is allocated by\n the user and \\c num_filter_caps shall be initialized to the number\n of allocated elements in that array. Upon successful return, the\n actual number of filters will be overwritten into \\c num_filter_caps.\n Otherwise, \\c VA_STATUS_ERROR_MAX_NUM_EXCEEDED is returned and\n \\c num_filter_caps is adjusted to the number of elements that would be\n returned if enough space was available.\n\n @param[in] dpy               the VA display\n @param[in] context           the video processing context\n @param[in] type              the video filter type\n @param[out] filter_caps      the output array of #VAProcFilterCap elements\n @param[in,out] num_filter_caps the number of elements allocated on input,\n      the number of elements actually filled in output"]
22304	pub unsafe fn vaQueryVideoProcFilterCaps(
22305		&self,
22306		dpy: VADisplay,
22307		context: VAContextID,
22308		type_: VAProcFilterType,
22309		filter_caps: *mut ::std::os::raw::c_void,
22310		num_filter_caps: *mut ::std::os::raw::c_uint,
22311	) -> VAStatus {
22312		(self
22313			.vaQueryVideoProcFilterCaps
22314			.as_ref()
22315			.expect("Expected function, got error."))(dpy, context, type_, filter_caps, num_filter_caps)
22316	}
22317	#[doc = " \\brief Queries video processing pipeline capabilities.\n\n This function returns the video processing pipeline capabilities. The\n \\c filters array defines the video processing pipeline and is an array\n of buffers holding filter parameters.\n\n Note: the #VAProcPipelineCaps structure contains user-provided arrays.\n If non-NULL, the corresponding \\c num_* fields shall be filled in on\n input with the number of elements allocated. Upon successful return,\n the actual number of elements will be overwritten into the \\c num_*\n fields. Otherwise, \\c VA_STATUS_ERROR_MAX_NUM_EXCEEDED is returned\n and \\c num_* fields are adjusted to the number of elements that would\n be returned if enough space was available.\n\n @param[in] dpy               the VA display\n @param[in] context           the video processing context\n @param[in] filters           the array of VA buffers defining the video\n      processing pipeline\n @param[in] num_filters       the number of elements in filters\n @param[in,out] pipeline_caps the video processing pipeline capabilities"]
22318	pub unsafe fn vaQueryVideoProcPipelineCaps(
22319		&self,
22320		dpy: VADisplay,
22321		context: VAContextID,
22322		filters: *mut VABufferID,
22323		num_filters: ::std::os::raw::c_uint,
22324		pipeline_caps: *mut VAProcPipelineCaps,
22325	) -> VAStatus {
22326		(self
22327			.vaQueryVideoProcPipelineCaps
22328			.as_ref()
22329			.expect("Expected function, got error."))(dpy, context, filters, num_filters, pipeline_caps)
22330	}
22331	#[doc = " \\brief Create a protected session\n\n Create a protected session\n\n @param[in] dpy                   the VA display\n @param[in] config_id             configuration for the protected session\n @param[out] protected_session    created protected session id upon return"]
22332	pub unsafe fn vaCreateProtectedSession(
22333		&self,
22334		dpy: VADisplay,
22335		config_id: VAConfigID,
22336		protected_session: *mut VAProtectedSessionID,
22337	) -> VAStatus {
22338		(self
22339			.vaCreateProtectedSession
22340			.as_ref()
22341			.expect("Expected function, got error."))(dpy, config_id, protected_session)
22342	}
22343	#[doc = " \\brief Destroy a protected session\n\n Destroy a protected session\n\n @param[in] dpy                   the VA display\n @param[in] protected_session     protected session to be destroyed"]
22344	pub unsafe fn vaDestroyProtectedSession(
22345		&self,
22346		dpy: VADisplay,
22347		protected_session: VAProtectedSessionID,
22348	) -> VAStatus {
22349		(self
22350			.vaDestroyProtectedSession
22351			.as_ref()
22352			.expect("Expected function, got error."))(dpy, protected_session)
22353	}
22354	#[doc = " \\brief Attach a protected content session to VA context\n\n Attach a protected content session to the context to enable\n decryption/protection\n\n @param[in] dpy                   the VA display\n @param[in] id                    the VA decode/encode/vp context\n @param[in] protected_session     the protected session to attach"]
22355	pub unsafe fn vaAttachProtectedSession(
22356		&self,
22357		dpy: VADisplay,
22358		id: VAGenericID,
22359		protected_session: VAProtectedSessionID,
22360	) -> VAStatus {
22361		(self
22362			.vaAttachProtectedSession
22363			.as_ref()
22364			.expect("Expected function, got error."))(dpy, id, protected_session)
22365	}
22366	#[doc = " \\brief  Detach the protected content session from the VA context\n\n Detach protected content session of the context to disable\n decryption/protection\n\n @param[in] dpy                   the VA display\n @param[in] id                    TEE client id to be detached"]
22367	pub unsafe fn vaDetachProtectedSession(&self, dpy: VADisplay, id: VAGenericID) -> VAStatus {
22368		(self
22369			.vaDetachProtectedSession
22370			.as_ref()
22371			.expect("Expected function, got error."))(dpy, id)
22372	}
22373	#[doc = " \\brief Execute provides a general mechanism for TEE client tasks execution.\n\n vaProtectedSessionExecute provides a mechanism for TEE clients to execute\n specific tasks. The implementation may differ between IHVs.\n This is a synchronous API.\n\n @param[in] dpy                   the VA display\n @param[in] protected_session     the protected session\n @param[in,out] buf_id            the VA buffer"]
22374	pub unsafe fn vaProtectedSessionExecute(
22375		&self,
22376		dpy: VADisplay,
22377		protected_session: VAProtectedSessionID,
22378		buf_id: VABufferID,
22379	) -> VAStatus {
22380		(self
22381			.vaProtectedSessionExecute
22382			.as_ref()
22383			.expect("Expected function, got error."))(dpy, protected_session, buf_id)
22384	}
22385	#[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"]
22386	pub unsafe fn vaGetDisplayDRM(&self, fd: ::std::os::raw::c_int) -> VADisplay {
22387		(self.vaGetDisplayDRM.as_ref().expect("Expected function, got error."))(fd)
22388	}
22389}