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 | |
7 | pub use ffi; |
8 | pub use glib; |
9 | pub use gst; |
10 | |
11 | macro_rules! assert_initialized_main_thread { |
12 | () => { |
13 | if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) { |
14 | gst::assert_initialized(); |
15 | } |
16 | }; |
17 | } |
18 | |
19 | macro_rules! skip_assert_initialized { |
20 | () => {}; |
21 | } |
22 | |
23 | mod auto; |
24 | pub use crate::auto::{functions::*, *}; |
25 | |
26 | pub mod functions; |
27 | pub use crate::functions::*; |
28 | |
29 | mod adapter; |
30 | pub use crate::adapter::*; |
31 | mod flow_combiner; |
32 | pub use crate::flow_combiner::*; |
33 | mod aggregator; |
34 | mod aggregator_pad; |
35 | mod base_parse; |
36 | mod base_sink; |
37 | mod base_src; |
38 | mod base_transform; |
39 | |
40 | pub mod base_parse_frame; |
41 | pub use crate::base_parse_frame::BaseParseFrame; |
42 | |
43 | pub const BASE_TRANSFORM_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess; |
44 | pub const BASE_PARSE_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess; |
45 | pub 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 |
49 | pub 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 | |
60 | pub mod subclass; |
61 | |