2020-12-15 10:53:31 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
2017-09-09 13:54:02 +00:00
|
|
|
|
2023-05-04 05:55:48 +00:00
|
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
2021-07-30 19:23:46 +00:00
|
|
|
#![allow(clippy::missing_safety_doc)]
|
2021-07-30 16:03:12 +00:00
|
|
|
#![doc = include_str!("../README.md")]
|
2020-11-18 12:48:41 +00:00
|
|
|
|
2020-11-21 17:59:22 +00:00
|
|
|
pub use ffi;
|
2020-12-20 17:39:15 +00:00
|
|
|
pub use glib;
|
|
|
|
pub use gst;
|
2017-09-09 13:54:02 +00:00
|
|
|
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
2018-04-01 08:30:03 +00:00
|
|
|
() => {
|
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();
|
2017-09-09 13:54:02 +00:00
|
|
|
}
|
2018-04-01 08:30:03 +00:00
|
|
|
};
|
2017-09-09 13:54:02 +00:00
|
|
|
}
|
|
|
|
|
2019-05-25 19:29:04 +00:00
|
|
|
macro_rules! skip_assert_initialized {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
2017-09-09 13:54:02 +00:00
|
|
|
mod auto;
|
2023-08-28 17:03:27 +00:00
|
|
|
pub use crate::auto::*;
|
2017-12-18 08:05:42 +00:00
|
|
|
|
|
|
|
pub mod functions;
|
2020-11-21 17:59:22 +00:00
|
|
|
pub use crate::functions::*;
|
2017-09-09 13:54:02 +00:00
|
|
|
|
|
|
|
mod adapter;
|
2020-11-21 17:59:22 +00:00
|
|
|
pub use crate::adapter::*;
|
2017-10-11 10:52:49 +00:00
|
|
|
mod flow_combiner;
|
2020-11-21 17:59:22 +00:00
|
|
|
pub use crate::flow_combiner::*;
|
2018-07-30 08:54:06 +00:00
|
|
|
mod aggregator;
|
2018-08-01 16:18:15 +00:00
|
|
|
mod aggregator_pad;
|
2019-05-25 19:29:04 +00:00
|
|
|
mod base_parse;
|
2018-02-12 08:44:44 +00:00
|
|
|
mod base_sink;
|
2018-04-01 08:30:03 +00:00
|
|
|
mod base_src;
|
2018-02-12 08:44:44 +00:00
|
|
|
mod base_transform;
|
2017-09-09 13:54:02 +00:00
|
|
|
|
2019-05-25 19:29:04 +00:00
|
|
|
pub mod base_parse_frame;
|
2020-11-21 17:59:22 +00:00
|
|
|
pub use crate::base_parse_frame::BaseParseFrame;
|
2019-05-25 19:29:04 +00:00
|
|
|
|
2019-08-14 17:25:59 +00:00
|
|
|
pub const BASE_TRANSFORM_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
|
|
|
|
pub const BASE_PARSE_FLOW_DROPPED: gst::FlowSuccess = gst::FlowSuccess::CustomSuccess;
|
|
|
|
pub const AGGREGATOR_FLOW_NEED_DATA: gst::FlowError = gst::FlowError::CustomError;
|
|
|
|
|
2017-09-09 13:54:02 +00:00
|
|
|
// Re-export all the traits in a prelude module, so that applications
|
2021-04-27 07:30:13 +00:00
|
|
|
// can always "use gst_base::prelude::*" without getting conflicts
|
2017-09-09 13:54:02 +00:00
|
|
|
pub mod prelude {
|
2020-12-20 17:39:15 +00:00
|
|
|
#[doc(hidden)]
|
2017-09-09 13:54:02 +00:00
|
|
|
pub use gst::prelude::*;
|
|
|
|
|
2023-01-03 18:58:25 +00:00
|
|
|
pub use crate::{
|
|
|
|
aggregator::AggregatorExtManual, aggregator_pad::AggregatorPadExtManual, auto::traits::*,
|
|
|
|
base_parse::BaseParseExtManual, base_sink::BaseSinkExtManual, base_src::BaseSrcExtManual,
|
|
|
|
base_transform::BaseTransformExtManual,
|
|
|
|
};
|
2017-09-09 13:54:02 +00:00
|
|
|
}
|
2018-02-12 08:44:44 +00:00
|
|
|
|
2018-11-20 17:33:30 +00:00
|
|
|
pub mod subclass;
|