mirror_ffmpeg_sys/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(clippy::approx_constant)]
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::redundant_static_lifetimes)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::type_complexity)]
#![cfg(any(
    feature = "avcodec",
    feature = "avdevice",
    feature = "avfilter",
    feature = "avformat",
    feature = "avutil",
    feature = "swresample",
    feature = "swresample",
    feature = "swscale"
))]

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[inline(always)]
#[cfg(feature = "avutil")]
pub unsafe fn av_make_q(num: std::ffi::c_int, den: std::ffi::c_int) -> AVRational {
    AVRational { num, den }
}