Regenerate with latest GIR and update for the non-bitflags flags in -sys now

This commit is contained in:
Sebastian Dröge 2018-04-04 10:46:18 +03:00
parent 492c3d656c
commit 9a3ef2e9f1
121 changed files with 272 additions and 282 deletions

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT
@ -24,7 +24,7 @@ impl ToGlib for AudioFlags {
type GlibType = ffi::GstAudioFlags; type GlibType = ffi::GstAudioFlags;
fn to_glib(&self) -> ffi::GstAudioFlags { fn to_glib(&self) -> ffi::GstAudioFlags {
ffi::GstAudioFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -32,7 +32,7 @@ impl ToGlib for AudioFlags {
impl FromGlib<ffi::GstAudioFlags> for AudioFlags { impl FromGlib<ffi::GstAudioFlags> for AudioFlags {
fn from_glib(value: ffi::GstAudioFlags) -> AudioFlags { fn from_glib(value: ffi::GstAudioFlags) -> AudioFlags {
skip_assert_initialized!(); skip_assert_initialized!();
AudioFlags::from_bits_truncate(value.bits()) AudioFlags::from_bits_truncate(value)
} }
} }
@ -50,13 +50,13 @@ impl<'a> FromValueOptional<'a> for AudioFlags {
impl<'a> FromValue<'a> for AudioFlags { impl<'a> FromValue<'a> for AudioFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstAudioFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for AudioFlags { impl SetValue for AudioFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -75,7 +75,7 @@ impl ToGlib for AudioFormatFlags {
type GlibType = ffi::GstAudioFormatFlags; type GlibType = ffi::GstAudioFormatFlags;
fn to_glib(&self) -> ffi::GstAudioFormatFlags { fn to_glib(&self) -> ffi::GstAudioFormatFlags {
ffi::GstAudioFormatFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -83,7 +83,7 @@ impl ToGlib for AudioFormatFlags {
impl FromGlib<ffi::GstAudioFormatFlags> for AudioFormatFlags { impl FromGlib<ffi::GstAudioFormatFlags> for AudioFormatFlags {
fn from_glib(value: ffi::GstAudioFormatFlags) -> AudioFormatFlags { fn from_glib(value: ffi::GstAudioFormatFlags) -> AudioFormatFlags {
skip_assert_initialized!(); skip_assert_initialized!();
AudioFormatFlags::from_bits_truncate(value.bits()) AudioFormatFlags::from_bits_truncate(value)
} }
} }
@ -101,13 +101,13 @@ impl<'a> FromValueOptional<'a> for AudioFormatFlags {
impl<'a> FromValue<'a> for AudioFormatFlags { impl<'a> FromValue<'a> for AudioFormatFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstAudioFormatFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for AudioFormatFlags { impl SetValue for AudioFormatFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -123,7 +123,7 @@ impl ToGlib for AudioPackFlags {
type GlibType = ffi::GstAudioPackFlags; type GlibType = ffi::GstAudioPackFlags;
fn to_glib(&self) -> ffi::GstAudioPackFlags { fn to_glib(&self) -> ffi::GstAudioPackFlags {
ffi::GstAudioPackFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -131,7 +131,7 @@ impl ToGlib for AudioPackFlags {
impl FromGlib<ffi::GstAudioPackFlags> for AudioPackFlags { impl FromGlib<ffi::GstAudioPackFlags> for AudioPackFlags {
fn from_glib(value: ffi::GstAudioPackFlags) -> AudioPackFlags { fn from_glib(value: ffi::GstAudioPackFlags) -> AudioPackFlags {
skip_assert_initialized!(); skip_assert_initialized!();
AudioPackFlags::from_bits_truncate(value.bits()) AudioPackFlags::from_bits_truncate(value)
} }
} }
@ -149,13 +149,13 @@ impl<'a> FromValueOptional<'a> for AudioPackFlags {
impl<'a> FromValue<'a> for AudioPackFlags { impl<'a> FromValue<'a> for AudioPackFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstAudioPackFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for AudioPackFlags { impl SetValue for AudioPackFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT
@ -27,7 +27,7 @@ impl ToGlib for DiscovererSerializeFlags {
type GlibType = ffi::GstDiscovererSerializeFlags; type GlibType = ffi::GstDiscovererSerializeFlags;
fn to_glib(&self) -> ffi::GstDiscovererSerializeFlags { fn to_glib(&self) -> ffi::GstDiscovererSerializeFlags {
ffi::GstDiscovererSerializeFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -35,7 +35,7 @@ impl ToGlib for DiscovererSerializeFlags {
impl FromGlib<ffi::GstDiscovererSerializeFlags> for DiscovererSerializeFlags { impl FromGlib<ffi::GstDiscovererSerializeFlags> for DiscovererSerializeFlags {
fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> DiscovererSerializeFlags { fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> DiscovererSerializeFlags {
skip_assert_initialized!(); skip_assert_initialized!();
DiscovererSerializeFlags::from_bits_truncate(value.bits()) DiscovererSerializeFlags::from_bits_truncate(value)
} }
} }
@ -53,13 +53,13 @@ impl<'a> FromValueOptional<'a> for DiscovererSerializeFlags {
impl<'a> FromValue<'a> for DiscovererSerializeFlags { impl<'a> FromValue<'a> for DiscovererSerializeFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstDiscovererSerializeFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for DiscovererSerializeFlags { impl SetValue for DiscovererSerializeFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT
@ -28,7 +28,7 @@ impl ToGlib for RTSPAddressFlags {
type GlibType = ffi::GstRTSPAddressFlags; type GlibType = ffi::GstRTSPAddressFlags;
fn to_glib(&self) -> ffi::GstRTSPAddressFlags { fn to_glib(&self) -> ffi::GstRTSPAddressFlags {
ffi::GstRTSPAddressFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -36,7 +36,7 @@ impl ToGlib for RTSPAddressFlags {
impl FromGlib<ffi::GstRTSPAddressFlags> for RTSPAddressFlags { impl FromGlib<ffi::GstRTSPAddressFlags> for RTSPAddressFlags {
fn from_glib(value: ffi::GstRTSPAddressFlags) -> RTSPAddressFlags { fn from_glib(value: ffi::GstRTSPAddressFlags) -> RTSPAddressFlags {
skip_assert_initialized!(); skip_assert_initialized!();
RTSPAddressFlags::from_bits_truncate(value.bits()) RTSPAddressFlags::from_bits_truncate(value)
} }
} }
@ -52,7 +52,7 @@ impl ToGlib for RTSPTransportMode {
type GlibType = ffi::GstRTSPTransportMode; type GlibType = ffi::GstRTSPTransportMode;
fn to_glib(&self) -> ffi::GstRTSPTransportMode { fn to_glib(&self) -> ffi::GstRTSPTransportMode {
ffi::GstRTSPTransportMode::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -60,7 +60,7 @@ impl ToGlib for RTSPTransportMode {
impl FromGlib<ffi::GstRTSPTransportMode> for RTSPTransportMode { impl FromGlib<ffi::GstRTSPTransportMode> for RTSPTransportMode {
fn from_glib(value: ffi::GstRTSPTransportMode) -> RTSPTransportMode { fn from_glib(value: ffi::GstRTSPTransportMode) -> RTSPTransportMode {
skip_assert_initialized!(); skip_assert_initialized!();
RTSPTransportMode::from_bits_truncate(value.bits()) RTSPTransportMode::from_bits_truncate(value)
} }
} }
@ -78,13 +78,13 @@ impl<'a> FromValueOptional<'a> for RTSPTransportMode {
impl<'a> FromValue<'a> for RTSPTransportMode { impl<'a> FromValue<'a> for RTSPTransportMode {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstRTSPTransportMode::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for RTSPTransportMode { impl SetValue for RTSPTransportMode {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT
@ -24,7 +24,7 @@ impl ToGlib for RTSPEvent {
type GlibType = ffi::GstRTSPEvent; type GlibType = ffi::GstRTSPEvent;
fn to_glib(&self) -> ffi::GstRTSPEvent { fn to_glib(&self) -> ffi::GstRTSPEvent {
ffi::GstRTSPEvent::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -32,7 +32,7 @@ impl ToGlib for RTSPEvent {
impl FromGlib<ffi::GstRTSPEvent> for RTSPEvent { impl FromGlib<ffi::GstRTSPEvent> for RTSPEvent {
fn from_glib(value: ffi::GstRTSPEvent) -> RTSPEvent { fn from_glib(value: ffi::GstRTSPEvent) -> RTSPEvent {
skip_assert_initialized!(); skip_assert_initialized!();
RTSPEvent::from_bits_truncate(value.bits()) RTSPEvent::from_bits_truncate(value)
} }
} }
@ -50,13 +50,13 @@ impl<'a> FromValueOptional<'a> for RTSPEvent {
impl<'a> FromValue<'a> for RTSPEvent { impl<'a> FromValue<'a> for RTSPEvent {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstRTSPEvent::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for RTSPEvent { impl SetValue for RTSPEvent {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -76,7 +76,7 @@ impl ToGlib for RTSPLowerTrans {
type GlibType = ffi::GstRTSPLowerTrans; type GlibType = ffi::GstRTSPLowerTrans;
fn to_glib(&self) -> ffi::GstRTSPLowerTrans { fn to_glib(&self) -> ffi::GstRTSPLowerTrans {
ffi::GstRTSPLowerTrans::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -84,7 +84,7 @@ impl ToGlib for RTSPLowerTrans {
impl FromGlib<ffi::GstRTSPLowerTrans> for RTSPLowerTrans { impl FromGlib<ffi::GstRTSPLowerTrans> for RTSPLowerTrans {
fn from_glib(value: ffi::GstRTSPLowerTrans) -> RTSPLowerTrans { fn from_glib(value: ffi::GstRTSPLowerTrans) -> RTSPLowerTrans {
skip_assert_initialized!(); skip_assert_initialized!();
RTSPLowerTrans::from_bits_truncate(value.bits()) RTSPLowerTrans::from_bits_truncate(value)
} }
} }
@ -102,13 +102,13 @@ impl<'a> FromValueOptional<'a> for RTSPLowerTrans {
impl<'a> FromValue<'a> for RTSPLowerTrans { impl<'a> FromValue<'a> for RTSPLowerTrans {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstRTSPLowerTrans::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for RTSPLowerTrans { impl SetValue for RTSPLowerTrans {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -136,7 +136,7 @@ impl ToGlib for RTSPMethod {
type GlibType = ffi::GstRTSPMethod; type GlibType = ffi::GstRTSPMethod;
fn to_glib(&self) -> ffi::GstRTSPMethod { fn to_glib(&self) -> ffi::GstRTSPMethod {
ffi::GstRTSPMethod::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -144,7 +144,7 @@ impl ToGlib for RTSPMethod {
impl FromGlib<ffi::GstRTSPMethod> for RTSPMethod { impl FromGlib<ffi::GstRTSPMethod> for RTSPMethod {
fn from_glib(value: ffi::GstRTSPMethod) -> RTSPMethod { fn from_glib(value: ffi::GstRTSPMethod) -> RTSPMethod {
skip_assert_initialized!(); skip_assert_initialized!();
RTSPMethod::from_bits_truncate(value.bits()) RTSPMethod::from_bits_truncate(value)
} }
} }
@ -162,13 +162,13 @@ impl<'a> FromValueOptional<'a> for RTSPMethod {
impl<'a> FromValue<'a> for RTSPMethod { impl<'a> FromValue<'a> for RTSPMethod {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstRTSPMethod::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for RTSPMethod { impl SetValue for RTSPMethod {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -187,7 +187,7 @@ impl ToGlib for RTSPProfile {
type GlibType = ffi::GstRTSPProfile; type GlibType = ffi::GstRTSPProfile;
fn to_glib(&self) -> ffi::GstRTSPProfile { fn to_glib(&self) -> ffi::GstRTSPProfile {
ffi::GstRTSPProfile::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -195,7 +195,7 @@ impl ToGlib for RTSPProfile {
impl FromGlib<ffi::GstRTSPProfile> for RTSPProfile { impl FromGlib<ffi::GstRTSPProfile> for RTSPProfile {
fn from_glib(value: ffi::GstRTSPProfile) -> RTSPProfile { fn from_glib(value: ffi::GstRTSPProfile) -> RTSPProfile {
skip_assert_initialized!(); skip_assert_initialized!();
RTSPProfile::from_bits_truncate(value.bits()) RTSPProfile::from_bits_truncate(value)
} }
} }
@ -213,13 +213,13 @@ impl<'a> FromValueOptional<'a> for RTSPProfile {
impl<'a> FromValue<'a> for RTSPProfile { impl<'a> FromValue<'a> for RTSPProfile {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstRTSPProfile::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for RTSPProfile { impl SetValue for RTSPProfile {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -236,7 +236,7 @@ impl ToGlib for RTSPTransMode {
type GlibType = ffi::GstRTSPTransMode; type GlibType = ffi::GstRTSPTransMode;
fn to_glib(&self) -> ffi::GstRTSPTransMode { fn to_glib(&self) -> ffi::GstRTSPTransMode {
ffi::GstRTSPTransMode::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -244,7 +244,7 @@ impl ToGlib for RTSPTransMode {
impl FromGlib<ffi::GstRTSPTransMode> for RTSPTransMode { impl FromGlib<ffi::GstRTSPTransMode> for RTSPTransMode {
fn from_glib(value: ffi::GstRTSPTransMode) -> RTSPTransMode { fn from_glib(value: ffi::GstRTSPTransMode) -> RTSPTransMode {
skip_assert_initialized!(); skip_assert_initialized!();
RTSPTransMode::from_bits_truncate(value.bits()) RTSPTransMode::from_bits_truncate(value)
} }
} }
@ -262,13 +262,13 @@ impl<'a> FromValueOptional<'a> for RTSPTransMode {
impl<'a> FromValue<'a> for RTSPTransMode { impl<'a> FromValue<'a> for RTSPTransMode {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstRTSPTransMode::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for RTSPTransMode { impl SetValue for RTSPTransMode {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT
@ -31,7 +31,7 @@ impl ToGlib for VideoChromaSite {
type GlibType = ffi::GstVideoChromaSite; type GlibType = ffi::GstVideoChromaSite;
fn to_glib(&self) -> ffi::GstVideoChromaSite { fn to_glib(&self) -> ffi::GstVideoChromaSite {
ffi::GstVideoChromaSite::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -39,7 +39,7 @@ impl ToGlib for VideoChromaSite {
impl FromGlib<ffi::GstVideoChromaSite> for VideoChromaSite { impl FromGlib<ffi::GstVideoChromaSite> for VideoChromaSite {
fn from_glib(value: ffi::GstVideoChromaSite) -> VideoChromaSite { fn from_glib(value: ffi::GstVideoChromaSite) -> VideoChromaSite {
skip_assert_initialized!(); skip_assert_initialized!();
VideoChromaSite::from_bits_truncate(value.bits()) VideoChromaSite::from_bits_truncate(value)
} }
} }
@ -57,13 +57,13 @@ impl<'a> FromValueOptional<'a> for VideoChromaSite {
impl<'a> FromValue<'a> for VideoChromaSite { impl<'a> FromValue<'a> for VideoChromaSite {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstVideoChromaSite::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for VideoChromaSite { impl SetValue for VideoChromaSite {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -80,7 +80,7 @@ impl ToGlib for VideoFlags {
type GlibType = ffi::GstVideoFlags; type GlibType = ffi::GstVideoFlags;
fn to_glib(&self) -> ffi::GstVideoFlags { fn to_glib(&self) -> ffi::GstVideoFlags {
ffi::GstVideoFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -88,7 +88,7 @@ impl ToGlib for VideoFlags {
impl FromGlib<ffi::GstVideoFlags> for VideoFlags { impl FromGlib<ffi::GstVideoFlags> for VideoFlags {
fn from_glib(value: ffi::GstVideoFlags) -> VideoFlags { fn from_glib(value: ffi::GstVideoFlags) -> VideoFlags {
skip_assert_initialized!(); skip_assert_initialized!();
VideoFlags::from_bits_truncate(value.bits()) VideoFlags::from_bits_truncate(value)
} }
} }
@ -106,13 +106,13 @@ impl<'a> FromValueOptional<'a> for VideoFlags {
impl<'a> FromValue<'a> for VideoFlags { impl<'a> FromValue<'a> for VideoFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstVideoFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for VideoFlags { impl SetValue for VideoFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -135,7 +135,7 @@ impl ToGlib for VideoFormatFlags {
type GlibType = ffi::GstVideoFormatFlags; type GlibType = ffi::GstVideoFormatFlags;
fn to_glib(&self) -> ffi::GstVideoFormatFlags { fn to_glib(&self) -> ffi::GstVideoFormatFlags {
ffi::GstVideoFormatFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -143,7 +143,7 @@ impl ToGlib for VideoFormatFlags {
impl FromGlib<ffi::GstVideoFormatFlags> for VideoFormatFlags { impl FromGlib<ffi::GstVideoFormatFlags> for VideoFormatFlags {
fn from_glib(value: ffi::GstVideoFormatFlags) -> VideoFormatFlags { fn from_glib(value: ffi::GstVideoFormatFlags) -> VideoFormatFlags {
skip_assert_initialized!(); skip_assert_initialized!();
VideoFormatFlags::from_bits_truncate(value.bits()) VideoFormatFlags::from_bits_truncate(value)
} }
} }
@ -161,13 +161,13 @@ impl<'a> FromValueOptional<'a> for VideoFormatFlags {
impl<'a> FromValue<'a> for VideoFormatFlags { impl<'a> FromValue<'a> for VideoFormatFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstVideoFormatFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for VideoFormatFlags { impl SetValue for VideoFormatFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -188,7 +188,7 @@ impl ToGlib for VideoFrameFlags {
type GlibType = ffi::GstVideoFrameFlags; type GlibType = ffi::GstVideoFrameFlags;
fn to_glib(&self) -> ffi::GstVideoFrameFlags { fn to_glib(&self) -> ffi::GstVideoFrameFlags {
ffi::GstVideoFrameFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -196,7 +196,7 @@ impl ToGlib for VideoFrameFlags {
impl FromGlib<ffi::GstVideoFrameFlags> for VideoFrameFlags { impl FromGlib<ffi::GstVideoFrameFlags> for VideoFrameFlags {
fn from_glib(value: ffi::GstVideoFrameFlags) -> VideoFrameFlags { fn from_glib(value: ffi::GstVideoFrameFlags) -> VideoFrameFlags {
skip_assert_initialized!(); skip_assert_initialized!();
VideoFrameFlags::from_bits_truncate(value.bits()) VideoFrameFlags::from_bits_truncate(value)
} }
} }
@ -214,13 +214,13 @@ impl<'a> FromValueOptional<'a> for VideoFrameFlags {
impl<'a> FromValue<'a> for VideoFrameFlags { impl<'a> FromValue<'a> for VideoFrameFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstVideoFrameFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for VideoFrameFlags { impl SetValue for VideoFrameFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -242,7 +242,7 @@ impl ToGlib for VideoMultiviewFlags {
type GlibType = ffi::GstVideoMultiviewFlags; type GlibType = ffi::GstVideoMultiviewFlags;
fn to_glib(&self) -> ffi::GstVideoMultiviewFlags { fn to_glib(&self) -> ffi::GstVideoMultiviewFlags {
ffi::GstVideoMultiviewFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -250,7 +250,7 @@ impl ToGlib for VideoMultiviewFlags {
impl FromGlib<ffi::GstVideoMultiviewFlags> for VideoMultiviewFlags { impl FromGlib<ffi::GstVideoMultiviewFlags> for VideoMultiviewFlags {
fn from_glib(value: ffi::GstVideoMultiviewFlags) -> VideoMultiviewFlags { fn from_glib(value: ffi::GstVideoMultiviewFlags) -> VideoMultiviewFlags {
skip_assert_initialized!(); skip_assert_initialized!();
VideoMultiviewFlags::from_bits_truncate(value.bits()) VideoMultiviewFlags::from_bits_truncate(value)
} }
} }
@ -268,13 +268,13 @@ impl<'a> FromValueOptional<'a> for VideoMultiviewFlags {
impl<'a> FromValue<'a> for VideoMultiviewFlags { impl<'a> FromValue<'a> for VideoMultiviewFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstVideoMultiviewFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for VideoMultiviewFlags { impl SetValue for VideoMultiviewFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -106,35 +106,35 @@ impl VideoFormatInfo {
} }
pub fn has_alpha(&self) -> bool { pub fn has_alpha(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_ALPHA) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_ALPHA != 0
} }
pub fn has_palette(&self) -> bool { pub fn has_palette(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_PALETTE) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_PALETTE != 0
} }
pub fn is_complex(&self) -> bool { pub fn is_complex(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_COMPLEX) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_COMPLEX != 0
} }
pub fn is_gray(&self) -> bool { pub fn is_gray(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_GRAY) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_GRAY != 0
} }
pub fn is_le(&self) -> bool { pub fn is_le(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_LE) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_LE != 0
} }
pub fn is_rgb(&self) -> bool { pub fn is_rgb(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_RGB) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_RGB != 0
} }
pub fn is_tiled(&self) -> bool { pub fn is_tiled(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_TILED) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_TILED != 0
} }
pub fn is_yuv(&self) -> bool { pub fn is_yuv(&self) -> bool {
self.0.flags.contains(ffi::GST_VIDEO_FORMAT_FLAG_YUV) self.0.flags & ffi::GST_VIDEO_FORMAT_FLAG_YUV != 0
} }
pub fn scale_width(&self, component: u8, width: u32) -> u32 { pub fn scale_width(&self, component: u8, width: u32) -> u32 {

View file

@ -179,9 +179,7 @@ impl VideoFrame<Readable> {
&mut frame, &mut frame,
info.to_glib_none().0 as *mut _, info.to_glib_none().0 as *mut _,
buffer.to_glib_none().0, buffer.to_glib_none().0,
mem::transmute( mem::transmute(ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ),
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits(),
),
)); ));
if !res { if !res {
@ -207,9 +205,7 @@ impl VideoFrame<Readable> {
info.to_glib_none().0 as *mut _, info.to_glib_none().0 as *mut _,
buffer.to_glib_none().0, buffer.to_glib_none().0,
id, id,
mem::transmute( mem::transmute(ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ),
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits(),
),
)); ));
if !res { if !res {
@ -242,8 +238,8 @@ impl VideoFrame<Writable> {
info.to_glib_none().0 as *mut _, info.to_glib_none().0 as *mut _,
buffer.to_glib_none().0, buffer.to_glib_none().0,
mem::transmute( mem::transmute(
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits() ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ
| gst_ffi::GST_MAP_WRITE.bits(), | gst_ffi::GST_MAP_WRITE,
), ),
)); ));
@ -271,8 +267,8 @@ impl VideoFrame<Writable> {
buffer.to_glib_none().0, buffer.to_glib_none().0,
id, id,
mem::transmute( mem::transmute(
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits() ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ
| gst_ffi::GST_MAP_WRITE.bits(), | gst_ffi::GST_MAP_WRITE,
), ),
)); ));
@ -341,9 +337,7 @@ impl<'a> VideoFrameRef<&'a gst::BufferRef> {
&mut frame, &mut frame,
info.to_glib_none().0 as *mut _, info.to_glib_none().0 as *mut _,
buffer.as_mut_ptr(), buffer.as_mut_ptr(),
mem::transmute( mem::transmute(ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ),
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits(),
),
)); ));
if !res { if !res {
@ -369,9 +363,7 @@ impl<'a> VideoFrameRef<&'a gst::BufferRef> {
info.to_glib_none().0 as *mut _, info.to_glib_none().0 as *mut _,
buffer.as_mut_ptr(), buffer.as_mut_ptr(),
id, id,
mem::transmute( mem::transmute(ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ),
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits(),
),
)); ));
if !res { if !res {
@ -524,8 +516,8 @@ impl<'a> VideoFrameRef<&'a mut gst::BufferRef> {
info.to_glib_none().0 as *mut _, info.to_glib_none().0 as *mut _,
buffer.as_mut_ptr(), buffer.as_mut_ptr(),
mem::transmute( mem::transmute(
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits() ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ
| gst_ffi::GST_MAP_WRITE.bits(), | gst_ffi::GST_MAP_WRITE,
), ),
)); ));
@ -553,8 +545,8 @@ impl<'a> VideoFrameRef<&'a mut gst::BufferRef> {
buffer.as_mut_ptr(), buffer.as_mut_ptr(),
id, id,
mem::transmute( mem::transmute(
ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF.bits() | gst_ffi::GST_MAP_READ.bits() ffi::GST_VIDEO_FRAME_MAP_FLAG_NO_REF | gst_ffi::GST_MAP_READ
| gst_ffi::GST_MAP_WRITE.bits(), | gst_ffi::GST_MAP_WRITE,
), ),
)); ));

View file

@ -285,7 +285,7 @@ impl<'a> VideoInfoBuilder<'a> {
if let Some(multiview_flags) = self.multiview_flags { if let Some(multiview_flags) = self.multiview_flags {
let ptr = &mut info.ABI._gst_reserved as *mut _ as *mut u32; let ptr = &mut info.ABI._gst_reserved as *mut _ as *mut u32;
ptr::write(ptr.offset(1), multiview_flags.to_glib().bits()); ptr::write(ptr.offset(1), multiview_flags.to_glib());
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
@ -523,9 +523,7 @@ impl VideoInfo {
pub fn multiview_flags(&self) -> ::VideoMultiviewFlags { pub fn multiview_flags(&self) -> ::VideoMultiviewFlags {
unsafe { unsafe {
let ptr = &self.0.ABI._gst_reserved as *const _ as *const u32; let ptr = &self.0.ABI._gst_reserved as *const _ as *const u32;
from_glib(ffi::GstVideoMultiviewFlags::from_bits_truncate(ptr::read( from_glib(ptr::read(ptr.offset(1)))
ptr.offset(1),
)))
} }
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT
@ -29,7 +29,7 @@ impl ToGlib for BufferCopyFlags {
type GlibType = ffi::GstBufferCopyFlags; type GlibType = ffi::GstBufferCopyFlags;
fn to_glib(&self) -> ffi::GstBufferCopyFlags { fn to_glib(&self) -> ffi::GstBufferCopyFlags {
ffi::GstBufferCopyFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -37,7 +37,7 @@ impl ToGlib for BufferCopyFlags {
impl FromGlib<ffi::GstBufferCopyFlags> for BufferCopyFlags { impl FromGlib<ffi::GstBufferCopyFlags> for BufferCopyFlags {
fn from_glib(value: ffi::GstBufferCopyFlags) -> BufferCopyFlags { fn from_glib(value: ffi::GstBufferCopyFlags) -> BufferCopyFlags {
skip_assert_initialized!(); skip_assert_initialized!();
BufferCopyFlags::from_bits_truncate(value.bits()) BufferCopyFlags::from_bits_truncate(value)
} }
} }
@ -55,13 +55,13 @@ impl<'a> FromValueOptional<'a> for BufferCopyFlags {
impl<'a> FromValue<'a> for BufferCopyFlags { impl<'a> FromValue<'a> for BufferCopyFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstBufferCopyFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for BufferCopyFlags { impl SetValue for BufferCopyFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -89,7 +89,7 @@ impl ToGlib for BufferFlags {
type GlibType = ffi::GstBufferFlags; type GlibType = ffi::GstBufferFlags;
fn to_glib(&self) -> ffi::GstBufferFlags { fn to_glib(&self) -> ffi::GstBufferFlags {
ffi::GstBufferFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -97,7 +97,7 @@ impl ToGlib for BufferFlags {
impl FromGlib<ffi::GstBufferFlags> for BufferFlags { impl FromGlib<ffi::GstBufferFlags> for BufferFlags {
fn from_glib(value: ffi::GstBufferFlags) -> BufferFlags { fn from_glib(value: ffi::GstBufferFlags) -> BufferFlags {
skip_assert_initialized!(); skip_assert_initialized!();
BufferFlags::from_bits_truncate(value.bits()) BufferFlags::from_bits_truncate(value)
} }
} }
@ -115,13 +115,13 @@ impl<'a> FromValueOptional<'a> for BufferFlags {
impl<'a> FromValue<'a> for BufferFlags { impl<'a> FromValue<'a> for BufferFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstBufferFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for BufferFlags { impl SetValue for BufferFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -140,7 +140,7 @@ impl ToGlib for BufferPoolAcquireFlags {
type GlibType = ffi::GstBufferPoolAcquireFlags; type GlibType = ffi::GstBufferPoolAcquireFlags;
fn to_glib(&self) -> ffi::GstBufferPoolAcquireFlags { fn to_glib(&self) -> ffi::GstBufferPoolAcquireFlags {
ffi::GstBufferPoolAcquireFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -148,7 +148,7 @@ impl ToGlib for BufferPoolAcquireFlags {
impl FromGlib<ffi::GstBufferPoolAcquireFlags> for BufferPoolAcquireFlags { impl FromGlib<ffi::GstBufferPoolAcquireFlags> for BufferPoolAcquireFlags {
fn from_glib(value: ffi::GstBufferPoolAcquireFlags) -> BufferPoolAcquireFlags { fn from_glib(value: ffi::GstBufferPoolAcquireFlags) -> BufferPoolAcquireFlags {
skip_assert_initialized!(); skip_assert_initialized!();
BufferPoolAcquireFlags::from_bits_truncate(value.bits()) BufferPoolAcquireFlags::from_bits_truncate(value)
} }
} }
@ -166,13 +166,13 @@ impl<'a> FromValueOptional<'a> for BufferPoolAcquireFlags {
impl<'a> FromValue<'a> for BufferPoolAcquireFlags { impl<'a> FromValue<'a> for BufferPoolAcquireFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstBufferPoolAcquireFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for BufferPoolAcquireFlags { impl SetValue for BufferPoolAcquireFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -204,7 +204,7 @@ impl ToGlib for DebugColorFlags {
type GlibType = ffi::GstDebugColorFlags; type GlibType = ffi::GstDebugColorFlags;
fn to_glib(&self) -> ffi::GstDebugColorFlags { fn to_glib(&self) -> ffi::GstDebugColorFlags {
ffi::GstDebugColorFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -212,7 +212,7 @@ impl ToGlib for DebugColorFlags {
impl FromGlib<ffi::GstDebugColorFlags> for DebugColorFlags { impl FromGlib<ffi::GstDebugColorFlags> for DebugColorFlags {
fn from_glib(value: ffi::GstDebugColorFlags) -> DebugColorFlags { fn from_glib(value: ffi::GstDebugColorFlags) -> DebugColorFlags {
skip_assert_initialized!(); skip_assert_initialized!();
DebugColorFlags::from_bits_truncate(value.bits()) DebugColorFlags::from_bits_truncate(value)
} }
} }
@ -230,13 +230,13 @@ impl<'a> FromValueOptional<'a> for DebugColorFlags {
impl<'a> FromValue<'a> for DebugColorFlags { impl<'a> FromValue<'a> for DebugColorFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstDebugColorFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for DebugColorFlags { impl SetValue for DebugColorFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -257,7 +257,7 @@ impl ToGlib for DebugGraphDetails {
type GlibType = ffi::GstDebugGraphDetails; type GlibType = ffi::GstDebugGraphDetails;
fn to_glib(&self) -> ffi::GstDebugGraphDetails { fn to_glib(&self) -> ffi::GstDebugGraphDetails {
ffi::GstDebugGraphDetails::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -265,7 +265,7 @@ impl ToGlib for DebugGraphDetails {
impl FromGlib<ffi::GstDebugGraphDetails> for DebugGraphDetails { impl FromGlib<ffi::GstDebugGraphDetails> for DebugGraphDetails {
fn from_glib(value: ffi::GstDebugGraphDetails) -> DebugGraphDetails { fn from_glib(value: ffi::GstDebugGraphDetails) -> DebugGraphDetails {
skip_assert_initialized!(); skip_assert_initialized!();
DebugGraphDetails::from_bits_truncate(value.bits()) DebugGraphDetails::from_bits_truncate(value)
} }
} }
@ -283,13 +283,13 @@ impl<'a> FromValueOptional<'a> for DebugGraphDetails {
impl<'a> FromValue<'a> for DebugGraphDetails { impl<'a> FromValue<'a> for DebugGraphDetails {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstDebugGraphDetails::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for DebugGraphDetails { impl SetValue for DebugGraphDetails {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -310,7 +310,7 @@ impl ToGlib for ElementFlags {
type GlibType = ffi::GstElementFlags; type GlibType = ffi::GstElementFlags;
fn to_glib(&self) -> ffi::GstElementFlags { fn to_glib(&self) -> ffi::GstElementFlags {
ffi::GstElementFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -318,7 +318,7 @@ impl ToGlib for ElementFlags {
impl FromGlib<ffi::GstElementFlags> for ElementFlags { impl FromGlib<ffi::GstElementFlags> for ElementFlags {
fn from_glib(value: ffi::GstElementFlags) -> ElementFlags { fn from_glib(value: ffi::GstElementFlags) -> ElementFlags {
skip_assert_initialized!(); skip_assert_initialized!();
ElementFlags::from_bits_truncate(value.bits()) ElementFlags::from_bits_truncate(value)
} }
} }
@ -336,13 +336,13 @@ impl<'a> FromValueOptional<'a> for ElementFlags {
impl<'a> FromValue<'a> for ElementFlags { impl<'a> FromValue<'a> for ElementFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstElementFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for ElementFlags { impl SetValue for ElementFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -362,7 +362,7 @@ impl ToGlib for PadLinkCheck {
type GlibType = ffi::GstPadLinkCheck; type GlibType = ffi::GstPadLinkCheck;
fn to_glib(&self) -> ffi::GstPadLinkCheck { fn to_glib(&self) -> ffi::GstPadLinkCheck {
ffi::GstPadLinkCheck::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -370,7 +370,7 @@ impl ToGlib for PadLinkCheck {
impl FromGlib<ffi::GstPadLinkCheck> for PadLinkCheck { impl FromGlib<ffi::GstPadLinkCheck> for PadLinkCheck {
fn from_glib(value: ffi::GstPadLinkCheck) -> PadLinkCheck { fn from_glib(value: ffi::GstPadLinkCheck) -> PadLinkCheck {
skip_assert_initialized!(); skip_assert_initialized!();
PadLinkCheck::from_bits_truncate(value.bits()) PadLinkCheck::from_bits_truncate(value)
} }
} }
@ -388,13 +388,13 @@ impl<'a> FromValueOptional<'a> for PadLinkCheck {
impl<'a> FromValue<'a> for PadLinkCheck { impl<'a> FromValue<'a> for PadLinkCheck {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstPadLinkCheck::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for PadLinkCheck { impl SetValue for PadLinkCheck {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -430,7 +430,7 @@ impl ToGlib for PadProbeType {
type GlibType = ffi::GstPadProbeType; type GlibType = ffi::GstPadProbeType;
fn to_glib(&self) -> ffi::GstPadProbeType { fn to_glib(&self) -> ffi::GstPadProbeType {
ffi::GstPadProbeType::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -438,7 +438,7 @@ impl ToGlib for PadProbeType {
impl FromGlib<ffi::GstPadProbeType> for PadProbeType { impl FromGlib<ffi::GstPadProbeType> for PadProbeType {
fn from_glib(value: ffi::GstPadProbeType) -> PadProbeType { fn from_glib(value: ffi::GstPadProbeType) -> PadProbeType {
skip_assert_initialized!(); skip_assert_initialized!();
PadProbeType::from_bits_truncate(value.bits()) PadProbeType::from_bits_truncate(value)
} }
} }
@ -456,13 +456,13 @@ impl<'a> FromValueOptional<'a> for PadProbeType {
impl<'a> FromValue<'a> for PadProbeType { impl<'a> FromValue<'a> for PadProbeType {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstPadProbeType::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for PadProbeType { impl SetValue for PadProbeType {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -480,7 +480,7 @@ impl ToGlib for ParseFlags {
type GlibType = ffi::GstParseFlags; type GlibType = ffi::GstParseFlags;
fn to_glib(&self) -> ffi::GstParseFlags { fn to_glib(&self) -> ffi::GstParseFlags {
ffi::GstParseFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -488,7 +488,7 @@ impl ToGlib for ParseFlags {
impl FromGlib<ffi::GstParseFlags> for ParseFlags { impl FromGlib<ffi::GstParseFlags> for ParseFlags {
fn from_glib(value: ffi::GstParseFlags) -> ParseFlags { fn from_glib(value: ffi::GstParseFlags) -> ParseFlags {
skip_assert_initialized!(); skip_assert_initialized!();
ParseFlags::from_bits_truncate(value.bits()) ParseFlags::from_bits_truncate(value)
} }
} }
@ -506,13 +506,13 @@ impl<'a> FromValueOptional<'a> for ParseFlags {
impl<'a> FromValue<'a> for ParseFlags { impl<'a> FromValue<'a> for ParseFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstParseFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for ParseFlags { impl SetValue for ParseFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -532,7 +532,7 @@ impl ToGlib for PluginDependencyFlags {
type GlibType = ffi::GstPluginDependencyFlags; type GlibType = ffi::GstPluginDependencyFlags;
fn to_glib(&self) -> ffi::GstPluginDependencyFlags { fn to_glib(&self) -> ffi::GstPluginDependencyFlags {
ffi::GstPluginDependencyFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -540,7 +540,7 @@ impl ToGlib for PluginDependencyFlags {
impl FromGlib<ffi::GstPluginDependencyFlags> for PluginDependencyFlags { impl FromGlib<ffi::GstPluginDependencyFlags> for PluginDependencyFlags {
fn from_glib(value: ffi::GstPluginDependencyFlags) -> PluginDependencyFlags { fn from_glib(value: ffi::GstPluginDependencyFlags) -> PluginDependencyFlags {
skip_assert_initialized!(); skip_assert_initialized!();
PluginDependencyFlags::from_bits_truncate(value.bits()) PluginDependencyFlags::from_bits_truncate(value)
} }
} }
@ -558,13 +558,13 @@ impl<'a> FromValueOptional<'a> for PluginDependencyFlags {
impl<'a> FromValue<'a> for PluginDependencyFlags { impl<'a> FromValue<'a> for PluginDependencyFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstPluginDependencyFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for PluginDependencyFlags { impl SetValue for PluginDependencyFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -581,7 +581,7 @@ impl ToGlib for SchedulingFlags {
type GlibType = ffi::GstSchedulingFlags; type GlibType = ffi::GstSchedulingFlags;
fn to_glib(&self) -> ffi::GstSchedulingFlags { fn to_glib(&self) -> ffi::GstSchedulingFlags {
ffi::GstSchedulingFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -589,7 +589,7 @@ impl ToGlib for SchedulingFlags {
impl FromGlib<ffi::GstSchedulingFlags> for SchedulingFlags { impl FromGlib<ffi::GstSchedulingFlags> for SchedulingFlags {
fn from_glib(value: ffi::GstSchedulingFlags) -> SchedulingFlags { fn from_glib(value: ffi::GstSchedulingFlags) -> SchedulingFlags {
skip_assert_initialized!(); skip_assert_initialized!();
SchedulingFlags::from_bits_truncate(value.bits()) SchedulingFlags::from_bits_truncate(value)
} }
} }
@ -607,13 +607,13 @@ impl<'a> FromValueOptional<'a> for SchedulingFlags {
impl<'a> FromValue<'a> for SchedulingFlags { impl<'a> FromValue<'a> for SchedulingFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstSchedulingFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for SchedulingFlags { impl SetValue for SchedulingFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -639,7 +639,7 @@ impl ToGlib for SeekFlags {
type GlibType = ffi::GstSeekFlags; type GlibType = ffi::GstSeekFlags;
fn to_glib(&self) -> ffi::GstSeekFlags { fn to_glib(&self) -> ffi::GstSeekFlags {
ffi::GstSeekFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -647,7 +647,7 @@ impl ToGlib for SeekFlags {
impl FromGlib<ffi::GstSeekFlags> for SeekFlags { impl FromGlib<ffi::GstSeekFlags> for SeekFlags {
fn from_glib(value: ffi::GstSeekFlags) -> SeekFlags { fn from_glib(value: ffi::GstSeekFlags) -> SeekFlags {
skip_assert_initialized!(); skip_assert_initialized!();
SeekFlags::from_bits_truncate(value.bits()) SeekFlags::from_bits_truncate(value)
} }
} }
@ -665,13 +665,13 @@ impl<'a> FromValueOptional<'a> for SeekFlags {
impl<'a> FromValue<'a> for SeekFlags { impl<'a> FromValue<'a> for SeekFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstSeekFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for SeekFlags { impl SetValue for SeekFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -692,7 +692,7 @@ impl ToGlib for SegmentFlags {
type GlibType = ffi::GstSegmentFlags; type GlibType = ffi::GstSegmentFlags;
fn to_glib(&self) -> ffi::GstSegmentFlags { fn to_glib(&self) -> ffi::GstSegmentFlags {
ffi::GstSegmentFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -700,7 +700,7 @@ impl ToGlib for SegmentFlags {
impl FromGlib<ffi::GstSegmentFlags> for SegmentFlags { impl FromGlib<ffi::GstSegmentFlags> for SegmentFlags {
fn from_glib(value: ffi::GstSegmentFlags) -> SegmentFlags { fn from_glib(value: ffi::GstSegmentFlags) -> SegmentFlags {
skip_assert_initialized!(); skip_assert_initialized!();
SegmentFlags::from_bits_truncate(value.bits()) SegmentFlags::from_bits_truncate(value)
} }
} }
@ -718,13 +718,13 @@ impl<'a> FromValueOptional<'a> for SegmentFlags {
impl<'a> FromValue<'a> for SegmentFlags { impl<'a> FromValue<'a> for SegmentFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstSegmentFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for SegmentFlags { impl SetValue for SegmentFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -741,7 +741,7 @@ impl ToGlib for StackTraceFlags {
type GlibType = ffi::GstStackTraceFlags; type GlibType = ffi::GstStackTraceFlags;
fn to_glib(&self) -> ffi::GstStackTraceFlags { fn to_glib(&self) -> ffi::GstStackTraceFlags {
ffi::GstStackTraceFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -750,7 +750,7 @@ impl ToGlib for StackTraceFlags {
impl FromGlib<ffi::GstStackTraceFlags> for StackTraceFlags { impl FromGlib<ffi::GstStackTraceFlags> for StackTraceFlags {
fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags { fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags {
skip_assert_initialized!(); skip_assert_initialized!();
StackTraceFlags::from_bits_truncate(value.bits()) StackTraceFlags::from_bits_truncate(value)
} }
} }
@ -771,14 +771,14 @@ impl<'a> FromValueOptional<'a> for StackTraceFlags {
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
impl<'a> FromValue<'a> for StackTraceFlags { impl<'a> FromValue<'a> for StackTraceFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstStackTraceFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
impl SetValue for StackTraceFlags { impl SetValue for StackTraceFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -796,7 +796,7 @@ impl ToGlib for StreamFlags {
type GlibType = ffi::GstStreamFlags; type GlibType = ffi::GstStreamFlags;
fn to_glib(&self) -> ffi::GstStreamFlags { fn to_glib(&self) -> ffi::GstStreamFlags {
ffi::GstStreamFlags::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -804,7 +804,7 @@ impl ToGlib for StreamFlags {
impl FromGlib<ffi::GstStreamFlags> for StreamFlags { impl FromGlib<ffi::GstStreamFlags> for StreamFlags {
fn from_glib(value: ffi::GstStreamFlags) -> StreamFlags { fn from_glib(value: ffi::GstStreamFlags) -> StreamFlags {
skip_assert_initialized!(); skip_assert_initialized!();
StreamFlags::from_bits_truncate(value.bits()) StreamFlags::from_bits_truncate(value)
} }
} }
@ -822,13 +822,13 @@ impl<'a> FromValueOptional<'a> for StreamFlags {
impl<'a> FromValue<'a> for StreamFlags { impl<'a> FromValue<'a> for StreamFlags {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstStreamFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
impl SetValue for StreamFlags { impl SetValue for StreamFlags {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }
@ -849,7 +849,7 @@ impl ToGlib for StreamType {
type GlibType = ffi::GstStreamType; type GlibType = ffi::GstStreamType;
fn to_glib(&self) -> ffi::GstStreamType { fn to_glib(&self) -> ffi::GstStreamType {
ffi::GstStreamType::from_bits_truncate(self.bits()) self.bits()
} }
} }
@ -858,7 +858,7 @@ impl ToGlib for StreamType {
impl FromGlib<ffi::GstStreamType> for StreamType { impl FromGlib<ffi::GstStreamType> for StreamType {
fn from_glib(value: ffi::GstStreamType) -> StreamType { fn from_glib(value: ffi::GstStreamType) -> StreamType {
skip_assert_initialized!(); skip_assert_initialized!();
StreamType::from_bits_truncate(value.bits()) StreamType::from_bits_truncate(value)
} }
} }
@ -879,14 +879,14 @@ impl<'a> FromValueOptional<'a> for StreamType {
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", feature = "dox"))]
impl<'a> FromValue<'a> for StreamType { impl<'a> FromValue<'a> for StreamType {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(ffi::GstStreamType::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) from_glib(gobject_ffi::g_value_get_flags(value.to_glib_none().0))
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", feature = "dox"))]
impl SetValue for StreamType { impl SetValue for StreamType {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
} }
} }

View file

@ -1,4 +1,4 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ fe7a6ff) // This file was generated by gir (https://github.com/gtk-rs/gir @ 6855214)
// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // from gir-files (https://github.com/gtk-rs/gir-files @ ???)
// DO NOT EDIT // DO NOT EDIT

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