1#[macro_use]
2pub mod dictionary;
3pub mod chroma;
4pub mod color;
5pub mod error;
6pub mod format;
7pub mod frame;
8pub mod interrupt;
9pub mod log;
10pub mod mathematics;
11pub mod media;
12pub mod option;
13pub mod picture;
14pub mod range;
15pub mod rational;
16pub mod time;
17
18#[cfg_attr(feature = "ffmpeg_7_0", path = "channel_layout.rs")]
19#[cfg_attr(not(feature = "ffmpeg_7_0"), path = "legacy_channel_layout.rs")]
20pub mod channel_layout;
21
22use std::ffi::CStr;
23use std::str::from_utf8_unchecked;
24
25use ffi::*;
26
27#[inline(always)]
28pub fn version() -> u32 {
29 unsafe { avutil_version() }
30}
31
32#[inline(always)]
33pub fn configuration() -> &'static str {
34 unsafe { from_utf8_unchecked(CStr::from_ptr(avutil_configuration()).to_bytes()) }
35}
36
37#[inline(always)]
38pub fn license() -> &'static str {
39 unsafe { from_utf8_unchecked(CStr::from_ptr(avutil_license()).to_bytes()) }
40}
41