start work on nihed-cros-libva
[nihav-player.git] / nihed-cros-libva / bindgen.sh
CommitLineData
68362724
KS
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
8set -euo pipefail
9bindgen \
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
18bindgen \
19 --allowlist-var "VA.*" \
20 "libva-wrapper.h" \
21 > src/bindings/va/constants.rs