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