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 bitflags::bitflags;
|
2019-08-13 17:12:09 +00:00
|
|
|
use glib::translate::*;
|
|
|
|
use glib::value::FromValue;
|
2021-04-19 16:24:43 +00:00
|
|
|
use glib::value::ToValue;
|
2019-08-13 17:12:09 +00:00
|
|
|
use glib::StaticType;
|
|
|
|
use glib::Type;
|
|
|
|
|
|
|
|
bitflags! {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GstRTPBufferFlags")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub struct RTPBufferFlags: u32 {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GST_RTP_BUFFER_FLAG_RETRANSMISSION")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const RETRANSMISSION = ffi::GST_RTP_BUFFER_FLAG_RETRANSMISSION as _;
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GST_RTP_BUFFER_FLAG_REDUNDANT")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const REDUNDANT = ffi::GST_RTP_BUFFER_FLAG_REDUNDANT as _;
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2021-04-27 15:10:39 +00:00
|
|
|
impl IntoGlib for RTPBufferFlags {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTPBufferFlags;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2021-04-27 15:10:39 +00:00
|
|
|
fn into_glib(self) -> ffi::GstRTPBufferFlags {
|
2019-08-13 17:12:09 +00:00
|
|
|
self.bits()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTPBufferFlags> for RTPBufferFlags {
|
2021-04-25 16:45:59 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
2021-04-25 16:45:59 +00:00
|
|
|
Self::from_bits_truncate(value)
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTPBufferFlags {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtp_buffer_flags_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 16:24:43 +00:00
|
|
|
impl glib::value::ValueType for RTPBufferFlags {
|
|
|
|
type Type = Self;
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-19 16:24:43 +00:00
|
|
|
unsafe impl<'a> FromValue<'a> for RTPBufferFlags {
|
|
|
|
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
|
|
|
|
|
|
|
unsafe fn from_value(value: &'a glib::Value) -> Self {
|
|
|
|
skip_assert_initialized!();
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 16:24:43 +00:00
|
|
|
impl ToValue for RTPBufferFlags {
|
|
|
|
fn to_value(&self) -> glib::Value {
|
2021-04-25 16:45:59 +00:00
|
|
|
let mut value = glib::Value::for_value_type::<Self>();
|
2021-04-19 16:24:43 +00:00
|
|
|
unsafe {
|
2021-04-27 15:10:39 +00:00
|
|
|
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
|
2021-04-19 16:24:43 +00:00
|
|
|
}
|
|
|
|
value
|
|
|
|
}
|
|
|
|
|
|
|
|
fn value_type(&self) -> glib::Type {
|
|
|
|
Self::static_type()
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-26 09:28:05 +00:00
|
|
|
impl From<RTPBufferFlags> for glib::Value {
|
|
|
|
#[inline]
|
|
|
|
fn from(v: RTPBufferFlags) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
ToValue::to_value(&v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-13 17:12:09 +00:00
|
|
|
bitflags! {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GstRTPBufferMapFlags")]
|
2019-08-13 17:12:09 +00:00
|
|
|
pub struct RTPBufferMapFlags: u32 {
|
2021-06-02 07:47:51 +00:00
|
|
|
#[doc(alias = "GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const SKIP_PADDING = ffi::GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING as _;
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2021-04-27 15:10:39 +00:00
|
|
|
impl IntoGlib for RTPBufferMapFlags {
|
2020-11-22 10:32:36 +00:00
|
|
|
type GlibType = ffi::GstRTPBufferMapFlags;
|
2019-08-13 17:12:09 +00:00
|
|
|
|
2021-04-27 15:10:39 +00:00
|
|
|
fn into_glib(self) -> ffi::GstRTPBufferMapFlags {
|
2019-08-13 17:12:09 +00:00
|
|
|
self.bits()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc(hidden)]
|
2020-11-22 10:32:36 +00:00
|
|
|
impl FromGlib<ffi::GstRTPBufferMapFlags> for RTPBufferMapFlags {
|
2021-04-25 16:45:59 +00:00
|
|
|
unsafe fn from_glib(value: ffi::GstRTPBufferMapFlags) -> Self {
|
2019-08-13 17:12:09 +00:00
|
|
|
skip_assert_initialized!();
|
2021-04-25 16:45:59 +00:00
|
|
|
Self::from_bits_truncate(value)
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StaticType for RTPBufferMapFlags {
|
|
|
|
fn static_type() -> Type {
|
2020-11-22 10:32:36 +00:00
|
|
|
unsafe { from_glib(ffi::gst_rtp_buffer_map_flags_get_type()) }
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 16:24:43 +00:00
|
|
|
impl glib::value::ValueType for RTPBufferMapFlags {
|
|
|
|
type Type = Self;
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
|
2021-04-19 16:24:43 +00:00
|
|
|
unsafe impl<'a> FromValue<'a> for RTPBufferMapFlags {
|
|
|
|
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
|
|
|
|
|
|
|
unsafe fn from_value(value: &'a glib::Value) -> Self {
|
|
|
|
skip_assert_initialized!();
|
2020-11-22 10:32:36 +00:00
|
|
|
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 16:24:43 +00:00
|
|
|
impl ToValue for RTPBufferMapFlags {
|
|
|
|
fn to_value(&self) -> glib::Value {
|
2021-04-25 16:45:59 +00:00
|
|
|
let mut value = glib::Value::for_value_type::<Self>();
|
2021-04-19 16:24:43 +00:00
|
|
|
unsafe {
|
2021-04-27 15:10:39 +00:00
|
|
|
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
|
2021-04-19 16:24:43 +00:00
|
|
|
}
|
|
|
|
value
|
|
|
|
}
|
|
|
|
|
|
|
|
fn value_type(&self) -> glib::Type {
|
|
|
|
Self::static_type()
|
2019-08-13 17:12:09 +00:00
|
|
|
}
|
|
|
|
}
|
2021-04-17 10:11:52 +00:00
|
|
|
|
2022-11-26 09:28:05 +00:00
|
|
|
impl From<RTPBufferMapFlags> for glib::Value {
|
|
|
|
#[inline]
|
|
|
|
fn from(v: RTPBufferMapFlags) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
ToValue::to_value(&v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-08 16:44:38 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
bitflags! {
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
#[doc(alias = "GstRTPHeaderExtensionDirection")]
|
|
|
|
pub struct RTPHeaderExtensionDirection: u32 {
|
|
|
|
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const INACTIVE = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE as _;
|
2021-10-08 16:44:38 +00:00
|
|
|
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_SENDONLY")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const SENDONLY = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_SENDONLY as _;
|
2021-10-08 16:44:38 +00:00
|
|
|
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const RECVONLY = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY as _;
|
2021-10-08 16:44:38 +00:00
|
|
|
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const SENDRECV = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV as _;
|
2021-10-08 16:44:38 +00:00
|
|
|
#[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const INHERITED = ffi::GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED as _;
|
2021-10-08 16:44:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl IntoGlib for RTPHeaderExtensionDirection {
|
|
|
|
type GlibType = ffi::GstRTPHeaderExtensionDirection;
|
|
|
|
|
|
|
|
fn into_glib(self) -> ffi::GstRTPHeaderExtensionDirection {
|
|
|
|
self.bits()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstRTPHeaderExtensionDirection> for RTPHeaderExtensionDirection {
|
|
|
|
unsafe fn from_glib(value: ffi::GstRTPHeaderExtensionDirection) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
Self::from_bits_truncate(value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl StaticType for RTPHeaderExtensionDirection {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_rtp_header_extension_direction_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl glib::value::ValueType for RTPHeaderExtensionDirection {
|
|
|
|
type Type = Self;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionDirection {
|
|
|
|
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
|
|
|
|
|
|
|
unsafe fn from_value(value: &'a glib::Value) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl ToValue for RTPHeaderExtensionDirection {
|
|
|
|
fn to_value(&self) -> glib::Value {
|
|
|
|
let mut value = glib::Value::for_value_type::<Self>();
|
|
|
|
unsafe {
|
|
|
|
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
|
|
|
|
}
|
|
|
|
value
|
|
|
|
}
|
|
|
|
|
|
|
|
fn value_type(&self) -> glib::Type {
|
|
|
|
Self::static_type()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-26 09:28:05 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl From<RTPHeaderExtensionDirection> for glib::Value {
|
|
|
|
#[inline]
|
|
|
|
fn from(v: RTPHeaderExtensionDirection) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
ToValue::to_value(&v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-17 10:11:52 +00:00
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
bitflags! {
|
2021-08-30 07:52:36 +00:00
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
2021-04-17 10:11:52 +00:00
|
|
|
#[doc(alias = "GstRTPHeaderExtensionFlags")]
|
|
|
|
pub struct RTPHeaderExtensionFlags: u32 {
|
|
|
|
#[doc(alias = "GST_RTP_HEADER_EXTENSION_ONE_BYTE")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const ONE_BYTE = ffi::GST_RTP_HEADER_EXTENSION_ONE_BYTE as _;
|
2021-04-17 10:11:52 +00:00
|
|
|
#[doc(alias = "GST_RTP_HEADER_EXTENSION_TWO_BYTE")]
|
2022-11-12 15:40:16 +00:00
|
|
|
const TWO_BYTE = ffi::GST_RTP_HEADER_EXTENSION_TWO_BYTE as _;
|
2021-04-17 10:11:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl IntoGlib for RTPHeaderExtensionFlags {
|
|
|
|
type GlibType = ffi::GstRTPHeaderExtensionFlags;
|
|
|
|
|
|
|
|
fn into_glib(self) -> ffi::GstRTPHeaderExtensionFlags {
|
|
|
|
self.bits()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
#[doc(hidden)]
|
|
|
|
impl FromGlib<ffi::GstRTPHeaderExtensionFlags> for RTPHeaderExtensionFlags {
|
|
|
|
unsafe fn from_glib(value: ffi::GstRTPHeaderExtensionFlags) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
Self::from_bits_truncate(value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl StaticType for RTPHeaderExtensionFlags {
|
|
|
|
fn static_type() -> Type {
|
|
|
|
unsafe { from_glib(ffi::gst_rtp_header_extension_flags_get_type()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl glib::value::ValueType for RTPHeaderExtensionFlags {
|
|
|
|
type Type = Self;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionFlags {
|
|
|
|
type Checker = glib::value::GenericValueTypeChecker<Self>;
|
|
|
|
|
|
|
|
unsafe fn from_value(value: &'a glib::Value) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl ToValue for RTPHeaderExtensionFlags {
|
|
|
|
fn to_value(&self) -> glib::Value {
|
|
|
|
let mut value = glib::Value::for_value_type::<Self>();
|
|
|
|
unsafe {
|
|
|
|
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
|
|
|
|
}
|
|
|
|
value
|
|
|
|
}
|
|
|
|
|
|
|
|
fn value_type(&self) -> glib::Type {
|
|
|
|
Self::static_type()
|
|
|
|
}
|
|
|
|
}
|
2022-11-26 09:28:05 +00:00
|
|
|
|
|
|
|
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
|
|
impl From<RTPHeaderExtensionFlags> for glib::Value {
|
|
|
|
#[inline]
|
|
|
|
fn from(v: RTPHeaderExtensionFlags) -> Self {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
ToValue::to_value(&v)
|
|
|
|
}
|
|
|
|
}
|