gstreamer_rtp/auto/
functions.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{ffi, RTCPSDESType};
7use glib::translate::*;
8
9//#[cfg(feature = "v1_16")]
10//#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
11//#[doc(alias = "gst_buffer_add_rtp_source_meta")]
12//pub fn buffer_add_rtp_source_meta(buffer: &gst::Buffer, ssrc: u32, csrc: &[u32]) -> /*Ignored*/RTPSourceMeta {
13//    unsafe { TODO: call ffi:gst_buffer_add_rtp_source_meta() }
14//}
15
16//#[cfg(feature = "v1_16")]
17//#[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))]
18//#[doc(alias = "gst_buffer_get_rtp_source_meta")]
19//pub fn buffer_get_rtp_source_meta(buffer: &gst::Buffer) -> /*Ignored*/Option<RTPSourceMeta> {
20//    unsafe { TODO: call ffi:gst_buffer_get_rtp_source_meta() }
21//}
22
23#[doc(alias = "gst_rtcp_ntp_to_unix")]
24pub fn rtcp_ntp_to_unix(ntptime: u64) -> u64 {
25    assert_initialized_main_thread!();
26    unsafe { ffi::gst_rtcp_ntp_to_unix(ntptime) }
27}
28
29#[doc(alias = "gst_rtcp_sdes_name_to_type")]
30pub fn rtcp_sdes_name_to_type(name: &str) -> RTCPSDESType {
31    assert_initialized_main_thread!();
32    unsafe { from_glib(ffi::gst_rtcp_sdes_name_to_type(name.to_glib_none().0)) }
33}
34
35#[doc(alias = "gst_rtcp_sdes_type_to_name")]
36pub fn rtcp_sdes_type_to_name(type_: RTCPSDESType) -> glib::GString {
37    assert_initialized_main_thread!();
38    unsafe { from_glib_none(ffi::gst_rtcp_sdes_type_to_name(type_.into_glib())) }
39}
40
41#[doc(alias = "gst_rtcp_unix_to_ntp")]
42pub fn rtcp_unix_to_ntp(unixtime: u64) -> u64 {
43    assert_initialized_main_thread!();
44    unsafe { ffi::gst_rtcp_unix_to_ntp(unixtime) }
45}
46
47#[cfg(feature = "v1_20")]
48#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))]
49#[doc(alias = "gst_rtp_get_header_extension_list")]
50pub fn rtp_get_header_extension_list() -> Vec<gst::ElementFactory> {
51    assert_initialized_main_thread!();
52    unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_rtp_get_header_extension_list()) }
53}
54
55//#[doc(alias = "gst_rtp_hdrext_set_ntp_56")]
56//pub fn rtp_hdrext_set_ntp_56(data: /*Unimplemented*/Option<Basic: Pointer>, size: u32, ntptime: u64) -> bool {
57//    unsafe { TODO: call ffi:gst_rtp_hdrext_set_ntp_56() }
58//}
59
60//#[doc(alias = "gst_rtp_hdrext_set_ntp_64")]
61//pub fn rtp_hdrext_set_ntp_64(data: /*Unimplemented*/Option<Basic: Pointer>, size: u32, ntptime: u64) -> bool {
62//    unsafe { TODO: call ffi:gst_rtp_hdrext_set_ntp_64() }
63//}