33 lines
687 B
Rust
Raw Normal View History

2021-03-29 15:59:14 +08:00
pub use self::codec::*;
cfg_if! {
if #[cfg(quartz)] {
mod quartz;
pub use self::quartz::*;
} else if #[cfg(x11)] {
2021-07-23 17:52:38 +08:00
cfg_if! {
if #[cfg(feature="wayland")] {
mod linux;
mod wayland;
2021-03-29 15:59:14 +08:00
mod x11;
2021-07-23 17:52:38 +08:00
pub use self::linux::*;
} else {
mod x11;
pub use self::x11::*;
}
}
2021-03-29 15:59:14 +08:00
} else if #[cfg(dxgi)] {
mod dxgi;
pub use self::dxgi::*;
} else {
//TODO: Fallback implementation.
}
}
pub mod codec;
mod convert;
pub use self::convert::*;
pub const STRIDE_ALIGN: usize = 16; // commonly used in libvpx vpx_img_alloc caller
mod vpx;