const ALLOW_LIST_TYPE: &str = ".*ExternalBuffers.*|.*PRIME.*|.*MPEG2.*|.*VP8.*|.*VP9.*|.*H264.*|.*HEVC.*|\
.*JPEG.*|VACodedBufferSegment|.*AV1.*|VAEncMisc.*|VASurfaceDecodeMBErrors|\
VADecodeErrorType|.*VAProc.*|VAEncPacked.*|\
VACenc.*|VA_TEE_.*|VAEncryption.*|VA_PROTECTED_.*";
pub fn vaapi_gen_builder(builder: bindgen::Builder) -> bindgen::Builder {
builder
.derive_default(true)
.derive_eq(true)
.layout_tests(false)
.constified_enum_module("VA.*")
.allowlist_var("VA.*")
.allowlist_function("va.*")
.allowlist_type(ALLOW_LIST_TYPE)
}