]> git.nihav.org Git - nihav-player.git/blob - nihed-cros-libva/bindgen.sh
start work on nihed-cros-libva
[nihav-player.git] / nihed-cros-libva / bindgen.sh
1 #!/usr/bin/env bash
2 # Copyright 2022 The ChromiumOS Authors
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 # Regenerate libva bindgen bindings.
7
8 set -euo pipefail
9 bindgen \
10 --raw-line "pub mod constants;" \
11 --with-derive-eq \
12 --constified-enum-module "VA.*" \
13 --allowlist-function "va.*" \
14 --allowlist-type ".*MPEG2.*|.*VP8.*|.*VP9.*|.*H264.*" \
15 "libva-wrapper.h" \
16 > src/bindings/va.rs
17
18 bindgen \
19 --allowlist-var "VA.*" \
20 "libva-wrapper.h" \
21 > src/bindings/va/constants.rs