mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
38 lines
714 B
Rust
38 lines
714 B
Rust
#[macro_use]
|
|
pub mod dictionary;
|
|
pub mod channel_layout;
|
|
pub mod chroma;
|
|
pub mod color;
|
|
pub mod error;
|
|
pub mod format;
|
|
pub mod frame;
|
|
pub mod interrupt;
|
|
pub mod log;
|
|
pub mod mathematics;
|
|
pub mod media;
|
|
pub mod option;
|
|
pub mod picture;
|
|
pub mod range;
|
|
pub mod rational;
|
|
pub mod time;
|
|
|
|
use std::ffi::CStr;
|
|
use std::str::from_utf8_unchecked;
|
|
|
|
use ffi::*;
|
|
|
|
#[inline(always)]
|
|
pub fn version() -> u32 {
|
|
unsafe { avutil_version() }
|
|
}
|
|
|
|
#[inline(always)]
|
|
pub fn configuration() -> &'static str {
|
|
unsafe { from_utf8_unchecked(CStr::from_ptr(avutil_configuration()).to_bytes()) }
|
|
}
|
|
|
|
#[inline(always)]
|
|
pub fn license() -> &'static str {
|
|
unsafe { from_utf8_unchecked(CStr::from_ptr(avutil_license()).to_bytes()) }
|
|
}
|