1pub mod flag;
2pub use self::flag::Flags;
3
4pub mod id;
5pub use self::id::Id;
6
7pub mod packet;
8
9pub mod subtitle;
10
11#[cfg(not(feature = "ffmpeg_5_0"))]
12pub mod picture;
13
14pub mod discard;
15
16pub mod context;
17pub use self::context::Context;
18
19pub mod capabilities;
20pub use self::capabilities::Capabilities;
21
22pub mod codec;
23
24pub mod parameters;
25pub use self::parameters::Parameters;
26
27pub mod video;
28pub use self::video::Video;
29
30pub mod audio;
31pub use self::audio::Audio;
32
33pub mod audio_service;
34pub mod field_order;
35
36pub mod compliance;
37pub use self::compliance::Compliance;
38
39pub mod debug;
40pub use self::debug::Debug;
41
42pub mod profile;
43pub use self::profile::Profile;
44
45pub mod threading;
46
47pub mod decoder;
48pub mod encoder;
49pub mod traits;
50
51use std::ffi::CStr;
52use std::str::from_utf8_unchecked;
53
54use ffi::*;
55
56pub fn version() -> u32 {
57 unsafe { avcodec_version() }
58}
59
60pub fn configuration() -> &'static str {
61 unsafe { from_utf8_unchecked(CStr::from_ptr(avcodec_configuration()).to_bytes()) }
62}
63
64pub fn license() -> &'static str {
65 unsafe { from_utf8_unchecked(CStr::from_ptr(avcodec_license()).to_bytes()) }
66}
67