X-Git-Url: https://git.nihav.org/?p=nihav-player.git;a=blobdiff_plain;f=nihed-cros-libva%2Fbindgen.sh;fp=nihed-cros-libva%2Fbindgen.sh;h=be9fdf32a9d0c9bdca6c1cfeed83f8a071c3bf1f;hp=0000000000000000000000000000000000000000;hb=683627242f69bed0b818d976d4b03d651e529697;hpb=549511e9deafd9ec08b3c80489e7e85c5f5f0b3b diff --git a/nihed-cros-libva/bindgen.sh b/nihed-cros-libva/bindgen.sh new file mode 100755 index 0000000..be9fdf3 --- /dev/null +++ b/nihed-cros-libva/bindgen.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# Copyright 2022 The ChromiumOS Authors +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Regenerate libva bindgen bindings. + +set -euo pipefail +bindgen \ + --raw-line "pub mod constants;" \ + --with-derive-eq \ + --constified-enum-module "VA.*" \ + --allowlist-function "va.*" \ + --allowlist-type ".*MPEG2.*|.*VP8.*|.*VP9.*|.*H264.*" \ + "libva-wrapper.h" \ + > src/bindings/va.rs + +bindgen \ + --allowlist-var "VA.*" \ + "libva-wrapper.h" \ + > src/bindings/va/constants.rs