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 circular_buffer;
18pub mod data;
19pub mod error;
20pub mod frame;
21pub mod frame_pool;
22pub mod media;
23pub mod time;
24
25pub mod rational {
26    pub use num_rational::Rational64;
27}
28
29mod utils;
30
31pub use media::*;
32#[allow(unused_imports)]
33pub(crate) use utils::*;
34
35use crate::error::Error;
36
37pub type Result<T> = std::result::Result<T, Error>;