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
use crate::FdAllocator;
use glib::object::Cast;
use glib::translate::*;
use glib::{prelude::*, translate::*};
glib::wrapper! {
#[doc(alias = "GstDmaBufAllocator")]

View file

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

View file

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

View file

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

View file

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

View file

@ -3,11 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
use glib::translate::*;
use glib::value::FromValue;
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
@ -31,6 +27,7 @@ pub enum AppLeakyType {
impl IntoGlib for AppLeakyType {
type GlibType = ffi::GstAppLeakyType;
#[inline]
fn into_glib(self) -> ffi::GstAppLeakyType {
match self {
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")))]
#[doc(hidden)]
impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType {
#[inline]
unsafe fn from_glib(value: ffi::GstAppLeakyType) -> Self {
skip_assert_initialized!();
match value {
@ -59,6 +57,7 @@ impl FromGlib<ffi::GstAppLeakyType> for AppLeakyType {
#[cfg(any(feature = "v1_20", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl StaticType for AppLeakyType {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
impl ToValue for AppLeakyType {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -92,6 +93,7 @@ impl ToValue for AppLeakyType {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -125,6 +127,7 @@ pub enum AppStreamType {
impl IntoGlib for AppStreamType {
type GlibType = ffi::GstAppStreamType;
#[inline]
fn into_glib(self) -> ffi::GstAppStreamType {
match self {
Self::Stream => ffi::GST_APP_STREAM_TYPE_STREAM,
@ -137,6 +140,7 @@ impl IntoGlib for AppStreamType {
#[doc(hidden)]
impl FromGlib<ffi::GstAppStreamType> for AppStreamType {
#[inline]
unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self {
skip_assert_initialized!();
match value {
@ -149,6 +153,7 @@ impl FromGlib<ffi::GstAppStreamType> for AppStreamType {
}
impl StaticType for AppStreamType {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -176,6 +183,7 @@ impl ToValue for AppStreamType {
value
}
#[inline]
fn value_type(&self) -> glib::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 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 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)
// DO NOT EDIT
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::transmute;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[doc(alias = "GstAudioAggregator")]

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -4,14 +4,12 @@
// DO NOT EDIT
use crate::AudioInfo;
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 glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem, mem::transmute};
glib::wrapper! {
#[doc(alias = "GstAudioEncoder")]
@ -109,7 +107,7 @@ pub trait AudioEncoderExt: 'static {
fn set_hard_resync(&self, enabled: bool);
#[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")]
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 {
ffi::gst_audio_encoder_set_headers(
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)
// DO NOT EDIT
use glib::translate::*;
use glib::value::FromValue;
use glib::value::ToValue;
use glib::StaticType;
use glib::Type;
use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type};
use std::fmt;
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
@ -164,6 +160,7 @@ impl FromGlib<ffi::GstAudioChannelPosition> for AudioChannelPosition {
}
impl StaticType for AudioChannelPosition {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -191,6 +190,7 @@ impl ToValue for AudioChannelPosition {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -224,6 +224,7 @@ pub enum AudioDitherMethod {
impl IntoGlib for AudioDitherMethod {
type GlibType = ffi::GstAudioDitherMethod;
#[inline]
fn into_glib(self) -> ffi::GstAudioDitherMethod {
match self {
Self::None => ffi::GST_AUDIO_DITHER_NONE,
@ -237,6 +238,7 @@ impl IntoGlib for AudioDitherMethod {
#[doc(hidden)]
impl FromGlib<ffi::GstAudioDitherMethod> for AudioDitherMethod {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioDitherMethod) -> Self {
skip_assert_initialized!();
match value {
@ -250,6 +252,7 @@ impl FromGlib<ffi::GstAudioDitherMethod> for AudioDitherMethod {
}
impl StaticType for AudioDitherMethod {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -277,6 +282,7 @@ impl ToValue for AudioDitherMethod {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -463,6 +469,7 @@ impl FromGlib<ffi::GstAudioFormat> for AudioFormat {
}
impl StaticType for AudioFormat {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -490,6 +499,7 @@ impl ToValue for AudioFormat {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -519,6 +529,7 @@ pub enum AudioLayout {
impl IntoGlib for AudioLayout {
type GlibType = ffi::GstAudioLayout;
#[inline]
fn into_glib(self) -> ffi::GstAudioLayout {
match self {
Self::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED,
@ -530,6 +541,7 @@ impl IntoGlib for AudioLayout {
#[doc(hidden)]
impl FromGlib<ffi::GstAudioLayout> for AudioLayout {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self {
skip_assert_initialized!();
match value {
@ -541,6 +553,7 @@ impl FromGlib<ffi::GstAudioLayout> for AudioLayout {
}
impl StaticType for AudioLayout {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -568,6 +583,7 @@ impl ToValue for AudioLayout {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -603,6 +619,7 @@ pub enum AudioNoiseShapingMethod {
impl IntoGlib for AudioNoiseShapingMethod {
type GlibType = ffi::GstAudioNoiseShapingMethod;
#[inline]
fn into_glib(self) -> ffi::GstAudioNoiseShapingMethod {
match self {
Self::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE,
@ -617,6 +634,7 @@ impl IntoGlib for AudioNoiseShapingMethod {
#[doc(hidden)]
impl FromGlib<ffi::GstAudioNoiseShapingMethod> for AudioNoiseShapingMethod {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioNoiseShapingMethod) -> Self {
skip_assert_initialized!();
match value {
@ -631,6 +649,7 @@ impl FromGlib<ffi::GstAudioNoiseShapingMethod> for AudioNoiseShapingMethod {
}
impl StaticType for AudioNoiseShapingMethod {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -658,6 +679,7 @@ impl ToValue for AudioNoiseShapingMethod {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -693,6 +715,7 @@ pub enum AudioResamplerMethod {
impl IntoGlib for AudioResamplerMethod {
type GlibType = ffi::GstAudioResamplerMethod;
#[inline]
fn into_glib(self) -> ffi::GstAudioResamplerMethod {
match self {
Self::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST,
@ -707,6 +730,7 @@ impl IntoGlib for AudioResamplerMethod {
#[doc(hidden)]
impl FromGlib<ffi::GstAudioResamplerMethod> for AudioResamplerMethod {
#[inline]
unsafe fn from_glib(value: ffi::GstAudioResamplerMethod) -> Self {
skip_assert_initialized!();
match value {
@ -721,6 +745,7 @@ impl FromGlib<ffi::GstAudioResamplerMethod> for AudioResamplerMethod {
}
impl StaticType for AudioResamplerMethod {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -748,6 +775,7 @@ impl ToValue for AudioResamplerMethod {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -851,6 +879,7 @@ impl FromGlib<ffi::GstAudioRingBufferFormatType> for AudioRingBufferFormatType {
}
impl StaticType for AudioRingBufferFormatType {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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 {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -878,6 +909,7 @@ impl ToValue for AudioRingBufferFormatType {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}
@ -909,6 +941,7 @@ pub enum StreamVolumeFormat {
impl IntoGlib for StreamVolumeFormat {
type GlibType = ffi::GstStreamVolumeFormat;
#[inline]
fn into_glib(self) -> ffi::GstStreamVolumeFormat {
match self {
Self::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR,
@ -921,6 +954,7 @@ impl IntoGlib for StreamVolumeFormat {
#[doc(hidden)]
impl FromGlib<ffi::GstStreamVolumeFormat> for StreamVolumeFormat {
#[inline]
unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self {
skip_assert_initialized!();
match value {

View file

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

View file

@ -4,13 +4,12 @@
// DO NOT EDIT
use crate::StreamVolumeFormat;
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 glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[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 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 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_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::AggregatorPad;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::AggregatorStartTimeSelection;
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::transmute;
use crate::{AggregatorPad, AggregatorStartTimeSelection};
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[doc(alias = "GstAggregator")]

View file

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

View file

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

View file

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

View file

@ -4,15 +4,12 @@
// DO NOT EDIT
#![allow(deprecated)]
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::transmute;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[doc(alias = "GstBaseSrc")]

View file

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

View file

@ -5,19 +5,7 @@
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::translate::*;
#[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;
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")))]
@ -41,6 +29,7 @@ pub enum AggregatorStartTimeSelection {
impl IntoGlib for AggregatorStartTimeSelection {
type GlibType = ffi::GstAggregatorStartTimeSelection;
#[inline]
fn into_glib(self) -> ffi::GstAggregatorStartTimeSelection {
match self {
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")))]
#[doc(hidden)]
impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection {
#[inline]
unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self {
skip_assert_initialized!();
match value {
@ -69,6 +59,7 @@ impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelec
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl StaticType for AggregatorStartTimeSelection {
#[inline]
fn static_type() -> 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 {
type Checker = glib::value::GenericValueTypeChecker<Self>;
#[inline]
unsafe fn from_value(value: &'a glib::Value) -> Self {
skip_assert_initialized!();
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_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl ToValue for AggregatorStartTimeSelection {
#[inline]
fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
@ -102,6 +95,7 @@ impl ToValue for AggregatorStartTimeSelection {
value
}
#[inline]
fn value_type(&self) -> glib::Type {
Self::static_type()
}

View file

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

View file

@ -3,8 +3,7 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
use glib::object::IsA;
use glib::translate::*;
use glib::{prelude::*, translate::*};
#[doc(alias = "gst_type_find_helper")]
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 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 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)
// DO NOT EDIT
use glib::object::Cast;
use glib::object::ObjectType as ObjectType_;
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;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[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 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 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)
// DO NOT EDIT
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::transmute;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[doc(alias = "GstARGBControlBinding")]

View file

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

View file

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

View file

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

View file

@ -4,15 +4,12 @@
// DO NOT EDIT
use crate::LFOWaveform;
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::transmute;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[doc(alias = "GstLFOControlSource")]

View file

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

View file

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

View file

@ -4,15 +4,12 @@
// DO NOT EDIT
use crate::TimedValueControlSource;
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::transmute;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[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 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 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)
// DO NOT EDIT
use crate::Extractable;
use crate::MetaContainer;
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::pin::Pin;
use std::ptr;
use crate::{Extractable, MetaContainer};
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute, pin::Pin, ptr};
glib::wrapper! {
#[doc(alias = "GESAsset")]

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -4,25 +4,19 @@
// DO NOT EDIT
#![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_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::Track;
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::transmute;
use crate::{Asset, Clip, Extractable, MetaContainer, Timeline, TrackType};
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[doc(alias = "GESLayer")]
@ -228,7 +222,7 @@ impl<O: IsA<Layer>> LayerExt for O {
clip.as_ref().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() {
Ok(())
} else {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -6,28 +6,14 @@
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::Edge;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::EditMode;
use crate::Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::Layer;
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;
use crate::{Edge, EditMode, Layer};
use crate::{Extractable, MetaContainer, Timeline, TrackType};
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem, mem::transmute, ptr};
glib::wrapper! {
#[doc(alias = "GESTimelineElement")]
@ -358,7 +344,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
position,
&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() {
Ok(())
} else {
@ -652,7 +638,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
value.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() {
Ok(())
} else {

View file

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

View file

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

View file

@ -3,24 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
use crate::MetaContainer;
use crate::Timeline;
use crate::TrackElement;
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;
#[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;
use crate::{MetaContainer, Timeline, TrackElement, TrackType};
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
use std::{boxed::Box as Box_, mem::transmute};
glib::wrapper! {
#[doc(alias = "GESTrack")]
@ -35,9 +27,9 @@ impl Track {
pub const NONE: Option<&'static Track> = None;
#[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!();
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,
&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() {
Ok(())
} else {
@ -236,7 +228,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
object.as_ref().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() {
Ok(())
} else {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -3,25 +3,16 @@
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
use crate::Asset;
use crate::ClipAsset;
use crate::MetaContainer;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use crate::SourceClipAsset;
use crate::UriSourceAsset;
use glib::object::Cast;
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[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;
use crate::{Asset, ClipAsset, MetaContainer, UriSourceAsset};
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
};
use std::{boxed::Box as Box_, mem::transmute, ptr};
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[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)
// DO NOT EDIT
use crate::Asset;
use crate::MetaContainer;
use crate::TrackElementAsset;
use crate::UriClipAsset;
use glib::object::IsA;
use glib::translate::*;
use crate::{Asset, MetaContainer, TrackElementAsset, UriClipAsset};
use glib::{prelude::*, translate::*};
glib::wrapper! {
#[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 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)
// DO NOT EDIT
use crate::Extractable;
use crate::MetaContainer;
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
use crate::{Extractable, MetaContainer, Source, TimelineElement, TrackElement};
use glib::prelude::*;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::translate::*;

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