Regenerate with latest gir

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1182>
This commit is contained in:
Sebastian Dröge 2023-01-03 20:56:00 +02:00
parent dce54ee237
commit 45c145ad50
293 changed files with 2456 additions and 2232 deletions

View file

@ -4,8 +4,7 @@
// DO NOT EDIT // DO NOT EDIT
use crate::FdAllocator; use crate::FdAllocator;
use glib::object::Cast; use glib::{prelude::*, translate::*};
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstDmaBufAllocator")] #[doc(alias = "GstDmaBufAllocator")]

View file

@ -3,8 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{prelude::*, translate::*};
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstFdAllocator")] #[doc(alias = "GstFdAllocator")]

View file

@ -24,6 +24,7 @@ bitflags! {
impl IntoGlib for FdMemoryFlags { impl IntoGlib for FdMemoryFlags {
type GlibType = ffi::GstFdMemoryFlags; type GlibType = ffi::GstFdMemoryFlags;
#[inline]
fn into_glib(self) -> ffi::GstFdMemoryFlags { fn into_glib(self) -> ffi::GstFdMemoryFlags {
self.bits() self.bits()
} }
@ -31,6 +32,7 @@ impl IntoGlib for FdMemoryFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstFdMemoryFlags> for FdMemoryFlags { impl FromGlib<ffi::GstFdMemoryFlags> for FdMemoryFlags {
#[inline]
unsafe fn from_glib(value: ffi::GstFdMemoryFlags) -> Self { unsafe fn from_glib(value: ffi::GstFdMemoryFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)

View file

@ -3,7 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::IsA; use glib::prelude::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstPhysMemoryAllocator")] #[doc(alias = "GstPhysMemoryAllocator")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -3,14 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::ObjectType as ObjectType_; use glib::{
use glib::signal::connect_raw; prelude::*,
use glib::signal::SignalHandlerId; signal::{connect_raw, SignalHandlerId},
use glib::translate::*; translate::*,
use glib::StaticType; };
use glib::ToValue; use std::{boxed::Box as Box_, mem::transmute};
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAppSink")] #[doc(alias = "GstAppSink")]

View file

@ -7,14 +7,12 @@
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use crate::AppLeakyType; use crate::AppLeakyType;
use crate::AppStreamType; use crate::AppStreamType;
use glib::object::ObjectType as ObjectType_; use glib::{
use glib::signal::connect_raw; prelude::*,
use glib::signal::SignalHandlerId; signal::{connect_raw, SignalHandlerId},
use glib::translate::*; translate::*,
use glib::StaticType; };
use glib::ToValue; use std::{boxed::Box as Box_, mem::transmute};
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAppSrc")] #[doc(alias = "GstAppSrc")]

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::translate::*; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
use glib::value::FromValue;
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
@ -31,6 +27,7 @@ pub enum AppLeakyType {
impl IntoGlib for AppLeakyType { impl IntoGlib for AppLeakyType {
type GlibType = ffi::GstAppLeakyType; type GlibType = ffi::GstAppLeakyType;
#[inline]
fn into_glib(self) -> ffi::GstAppLeakyType { fn into_glib(self) -> ffi::GstAppLeakyType {
match self { match self {
Self::None => ffi::GST_APP_LEAKY_TYPE_NONE, Self::None => ffi::GST_APP_LEAKY_TYPE_NONE,
@ -45,6 +42,7 @@ impl IntoGlib for AppLeakyType {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType { impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType {
#[inline]
unsafe fn from_glib(value: ffi::GstAppLeakyType) -> Self { unsafe fn from_glib(value: ffi::GstAppLeakyType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -59,6 +57,7 @@ impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl StaticType for AppLeakyType { impl StaticType for AppLeakyType {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_app_leaky_type_get_type()) } unsafe { from_glib(ffi::gst_app_leaky_type_get_type()) }
} }
@ -75,6 +74,7 @@ impl glib::value::ValueType for AppLeakyType {
unsafe impl<'a> FromValue<'a> for AppLeakyType { unsafe impl<'a> FromValue<'a> for AppLeakyType {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -84,6 +84,7 @@ unsafe impl<'a> FromValue<'a> for AppLeakyType {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl ToValue for AppLeakyType { impl ToValue for AppLeakyType {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -92,6 +93,7 @@ impl ToValue for AppLeakyType {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -125,6 +127,7 @@ pub enum AppStreamType {
impl IntoGlib for AppStreamType { impl IntoGlib for AppStreamType {
type GlibType = ffi::GstAppStreamType; type GlibType = ffi::GstAppStreamType;
#[inline]
fn into_glib(self) -> ffi::GstAppStreamType { fn into_glib(self) -> ffi::GstAppStreamType {
match self { match self {
Self::Stream => ffi::GST_APP_STREAM_TYPE_STREAM, Self::Stream => ffi::GST_APP_STREAM_TYPE_STREAM,
@ -137,6 +140,7 @@ impl IntoGlib for AppStreamType {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAppStreamType> for AppStreamType { impl FromGlib<ffi::GstAppStreamType> for AppStreamType {
#[inline]
unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self { unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -149,6 +153,7 @@ impl FromGlib<ffi::GstAppStreamType> for AppStreamType {
} }
impl StaticType for AppStreamType { impl StaticType for AppStreamType {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_app_stream_type_get_type()) } unsafe { from_glib(ffi::gst_app_stream_type_get_type()) }
} }
@ -161,6 +166,7 @@ impl glib::value::ValueType for AppStreamType {
unsafe impl<'a> FromValue<'a> for AppStreamType { unsafe impl<'a> FromValue<'a> for AppStreamType {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -168,6 +174,7 @@ unsafe impl<'a> FromValue<'a> for AppStreamType {
} }
impl ToValue for AppStreamType { impl ToValue for AppStreamType {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -176,6 +183,7 @@ impl ToValue for AppStreamType {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAudioAggregator")] #[doc(alias = "GstAudioAggregator")]

View file

@ -4,13 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::AudioAggregatorPad; use crate::AudioAggregatorPad;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use std::boxed::Box as Box_; use std::{boxed::Box as Box_, mem::transmute};
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAudioAggregatorConvertPad")] #[doc(alias = "GstAudioAggregatorConvertPad")]

View file

@ -3,31 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::prelude::*;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::object::Cast; use glib::{
use glib::object::IsA; signal::{connect_raw, SignalHandlerId},
translate::*,
};
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::signal::connect_raw; use std::{boxed::Box as Box_, mem::transmute};
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::signal::SignalHandlerId;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::translate::*;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::StaticType;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::ToValue;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAudioAggregatorPad")] #[doc(alias = "GstAudioAggregatorPad")]

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAudioBaseSink")] #[doc(alias = "GstAudioBaseSink")]

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAudioBaseSrc")] #[doc(alias = "GstAudioBaseSrc")]

View file

@ -4,14 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::AudioInfo; use crate::AudioInfo;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use std::boxed::Box as Box_; use std::{boxed::Box as Box_, mem, mem::transmute};
use std::mem;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAudioDecoder")] #[doc(alias = "GstAudioDecoder")]

View file

@ -4,14 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::AudioInfo; use crate::AudioInfo;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use std::boxed::Box as Box_; use std::{boxed::Box as Box_, mem, mem::transmute};
use std::mem;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAudioEncoder")] #[doc(alias = "GstAudioEncoder")]
@ -109,7 +107,7 @@ pub trait AudioEncoderExt: 'static {
fn set_hard_resync(&self, enabled: bool); fn set_hard_resync(&self, enabled: bool);
#[doc(alias = "gst_audio_encoder_set_headers")] #[doc(alias = "gst_audio_encoder_set_headers")]
fn set_headers(&self, headers: &[&gst::Buffer]); fn set_headers(&self, headers: Vec<gst::Buffer>);
#[doc(alias = "gst_audio_encoder_set_latency")] #[doc(alias = "gst_audio_encoder_set_latency")]
fn set_latency(&self, min: gst::ClockTime, max: impl Into<Option<gst::ClockTime>>); fn set_latency(&self, min: gst::ClockTime, max: impl Into<Option<gst::ClockTime>>);
@ -324,11 +322,11 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
} }
} }
fn set_headers(&self, headers: &[&gst::Buffer]) { fn set_headers(&self, headers: Vec<gst::Buffer>) {
unsafe { unsafe {
ffi::gst_audio_encoder_set_headers( ffi::gst_audio_encoder_set_headers(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
headers.to_glib_full(), headers.into_glib_ptr(),
); );
} }
} }

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::translate::*; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
use glib::value::FromValue;
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
use std::fmt; use std::fmt;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
@ -164,6 +160,7 @@ impl FromGlib<ffi::GstAudioChannelPosition> for AudioChannelPosition {
} }
impl StaticType for AudioChannelPosition { impl StaticType for AudioChannelPosition {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_channel_position_get_type()) } unsafe { from_glib(ffi::gst_audio_channel_position_get_type()) }
} }
@ -176,6 +173,7 @@ impl glib::value::ValueType for AudioChannelPosition {
unsafe impl<'a> FromValue<'a> for AudioChannelPosition { unsafe impl<'a> FromValue<'a> for AudioChannelPosition {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -183,6 +181,7 @@ unsafe impl<'a> FromValue<'a> for AudioChannelPosition {
} }
impl ToValue for AudioChannelPosition { impl ToValue for AudioChannelPosition {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -191,6 +190,7 @@ impl ToValue for AudioChannelPosition {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -224,6 +224,7 @@ pub enum AudioDitherMethod {
impl IntoGlib for AudioDitherMethod { impl IntoGlib for AudioDitherMethod {
type GlibType = ffi::GstAudioDitherMethod; type GlibType = ffi::GstAudioDitherMethod;
#[inline]
fn into_glib(self) -> ffi::GstAudioDitherMethod { fn into_glib(self) -> ffi::GstAudioDitherMethod {
match self { match self {
Self::None => ffi::GST_AUDIO_DITHER_NONE, Self::None => ffi::GST_AUDIO_DITHER_NONE,
@ -237,6 +238,7 @@ impl IntoGlib for AudioDitherMethod {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioDitherMethod> for AudioDitherMethod { impl FromGlib<ffi::GstAudioDitherMethod> for AudioDitherMethod {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioDitherMethod) -> Self { unsafe fn from_glib(value: ffi::GstAudioDitherMethod) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -250,6 +252,7 @@ impl FromGlib<ffi::GstAudioDitherMethod> for AudioDitherMethod {
} }
impl StaticType for AudioDitherMethod { impl StaticType for AudioDitherMethod {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_dither_method_get_type()) } unsafe { from_glib(ffi::gst_audio_dither_method_get_type()) }
} }
@ -262,6 +265,7 @@ impl glib::value::ValueType for AudioDitherMethod {
unsafe impl<'a> FromValue<'a> for AudioDitherMethod { unsafe impl<'a> FromValue<'a> for AudioDitherMethod {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -269,6 +273,7 @@ unsafe impl<'a> FromValue<'a> for AudioDitherMethod {
} }
impl ToValue for AudioDitherMethod { impl ToValue for AudioDitherMethod {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -277,6 +282,7 @@ impl ToValue for AudioDitherMethod {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -463,6 +469,7 @@ impl FromGlib<ffi::GstAudioFormat> for AudioFormat {
} }
impl StaticType for AudioFormat { impl StaticType for AudioFormat {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_format_get_type()) } unsafe { from_glib(ffi::gst_audio_format_get_type()) }
} }
@ -475,6 +482,7 @@ impl glib::value::ValueType for AudioFormat {
unsafe impl<'a> FromValue<'a> for AudioFormat { unsafe impl<'a> FromValue<'a> for AudioFormat {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -482,6 +490,7 @@ unsafe impl<'a> FromValue<'a> for AudioFormat {
} }
impl ToValue for AudioFormat { impl ToValue for AudioFormat {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -490,6 +499,7 @@ impl ToValue for AudioFormat {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -519,6 +529,7 @@ pub enum AudioLayout {
impl IntoGlib for AudioLayout { impl IntoGlib for AudioLayout {
type GlibType = ffi::GstAudioLayout; type GlibType = ffi::GstAudioLayout;
#[inline]
fn into_glib(self) -> ffi::GstAudioLayout { fn into_glib(self) -> ffi::GstAudioLayout {
match self { match self {
Self::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED, Self::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED,
@ -530,6 +541,7 @@ impl IntoGlib for AudioLayout {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioLayout> for AudioLayout { impl FromGlib<ffi::GstAudioLayout> for AudioLayout {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self { unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -541,6 +553,7 @@ impl FromGlib<ffi::GstAudioLayout> for AudioLayout {
} }
impl StaticType for AudioLayout { impl StaticType for AudioLayout {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_layout_get_type()) } unsafe { from_glib(ffi::gst_audio_layout_get_type()) }
} }
@ -553,6 +566,7 @@ impl glib::value::ValueType for AudioLayout {
unsafe impl<'a> FromValue<'a> for AudioLayout { unsafe impl<'a> FromValue<'a> for AudioLayout {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -560,6 +574,7 @@ unsafe impl<'a> FromValue<'a> for AudioLayout {
} }
impl ToValue for AudioLayout { impl ToValue for AudioLayout {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -568,6 +583,7 @@ impl ToValue for AudioLayout {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -603,6 +619,7 @@ pub enum AudioNoiseShapingMethod {
impl IntoGlib for AudioNoiseShapingMethod { impl IntoGlib for AudioNoiseShapingMethod {
type GlibType = ffi::GstAudioNoiseShapingMethod; type GlibType = ffi::GstAudioNoiseShapingMethod;
#[inline]
fn into_glib(self) -> ffi::GstAudioNoiseShapingMethod { fn into_glib(self) -> ffi::GstAudioNoiseShapingMethod {
match self { match self {
Self::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE, Self::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE,
@ -617,6 +634,7 @@ impl IntoGlib for AudioNoiseShapingMethod {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioNoiseShapingMethod> for AudioNoiseShapingMethod { impl FromGlib<ffi::GstAudioNoiseShapingMethod> for AudioNoiseShapingMethod {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioNoiseShapingMethod) -> Self { unsafe fn from_glib(value: ffi::GstAudioNoiseShapingMethod) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -631,6 +649,7 @@ impl FromGlib<ffi::GstAudioNoiseShapingMethod> for AudioNoiseShapingMethod {
} }
impl StaticType for AudioNoiseShapingMethod { impl StaticType for AudioNoiseShapingMethod {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_noise_shaping_method_get_type()) } unsafe { from_glib(ffi::gst_audio_noise_shaping_method_get_type()) }
} }
@ -643,6 +662,7 @@ impl glib::value::ValueType for AudioNoiseShapingMethod {
unsafe impl<'a> FromValue<'a> for AudioNoiseShapingMethod { unsafe impl<'a> FromValue<'a> for AudioNoiseShapingMethod {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -650,6 +670,7 @@ unsafe impl<'a> FromValue<'a> for AudioNoiseShapingMethod {
} }
impl ToValue for AudioNoiseShapingMethod { impl ToValue for AudioNoiseShapingMethod {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -658,6 +679,7 @@ impl ToValue for AudioNoiseShapingMethod {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -693,6 +715,7 @@ pub enum AudioResamplerMethod {
impl IntoGlib for AudioResamplerMethod { impl IntoGlib for AudioResamplerMethod {
type GlibType = ffi::GstAudioResamplerMethod; type GlibType = ffi::GstAudioResamplerMethod;
#[inline]
fn into_glib(self) -> ffi::GstAudioResamplerMethod { fn into_glib(self) -> ffi::GstAudioResamplerMethod {
match self { match self {
Self::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST, Self::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST,
@ -707,6 +730,7 @@ impl IntoGlib for AudioResamplerMethod {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioResamplerMethod> for AudioResamplerMethod { impl FromGlib<ffi::GstAudioResamplerMethod> for AudioResamplerMethod {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioResamplerMethod) -> Self { unsafe fn from_glib(value: ffi::GstAudioResamplerMethod) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -721,6 +745,7 @@ impl FromGlib<ffi::GstAudioResamplerMethod> for AudioResamplerMethod {
} }
impl StaticType for AudioResamplerMethod { impl StaticType for AudioResamplerMethod {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_resampler_method_get_type()) } unsafe { from_glib(ffi::gst_audio_resampler_method_get_type()) }
} }
@ -733,6 +758,7 @@ impl glib::value::ValueType for AudioResamplerMethod {
unsafe impl<'a> FromValue<'a> for AudioResamplerMethod { unsafe impl<'a> FromValue<'a> for AudioResamplerMethod {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -740,6 +766,7 @@ unsafe impl<'a> FromValue<'a> for AudioResamplerMethod {
} }
impl ToValue for AudioResamplerMethod { impl ToValue for AudioResamplerMethod {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -748,6 +775,7 @@ impl ToValue for AudioResamplerMethod {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -851,6 +879,7 @@ impl FromGlib<ffi::GstAudioRingBufferFormatType> for AudioRingBufferFormatType {
} }
impl StaticType for AudioRingBufferFormatType { impl StaticType for AudioRingBufferFormatType {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_ring_buffer_format_type_get_type()) } unsafe { from_glib(ffi::gst_audio_ring_buffer_format_type_get_type()) }
} }
@ -863,6 +892,7 @@ impl glib::value::ValueType for AudioRingBufferFormatType {
unsafe impl<'a> FromValue<'a> for AudioRingBufferFormatType { unsafe impl<'a> FromValue<'a> for AudioRingBufferFormatType {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -870,6 +900,7 @@ unsafe impl<'a> FromValue<'a> for AudioRingBufferFormatType {
} }
impl ToValue for AudioRingBufferFormatType { impl ToValue for AudioRingBufferFormatType {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -878,6 +909,7 @@ impl ToValue for AudioRingBufferFormatType {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -909,6 +941,7 @@ pub enum StreamVolumeFormat {
impl IntoGlib for StreamVolumeFormat { impl IntoGlib for StreamVolumeFormat {
type GlibType = ffi::GstStreamVolumeFormat; type GlibType = ffi::GstStreamVolumeFormat;
#[inline]
fn into_glib(self) -> ffi::GstStreamVolumeFormat { fn into_glib(self) -> ffi::GstStreamVolumeFormat {
match self { match self {
Self::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR, Self::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR,
@ -921,6 +954,7 @@ impl IntoGlib for StreamVolumeFormat {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstStreamVolumeFormat> for StreamVolumeFormat { impl FromGlib<ffi::GstStreamVolumeFormat> for StreamVolumeFormat {
#[inline]
unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self { unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {

View file

@ -4,11 +4,7 @@
// DO NOT EDIT // DO NOT EDIT
use bitflags::bitflags; use bitflags::bitflags;
use glib::translate::*; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
use glib::value::FromValue;
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
bitflags! { bitflags! {
#[doc(alias = "GstAudioFlags")] #[doc(alias = "GstAudioFlags")]
@ -22,6 +18,7 @@ bitflags! {
impl IntoGlib for AudioFlags { impl IntoGlib for AudioFlags {
type GlibType = ffi::GstAudioFlags; type GlibType = ffi::GstAudioFlags;
#[inline]
fn into_glib(self) -> ffi::GstAudioFlags { fn into_glib(self) -> ffi::GstAudioFlags {
self.bits() self.bits()
} }
@ -29,6 +26,7 @@ impl IntoGlib for AudioFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioFlags> for AudioFlags { impl FromGlib<ffi::GstAudioFlags> for AudioFlags {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioFlags) -> Self { unsafe fn from_glib(value: ffi::GstAudioFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)
@ -36,6 +34,7 @@ impl FromGlib<ffi::GstAudioFlags> for AudioFlags {
} }
impl StaticType for AudioFlags { impl StaticType for AudioFlags {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_flags_get_type()) } unsafe { from_glib(ffi::gst_audio_flags_get_type()) }
} }
@ -48,6 +47,7 @@ impl glib::value::ValueType for AudioFlags {
unsafe impl<'a> FromValue<'a> for AudioFlags { unsafe impl<'a> FromValue<'a> for AudioFlags {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
@ -55,6 +55,7 @@ unsafe impl<'a> FromValue<'a> for AudioFlags {
} }
impl ToValue for AudioFlags { impl ToValue for AudioFlags {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -63,6 +64,7 @@ impl ToValue for AudioFlags {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -96,6 +98,7 @@ bitflags! {
impl IntoGlib for AudioFormatFlags { impl IntoGlib for AudioFormatFlags {
type GlibType = ffi::GstAudioFormatFlags; type GlibType = ffi::GstAudioFormatFlags;
#[inline]
fn into_glib(self) -> ffi::GstAudioFormatFlags { fn into_glib(self) -> ffi::GstAudioFormatFlags {
self.bits() self.bits()
} }
@ -103,6 +106,7 @@ impl IntoGlib for AudioFormatFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioFormatFlags> for AudioFormatFlags { impl FromGlib<ffi::GstAudioFormatFlags> for AudioFormatFlags {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioFormatFlags) -> Self { unsafe fn from_glib(value: ffi::GstAudioFormatFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)
@ -110,6 +114,7 @@ impl FromGlib<ffi::GstAudioFormatFlags> for AudioFormatFlags {
} }
impl StaticType for AudioFormatFlags { impl StaticType for AudioFormatFlags {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_format_flags_get_type()) } unsafe { from_glib(ffi::gst_audio_format_flags_get_type()) }
} }
@ -122,6 +127,7 @@ impl glib::value::ValueType for AudioFormatFlags {
unsafe impl<'a> FromValue<'a> for AudioFormatFlags { unsafe impl<'a> FromValue<'a> for AudioFormatFlags {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
@ -129,6 +135,7 @@ unsafe impl<'a> FromValue<'a> for AudioFormatFlags {
} }
impl ToValue for AudioFormatFlags { impl ToValue for AudioFormatFlags {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -137,6 +144,7 @@ impl ToValue for AudioFormatFlags {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -162,6 +170,7 @@ bitflags! {
impl IntoGlib for AudioPackFlags { impl IntoGlib for AudioPackFlags {
type GlibType = ffi::GstAudioPackFlags; type GlibType = ffi::GstAudioPackFlags;
#[inline]
fn into_glib(self) -> ffi::GstAudioPackFlags { fn into_glib(self) -> ffi::GstAudioPackFlags {
self.bits() self.bits()
} }
@ -169,6 +178,7 @@ impl IntoGlib for AudioPackFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioPackFlags> for AudioPackFlags { impl FromGlib<ffi::GstAudioPackFlags> for AudioPackFlags {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioPackFlags) -> Self { unsafe fn from_glib(value: ffi::GstAudioPackFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)
@ -176,6 +186,7 @@ impl FromGlib<ffi::GstAudioPackFlags> for AudioPackFlags {
} }
impl StaticType for AudioPackFlags { impl StaticType for AudioPackFlags {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_audio_pack_flags_get_type()) } unsafe { from_glib(ffi::gst_audio_pack_flags_get_type()) }
} }
@ -188,6 +199,7 @@ impl glib::value::ValueType for AudioPackFlags {
unsafe impl<'a> FromValue<'a> for AudioPackFlags { unsafe impl<'a> FromValue<'a> for AudioPackFlags {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
@ -195,6 +207,7 @@ unsafe impl<'a> FromValue<'a> for AudioPackFlags {
} }
impl ToValue for AudioPackFlags { impl ToValue for AudioPackFlags {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -203,6 +216,7 @@ impl ToValue for AudioPackFlags {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }

View file

@ -4,13 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::StreamVolumeFormat; use crate::StreamVolumeFormat;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use std::boxed::Box as Box_; use std::{boxed::Box as Box_, mem::transmute};
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstStreamVolume")] #[doc(alias = "GstStreamVolume")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -5,19 +5,13 @@
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::AggregatorPad; use crate::{AggregatorPad, AggregatorStartTimeSelection};
#[cfg(any(feature = "v1_18", feature = "dox"))] use glib::{
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] prelude::*,
use crate::AggregatorStartTimeSelection; signal::{connect_raw, SignalHandlerId},
use glib::object::Cast; translate::*,
use glib::object::IsA; };
use glib::signal::connect_raw; use std::{boxed::Box as Box_, mem::transmute};
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAggregator")] #[doc(alias = "GstAggregator")]

View file

@ -3,19 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
#[cfg(any(feature = "v1_16", feature = "dox"))] use std::{boxed::Box as Box_, mem::transmute};
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::StaticType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstAggregatorPad")] #[doc(alias = "GstAggregatorPad")]

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstBaseParse")] #[doc(alias = "GstBaseParse")]

View file

@ -3,16 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstBaseSink")] #[doc(alias = "GstBaseSink")]

View file

@ -4,15 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstBaseSrc")] #[doc(alias = "GstBaseSrc")]

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstBaseTransform")] #[doc(alias = "GstBaseTransform")]

View file

@ -5,19 +5,7 @@
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::translate::*; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::value::FromValue;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::value::ToValue;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::StaticType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::Type;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
@ -41,6 +29,7 @@ pub enum AggregatorStartTimeSelection {
impl IntoGlib for AggregatorStartTimeSelection { impl IntoGlib for AggregatorStartTimeSelection {
type GlibType = ffi::GstAggregatorStartTimeSelection; type GlibType = ffi::GstAggregatorStartTimeSelection;
#[inline]
fn into_glib(self) -> ffi::GstAggregatorStartTimeSelection { fn into_glib(self) -> ffi::GstAggregatorStartTimeSelection {
match self { match self {
Self::Zero => ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO, Self::Zero => ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO,
@ -55,6 +44,7 @@ impl IntoGlib for AggregatorStartTimeSelection {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection { impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection {
#[inline]
unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -69,6 +59,7 @@ impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelec
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl StaticType for AggregatorStartTimeSelection { impl StaticType for AggregatorStartTimeSelection {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) } unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) }
} }
@ -85,6 +76,7 @@ impl glib::value::ValueType for AggregatorStartTimeSelection {
unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection { unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -94,6 +86,7 @@ unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl ToValue for AggregatorStartTimeSelection { impl ToValue for AggregatorStartTimeSelection {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -102,6 +95,7 @@ impl ToValue for AggregatorStartTimeSelection {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }

View file

@ -26,6 +26,7 @@ bitflags! {
impl IntoGlib for BaseParseFrameFlags { impl IntoGlib for BaseParseFrameFlags {
type GlibType = ffi::GstBaseParseFrameFlags; type GlibType = ffi::GstBaseParseFrameFlags;
#[inline]
fn into_glib(self) -> ffi::GstBaseParseFrameFlags { fn into_glib(self) -> ffi::GstBaseParseFrameFlags {
self.bits() self.bits()
} }
@ -33,6 +34,7 @@ impl IntoGlib for BaseParseFrameFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstBaseParseFrameFlags> for BaseParseFrameFlags { impl FromGlib<ffi::GstBaseParseFrameFlags> for BaseParseFrameFlags {
#[inline]
unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> Self { unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)

View file

@ -3,8 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::IsA; use glib::{prelude::*, translate::*};
use glib::translate::*;
#[doc(alias = "gst_type_find_helper")] #[doc(alias = "gst_type_find_helper")]
pub fn type_find_helper(src: &impl IsA<gst::Pad>, size: u64) -> Result<gst::Caps, glib::BoolError> { pub fn type_find_helper(src: &impl IsA<gst::Pad>, size: u64) -> Result<gst::Caps, glib::BoolError> {

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::ObjectType as ObjectType_; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstTestClock")] #[doc(alias = "GstTestClock")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstARGBControlBinding")] #[doc(alias = "GstARGBControlBinding")]

View file

@ -3,15 +3,12 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstDirectControlBinding")] #[doc(alias = "GstDirectControlBinding")]

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::translate::*; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
use glib::value::FromValue;
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
@ -29,6 +25,7 @@ pub enum InterpolationMode {
impl IntoGlib for InterpolationMode { impl IntoGlib for InterpolationMode {
type GlibType = ffi::GstInterpolationMode; type GlibType = ffi::GstInterpolationMode;
#[inline]
fn into_glib(self) -> ffi::GstInterpolationMode { fn into_glib(self) -> ffi::GstInterpolationMode {
match self { match self {
Self::None => ffi::GST_INTERPOLATION_MODE_NONE, Self::None => ffi::GST_INTERPOLATION_MODE_NONE,
@ -42,6 +39,7 @@ impl IntoGlib for InterpolationMode {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstInterpolationMode> for InterpolationMode { impl FromGlib<ffi::GstInterpolationMode> for InterpolationMode {
#[inline]
unsafe fn from_glib(value: ffi::GstInterpolationMode) -> Self { unsafe fn from_glib(value: ffi::GstInterpolationMode) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -55,6 +53,7 @@ impl FromGlib<ffi::GstInterpolationMode> for InterpolationMode {
} }
impl StaticType for InterpolationMode { impl StaticType for InterpolationMode {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_interpolation_mode_get_type()) } unsafe { from_glib(ffi::gst_interpolation_mode_get_type()) }
} }
@ -67,6 +66,7 @@ impl glib::value::ValueType for InterpolationMode {
unsafe impl<'a> FromValue<'a> for InterpolationMode { unsafe impl<'a> FromValue<'a> for InterpolationMode {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -74,6 +74,7 @@ unsafe impl<'a> FromValue<'a> for InterpolationMode {
} }
impl ToValue for InterpolationMode { impl ToValue for InterpolationMode {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -82,6 +83,7 @@ impl ToValue for InterpolationMode {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -117,6 +119,7 @@ pub enum LFOWaveform {
impl IntoGlib for LFOWaveform { impl IntoGlib for LFOWaveform {
type GlibType = ffi::GstLFOWaveform; type GlibType = ffi::GstLFOWaveform;
#[inline]
fn into_glib(self) -> ffi::GstLFOWaveform { fn into_glib(self) -> ffi::GstLFOWaveform {
match self { match self {
Self::Sine => ffi::GST_LFO_WAVEFORM_SINE, Self::Sine => ffi::GST_LFO_WAVEFORM_SINE,
@ -131,6 +134,7 @@ impl IntoGlib for LFOWaveform {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstLFOWaveform> for LFOWaveform { impl FromGlib<ffi::GstLFOWaveform> for LFOWaveform {
#[inline]
unsafe fn from_glib(value: ffi::GstLFOWaveform) -> Self { unsafe fn from_glib(value: ffi::GstLFOWaveform) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -145,6 +149,7 @@ impl FromGlib<ffi::GstLFOWaveform> for LFOWaveform {
} }
impl StaticType for LFOWaveform { impl StaticType for LFOWaveform {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_lfo_waveform_get_type()) } unsafe { from_glib(ffi::gst_lfo_waveform_get_type()) }
} }
@ -157,6 +162,7 @@ impl glib::value::ValueType for LFOWaveform {
unsafe impl<'a> FromValue<'a> for LFOWaveform { unsafe impl<'a> FromValue<'a> for LFOWaveform {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -164,6 +170,7 @@ unsafe impl<'a> FromValue<'a> for LFOWaveform {
} }
impl ToValue for LFOWaveform { impl ToValue for LFOWaveform {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -172,6 +179,7 @@ impl ToValue for LFOWaveform {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }

View file

@ -3,17 +3,13 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::InterpolationMode; use crate::{InterpolationMode, TimedValueControlSource};
use crate::TimedValueControlSource; use glib::{
use glib::object::Cast; prelude::*,
use glib::object::IsA; signal::{connect_raw, SignalHandlerId},
use glib::signal::connect_raw; translate::*,
use glib::signal::SignalHandlerId; };
use glib::translate::*; use std::{boxed::Box as Box_, mem::transmute};
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstInterpolationControlSource")] #[doc(alias = "GstInterpolationControlSource")]

View file

@ -4,15 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::LFOWaveform; use crate::LFOWaveform;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstLFOControlSource")] #[doc(alias = "GstLFOControlSource")]

View file

@ -3,9 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::object::Cast; use glib::{prelude::*, translate::*};
use glib::object::IsA;
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstProxyControlBinding")] #[doc(alias = "GstProxyControlBinding")]

View file

@ -4,13 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::ControlPoint; use crate::ControlPoint;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use std::boxed::Box as Box_; use std::{boxed::Box as Box_, mem::transmute};
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstTimedValueControlSource")] #[doc(alias = "GstTimedValueControlSource")]

View file

@ -4,15 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::TimedValueControlSource; use crate::TimedValueControlSource;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use glib::StaticType; use std::{boxed::Box as Box_, mem::transmute};
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GstTriggerControlSource")] #[doc(alias = "GstTriggerControlSource")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -3,17 +3,13 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer};
use crate::MetaContainer; use glib::{
use glib::object::Cast; prelude::*,
use glib::object::IsA; signal::{connect_raw, SignalHandlerId},
use glib::signal::connect_raw; translate::*,
use glib::signal::SignalHandlerId; };
use glib::translate::*; use std::{boxed::Box as Box_, mem::transmute, pin::Pin, ptr};
use std::boxed::Box as Box_;
use std::mem::transmute;
use std::pin::Pin;
use std::ptr;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESAsset")] #[doc(alias = "GESAsset")]

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, Source, TimelineElement, TrackElement};
use crate::MetaContainer;
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESAudioSource")] #[doc(alias = "GESAudioSource")]

View file

@ -3,14 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::AudioSource; use crate::{AudioSource, Extractable, MetaContainer, Source, TimelineElement, TrackElement};
use crate::Extractable; use glib::{prelude::*, translate::*};
use crate::MetaContainer;
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESAudioTestSource")] #[doc(alias = "GESAudioTestSource")]

View file

@ -3,8 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::MetaContainer; use crate::{MetaContainer, Track};
use crate::Track;
use glib::translate::*; use glib::translate::*;
glib::wrapper! { glib::wrapper! {

View file

@ -4,12 +4,7 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Extractable; use crate::{Extractable, MetaContainer, Operation, TimelineElement, TrackElement, Transition};
use crate::MetaContainer;
use crate::Operation;
use crate::TimelineElement;
use crate::TrackElement;
use crate::Transition;
use glib::translate::*; use glib::translate::*;
glib::wrapper! { glib::wrapper! {

View file

@ -3,15 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::AudioSource; use crate::{AudioSource, Extractable, MetaContainer, Source, TimelineElement, TrackElement};
use crate::Extractable; use glib::{prelude::*, translate::*};
use crate::MetaContainer;
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
use glib::translate::*;
use glib::StaticType;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESAudioUriSource")] #[doc(alias = "GESAudioUriSource")]

View file

@ -3,12 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, Operation, TimelineElement, TrackElement};
use crate::MetaContainer; use glib::prelude::*;
use crate::Operation;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::translate::*; use glib::translate::*;

View file

@ -3,12 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{Clip, Container, Extractable, MetaContainer, OperationClip, TimelineElement};
use crate::Container;
use crate::Extractable;
use crate::MetaContainer;
use crate::OperationClip;
use crate::TimelineElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESBaseEffectClip")] #[doc(alias = "GESBaseEffectClip")]

View file

@ -3,12 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{Clip, Container, Extractable, MetaContainer, OperationClip, TimelineElement};
use crate::Container;
use crate::Extractable;
use crate::MetaContainer;
use crate::OperationClip;
use crate::TimelineElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESBaseTransitionClip")] #[doc(alias = "GESBaseTransitionClip")]

View file

@ -3,8 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, Formatter};
use crate::Formatter;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESBaseXmlFormatter")] #[doc(alias = "GESBaseXmlFormatter")]

View file

@ -3,29 +3,22 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset;
use crate::BaseEffect;
use crate::Container;
use crate::Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::FrameNumber; use crate::FrameNumber;
use crate::Layer; use crate::{
use crate::MetaContainer; Asset, BaseEffect, Container, Extractable, Layer, MetaContainer, TimelineElement, Track,
use crate::TimelineElement; TrackElement, TrackType,
use crate::Track; };
use crate::TrackElement; use glib::{
use crate::TrackType; prelude::*,
use glib::object::Cast; signal::{connect_raw, SignalHandlerId},
use glib::object::IsA; translate::*,
use glib::signal::connect_raw; };
use glib::signal::SignalHandlerId;
use glib::translate::*;
use std::boxed::Box as Box_;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr; use std::ptr;
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESClip")] #[doc(alias = "GESClip")]
@ -232,7 +225,7 @@ impl<O: IsA<Clip>> ClipExt for O {
index, index,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -409,7 +402,7 @@ impl<O: IsA<Clip>> ClipExt for O {
layer.as_ref().to_glib_none().0, layer.as_ref().to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -428,7 +421,7 @@ impl<O: IsA<Clip>> ClipExt for O {
effect.as_ref().to_glib_none().0, effect.as_ref().to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -478,7 +471,7 @@ impl<O: IsA<Clip>> ClipExt for O {
newindex, newindex,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {

View file

@ -3,22 +3,19 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::FrameNumber; use crate::FrameNumber;
use crate::MetaContainer; use crate::{Asset, MetaContainer, TrackType};
use crate::TrackType; use glib::{
use glib::object::Cast; prelude::*,
use glib::object::IsA; signal::{connect_raw, SignalHandlerId},
use glib::signal::connect_raw; translate::*,
use glib::signal::SignalHandlerId; };
use glib::translate::*;
use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::mem; use std::mem;
use std::mem::transmute; use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESClipAsset")] #[doc(alias = "GESClipAsset")]

View file

@ -3,11 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, Formatter, Timeline};
use crate::Formatter; use glib::{prelude::*, translate::*};
use crate::Timeline;
use glib::object::IsA;
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESCommandLineFormatter")] #[doc(alias = "GESCommandLineFormatter")]

View file

@ -4,20 +4,13 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Edge; use crate::{Edge, EditMode, Extractable, Layer, MetaContainer, TimelineElement};
use crate::EditMode; use glib::{
use crate::Extractable; prelude::*,
use crate::Layer; signal::{connect_raw, SignalHandlerId},
use crate::MetaContainer; translate::*,
use crate::TimelineElement; };
use glib::object::Cast; use std::{boxed::Box as Box_, mem::transmute};
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESContainer")] #[doc(alias = "GESContainer")]
@ -62,7 +55,7 @@ pub trait GESContainerExt: 'static {
fn remove(&self, child: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError>; fn remove(&self, child: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError>;
#[doc(alias = "ges_container_ungroup")] #[doc(alias = "ges_container_ungroup")]
fn ungroup(&self, recursive: bool) -> Vec<Container>; fn ungroup(self, recursive: bool) -> Vec<Container>;
fn height(&self) -> u32; fn height(&self) -> u32;
@ -140,10 +133,10 @@ impl<O: IsA<Container>> GESContainerExt for O {
} }
} }
fn ungroup(&self, recursive: bool) -> Vec<Container> { fn ungroup(self, recursive: bool) -> Vec<Container> {
unsafe { unsafe {
FromGlibPtrContainer::from_glib_full(ffi::ges_container_ungroup( FromGlibPtrContainer::from_glib_full(ffi::ges_container_ungroup(
self.as_ref().to_glib_full(), self.upcast().into_glib_ptr(),
recursive.into_glib(), recursive.into_glib(),
)) ))
} }

View file

@ -3,15 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::BaseEffect; use crate::{BaseEffect, Extractable, MetaContainer, Operation, TimelineElement, TrackElement};
use crate::Extractable; use glib::{prelude::*, translate::*};
use crate::MetaContainer;
use crate::Operation;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
use glib::translate::*;
use glib::StaticType;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESEffect")] #[doc(alias = "GESEffect")]

View file

@ -3,9 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset; use crate::{Asset, MetaContainer, TrackElementAsset};
use crate::MetaContainer;
use crate::TrackElementAsset;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESEffectAsset")] #[doc(alias = "GESEffectAsset")]

View file

@ -3,16 +3,10 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::BaseEffectClip; use crate::{
use crate::Clip; BaseEffectClip, Clip, Container, Extractable, MetaContainer, OperationClip, TimelineElement,
use crate::Container; };
use crate::Extractable; use glib::{prelude::*, translate::*};
use crate::MetaContainer;
use crate::OperationClip;
use crate::TimelineElement;
use glib::object::IsA;
use glib::translate::*;
use glib::StaticType;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESEffectClip")] #[doc(alias = "GESEffectClip")]

View file

@ -3,17 +3,10 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use glib::translate::*; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
use glib::value::FromValue;
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use std::ffi::CStr; use std::{ffi::CStr, fmt};
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use std::fmt;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
@ -33,6 +26,7 @@ pub enum AssetLoadingReturn {
impl IntoGlib for AssetLoadingReturn { impl IntoGlib for AssetLoadingReturn {
type GlibType = ffi::GESAssetLoadingReturn; type GlibType = ffi::GESAssetLoadingReturn;
#[inline]
fn into_glib(self) -> ffi::GESAssetLoadingReturn { fn into_glib(self) -> ffi::GESAssetLoadingReturn {
match self { match self {
Self::Error => ffi::GES_ASSET_LOADING_ERROR, Self::Error => ffi::GES_ASSET_LOADING_ERROR,
@ -45,6 +39,7 @@ impl IntoGlib for AssetLoadingReturn {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESAssetLoadingReturn> for AssetLoadingReturn { impl FromGlib<ffi::GESAssetLoadingReturn> for AssetLoadingReturn {
#[inline]
unsafe fn from_glib(value: ffi::GESAssetLoadingReturn) -> Self { unsafe fn from_glib(value: ffi::GESAssetLoadingReturn) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -78,6 +73,7 @@ pub enum ChildrenControlMode {
impl IntoGlib for ChildrenControlMode { impl IntoGlib for ChildrenControlMode {
type GlibType = ffi::GESChildrenControlMode; type GlibType = ffi::GESChildrenControlMode;
#[inline]
fn into_glib(self) -> ffi::GESChildrenControlMode { fn into_glib(self) -> ffi::GESChildrenControlMode {
match self { match self {
Self::Update => ffi::GES_CHILDREN_UPDATE, Self::Update => ffi::GES_CHILDREN_UPDATE,
@ -92,6 +88,7 @@ impl IntoGlib for ChildrenControlMode {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESChildrenControlMode> for ChildrenControlMode { impl FromGlib<ffi::GESChildrenControlMode> for ChildrenControlMode {
#[inline]
unsafe fn from_glib(value: ffi::GESChildrenControlMode) -> Self { unsafe fn from_glib(value: ffi::GESChildrenControlMode) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -148,6 +145,7 @@ impl fmt::Display for Edge {
impl IntoGlib for Edge { impl IntoGlib for Edge {
type GlibType = ffi::GESEdge; type GlibType = ffi::GESEdge;
#[inline]
fn into_glib(self) -> ffi::GESEdge { fn into_glib(self) -> ffi::GESEdge {
match self { match self {
Self::Start => ffi::GES_EDGE_START, Self::Start => ffi::GES_EDGE_START,
@ -160,6 +158,7 @@ impl IntoGlib for Edge {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESEdge> for Edge { impl FromGlib<ffi::GESEdge> for Edge {
#[inline]
unsafe fn from_glib(value: ffi::GESEdge) -> Self { unsafe fn from_glib(value: ffi::GESEdge) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -172,6 +171,7 @@ impl FromGlib<ffi::GESEdge> for Edge {
} }
impl StaticType for Edge { impl StaticType for Edge {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_edge_get_type()) } unsafe { from_glib(ffi::ges_edge_get_type()) }
} }
@ -184,6 +184,7 @@ impl glib::value::ValueType for Edge {
unsafe impl<'a> FromValue<'a> for Edge { unsafe impl<'a> FromValue<'a> for Edge {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -191,6 +192,7 @@ unsafe impl<'a> FromValue<'a> for Edge {
} }
impl ToValue for Edge { impl ToValue for Edge {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -199,6 +201,7 @@ impl ToValue for Edge {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -259,6 +262,7 @@ impl fmt::Display for EditMode {
impl IntoGlib for EditMode { impl IntoGlib for EditMode {
type GlibType = ffi::GESEditMode; type GlibType = ffi::GESEditMode;
#[inline]
fn into_glib(self) -> ffi::GESEditMode { fn into_glib(self) -> ffi::GESEditMode {
match self { match self {
Self::Normal => ffi::GES_EDIT_MODE_NORMAL, Self::Normal => ffi::GES_EDIT_MODE_NORMAL,
@ -273,6 +277,7 @@ impl IntoGlib for EditMode {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESEditMode> for EditMode { impl FromGlib<ffi::GESEditMode> for EditMode {
#[inline]
unsafe fn from_glib(value: ffi::GESEditMode) -> Self { unsafe fn from_glib(value: ffi::GESEditMode) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -287,6 +292,7 @@ impl FromGlib<ffi::GESEditMode> for EditMode {
} }
impl StaticType for EditMode { impl StaticType for EditMode {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_edit_mode_get_type()) } unsafe { from_glib(ffi::ges_edit_mode_get_type()) }
} }
@ -299,6 +305,7 @@ impl glib::value::ValueType for EditMode {
unsafe impl<'a> FromValue<'a> for EditMode { unsafe impl<'a> FromValue<'a> for EditMode {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -306,6 +313,7 @@ unsafe impl<'a> FromValue<'a> for EditMode {
} }
impl ToValue for EditMode { impl ToValue for EditMode {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -314,6 +322,7 @@ impl ToValue for EditMode {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -357,6 +366,7 @@ pub enum Error {
impl IntoGlib for Error { impl IntoGlib for Error {
type GlibType = ffi::GESError; type GlibType = ffi::GESError;
#[inline]
fn into_glib(self) -> ffi::GESError { fn into_glib(self) -> ffi::GESError {
match self { match self {
Self::AssetWrongId => ffi::GES_ERROR_ASSET_WRONG_ID, Self::AssetWrongId => ffi::GES_ERROR_ASSET_WRONG_ID,
@ -375,6 +385,7 @@ impl IntoGlib for Error {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESError> for Error { impl FromGlib<ffi::GESError> for Error {
#[inline]
unsafe fn from_glib(value: ffi::GESError) -> Self { unsafe fn from_glib(value: ffi::GESError) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -414,6 +425,7 @@ pub enum TextHAlign {
impl IntoGlib for TextHAlign { impl IntoGlib for TextHAlign {
type GlibType = ffi::GESTextHAlign; type GlibType = ffi::GESTextHAlign;
#[inline]
fn into_glib(self) -> ffi::GESTextHAlign { fn into_glib(self) -> ffi::GESTextHAlign {
match self { match self {
Self::Left => ffi::GES_TEXT_HALIGN_LEFT, Self::Left => ffi::GES_TEXT_HALIGN_LEFT,
@ -428,6 +440,7 @@ impl IntoGlib for TextHAlign {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESTextHAlign> for TextHAlign { impl FromGlib<ffi::GESTextHAlign> for TextHAlign {
#[inline]
unsafe fn from_glib(value: ffi::GESTextHAlign) -> Self { unsafe fn from_glib(value: ffi::GESTextHAlign) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -442,6 +455,7 @@ impl FromGlib<ffi::GESTextHAlign> for TextHAlign {
} }
impl StaticType for TextHAlign { impl StaticType for TextHAlign {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_text_halign_get_type()) } unsafe { from_glib(ffi::ges_text_halign_get_type()) }
} }
@ -454,6 +468,7 @@ impl glib::value::ValueType for TextHAlign {
unsafe impl<'a> FromValue<'a> for TextHAlign { unsafe impl<'a> FromValue<'a> for TextHAlign {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -461,6 +476,7 @@ unsafe impl<'a> FromValue<'a> for TextHAlign {
} }
impl ToValue for TextHAlign { impl ToValue for TextHAlign {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -469,6 +485,7 @@ impl ToValue for TextHAlign {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -506,6 +523,7 @@ pub enum TextVAlign {
impl IntoGlib for TextVAlign { impl IntoGlib for TextVAlign {
type GlibType = ffi::GESTextVAlign; type GlibType = ffi::GESTextVAlign;
#[inline]
fn into_glib(self) -> ffi::GESTextVAlign { fn into_glib(self) -> ffi::GESTextVAlign {
match self { match self {
Self::Baseline => ffi::GES_TEXT_VALIGN_BASELINE, Self::Baseline => ffi::GES_TEXT_VALIGN_BASELINE,
@ -521,6 +539,7 @@ impl IntoGlib for TextVAlign {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESTextVAlign> for TextVAlign { impl FromGlib<ffi::GESTextVAlign> for TextVAlign {
#[inline]
unsafe fn from_glib(value: ffi::GESTextVAlign) -> Self { unsafe fn from_glib(value: ffi::GESTextVAlign) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
@ -536,6 +555,7 @@ impl FromGlib<ffi::GESTextVAlign> for TextVAlign {
} }
impl StaticType for TextVAlign { impl StaticType for TextVAlign {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_text_valign_get_type()) } unsafe { from_glib(ffi::ges_text_valign_get_type()) }
} }
@ -548,6 +568,7 @@ impl glib::value::ValueType for TextVAlign {
unsafe impl<'a> FromValue<'a> for TextVAlign { unsafe impl<'a> FromValue<'a> for TextVAlign {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -555,6 +576,7 @@ unsafe impl<'a> FromValue<'a> for TextVAlign {
} }
impl ToValue for TextVAlign { impl ToValue for TextVAlign {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -563,6 +585,7 @@ impl ToValue for TextVAlign {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -902,6 +925,7 @@ impl FromGlib<ffi::GESVideoStandardTransitionType> for VideoStandardTransitionTy
} }
impl StaticType for VideoStandardTransitionType { impl StaticType for VideoStandardTransitionType {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_video_standard_transition_type_get_type()) } unsafe { from_glib(ffi::ges_video_standard_transition_type_get_type()) }
} }
@ -914,6 +938,7 @@ impl glib::value::ValueType for VideoStandardTransitionType {
unsafe impl<'a> FromValue<'a> for VideoStandardTransitionType { unsafe impl<'a> FromValue<'a> for VideoStandardTransitionType {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -921,6 +946,7 @@ unsafe impl<'a> FromValue<'a> for VideoStandardTransitionType {
} }
impl ToValue for VideoStandardTransitionType { impl ToValue for VideoStandardTransitionType {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -929,6 +955,7 @@ impl ToValue for VideoStandardTransitionType {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -1044,6 +1071,7 @@ impl FromGlib<ffi::GESVideoTestPattern> for VideoTestPattern {
} }
impl StaticType for VideoTestPattern { impl StaticType for VideoTestPattern {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_video_test_pattern_get_type()) } unsafe { from_glib(ffi::ges_video_test_pattern_get_type()) }
} }
@ -1056,6 +1084,7 @@ impl glib::value::ValueType for VideoTestPattern {
unsafe impl<'a> FromValue<'a> for VideoTestPattern { unsafe impl<'a> FromValue<'a> for VideoTestPattern {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
@ -1063,6 +1092,7 @@ unsafe impl<'a> FromValue<'a> for VideoTestPattern {
} }
impl ToValue for VideoTestPattern { impl ToValue for VideoTestPattern {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -1071,6 +1101,7 @@ impl ToValue for VideoTestPattern {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }

View file

@ -4,8 +4,7 @@
// DO NOT EDIT // DO NOT EDIT
use crate::Asset; use crate::Asset;
use glib::object::IsA; use glib::{prelude::*, translate::*};
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESExtractable")] #[doc(alias = "GESExtractable")]

View file

@ -4,13 +4,8 @@
// DO NOT EDIT // DO NOT EDIT
use bitflags::bitflags; use bitflags::bitflags;
use glib::translate::*; use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
use glib::value::FromValue; use std::{ffi::CStr, fmt};
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
use std::ffi::CStr;
use std::fmt;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
bitflags! { bitflags! {
@ -30,6 +25,7 @@ bitflags! {
impl IntoGlib for MarkerFlags { impl IntoGlib for MarkerFlags {
type GlibType = ffi::GESMarkerFlags; type GlibType = ffi::GESMarkerFlags;
#[inline]
fn into_glib(self) -> ffi::GESMarkerFlags { fn into_glib(self) -> ffi::GESMarkerFlags {
self.bits() self.bits()
} }
@ -39,6 +35,7 @@ impl IntoGlib for MarkerFlags {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESMarkerFlags> for MarkerFlags { impl FromGlib<ffi::GESMarkerFlags> for MarkerFlags {
#[inline]
unsafe fn from_glib(value: ffi::GESMarkerFlags) -> Self { unsafe fn from_glib(value: ffi::GESMarkerFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)
@ -48,6 +45,7 @@ impl FromGlib<ffi::GESMarkerFlags> for MarkerFlags {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl StaticType for MarkerFlags { impl StaticType for MarkerFlags {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_marker_flags_get_type()) } unsafe { from_glib(ffi::ges_marker_flags_get_type()) }
} }
@ -64,6 +62,7 @@ impl glib::value::ValueType for MarkerFlags {
unsafe impl<'a> FromValue<'a> for MarkerFlags { unsafe impl<'a> FromValue<'a> for MarkerFlags {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
@ -73,6 +72,7 @@ unsafe impl<'a> FromValue<'a> for MarkerFlags {
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl ToValue for MarkerFlags { impl ToValue for MarkerFlags {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -81,6 +81,7 @@ impl ToValue for MarkerFlags {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -112,6 +113,7 @@ bitflags! {
impl IntoGlib for MetaFlag { impl IntoGlib for MetaFlag {
type GlibType = ffi::GESMetaFlag; type GlibType = ffi::GESMetaFlag;
#[inline]
fn into_glib(self) -> ffi::GESMetaFlag { fn into_glib(self) -> ffi::GESMetaFlag {
self.bits() self.bits()
} }
@ -119,6 +121,7 @@ impl IntoGlib for MetaFlag {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESMetaFlag> for MetaFlag { impl FromGlib<ffi::GESMetaFlag> for MetaFlag {
#[inline]
unsafe fn from_glib(value: ffi::GESMetaFlag) -> Self { unsafe fn from_glib(value: ffi::GESMetaFlag) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)
@ -126,6 +129,7 @@ impl FromGlib<ffi::GESMetaFlag> for MetaFlag {
} }
impl StaticType for MetaFlag { impl StaticType for MetaFlag {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_meta_flag_get_type()) } unsafe { from_glib(ffi::ges_meta_flag_get_type()) }
} }
@ -138,6 +142,7 @@ impl glib::value::ValueType for MetaFlag {
unsafe impl<'a> FromValue<'a> for MetaFlag { unsafe impl<'a> FromValue<'a> for MetaFlag {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
@ -145,6 +150,7 @@ unsafe impl<'a> FromValue<'a> for MetaFlag {
} }
impl ToValue for MetaFlag { impl ToValue for MetaFlag {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -153,6 +159,7 @@ impl ToValue for MetaFlag {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -186,6 +193,7 @@ bitflags! {
impl IntoGlib for PipelineFlags { impl IntoGlib for PipelineFlags {
type GlibType = ffi::GESPipelineFlags; type GlibType = ffi::GESPipelineFlags;
#[inline]
fn into_glib(self) -> ffi::GESPipelineFlags { fn into_glib(self) -> ffi::GESPipelineFlags {
self.bits() self.bits()
} }
@ -193,6 +201,7 @@ impl IntoGlib for PipelineFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESPipelineFlags> for PipelineFlags { impl FromGlib<ffi::GESPipelineFlags> for PipelineFlags {
#[inline]
unsafe fn from_glib(value: ffi::GESPipelineFlags) -> Self { unsafe fn from_glib(value: ffi::GESPipelineFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)
@ -200,6 +209,7 @@ impl FromGlib<ffi::GESPipelineFlags> for PipelineFlags {
} }
impl StaticType for PipelineFlags { impl StaticType for PipelineFlags {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_pipeline_flags_get_type()) } unsafe { from_glib(ffi::ges_pipeline_flags_get_type()) }
} }
@ -212,6 +222,7 @@ impl glib::value::ValueType for PipelineFlags {
unsafe impl<'a> FromValue<'a> for PipelineFlags { unsafe impl<'a> FromValue<'a> for PipelineFlags {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
@ -219,6 +230,7 @@ unsafe impl<'a> FromValue<'a> for PipelineFlags {
} }
impl ToValue for PipelineFlags { impl ToValue for PipelineFlags {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -227,6 +239,7 @@ impl ToValue for PipelineFlags {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }
@ -281,6 +294,7 @@ impl fmt::Display for TrackType {
impl IntoGlib for TrackType { impl IntoGlib for TrackType {
type GlibType = ffi::GESTrackType; type GlibType = ffi::GESTrackType;
#[inline]
fn into_glib(self) -> ffi::GESTrackType { fn into_glib(self) -> ffi::GESTrackType {
self.bits() self.bits()
} }
@ -288,6 +302,7 @@ impl IntoGlib for TrackType {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESTrackType> for TrackType { impl FromGlib<ffi::GESTrackType> for TrackType {
#[inline]
unsafe fn from_glib(value: ffi::GESTrackType) -> Self { unsafe fn from_glib(value: ffi::GESTrackType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
Self::from_bits_truncate(value) Self::from_bits_truncate(value)
@ -295,6 +310,7 @@ impl FromGlib<ffi::GESTrackType> for TrackType {
} }
impl StaticType for TrackType { impl StaticType for TrackType {
#[inline]
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::ges_track_type_get_type()) } unsafe { from_glib(ffi::ges_track_type_get_type()) }
} }
@ -307,6 +323,7 @@ impl glib::value::ValueType for TrackType {
unsafe impl<'a> FromValue<'a> for TrackType { unsafe impl<'a> FromValue<'a> for TrackType {
type Checker = glib::value::GenericValueTypeChecker<Self>; type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self { unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
@ -314,6 +331,7 @@ unsafe impl<'a> FromValue<'a> for TrackType {
} }
impl ToValue for TrackType { impl ToValue for TrackType {
#[inline]
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
@ -322,6 +340,7 @@ impl ToValue for TrackType {
value value
} }
#[inline]
fn value_type(&self) -> glib::Type { fn value_type(&self) -> glib::Type {
Self::static_type() Self::static_type()
} }

View file

@ -4,11 +4,8 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Asset; use crate::{Asset, Extractable, Timeline};
use crate::Extractable; use glib::{prelude::*, translate::*};
use crate::Timeline;
use glib::object::IsA;
use glib::translate::*;
use std::ptr; use std::ptr;
glib::wrapper! { glib::wrapper! {
@ -29,7 +26,7 @@ impl Formatter {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
let is_ok = ffi::ges_formatter_can_load_uri(uri.to_glib_none().0, &mut error); let is_ok = ffi::ges_formatter_can_load_uri(uri.to_glib_none().0, &mut error);
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -44,7 +41,7 @@ impl Formatter {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
let is_ok = ffi::ges_formatter_can_save_uri(uri.to_glib_none().0, &mut error); let is_ok = ffi::ges_formatter_can_save_uri(uri.to_glib_none().0, &mut error);
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -90,7 +87,7 @@ impl<O: IsA<Formatter>> FormatterExt for O {
uri.to_glib_none().0, uri.to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -115,7 +112,7 @@ impl<O: IsA<Formatter>> FormatterExt for O {
overwrite.into_glib(), overwrite.into_glib(),
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {

View file

@ -3,10 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Container; use crate::{Container, Extractable, MetaContainer, TimelineElement};
use crate::Extractable;
use crate::MetaContainer;
use crate::TimelineElement;
use glib::translate::*; use glib::translate::*;
glib::wrapper! { glib::wrapper! {

View file

@ -3,15 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, Source, TimelineElement, TrackElement, VideoSource};
use crate::MetaContainer; use glib::{prelude::*, translate::*};
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
use crate::VideoSource;
use glib::object::IsA;
use glib::translate::*;
use glib::StaticType;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESImageSource")] #[doc(alias = "GESImageSource")]

View file

@ -4,25 +4,19 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Asset;
use crate::Clip;
use crate::Extractable;
use crate::MetaContainer;
use crate::Timeline;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::Track; use crate::Track;
use crate::TrackType; use crate::{Asset, Clip, Extractable, MetaContainer, Timeline, TrackType};
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use std::boxed::Box as Box_;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr; use std::ptr;
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESLayer")] #[doc(alias = "GESLayer")]
@ -228,7 +222,7 @@ impl<O: IsA<Layer>> LayerExt for O {
clip.as_ref().to_glib_none().0, clip.as_ref().to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {

View file

@ -4,13 +4,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::MetaContainer; use crate::MetaContainer;
use glib::object::ObjectType as ObjectType_; use glib::{
use glib::signal::connect_raw; prelude::*,
use glib::signal::SignalHandlerId; signal::{connect_raw, SignalHandlerId},
use glib::translate::*; translate::*,
use glib::StaticType; };
use std::boxed::Box as Box_; use std::{boxed::Box as Box_, mem::transmute};
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESMarker")] #[doc(alias = "GESMarker")]

View file

@ -7,18 +7,12 @@ use crate::Marker;
#[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use crate::MarkerFlags; use crate::MarkerFlags;
use glib::object::ObjectType as ObjectType_; use glib::{
use glib::signal::connect_raw; prelude::*,
use glib::signal::SignalHandlerId; signal::{connect_raw, SignalHandlerId},
use glib::translate::*; translate::*,
#[cfg(any(feature = "v1_20", feature = "dox"))] };
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] use std::{boxed::Box as Box_, mem::transmute};
use glib::StaticType;
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESMarkerList")] #[doc(alias = "GESMarkerList")]

View file

@ -7,15 +7,12 @@
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::MarkerList; use crate::MarkerList;
use crate::MetaFlag; use crate::MetaFlag;
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
use std::boxed::Box as Box_; use std::{boxed::Box as Box_, mem, mem::transmute, ptr};
use std::mem;
use std::mem::transmute;
use std::ptr;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESMetaContainer")] #[doc(alias = "GESMetaContainer")]

View file

@ -3,15 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, Source, TimelineElement, TrackElement, VideoSource};
use crate::MetaContainer; use glib::{prelude::*, translate::*};
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
use crate::VideoSource;
use glib::object::IsA;
use glib::translate::*;
use glib::StaticType;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESMultiFileSource")] #[doc(alias = "GESMultiFileSource")]

View file

@ -3,10 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, TimelineElement, TrackElement};
use crate::MetaContainer;
use crate::TimelineElement;
use crate::TrackElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESOperation")] #[doc(alias = "GESOperation")]

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{Clip, Container, Extractable, MetaContainer, TimelineElement};
use crate::Container;
use crate::Extractable;
use crate::MetaContainer;
use crate::TimelineElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESOperationClip")] #[doc(alias = "GESOperationClip")]

View file

@ -3,12 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{Clip, Container, Extractable, MetaContainer, OperationClip, TimelineElement};
use crate::Container;
use crate::Extractable;
use crate::MetaContainer;
use crate::OperationClip;
use crate::TimelineElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESOverlayClip")] #[doc(alias = "GESOverlayClip")]

View file

@ -3,18 +3,13 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::PipelineFlags; use crate::{PipelineFlags, Timeline};
use crate::Timeline; use glib::{
use glib::object::Cast; prelude::*,
use glib::object::IsA; signal::{connect_raw, SignalHandlerId},
use glib::signal::connect_raw; translate::*,
use glib::signal::SignalHandlerId; };
use glib::translate::*; use std::{boxed::Box as Box_, mem::transmute, ptr};
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESPipeline")] #[doc(alias = "GESPipeline")]
@ -208,7 +203,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
location.to_glib_none().0, location.to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -248,7 +243,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
glib::result_from_gboolean!( glib::result_from_gboolean!(
ffi::ges_pipeline_set_timeline( ffi::ges_pipeline_set_timeline(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
timeline.as_ref().to_glib_full() timeline.as_ref().to_glib_none().0
), ),
"Failed to set timeline" "Failed to set timeline"
) )

View file

@ -3,20 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::Formatter; use crate::Formatter;
use crate::MetaContainer; use crate::{Asset, MetaContainer, Timeline};
use crate::Timeline; use glib::{
use glib::object::Cast; prelude::*,
use glib::object::IsA; signal::{connect_raw, SignalHandlerId},
use glib::signal::connect_raw; translate::*,
use glib::signal::SignalHandlerId; };
use glib::translate::*; use std::{boxed::Box as Box_, mem::transmute, ptr};
use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESProject")] #[doc(alias = "GESProject")]
@ -91,7 +87,7 @@ pub trait ProjectExt: 'static {
&self, &self,
timeline: &impl IsA<Timeline>, timeline: &impl IsA<Timeline>,
uri: &str, uri: &str,
formatter_asset: Option<&impl IsA<Asset>>, formatter_asset: Option<impl IsA<Asset>>,
overwrite: bool, overwrite: bool,
) -> Result<(), glib::Error>; ) -> Result<(), glib::Error>;
@ -247,7 +243,7 @@ impl<O: IsA<Project>> ProjectExt for O {
timeline.as_ref().to_glib_none().0, timeline.as_ref().to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -272,7 +268,7 @@ impl<O: IsA<Project>> ProjectExt for O {
&self, &self,
timeline: &impl IsA<Timeline>, timeline: &impl IsA<Timeline>,
uri: &str, uri: &str,
formatter_asset: Option<&impl IsA<Asset>>, formatter_asset: Option<impl IsA<Asset>>,
overwrite: bool, overwrite: bool,
) -> Result<(), glib::Error> { ) -> Result<(), glib::Error> {
unsafe { unsafe {
@ -281,11 +277,11 @@ impl<O: IsA<Project>> ProjectExt for O {
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
timeline.as_ref().to_glib_none().0, timeline.as_ref().to_glib_none().0,
uri.to_glib_none().0, uri.to_glib_none().0,
formatter_asset.map(|p| p.as_ref()).to_glib_full(), formatter_asset.map(|p| p.upcast()).into_glib_ptr(),
overwrite.into_glib(), overwrite.into_glib(),
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {

View file

@ -3,10 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, TimelineElement, TrackElement};
use crate::MetaContainer;
use crate::TimelineElement;
use crate::TrackElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESSource")] #[doc(alias = "GESSource")]

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{Clip, Container, Extractable, MetaContainer, TimelineElement};
use crate::Container;
use crate::Extractable;
use crate::MetaContainer;
use crate::TimelineElement;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::translate::*; use glib::translate::*;

View file

@ -3,9 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset; use crate::{Asset, ClipAsset, MetaContainer};
use crate::ClipAsset;
use crate::MetaContainer;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESSourceClipAsset")] #[doc(alias = "GESSourceClipAsset")]

View file

@ -3,22 +3,15 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{
use crate::Container; Clip, Container, Extractable, MetaContainer, SourceClip, TimelineElement, VideoTestPattern,
use crate::Extractable; };
use crate::MetaContainer; use glib::{
use crate::SourceClip; prelude::*,
use crate::TimelineElement; signal::{connect_raw, SignalHandlerId},
use crate::VideoTestPattern; translate::*,
use glib::object::Cast; };
use glib::object::IsA; use std::{boxed::Box as Box_, mem::transmute};
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTestClip")] #[doc(alias = "GESTestClip")]

View file

@ -4,15 +4,10 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Extractable; use crate::{
use crate::MetaContainer; Extractable, MetaContainer, Operation, TextHAlign, TextVAlign, TimelineElement, TrackElement,
use crate::Operation; };
use crate::TextHAlign; use glib::{prelude::*, translate::*};
use crate::TextVAlign;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTextOverlay")] #[doc(alias = "GESTextOverlay")]

View file

@ -3,23 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{
use crate::Container; Clip, Container, Extractable, MetaContainer, OperationClip, OverlayClip, TextHAlign,
use crate::Extractable; TextVAlign, TimelineElement,
use crate::MetaContainer; };
use crate::OperationClip; use glib::{
use crate::OverlayClip; prelude::*,
use crate::TextHAlign; signal::{connect_raw, SignalHandlerId},
use crate::TextVAlign; translate::*,
use crate::TimelineElement; };
use glib::object::Cast; use std::{boxed::Box as Box_, mem::transmute};
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTextOverlayClip")] #[doc(alias = "GESTextOverlayClip")]

View file

@ -4,28 +4,18 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Asset; use crate::{
Asset, Extractable, Group, Layer, MetaContainer, TimelineElement, Track, TrackElement,
};
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::Clip; use crate::{Clip, FrameNumber};
use crate::Extractable; use glib::{
#[cfg(any(feature = "v1_18", feature = "dox"))] prelude::*,
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] signal::{connect_raw, SignalHandlerId},
use crate::FrameNumber; translate::*,
use crate::Group; };
use crate::Layer; use std::{boxed::Box as Box_, mem::transmute, ptr};
use crate::MetaContainer;
use crate::TimelineElement;
use crate::Track;
use crate::TrackElement;
use glib::object::Cast;
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTimeline")] #[doc(alias = "GESTimeline")]
@ -280,7 +270,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
glib::result_from_gboolean!( glib::result_from_gboolean!(
ffi::ges_timeline_add_track( ffi::ges_timeline_add_track(
self.as_ref().to_glib_none().0, self.as_ref().to_glib_none().0,
track.as_ref().to_glib_full() track.as_ref().to_glib_none().0
), ),
"Failed to add track" "Failed to add track"
) )
@ -452,7 +442,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
uri.to_glib_none().0, uri.to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -535,7 +525,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
overwrite.into_glib(), overwrite.into_glib(),
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {

View file

@ -6,28 +6,14 @@
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::Edge; use crate::{Edge, EditMode, Layer};
#[cfg(any(feature = "v1_18", feature = "dox"))] use crate::{Extractable, MetaContainer, Timeline, TrackType};
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] use glib::{
use crate::EditMode; prelude::*,
use crate::Extractable; signal::{connect_raw, SignalHandlerId},
#[cfg(any(feature = "v1_18", feature = "dox"))] translate::*,
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] };
use crate::Layer; use std::{boxed::Box as Box_, mem, mem::transmute, ptr};
use crate::MetaContainer;
use crate::Timeline;
use crate::TrackType;
use glib::object::Cast;
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
use std::ptr;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTimelineElement")] #[doc(alias = "GESTimelineElement")]
@ -358,7 +344,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
position, position,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -652,7 +638,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
value.to_glib_none().0, value.to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {

View file

@ -4,22 +4,16 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Clip; use crate::{
use crate::Container; Clip, Container, Extractable, MetaContainer, SourceClip, TextHAlign, TextVAlign,
use crate::Extractable; TimelineElement,
use crate::MetaContainer; };
use crate::SourceClip; use glib::{
use crate::TextHAlign; prelude::*,
use crate::TextVAlign; signal::{connect_raw, SignalHandlerId},
use crate::TimelineElement; translate::*,
use glib::object::Cast; };
use glib::object::IsA; use std::{boxed::Box as Box_, mem::transmute};
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTitleClip")] #[doc(alias = "GESTitleClip")]

View file

@ -4,16 +4,11 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Extractable; use crate::{
use crate::MetaContainer; Extractable, MetaContainer, Source, TextHAlign, TextVAlign, TimelineElement, TrackElement,
use crate::Source; VideoSource,
use crate::TextHAlign; };
use crate::TextVAlign; use glib::{prelude::*, translate::*};
use crate::TimelineElement;
use crate::TrackElement;
use crate::VideoSource;
use glib::object::IsA;
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTitleSource")] #[doc(alias = "GESTitleSource")]

View file

@ -3,24 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::MetaContainer; use crate::{MetaContainer, Timeline, TrackElement, TrackType};
use crate::Timeline; use glib::{
use crate::TrackElement; prelude::*,
use crate::TrackType; signal::{connect_raw, SignalHandlerId},
use glib::object::Cast; translate::*,
use glib::object::IsA; };
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr; use std::ptr;
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTrack")] #[doc(alias = "GESTrack")]
@ -35,9 +27,9 @@ impl Track {
pub const NONE: Option<&'static Track> = None; pub const NONE: Option<&'static Track> = None;
#[doc(alias = "ges_track_new")] #[doc(alias = "ges_track_new")]
pub fn new(type_: TrackType, caps: &gst::Caps) -> Track { pub fn new(type_: TrackType, caps: gst::Caps) -> Track {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::ges_track_new(type_.into_glib(), caps.to_glib_full())) } unsafe { from_glib_none(ffi::ges_track_new(type_.into_glib(), caps.into_glib_ptr())) }
} }
} }
@ -168,7 +160,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
object.as_ref().to_glib_none().0, object.as_ref().to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {
@ -236,7 +228,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
object.as_ref().to_glib_none().0, object.as_ref().to_glib_none().0,
&mut error, &mut error,
); );
assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null()); debug_assert_eq!(is_ok == glib::ffi::GFALSE, !error.is_null());
if error.is_null() { if error.is_null() {
Ok(()) Ok(())
} else { } else {

View file

@ -4,23 +4,13 @@
// DO NOT EDIT // DO NOT EDIT
#![allow(deprecated)] #![allow(deprecated)]
use crate::Edge; use crate::{Edge, EditMode, Extractable, Layer, MetaContainer, TimelineElement, Track, TrackType};
use crate::EditMode; use glib::{
use crate::Extractable; prelude::*,
use crate::Layer; signal::{connect_raw, SignalHandlerId},
use crate::MetaContainer; translate::*,
use crate::TimelineElement; };
use crate::Track; use std::{boxed::Box as Box_, mem, mem::transmute, ptr};
use crate::TrackType;
use glib::object::Cast;
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
use std::ptr;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTrackElement")] #[doc(alias = "GESTrackElement")]

View file

@ -3,19 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset; use crate::{Asset, MetaContainer, TrackType};
use crate::MetaContainer; use glib::{
use crate::TrackType; prelude::*,
use glib::object::Cast; signal::{connect_raw, SignalHandlerId},
use glib::object::IsA; translate::*,
use glib::signal::connect_raw; };
use glib::signal::SignalHandlerId;
use glib::translate::*;
use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::mem; use std::mem;
use std::mem::transmute; use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTrackElementAsset")] #[doc(alias = "GESTrackElementAsset")]

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, Operation, TimelineElement, TrackElement};
use crate::MetaContainer;
use crate::Operation;
use crate::TimelineElement;
use crate::TrackElement;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTransition")] #[doc(alias = "GESTransition")]

View file

@ -3,23 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::BaseTransitionClip; use crate::{
use crate::Clip; BaseTransitionClip, Clip, Container, Extractable, MetaContainer, OperationClip,
use crate::Container; TimelineElement, VideoStandardTransitionType,
use crate::Extractable; };
use crate::MetaContainer; use glib::{
use crate::OperationClip; prelude::*,
use crate::TimelineElement; signal::{connect_raw, SignalHandlerId},
use crate::VideoStandardTransitionType; translate::*,
use glib::object::Cast; };
use glib::object::IsA; use std::{boxed::Box as Box_, mem::transmute};
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESTransitionClip")] #[doc(alias = "GESTransitionClip")]

View file

@ -3,19 +3,13 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Clip; use crate::{Clip, Container, Extractable, MetaContainer, SourceClip, TimelineElement};
use crate::Container; use glib::{
use crate::Extractable; prelude::*,
use crate::MetaContainer; signal::{connect_raw, SignalHandlerId},
use crate::SourceClip; translate::*,
use crate::TimelineElement; };
use glib::object::Cast; use std::{boxed::Box as Box_, mem::transmute};
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESUriClip")] #[doc(alias = "GESUriClip")]

View file

@ -3,25 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset;
use crate::ClipAsset;
use crate::MetaContainer;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::SourceClipAsset; use crate::SourceClipAsset;
use crate::UriSourceAsset; use crate::{Asset, ClipAsset, MetaContainer, UriSourceAsset};
use glib::object::Cast; use glib::{
use glib::object::IsA; prelude::*,
use glib::signal::connect_raw; signal::{connect_raw, SignalHandlerId},
use glib::signal::SignalHandlerId; translate::*,
use glib::translate::*; };
#[cfg(any(feature = "v1_18", feature = "dox"))] use std::{boxed::Box as Box_, mem::transmute, ptr};
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]

View file

@ -3,12 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Asset; use crate::{Asset, MetaContainer, TrackElementAsset, UriClipAsset};
use crate::MetaContainer; use glib::{prelude::*, translate::*};
use crate::TrackElementAsset;
use crate::UriClipAsset;
use glib::object::IsA;
use glib::translate::*;
glib::wrapper! { glib::wrapper! {
#[doc(alias = "GESUriSourceAsset")] #[doc(alias = "GESUriSourceAsset")]

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 5c4c358d83c8) Generated by gir (https://github.com/gtk-rs/gir @ 5d24c2e70796)
from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068) from gir-files (https://github.com/gtk-rs/gir-files @ dc752de0b068)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0500fd0d183f) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 888576de2734)

View file

@ -3,12 +3,8 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT // DO NOT EDIT
use crate::Extractable; use crate::{Extractable, MetaContainer, Source, TimelineElement, TrackElement};
use crate::MetaContainer; use glib::prelude::*;
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::translate::*; use glib::translate::*;

Some files were not shown because too many files have changed in this diff Show more