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