use glib::translate::*;
use glib::GString;
use gst_rtp_sys;
use RTCPSDESType;
pub fn rtcp_ntp_to_unix(ntptime: u64) -> u64 {
assert_initialized_main_thread!();
unsafe { gst_rtp_sys::gst_rtcp_ntp_to_unix(ntptime) }
}
pub fn rtcp_sdes_name_to_type(name: &str) -> RTCPSDESType {
assert_initialized_main_thread!();
unsafe {
from_glib(gst_rtp_sys::gst_rtcp_sdes_name_to_type(
name.to_glib_none().0,
))
}
}
pub fn rtcp_sdes_type_to_name(type_: RTCPSDESType) -> Option<GString> {
assert_initialized_main_thread!();
unsafe { from_glib_none(gst_rtp_sys::gst_rtcp_sdes_type_to_name(type_.to_glib())) }
}
pub fn rtcp_unix_to_ntp(unixtime: u64) -> u64 {
assert_initialized_main_thread!();
unsafe { gst_rtp_sys::gst_rtcp_unix_to_ntp(unixtime) }
}