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