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