media_core/
lib.rs

1use cfg_if::cfg_if;
2pub use x_variant as variant;
3
4cfg_if! {
5    if #[cfg(feature = "audio")] {
6        pub mod audio;
7    }
8}
9
10cfg_if! {
11    if #[cfg(feature = "video")] {
12        pub mod video;
13    }
14}
15
16pub mod buffer;
17pub mod data;
18pub mod error;
19pub mod frame;
20pub mod frame_pool;
21pub mod media;
22pub mod time;
23
24pub mod rational {
25    pub use num_rational::Rational64;
26}
27
28mod utils;
29
30pub use media::*;
31#[allow(unused_imports)]
32pub(crate) use utils::*;
33
34use crate::error::Error;
35
36pub type Result<T> = std::result::Result<T, Error>;