forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

bindgen_gen.rs22 lines, 858 bytesHistoryRawDownload
1// Copyright 2022 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5/// The allow list of VA structures and enum values.
6const ALLOW_LIST_TYPE: &str =
7 ".*ExternalBuffers.*|.*PRIME.*|.*MPEG2.*|.*VP8.*|.*VP9.*|.*H264.*|.*HEVC.*|\
8 .*JPEG.*|VACodedBufferSegment|.*AV1.*|VAEncMisc.*|VASurfaceDecodeMBErrors|\
9 VADecodeErrorType|.*VAProc.*|VAEncPacked.*|\
10 VACenc.*|VA_TEE_.*|VAEncryption.*|VA_PROTECTED_.*";
11
12// The common bindgen builder for VA-API.
13pub fn vaapi_gen_builder(builder: bindgen::Builder) -> bindgen::Builder {
14 builder
15 .derive_default(true)
16 .derive_eq(true)
17 .layout_tests(false)
18 .constified_enum_module("VA.*")
19 .allowlist_var("VA.*")
20 .allowlist_function("va.*")
21 .allowlist_type(ALLOW_LIST_TYPE)
22}