forked from mirrors/gstreamer-rs
e6a81edb3c
For cleanliness the prelude module only needs to reexport preludes from direct, "top-most" crates, which themselves take care of reexporting preludes from its dependencies again. This shaves off some code while maintaining the same set of exports.
55 lines
1.4 KiB
Rust
55 lines
1.4 KiB
Rust
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
|
|
|
pub use ffi;
|
|
pub use gst;
|
|
pub use gst_base;
|
|
pub use gst_video;
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
|
() => {
|
|
if unsafe { gst::ffi::gst_is_initialized() } != glib::ffi::GTRUE {
|
|
panic!("GStreamer has not been initialized. Call `gst::init` first.");
|
|
}
|
|
};
|
|
}
|
|
|
|
macro_rules! skip_assert_initialized {
|
|
() => {};
|
|
}
|
|
|
|
#[allow(clippy::unreadable_literal)]
|
|
#[allow(clippy::too_many_arguments)]
|
|
#[allow(clippy::match_same_arms)]
|
|
mod auto;
|
|
pub use crate::auto::*;
|
|
|
|
mod caps_features;
|
|
pub use crate::caps_features::{CAPS_FEATURES_MEMORY_GL_MEMORY, CAPS_FEATURE_MEMORY_GL_MEMORY};
|
|
mod context;
|
|
mod gl_context;
|
|
mod gl_display;
|
|
pub use crate::gl_display::GL_DISPLAY_CONTEXT_TYPE;
|
|
mod gl_sync_meta;
|
|
mod gl_video_frame;
|
|
pub use crate::gl_sync_meta::*;
|
|
mod gl_base_memory;
|
|
pub use self::gl_base_memory::*;
|
|
mod gl_memory;
|
|
pub use crate::gl_memory::*;
|
|
|
|
// Re-export all the traits in a prelude module, so that applications
|
|
// can always "use gst_gl::prelude::*" without getting conflicts
|
|
pub mod prelude {
|
|
#[doc(hidden)]
|
|
pub use gst_video::prelude::*;
|
|
|
|
pub use crate::auto::traits::*;
|
|
|
|
pub use crate::context::ContextGLExt;
|
|
pub use crate::gl_context::GLContextExtManual;
|
|
pub use crate::gl_video_frame::VideoFrameGLExt;
|
|
}
|
|
|
|
pub mod subclass;
|