236 Commits
Author SHA1 Message Date
Zhiming WangandTill Höppner 479042f17b Export more user-friendly version flags ffmpeg_x_y
avcodec_version_greater_than_* are cumbersome for downstream software, after
all.
2023-05-24 21:49:22 +02:00
KornelandTill Höppner 17e81fed3d Block more bindgen-u128-problematic functions 2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner 8fc05cf1e8 avutil::error: mark AVERROR and AVUNERROR as const 2023-05-24 21:49:22 +02:00
ldm0andTill Höppner 87d69b1cbc Fix incorrect static inline function 2023-05-24 21:49:22 +02:00
KornelandTill Höppner 4908ff72c2 Workaround for nightlies 2023-05-24 21:49:22 +02:00
KornelandTill Höppner 7b101c4216 Fix libdrm build 2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner f1a3832d16 Add libdrm support
Based on #70 but rewritten.
2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner 07ec924268 clippy: fix all remaining issues
Also disable a couple of lints that are mostly outside our control (i.e. in
code generated by bindgen).
2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner fb1206784e clippy: fix trivial_regex
Dropped a dep. Good.
2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner 0d44946471 Update version_check_info to support FFmpeg 3.0 through 4.3
lavc version for FFmpeg 3.1: 57.107;
lavc version for FFmpeg 4.3: 58.91.
2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner e2878b80a8 Drop debug output code that writes to source dir
cargo publish isn't happy with build.rs modifying source dir, and this piece of
code doesn't seem to do anything other than writing the compiler options used
to disk.
2023-05-24 21:49:22 +02:00
0xd34d10ccandTill Höppner c5e44b117b Add vcpkg support on windows
Closes #2.

Signed-off-by: Zhiming Wang <i@zhimingwang.org>
2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner f3791bbf27 Deduplicate FF_API_XVMC feature check 2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner ed944f725a Constify AV_CODEC_ID_FIRST_* in enums
There are dummy IDs AV_CODEC_ID_FIRST_AUDIO, AV_CODEC_ID_FIRST_SUBTITLE, and
AV_CODEC_ID_FIRST_UNKNOWN that are duplicates of their following entries in the
AVCodecID enum in libavcodec/avcodec.h. In C this is not a problem, but when
bindgen converts the C enum to Rust enum it has to drop one in each pair of
duplicates, and since the dummy IDs are listed first, they push the meaningful
ones AV_CODEC_ID_FIRST_AUDIO, AV_CODEC_ID_DVD_SUBTITLE, and AV_CODEC_ID_TTF to
associated constants. We introduce enum_variant_behavior callback to fix this.
2023-05-24 21:49:22 +02:00
Zhiming WangandTill Höppner f99e645713 Update bindgen to latest 0.54
Also set size_t_is_usize to true to avoid tons of type cast problems.
2023-05-24 21:49:22 +02:00
Marc-Antoine ArnaudandTill Höppner e99055268d bump to 4.2.1 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner e0f9c6805e README 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner 3a3b06db1d Update bindgen 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner 4f0a375bd2 More workarounds for long double in bindgen 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner 69f0b89d6d Avoid redefinition when vars are duplicated 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner 2b5f195abc More helpful message when check fails 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner 5536764795 Get correct cross-prefix 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner d37a3d666c Manually exclude long double from bindings
https://github.com/rust-lang/rust-bindgen/issues/1549
2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner 9251a1a055 Fix static linking errors caused by auto-enabled unsupported libraries 2023-05-24 21:49:22 +02:00
Kornel LesińskiandTill Höppner 932ba5cb1a Use a shallow clone 2023-05-24 21:49:22 +02:00