2019-08-13 17:12:09 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2019-08-13 17:12:09 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
2020-11-22 10:32:36 +00:00
|
|
|
use crate::RTCPSDESType;
|
2019-08-13 17:12:09 +00:00
|
|
|
use glib::translate::*;
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
//#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2020-12-08 13:00:17 +00:00
|
|
|
//#[doc(alias = "gst_buffer_add_rtp_source_meta")]
|
2019-08-13 17:12:09 +00:00
|
|
|
//pub fn buffer_add_rtp_source_meta(buffer: &gst::Buffer, ssrc: u32, csrc: u32, csrc_count: u32) -> /*Ignored*/Option<RTPSourceMeta> {
|
2020-11-22 10:32:36 +00:00
|
|
|
// unsafe { TODO: call ffi:gst_buffer_add_rtp_source_meta() }
|
2019-08-13 17:12:09 +00:00
|
|
|
//}
|
|
|
|
|
2020-11-27 13:37:24 +00:00
|
|
|
//#[cfg(any(feature = "v1_16", feature = "dox"))]
|
|
|
|
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
2020-12-08 13:00:17 +00:00
|
|
|
//#[doc(alias = "gst_buffer_get_rtp_source_meta")]
|
2019-08-13 17:12:09 +00:00
|
|
|
//pub fn buffer_get_rtp_source_meta(buffer: &gst::Buffer) -> /*Ignored*/Option<RTPSourceMeta> {
|
2020-11-22 10:32:36 +00:00
|
|
|
// unsafe { TODO: call ffi:gst_buffer_get_rtp_source_meta() }
|
2019-08-13 17:12:09 +00:00
|
|
|
//}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtcp_ntp_to_unix")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub fn rtcp_ntp_to_unix(ntptime: u64) -> u64 {
|
|
|
|
assert_initialized_main_thread!();
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { ffi::gst_rtcp_ntp_to_unix(ntptime) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtcp_sdes_name_to_type")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub fn rtcp_sdes_name_to_type(name: &str) -> RTCPSDESType {
|
|
|
|
assert_initialized_main_thread!();
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtcp_sdes_name_to_type(name.to_glib_none().0)) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtcp_sdes_type_to_name")]
|
2020-11-22 10:32:36 +00:00
|
|
|
pub fn rtcp_sdes_type_to_name(type_: RTCPSDESType) -> Option<glib::GString> {
|
2019-08-13 17:12:09 +00:00
|
|
|
assert_initialized_main_thread!();
|
2021-04-27 15:10:39 +00:00
|
|
|
unsafe { from_glib_none(ffi::gst_rtcp_sdes_type_to_name(type_.into_glib())) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_rtcp_unix_to_ntp")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub fn rtcp_unix_to_ntp(unixtime: u64) -> u64 {
|
|
|
|
assert_initialized_main_thread!();
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { ffi::gst_rtcp_unix_to_ntp(unixtime) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
//#[doc(alias = "gst_rtp_hdrext_set_ntp_56")]
|
2019-08-13 17:12:09 +00:00
|
|
|
//pub fn rtp_hdrext_set_ntp_56(data: /*Unimplemented*/Option<Fundamental: Pointer>, size: u32, ntptime: u64) -> bool {
|
2020-11-22 10:32:36 +00:00
|
|
|
// unsafe { TODO: call ffi:gst_rtp_hdrext_set_ntp_56() }
|
2019-08-13 17:12:09 +00:00
|
|
|
//}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
//#[doc(alias = "gst_rtp_hdrext_set_ntp_64")]
|
2019-08-13 17:12:09 +00:00
|
|
|
//pub fn rtp_hdrext_set_ntp_64(data: /*Unimplemented*/Option<Fundamental: Pointer>, size: u32, ntptime: u64) -> bool {
|
2020-11-22 10:32:36 +00:00
|
|
|
// unsafe { TODO: call ffi:gst_rtp_hdrext_set_ntp_64() }
|
2019-08-13 17:12:09 +00:00
|
|
|
//}
|