2022-02-26 15:16:35 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
|
2023-05-04 05:55:48 +00:00
|
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
2022-02-26 15:16:35 +00:00
|
|
|
#![allow(clippy::missing_safety_doc)]
|
|
|
|
#![doc = include_str!("../README.md")]
|
|
|
|
|
|
|
|
pub use ffi;
|
|
|
|
pub use glib;
|
|
|
|
pub use gst;
|
|
|
|
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
|
|
|
() => {
|
2022-06-27 07:28:28 +00:00
|
|
|
if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
|
2023-01-05 14:40:15 +00:00
|
|
|
gst::assert_initialized();
|
2022-02-26 15:16:35 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! skip_assert_initialized {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[allow(unused_imports)]
|
|
|
|
mod auto;
|
|
|
|
pub use crate::auto::*;
|
|
|
|
|
|
|
|
mod caps_features;
|
|
|
|
pub use crate::caps_features::CAPS_FEATURES_MEMORY_DMABUF;
|
|
|
|
|
|
|
|
mod fd_allocator;
|
|
|
|
pub use fd_allocator::*;
|
|
|
|
|
2023-05-04 05:55:48 +00:00
|
|
|
#[cfg(any(target_os = "linux", docsrs))]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
2022-02-26 15:16:35 +00:00
|
|
|
mod dma_buf_allocator;
|
2023-05-04 05:55:48 +00:00
|
|
|
#[cfg(any(target_os = "linux", docsrs))]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
|
2022-02-26 15:16:35 +00:00
|
|
|
pub use dma_buf_allocator::*;
|
|
|
|
|
2023-05-04 05:55:48 +00:00
|
|
|
#[cfg(any(all(feature = "v1_24", target_os = "linux"), docsrs))]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
|
2023-04-06 18:10:36 +00:00
|
|
|
mod drm_dumb_allocator;
|
2023-05-04 05:55:48 +00:00
|
|
|
#[cfg(any(all(feature = "v1_24", target_os = "linux"), docsrs))]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(all(feature = "v1_24", target_os = "linux"))))]
|
2023-04-06 18:10:36 +00:00
|
|
|
pub use drm_dumb_allocator::*;
|
|
|
|
|
2023-11-10 14:41:39 +00:00
|
|
|
#[cfg(any(all(feature = "v1_24", unix), docsrs))]
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(all(feature = "v1_24", unix))))]
|
|
|
|
mod shm_allocator;
|
|
|
|
|
2022-02-26 15:16:35 +00:00
|
|
|
mod phys_memory;
|
|
|
|
pub use phys_memory::*;
|
|
|
|
|
|
|
|
// Re-export all the traits in a prelude module, so that applications
|
|
|
|
// can always "use gst_base::prelude::*" without getting conflicts
|
|
|
|
pub mod prelude {
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub use gst::prelude::*;
|
|
|
|
}
|
2023-01-06 19:31:13 +00:00
|
|
|
|
|
|
|
pub mod subclass;
|