2020-12-15 10:53:31 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2020-11-27 13:37:49 +00:00
|
|
|
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
2022-04-13 23:10:04 +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-22 10:34:50 +00:00
|
|
|
pub use ffi;
|
2020-12-20 17:39:15 +00:00
|
|
|
pub use glib;
|
|
|
|
pub use gst;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
|
|
|
macro_rules! assert_initialized_main_thread {
|
|
|
|
() => {
|
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();
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! skip_assert_initialized {
|
|
|
|
() => {};
|
|
|
|
}
|
|
|
|
|
|
|
|
mod auto;
|
2023-01-03 18:58:25 +00:00
|
|
|
pub use crate::auto::{functions::*, *};
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2022-09-12 16:32:16 +00:00
|
|
|
#[cfg(feature = "serde")]
|
2022-05-05 10:40:07 +00:00
|
|
|
mod flag_serde;
|
|
|
|
|
2022-01-27 12:34:00 +00:00
|
|
|
pub mod subclass;
|
|
|
|
|
2019-08-14 02:43:24 +00:00
|
|
|
pub mod rtp_buffer;
|
2022-10-18 16:21:39 +00:00
|
|
|
pub use crate::rtp_buffer::{
|
|
|
|
calc_header_len, calc_packet_len, calc_payload_len, compare_seqnum, ext_timestamp, RTPBuffer,
|
|
|
|
};
|
2021-06-28 12:17:13 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
pub mod rtp_header_extension;
|
2019-08-14 02:43:24 +00:00
|
|
|
|
2022-04-07 00:09:44 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
pub mod rtp_base_payload;
|
|
|
|
|
2022-04-13 13:38:59 +00:00
|
|
|
pub mod rtp_base_depayload;
|
|
|
|
|
2019-08-13 17:12:09 +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_rtp::prelude::*" without getting conflicts
|
2019-08-13 17:12:09 +00:00
|
|
|
pub mod prelude {
|
2020-12-20 17:39:15 +00:00
|
|
|
#[doc(hidden)]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub use gst::prelude::*;
|
|
|
|
|
2021-06-28 12:17:13 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
2023-01-03 18:58:25 +00:00
|
|
|
pub use crate::rtp_base_payload::RTPBasePayloadExtManual;
|
2022-04-07 00:09:44 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
2023-01-03 18:58:25 +00:00
|
|
|
pub use crate::rtp_header_extension::RTPHeaderExtensionExtManual;
|
|
|
|
pub use crate::{
|
|
|
|
auto::traits::*, rtp_base_depayload::RTPBaseDepayloadExtManual, rtp_buffer::RTPBufferExt,
|
|
|
|
};
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|