1// Take a look at the license at the top of the repository in the LICENSE file.
2
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![allow(clippy::missing_safety_doc)]
5#![doc = include_str!("../README.md")]
6
7pub use ffi;
8pub use glib;
9pub use gst;
10
11macro_rules! assert_initialized_main_thread {
12 () => {
13 if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
14 gst::assert_initialized();
15 }
16 };
17}
18
19macro_rules! skip_assert_initialized {
20 () => {};
21}
22
23mod auto;
24pub use crate::auto::{functions::*, *};
25
26pub mod functions;
27pub use crate::functions::*;
28
29mod adapter;
30pub use crate::adapter::*;
31mod flow_combiner;
32pub use crate::flow_combiner::*;
33mod aggregator;
34mod aggregator_pad;
35mod base_parse;
36mod base_sink;
37mod base_src;
38mod base_transform;
39
40pub mod base_parse_frame;
41pub use crate::base_parse_frame::BaseParseFrame;
42
43pub const BASE_TRANSFORM_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
44pub const BASE_PARSE_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
45pub const AGGREGATOR_FLOW_NEED_DATA: gst::FlowError = gst::FlowError::CustomError;
46
47// Re-export all the traits in a prelude module, so that applications
48// can always "use gst_base::prelude::*" without getting conflicts
49pub mod prelude {
50 #[doc(hidden)]
51 pub use gst::prelude::*;
52
53 pub use crate::{
54 aggregator::AggregatorExtManual, aggregator_pad::AggregatorPadExtManual, auto::traits::*,
55 base_parse::BaseParseExtManual, base_sink::BaseSinkExtManual, base_src::BaseSrcExtManual,
56 base_transform::BaseTransformExtManual,
57 };
58}
59
60pub mod subclass;
61