Update gir and regenerate with clippy::use_self fixes

`Self` is now used in more places, shortening the code and making it
more readable at the same time.
This commit is contained in:
Marijn Suijten 2021-04-25 18:45:59 +02:00
parent baa29777a4
commit e8f340c60a
155 changed files with 3024 additions and 3212 deletions

2
gir

@ -1 +1 @@
Subproject commit 1a0921b553383ab0e5a34bdab15ebc8844ec3b46 Subproject commit 05168259538c9d78d2cf41016481426a597c0342

View file

@ -29,10 +29,10 @@ impl IntoGlib for AppStreamType {
fn into_glib(self) -> ffi::GstAppStreamType { fn into_glib(self) -> ffi::GstAppStreamType {
match self { match self {
AppStreamType::Stream => ffi::GST_APP_STREAM_TYPE_STREAM, Self::Stream => ffi::GST_APP_STREAM_TYPE_STREAM,
AppStreamType::Seekable => ffi::GST_APP_STREAM_TYPE_SEEKABLE, Self::Seekable => ffi::GST_APP_STREAM_TYPE_SEEKABLE,
AppStreamType::RandomAccess => ffi::GST_APP_STREAM_TYPE_RANDOM_ACCESS, Self::RandomAccess => ffi::GST_APP_STREAM_TYPE_RANDOM_ACCESS,
AppStreamType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -42,10 +42,10 @@ impl FromGlib<ffi::GstAppStreamType> for AppStreamType {
unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self { unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AppStreamType::Stream, 0 => Self::Stream,
1 => AppStreamType::Seekable, 1 => Self::Seekable,
2 => AppStreamType::RandomAccess, 2 => Self::RandomAccess,
value => AppStreamType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -71,7 +71,7 @@ unsafe impl<'a> FromValue<'a> for AppStreamType {
impl ToValue for AppStreamType { impl ToValue for AppStreamType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AppStreamType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -86,50 +86,38 @@ impl IntoGlib for AudioChannelPosition {
fn into_glib(self) -> ffi::GstAudioChannelPosition { fn into_glib(self) -> ffi::GstAudioChannelPosition {
match self { match self {
AudioChannelPosition::None => ffi::GST_AUDIO_CHANNEL_POSITION_NONE, Self::None => ffi::GST_AUDIO_CHANNEL_POSITION_NONE,
AudioChannelPosition::Mono => ffi::GST_AUDIO_CHANNEL_POSITION_MONO, Self::Mono => ffi::GST_AUDIO_CHANNEL_POSITION_MONO,
AudioChannelPosition::Invalid => ffi::GST_AUDIO_CHANNEL_POSITION_INVALID, Self::Invalid => ffi::GST_AUDIO_CHANNEL_POSITION_INVALID,
AudioChannelPosition::FrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT, Self::FrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT,
AudioChannelPosition::FrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT, Self::FrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT,
AudioChannelPosition::FrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER, Self::FrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER,
AudioChannelPosition::Lfe1 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE1, Self::Lfe1 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE1,
AudioChannelPosition::RearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_LEFT, Self::RearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_LEFT,
AudioChannelPosition::RearRight => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT, Self::RearRight => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT,
AudioChannelPosition::FrontLeftOfCenter => { Self::FrontLeftOfCenter => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER,
ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER Self::FrontRightOfCenter => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER,
} Self::RearCenter => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_CENTER,
AudioChannelPosition::FrontRightOfCenter => { Self::Lfe2 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE2,
ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER Self::SideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT,
} Self::SideRight => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT,
AudioChannelPosition::RearCenter => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_CENTER, Self::TopFrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT,
AudioChannelPosition::Lfe2 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE2, Self::TopFrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT,
AudioChannelPosition::SideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT, Self::TopFrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER,
AudioChannelPosition::SideRight => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT, Self::TopCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_CENTER,
AudioChannelPosition::TopFrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT, Self::TopRearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT,
AudioChannelPosition::TopFrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT, Self::TopRearRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT,
AudioChannelPosition::TopFrontCenter => { Self::TopSideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT,
ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER Self::TopSideRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT,
} Self::TopRearCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER,
AudioChannelPosition::TopCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_CENTER, Self::BottomFrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER,
AudioChannelPosition::TopRearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT, Self::BottomFrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT,
AudioChannelPosition::TopRearRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT, Self::BottomFrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT,
AudioChannelPosition::TopSideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT, Self::WideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT,
AudioChannelPosition::TopSideRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT, Self::WideRight => ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT,
AudioChannelPosition::TopRearCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER, Self::SurroundLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT,
AudioChannelPosition::BottomFrontCenter => { Self::SurroundRight => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT,
ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER Self::__Unknown(value) => value,
}
AudioChannelPosition::BottomFrontLeft => {
ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT
}
AudioChannelPosition::BottomFrontRight => {
ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT
}
AudioChannelPosition::WideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT,
AudioChannelPosition::WideRight => ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT,
AudioChannelPosition::SurroundLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT,
AudioChannelPosition::SurroundRight => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT,
AudioChannelPosition::__Unknown(value) => value,
} }
} }
} }
@ -139,38 +127,38 @@ impl FromGlib<ffi::GstAudioChannelPosition> for AudioChannelPosition {
unsafe fn from_glib(value: ffi::GstAudioChannelPosition) -> Self { unsafe fn from_glib(value: ffi::GstAudioChannelPosition) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
-3 => AudioChannelPosition::None, -3 => Self::None,
-2 => AudioChannelPosition::Mono, -2 => Self::Mono,
-1 => AudioChannelPosition::Invalid, -1 => Self::Invalid,
0 => AudioChannelPosition::FrontLeft, 0 => Self::FrontLeft,
1 => AudioChannelPosition::FrontRight, 1 => Self::FrontRight,
2 => AudioChannelPosition::FrontCenter, 2 => Self::FrontCenter,
3 => AudioChannelPosition::Lfe1, 3 => Self::Lfe1,
4 => AudioChannelPosition::RearLeft, 4 => Self::RearLeft,
5 => AudioChannelPosition::RearRight, 5 => Self::RearRight,
6 => AudioChannelPosition::FrontLeftOfCenter, 6 => Self::FrontLeftOfCenter,
7 => AudioChannelPosition::FrontRightOfCenter, 7 => Self::FrontRightOfCenter,
8 => AudioChannelPosition::RearCenter, 8 => Self::RearCenter,
9 => AudioChannelPosition::Lfe2, 9 => Self::Lfe2,
10 => AudioChannelPosition::SideLeft, 10 => Self::SideLeft,
11 => AudioChannelPosition::SideRight, 11 => Self::SideRight,
12 => AudioChannelPosition::TopFrontLeft, 12 => Self::TopFrontLeft,
13 => AudioChannelPosition::TopFrontRight, 13 => Self::TopFrontRight,
14 => AudioChannelPosition::TopFrontCenter, 14 => Self::TopFrontCenter,
15 => AudioChannelPosition::TopCenter, 15 => Self::TopCenter,
16 => AudioChannelPosition::TopRearLeft, 16 => Self::TopRearLeft,
17 => AudioChannelPosition::TopRearRight, 17 => Self::TopRearRight,
18 => AudioChannelPosition::TopSideLeft, 18 => Self::TopSideLeft,
19 => AudioChannelPosition::TopSideRight, 19 => Self::TopSideRight,
20 => AudioChannelPosition::TopRearCenter, 20 => Self::TopRearCenter,
21 => AudioChannelPosition::BottomFrontCenter, 21 => Self::BottomFrontCenter,
22 => AudioChannelPosition::BottomFrontLeft, 22 => Self::BottomFrontLeft,
23 => AudioChannelPosition::BottomFrontRight, 23 => Self::BottomFrontRight,
24 => AudioChannelPosition::WideLeft, 24 => Self::WideLeft,
25 => AudioChannelPosition::WideRight, 25 => Self::WideRight,
26 => AudioChannelPosition::SurroundLeft, 26 => Self::SurroundLeft,
27 => AudioChannelPosition::SurroundRight, 27 => Self::SurroundRight,
value => AudioChannelPosition::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -196,7 +184,7 @@ unsafe impl<'a> FromValue<'a> for AudioChannelPosition {
impl ToValue for AudioChannelPosition { impl ToValue for AudioChannelPosition {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioChannelPosition>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -230,11 +218,11 @@ impl IntoGlib for AudioDitherMethod {
fn into_glib(self) -> ffi::GstAudioDitherMethod { fn into_glib(self) -> ffi::GstAudioDitherMethod {
match self { match self {
AudioDitherMethod::None => ffi::GST_AUDIO_DITHER_NONE, Self::None => ffi::GST_AUDIO_DITHER_NONE,
AudioDitherMethod::Rpdf => ffi::GST_AUDIO_DITHER_RPDF, Self::Rpdf => ffi::GST_AUDIO_DITHER_RPDF,
AudioDitherMethod::Tpdf => ffi::GST_AUDIO_DITHER_TPDF, Self::Tpdf => ffi::GST_AUDIO_DITHER_TPDF,
AudioDitherMethod::TpdfHf => ffi::GST_AUDIO_DITHER_TPDF_HF, Self::TpdfHf => ffi::GST_AUDIO_DITHER_TPDF_HF,
AudioDitherMethod::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -244,11 +232,11 @@ impl FromGlib<ffi::GstAudioDitherMethod> for AudioDitherMethod {
unsafe fn from_glib(value: ffi::GstAudioDitherMethod) -> Self { unsafe fn from_glib(value: ffi::GstAudioDitherMethod) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AudioDitherMethod::None, 0 => Self::None,
1 => AudioDitherMethod::Rpdf, 1 => Self::Rpdf,
2 => AudioDitherMethod::Tpdf, 2 => Self::Tpdf,
3 => AudioDitherMethod::TpdfHf, 3 => Self::TpdfHf,
value => AudioDitherMethod::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -274,7 +262,7 @@ unsafe impl<'a> FromValue<'a> for AudioDitherMethod {
impl ToValue for AudioDitherMethod { impl ToValue for AudioDitherMethod {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioDitherMethod>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -379,39 +367,39 @@ impl IntoGlib for AudioFormat {
fn into_glib(self) -> ffi::GstAudioFormat { fn into_glib(self) -> ffi::GstAudioFormat {
match self { match self {
AudioFormat::Unknown => ffi::GST_AUDIO_FORMAT_UNKNOWN, Self::Unknown => ffi::GST_AUDIO_FORMAT_UNKNOWN,
AudioFormat::Encoded => ffi::GST_AUDIO_FORMAT_ENCODED, Self::Encoded => ffi::GST_AUDIO_FORMAT_ENCODED,
AudioFormat::S8 => ffi::GST_AUDIO_FORMAT_S8, Self::S8 => ffi::GST_AUDIO_FORMAT_S8,
AudioFormat::U8 => ffi::GST_AUDIO_FORMAT_U8, Self::U8 => ffi::GST_AUDIO_FORMAT_U8,
AudioFormat::S16le => ffi::GST_AUDIO_FORMAT_S16LE, Self::S16le => ffi::GST_AUDIO_FORMAT_S16LE,
AudioFormat::S16be => ffi::GST_AUDIO_FORMAT_S16BE, Self::S16be => ffi::GST_AUDIO_FORMAT_S16BE,
AudioFormat::U16le => ffi::GST_AUDIO_FORMAT_U16LE, Self::U16le => ffi::GST_AUDIO_FORMAT_U16LE,
AudioFormat::U16be => ffi::GST_AUDIO_FORMAT_U16BE, Self::U16be => ffi::GST_AUDIO_FORMAT_U16BE,
AudioFormat::S2432le => ffi::GST_AUDIO_FORMAT_S24_32LE, Self::S2432le => ffi::GST_AUDIO_FORMAT_S24_32LE,
AudioFormat::S2432be => ffi::GST_AUDIO_FORMAT_S24_32BE, Self::S2432be => ffi::GST_AUDIO_FORMAT_S24_32BE,
AudioFormat::U2432le => ffi::GST_AUDIO_FORMAT_U24_32LE, Self::U2432le => ffi::GST_AUDIO_FORMAT_U24_32LE,
AudioFormat::U2432be => ffi::GST_AUDIO_FORMAT_U24_32BE, Self::U2432be => ffi::GST_AUDIO_FORMAT_U24_32BE,
AudioFormat::S32le => ffi::GST_AUDIO_FORMAT_S32LE, Self::S32le => ffi::GST_AUDIO_FORMAT_S32LE,
AudioFormat::S32be => ffi::GST_AUDIO_FORMAT_S32BE, Self::S32be => ffi::GST_AUDIO_FORMAT_S32BE,
AudioFormat::U32le => ffi::GST_AUDIO_FORMAT_U32LE, Self::U32le => ffi::GST_AUDIO_FORMAT_U32LE,
AudioFormat::U32be => ffi::GST_AUDIO_FORMAT_U32BE, Self::U32be => ffi::GST_AUDIO_FORMAT_U32BE,
AudioFormat::S24le => ffi::GST_AUDIO_FORMAT_S24LE, Self::S24le => ffi::GST_AUDIO_FORMAT_S24LE,
AudioFormat::S24be => ffi::GST_AUDIO_FORMAT_S24BE, Self::S24be => ffi::GST_AUDIO_FORMAT_S24BE,
AudioFormat::U24le => ffi::GST_AUDIO_FORMAT_U24LE, Self::U24le => ffi::GST_AUDIO_FORMAT_U24LE,
AudioFormat::U24be => ffi::GST_AUDIO_FORMAT_U24BE, Self::U24be => ffi::GST_AUDIO_FORMAT_U24BE,
AudioFormat::S20le => ffi::GST_AUDIO_FORMAT_S20LE, Self::S20le => ffi::GST_AUDIO_FORMAT_S20LE,
AudioFormat::S20be => ffi::GST_AUDIO_FORMAT_S20BE, Self::S20be => ffi::GST_AUDIO_FORMAT_S20BE,
AudioFormat::U20le => ffi::GST_AUDIO_FORMAT_U20LE, Self::U20le => ffi::GST_AUDIO_FORMAT_U20LE,
AudioFormat::U20be => ffi::GST_AUDIO_FORMAT_U20BE, Self::U20be => ffi::GST_AUDIO_FORMAT_U20BE,
AudioFormat::S18le => ffi::GST_AUDIO_FORMAT_S18LE, Self::S18le => ffi::GST_AUDIO_FORMAT_S18LE,
AudioFormat::S18be => ffi::GST_AUDIO_FORMAT_S18BE, Self::S18be => ffi::GST_AUDIO_FORMAT_S18BE,
AudioFormat::U18le => ffi::GST_AUDIO_FORMAT_U18LE, Self::U18le => ffi::GST_AUDIO_FORMAT_U18LE,
AudioFormat::U18be => ffi::GST_AUDIO_FORMAT_U18BE, Self::U18be => ffi::GST_AUDIO_FORMAT_U18BE,
AudioFormat::F32le => ffi::GST_AUDIO_FORMAT_F32LE, Self::F32le => ffi::GST_AUDIO_FORMAT_F32LE,
AudioFormat::F32be => ffi::GST_AUDIO_FORMAT_F32BE, Self::F32be => ffi::GST_AUDIO_FORMAT_F32BE,
AudioFormat::F64le => ffi::GST_AUDIO_FORMAT_F64LE, Self::F64le => ffi::GST_AUDIO_FORMAT_F64LE,
AudioFormat::F64be => ffi::GST_AUDIO_FORMAT_F64BE, Self::F64be => ffi::GST_AUDIO_FORMAT_F64BE,
AudioFormat::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -421,39 +409,39 @@ impl FromGlib<ffi::GstAudioFormat> for AudioFormat {
unsafe fn from_glib(value: ffi::GstAudioFormat) -> Self { unsafe fn from_glib(value: ffi::GstAudioFormat) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AudioFormat::Unknown, 0 => Self::Unknown,
1 => AudioFormat::Encoded, 1 => Self::Encoded,
2 => AudioFormat::S8, 2 => Self::S8,
3 => AudioFormat::U8, 3 => Self::U8,
4 => AudioFormat::S16le, 4 => Self::S16le,
5 => AudioFormat::S16be, 5 => Self::S16be,
6 => AudioFormat::U16le, 6 => Self::U16le,
7 => AudioFormat::U16be, 7 => Self::U16be,
8 => AudioFormat::S2432le, 8 => Self::S2432le,
9 => AudioFormat::S2432be, 9 => Self::S2432be,
10 => AudioFormat::U2432le, 10 => Self::U2432le,
11 => AudioFormat::U2432be, 11 => Self::U2432be,
12 => AudioFormat::S32le, 12 => Self::S32le,
13 => AudioFormat::S32be, 13 => Self::S32be,
14 => AudioFormat::U32le, 14 => Self::U32le,
15 => AudioFormat::U32be, 15 => Self::U32be,
16 => AudioFormat::S24le, 16 => Self::S24le,
17 => AudioFormat::S24be, 17 => Self::S24be,
18 => AudioFormat::U24le, 18 => Self::U24le,
19 => AudioFormat::U24be, 19 => Self::U24be,
20 => AudioFormat::S20le, 20 => Self::S20le,
21 => AudioFormat::S20be, 21 => Self::S20be,
22 => AudioFormat::U20le, 22 => Self::U20le,
23 => AudioFormat::U20be, 23 => Self::U20be,
24 => AudioFormat::S18le, 24 => Self::S18le,
25 => AudioFormat::S18be, 25 => Self::S18be,
26 => AudioFormat::U18le, 26 => Self::U18le,
27 => AudioFormat::U18be, 27 => Self::U18be,
28 => AudioFormat::F32le, 28 => Self::F32le,
29 => AudioFormat::F32be, 29 => Self::F32be,
30 => AudioFormat::F64le, 30 => Self::F64le,
31 => AudioFormat::F64be, 31 => Self::F64be,
value => AudioFormat::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -479,7 +467,7 @@ unsafe impl<'a> FromValue<'a> for AudioFormat {
impl ToValue for AudioFormat { impl ToValue for AudioFormat {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioFormat>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -509,9 +497,9 @@ impl IntoGlib for AudioLayout {
fn into_glib(self) -> ffi::GstAudioLayout { fn into_glib(self) -> ffi::GstAudioLayout {
match self { match self {
AudioLayout::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED, Self::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED,
AudioLayout::NonInterleaved => ffi::GST_AUDIO_LAYOUT_NON_INTERLEAVED, Self::NonInterleaved => ffi::GST_AUDIO_LAYOUT_NON_INTERLEAVED,
AudioLayout::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -521,9 +509,9 @@ impl FromGlib<ffi::GstAudioLayout> for AudioLayout {
unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self { unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AudioLayout::Interleaved, 0 => Self::Interleaved,
1 => AudioLayout::NonInterleaved, 1 => Self::NonInterleaved,
value => AudioLayout::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -549,7 +537,7 @@ unsafe impl<'a> FromValue<'a> for AudioLayout {
impl ToValue for AudioLayout { impl ToValue for AudioLayout {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioLayout>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -585,12 +573,12 @@ impl IntoGlib for AudioNoiseShapingMethod {
fn into_glib(self) -> ffi::GstAudioNoiseShapingMethod { fn into_glib(self) -> ffi::GstAudioNoiseShapingMethod {
match self { match self {
AudioNoiseShapingMethod::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE, Self::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE,
AudioNoiseShapingMethod::ErrorFeedback => ffi::GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK, Self::ErrorFeedback => ffi::GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK,
AudioNoiseShapingMethod::Simple => ffi::GST_AUDIO_NOISE_SHAPING_SIMPLE, Self::Simple => ffi::GST_AUDIO_NOISE_SHAPING_SIMPLE,
AudioNoiseShapingMethod::Medium => ffi::GST_AUDIO_NOISE_SHAPING_MEDIUM, Self::Medium => ffi::GST_AUDIO_NOISE_SHAPING_MEDIUM,
AudioNoiseShapingMethod::High => ffi::GST_AUDIO_NOISE_SHAPING_HIGH, Self::High => ffi::GST_AUDIO_NOISE_SHAPING_HIGH,
AudioNoiseShapingMethod::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -600,12 +588,12 @@ impl FromGlib<ffi::GstAudioNoiseShapingMethod> for AudioNoiseShapingMethod {
unsafe fn from_glib(value: ffi::GstAudioNoiseShapingMethod) -> Self { unsafe fn from_glib(value: ffi::GstAudioNoiseShapingMethod) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AudioNoiseShapingMethod::None, 0 => Self::None,
1 => AudioNoiseShapingMethod::ErrorFeedback, 1 => Self::ErrorFeedback,
2 => AudioNoiseShapingMethod::Simple, 2 => Self::Simple,
3 => AudioNoiseShapingMethod::Medium, 3 => Self::Medium,
4 => AudioNoiseShapingMethod::High, 4 => Self::High,
value => AudioNoiseShapingMethod::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -631,7 +619,7 @@ unsafe impl<'a> FromValue<'a> for AudioNoiseShapingMethod {
impl ToValue for AudioNoiseShapingMethod { impl ToValue for AudioNoiseShapingMethod {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioNoiseShapingMethod>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -671,14 +659,12 @@ impl IntoGlib for AudioResamplerMethod {
fn into_glib(self) -> ffi::GstAudioResamplerMethod { fn into_glib(self) -> ffi::GstAudioResamplerMethod {
match self { match self {
AudioResamplerMethod::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST, Self::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST,
AudioResamplerMethod::Linear => ffi::GST_AUDIO_RESAMPLER_METHOD_LINEAR, Self::Linear => ffi::GST_AUDIO_RESAMPLER_METHOD_LINEAR,
AudioResamplerMethod::Cubic => ffi::GST_AUDIO_RESAMPLER_METHOD_CUBIC, Self::Cubic => ffi::GST_AUDIO_RESAMPLER_METHOD_CUBIC,
AudioResamplerMethod::BlackmanNuttall => { Self::BlackmanNuttall => ffi::GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL,
ffi::GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL Self::Kaiser => ffi::GST_AUDIO_RESAMPLER_METHOD_KAISER,
} Self::__Unknown(value) => value,
AudioResamplerMethod::Kaiser => ffi::GST_AUDIO_RESAMPLER_METHOD_KAISER,
AudioResamplerMethod::__Unknown(value) => value,
} }
} }
} }
@ -690,12 +676,12 @@ impl FromGlib<ffi::GstAudioResamplerMethod> for AudioResamplerMethod {
unsafe fn from_glib(value: ffi::GstAudioResamplerMethod) -> Self { unsafe fn from_glib(value: ffi::GstAudioResamplerMethod) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AudioResamplerMethod::Nearest, 0 => Self::Nearest,
1 => AudioResamplerMethod::Linear, 1 => Self::Linear,
2 => AudioResamplerMethod::Cubic, 2 => Self::Cubic,
3 => AudioResamplerMethod::BlackmanNuttall, 3 => Self::BlackmanNuttall,
4 => AudioResamplerMethod::Kaiser, 4 => Self::Kaiser,
value => AudioResamplerMethod::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -729,7 +715,7 @@ unsafe impl<'a> FromValue<'a> for AudioResamplerMethod {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
impl ToValue for AudioResamplerMethod { impl ToValue for AudioResamplerMethod {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioResamplerMethod>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -791,29 +777,25 @@ impl IntoGlib for AudioRingBufferFormatType {
fn into_glib(self) -> ffi::GstAudioRingBufferFormatType { fn into_glib(self) -> ffi::GstAudioRingBufferFormatType {
match self { match self {
AudioRingBufferFormatType::Raw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW, Self::Raw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW,
AudioRingBufferFormatType::MuLaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW, Self::MuLaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW,
AudioRingBufferFormatType::ALaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW, Self::ALaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW,
AudioRingBufferFormatType::ImaAdpcm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM, Self::ImaAdpcm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM,
AudioRingBufferFormatType::Mpeg => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG, Self::Mpeg => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG,
AudioRingBufferFormatType::Gsm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM, Self::Gsm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM,
AudioRingBufferFormatType::Iec958 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958, Self::Iec958 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958,
AudioRingBufferFormatType::Ac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3, Self::Ac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3,
AudioRingBufferFormatType::Eac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3, Self::Eac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3,
AudioRingBufferFormatType::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS, Self::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS,
AudioRingBufferFormatType::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC, Self::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC,
AudioRingBufferFormatType::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC, Self::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
AudioRingBufferFormatType::Mpeg2AacRaw => { Self::Mpeg2AacRaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW,
ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW
}
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
AudioRingBufferFormatType::Mpeg4AacRaw => { Self::Mpeg4AacRaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW,
ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW
}
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
AudioRingBufferFormatType::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC, Self::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC,
AudioRingBufferFormatType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -823,25 +805,25 @@ impl FromGlib<ffi::GstAudioRingBufferFormatType> for AudioRingBufferFormatType {
unsafe fn from_glib(value: ffi::GstAudioRingBufferFormatType) -> Self { unsafe fn from_glib(value: ffi::GstAudioRingBufferFormatType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AudioRingBufferFormatType::Raw, 0 => Self::Raw,
1 => AudioRingBufferFormatType::MuLaw, 1 => Self::MuLaw,
2 => AudioRingBufferFormatType::ALaw, 2 => Self::ALaw,
3 => AudioRingBufferFormatType::ImaAdpcm, 3 => Self::ImaAdpcm,
4 => AudioRingBufferFormatType::Mpeg, 4 => Self::Mpeg,
5 => AudioRingBufferFormatType::Gsm, 5 => Self::Gsm,
6 => AudioRingBufferFormatType::Iec958, 6 => Self::Iec958,
7 => AudioRingBufferFormatType::Ac3, 7 => Self::Ac3,
8 => AudioRingBufferFormatType::Eac3, 8 => Self::Eac3,
9 => AudioRingBufferFormatType::Dts, 9 => Self::Dts,
10 => AudioRingBufferFormatType::Mpeg2Aac, 10 => Self::Mpeg2Aac,
11 => AudioRingBufferFormatType::Mpeg4Aac, 11 => Self::Mpeg4Aac,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
12 => AudioRingBufferFormatType::Mpeg2AacRaw, 12 => Self::Mpeg2AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
13 => AudioRingBufferFormatType::Mpeg4AacRaw, 13 => Self::Mpeg4AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", feature = "dox"))]
14 => AudioRingBufferFormatType::Flac, 14 => Self::Flac,
value => AudioRingBufferFormatType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -867,7 +849,7 @@ unsafe impl<'a> FromValue<'a> for AudioRingBufferFormatType {
impl ToValue for AudioRingBufferFormatType { impl ToValue for AudioRingBufferFormatType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioRingBufferFormatType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -899,10 +881,10 @@ impl IntoGlib for StreamVolumeFormat {
fn into_glib(self) -> ffi::GstStreamVolumeFormat { fn into_glib(self) -> ffi::GstStreamVolumeFormat {
match self { match self {
StreamVolumeFormat::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR, Self::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR,
StreamVolumeFormat::Cubic => ffi::GST_STREAM_VOLUME_FORMAT_CUBIC, Self::Cubic => ffi::GST_STREAM_VOLUME_FORMAT_CUBIC,
StreamVolumeFormat::Db => ffi::GST_STREAM_VOLUME_FORMAT_DB, Self::Db => ffi::GST_STREAM_VOLUME_FORMAT_DB,
StreamVolumeFormat::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -912,10 +894,10 @@ impl FromGlib<ffi::GstStreamVolumeFormat> for StreamVolumeFormat {
unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self { unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => StreamVolumeFormat::Linear, 0 => Self::Linear,
1 => StreamVolumeFormat::Cubic, 1 => Self::Cubic,
2 => StreamVolumeFormat::Db, 2 => Self::Db,
value => StreamVolumeFormat::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }

View file

@ -27,9 +27,9 @@ impl IntoGlib for AudioFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioFlags> for AudioFlags { impl FromGlib<ffi::GstAudioFlags> for AudioFlags {
unsafe fn from_glib(value: ffi::GstAudioFlags) -> AudioFlags { unsafe fn from_glib(value: ffi::GstAudioFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
AudioFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -54,7 +54,7 @@ unsafe impl<'a> FromValue<'a> for AudioFlags {
impl ToValue for AudioFlags { impl ToValue for AudioFlags {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioFlags>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }
@ -87,9 +87,9 @@ impl IntoGlib for AudioFormatFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioFormatFlags> for AudioFormatFlags { impl FromGlib<ffi::GstAudioFormatFlags> for AudioFormatFlags {
unsafe fn from_glib(value: ffi::GstAudioFormatFlags) -> AudioFormatFlags { unsafe fn from_glib(value: ffi::GstAudioFormatFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
AudioFormatFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -114,7 +114,7 @@ unsafe impl<'a> FromValue<'a> for AudioFormatFlags {
impl ToValue for AudioFormatFlags { impl ToValue for AudioFormatFlags {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioFormatFlags>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }
@ -143,9 +143,9 @@ impl IntoGlib for AudioPackFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAudioPackFlags> for AudioPackFlags { impl FromGlib<ffi::GstAudioPackFlags> for AudioPackFlags {
unsafe fn from_glib(value: ffi::GstAudioPackFlags) -> AudioPackFlags { unsafe fn from_glib(value: ffi::GstAudioPackFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
AudioPackFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -170,7 +170,7 @@ unsafe impl<'a> FromValue<'a> for AudioPackFlags {
impl ToValue for AudioPackFlags { impl ToValue for AudioPackFlags {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AudioPackFlags>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -43,10 +43,10 @@ impl IntoGlib for AggregatorStartTimeSelection {
fn into_glib(self) -> ffi::GstAggregatorStartTimeSelection { fn into_glib(self) -> ffi::GstAggregatorStartTimeSelection {
match self { match self {
AggregatorStartTimeSelection::Zero => ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO, Self::Zero => ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO,
AggregatorStartTimeSelection::First => ffi::GST_AGGREGATOR_START_TIME_SELECTION_FIRST, Self::First => ffi::GST_AGGREGATOR_START_TIME_SELECTION_FIRST,
AggregatorStartTimeSelection::Set => ffi::GST_AGGREGATOR_START_TIME_SELECTION_SET, Self::Set => ffi::GST_AGGREGATOR_START_TIME_SELECTION_SET,
AggregatorStartTimeSelection::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -58,10 +58,10 @@ impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelec
unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => AggregatorStartTimeSelection::Zero, 0 => Self::Zero,
1 => AggregatorStartTimeSelection::First, 1 => Self::First,
2 => AggregatorStartTimeSelection::Set, 2 => Self::Set,
value => AggregatorStartTimeSelection::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -95,7 +95,7 @@ unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl ToValue for AggregatorStartTimeSelection { impl ToValue for AggregatorStartTimeSelection {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<AggregatorStartTimeSelection>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -27,8 +27,8 @@ impl IntoGlib for BaseParseFrameFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstBaseParseFrameFlags> for BaseParseFrameFlags { impl FromGlib<ffi::GstBaseParseFrameFlags> for BaseParseFrameFlags {
unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> BaseParseFrameFlags { unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
BaseParseFrameFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -31,11 +31,11 @@ impl IntoGlib for InterpolationMode {
fn into_glib(self) -> ffi::GstInterpolationMode { fn into_glib(self) -> ffi::GstInterpolationMode {
match self { match self {
InterpolationMode::None => ffi::GST_INTERPOLATION_MODE_NONE, Self::None => ffi::GST_INTERPOLATION_MODE_NONE,
InterpolationMode::Linear => ffi::GST_INTERPOLATION_MODE_LINEAR, Self::Linear => ffi::GST_INTERPOLATION_MODE_LINEAR,
InterpolationMode::Cubic => ffi::GST_INTERPOLATION_MODE_CUBIC, Self::Cubic => ffi::GST_INTERPOLATION_MODE_CUBIC,
InterpolationMode::CubicMonotonic => ffi::GST_INTERPOLATION_MODE_CUBIC_MONOTONIC, Self::CubicMonotonic => ffi::GST_INTERPOLATION_MODE_CUBIC_MONOTONIC,
InterpolationMode::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -45,11 +45,11 @@ impl FromGlib<ffi::GstInterpolationMode> for InterpolationMode {
unsafe fn from_glib(value: ffi::GstInterpolationMode) -> Self { unsafe fn from_glib(value: ffi::GstInterpolationMode) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => InterpolationMode::None, 0 => Self::None,
1 => InterpolationMode::Linear, 1 => Self::Linear,
2 => InterpolationMode::Cubic, 2 => Self::Cubic,
3 => InterpolationMode::CubicMonotonic, 3 => Self::CubicMonotonic,
value => InterpolationMode::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -75,7 +75,7 @@ unsafe impl<'a> FromValue<'a> for InterpolationMode {
impl ToValue for InterpolationMode { impl ToValue for InterpolationMode {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<InterpolationMode>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -111,12 +111,12 @@ impl IntoGlib for LFOWaveform {
fn into_glib(self) -> ffi::GstLFOWaveform { fn into_glib(self) -> ffi::GstLFOWaveform {
match self { match self {
LFOWaveform::Sine => ffi::GST_LFO_WAVEFORM_SINE, Self::Sine => ffi::GST_LFO_WAVEFORM_SINE,
LFOWaveform::Square => ffi::GST_LFO_WAVEFORM_SQUARE, Self::Square => ffi::GST_LFO_WAVEFORM_SQUARE,
LFOWaveform::Saw => ffi::GST_LFO_WAVEFORM_SAW, Self::Saw => ffi::GST_LFO_WAVEFORM_SAW,
LFOWaveform::ReverseSaw => ffi::GST_LFO_WAVEFORM_REVERSE_SAW, Self::ReverseSaw => ffi::GST_LFO_WAVEFORM_REVERSE_SAW,
LFOWaveform::Triangle => ffi::GST_LFO_WAVEFORM_TRIANGLE, Self::Triangle => ffi::GST_LFO_WAVEFORM_TRIANGLE,
LFOWaveform::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -126,12 +126,12 @@ impl FromGlib<ffi::GstLFOWaveform> for LFOWaveform {
unsafe fn from_glib(value: ffi::GstLFOWaveform) -> Self { unsafe fn from_glib(value: ffi::GstLFOWaveform) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => LFOWaveform::Sine, 0 => Self::Sine,
1 => LFOWaveform::Square, 1 => Self::Square,
2 => LFOWaveform::Saw, 2 => Self::Saw,
3 => LFOWaveform::ReverseSaw, 3 => Self::ReverseSaw,
4 => LFOWaveform::Triangle, 4 => Self::Triangle,
value => LFOWaveform::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -157,7 +157,7 @@ unsafe impl<'a> FromValue<'a> for LFOWaveform {
impl ToValue for LFOWaveform { impl ToValue for LFOWaveform {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<LFOWaveform>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -60,10 +60,10 @@ impl IntoGlib for Edge {
fn into_glib(self) -> ffi::GESEdge { fn into_glib(self) -> ffi::GESEdge {
match self { match self {
Edge::Start => ffi::GES_EDGE_START, Self::Start => ffi::GES_EDGE_START,
Edge::End => ffi::GES_EDGE_END, Self::End => ffi::GES_EDGE_END,
Edge::None => ffi::GES_EDGE_NONE, Self::None => ffi::GES_EDGE_NONE,
Edge::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -73,10 +73,10 @@ impl FromGlib<ffi::GESEdge> for Edge {
unsafe fn from_glib(value: ffi::GESEdge) -> Self { unsafe fn from_glib(value: ffi::GESEdge) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => Edge::Start, 0 => Self::Start,
1 => Edge::End, 1 => Self::End,
2 => Edge::None, 2 => Self::None,
value => Edge::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -102,7 +102,7 @@ unsafe impl<'a> FromValue<'a> for Edge {
impl ToValue for Edge { impl ToValue for Edge {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<Edge>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -163,12 +163,12 @@ impl IntoGlib for EditMode {
fn into_glib(self) -> ffi::GESEditMode { fn into_glib(self) -> ffi::GESEditMode {
match self { match self {
EditMode::Normal => ffi::GES_EDIT_MODE_NORMAL, Self::Normal => ffi::GES_EDIT_MODE_NORMAL,
EditMode::Ripple => ffi::GES_EDIT_MODE_RIPPLE, Self::Ripple => ffi::GES_EDIT_MODE_RIPPLE,
EditMode::Roll => ffi::GES_EDIT_MODE_ROLL, Self::Roll => ffi::GES_EDIT_MODE_ROLL,
EditMode::Trim => ffi::GES_EDIT_MODE_TRIM, Self::Trim => ffi::GES_EDIT_MODE_TRIM,
EditMode::Slide => ffi::GES_EDIT_MODE_SLIDE, Self::Slide => ffi::GES_EDIT_MODE_SLIDE,
EditMode::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -178,12 +178,12 @@ impl FromGlib<ffi::GESEditMode> for EditMode {
unsafe fn from_glib(value: ffi::GESEditMode) -> Self { unsafe fn from_glib(value: ffi::GESEditMode) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => EditMode::Normal, 0 => Self::Normal,
1 => EditMode::Ripple, 1 => Self::Ripple,
2 => EditMode::Roll, 2 => Self::Roll,
3 => EditMode::Trim, 3 => Self::Trim,
4 => EditMode::Slide, 4 => Self::Slide,
value => EditMode::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -209,7 +209,7 @@ unsafe impl<'a> FromValue<'a> for EditMode {
impl ToValue for EditMode { impl ToValue for EditMode {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<EditMode>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -379,201 +379,79 @@ impl IntoGlib for VideoStandardTransitionType {
fn into_glib(self) -> ffi::GESVideoStandardTransitionType { fn into_glib(self) -> ffi::GESVideoStandardTransitionType {
match self { match self {
VideoStandardTransitionType::None => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE, Self::None => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE,
VideoStandardTransitionType::BarWipeLr => { Self::BarWipeLr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_LR,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_LR Self::BarWipeTb => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_TB,
} Self::BoxWipeTl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TL,
VideoStandardTransitionType::BarWipeTb => { Self::BoxWipeTr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TR,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_TB Self::BoxWipeBr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BR,
} Self::BoxWipeBl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BL,
VideoStandardTransitionType::BoxWipeTl => { Self::FourBoxWipeCi => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CI,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TL Self::FourBoxWipeCo => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CO,
} Self::BarndoorV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_V,
VideoStandardTransitionType::BoxWipeTr => { Self::BarndoorH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_H,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TR Self::BoxWipeTc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TC,
} Self::BoxWipeRc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_RC,
VideoStandardTransitionType::BoxWipeBr => { Self::BoxWipeBc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BC,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BR Self::BoxWipeLc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_LC,
} Self::DiagonalTl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TL,
VideoStandardTransitionType::BoxWipeBl => { Self::DiagonalTr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TR,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BL Self::BowtieV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_V,
} Self::BowtieH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_H,
VideoStandardTransitionType::FourBoxWipeCi => { Self::BarndoorDbl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DBL,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CI Self::BarndoorDtl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DTL,
} Self::MiscDiagonalDbd => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DBD,
VideoStandardTransitionType::FourBoxWipeCo => { Self::MiscDiagonalDd => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DD,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CO Self::VeeD => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_D,
} Self::VeeL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_L,
VideoStandardTransitionType::BarndoorV => { Self::VeeU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_U,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_V Self::VeeR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_R,
} Self::BarnveeD => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_D,
VideoStandardTransitionType::BarndoorH => { Self::BarnveeL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_L,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_H Self::BarnveeU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_U,
} Self::BarnveeR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_R,
VideoStandardTransitionType::BoxWipeTc => { Self::IrisRect => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_IRIS_RECT,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TC Self::ClockCw12 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW12,
} Self::ClockCw3 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW3,
VideoStandardTransitionType::BoxWipeRc => { Self::ClockCw6 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW6,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_RC Self::ClockCw9 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW9,
} Self::PinwheelTbv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBV,
VideoStandardTransitionType::BoxWipeBc => { Self::PinwheelTbh => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBH,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BC Self::PinwheelFb => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_FB,
} Self::FanCt => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CT,
VideoStandardTransitionType::BoxWipeLc => { Self::FanCr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CR,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_LC Self::DoublefanFov => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOV,
} Self::DoublefanFoh => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOH,
VideoStandardTransitionType::DiagonalTl => { Self::SinglesweepCwt => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWT,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TL Self::SinglesweepCwr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWR,
} Self::SinglesweepCwb => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWB,
VideoStandardTransitionType::DiagonalTr => { Self::SinglesweepCwl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWL,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TR Self::DoublesweepPv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PV,
} Self::DoublesweepPd => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PD,
VideoStandardTransitionType::BowtieV => { Self::DoublesweepOv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OV,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_V Self::DoublesweepOh => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OH,
} Self::FanT => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_T,
VideoStandardTransitionType::BowtieH => { Self::FanR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_R,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_H Self::FanB => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_B,
} Self::FanL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_L,
VideoStandardTransitionType::BarndoorDbl => { Self::DoublefanFiv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIV,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DBL Self::DoublefanFih => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIH,
} Self::SinglesweepCwtl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTL,
VideoStandardTransitionType::BarndoorDtl => { Self::SinglesweepCwbl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBL,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DTL Self::SinglesweepCwbr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBR,
} Self::SinglesweepCwtr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTR,
VideoStandardTransitionType::MiscDiagonalDbd => { Self::DoublesweepPdtl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDTL,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DBD Self::DoublesweepPdbl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDBL,
} Self::SaloondoorT => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_T,
VideoStandardTransitionType::MiscDiagonalDd => { Self::SaloondoorL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_L,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DD Self::SaloondoorB => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_B,
} Self::SaloondoorR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_R,
VideoStandardTransitionType::VeeD => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_D, Self::WindshieldR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_R,
VideoStandardTransitionType::VeeL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_L, Self::WindshieldU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_U,
VideoStandardTransitionType::VeeU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_U, Self::WindshieldV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V,
VideoStandardTransitionType::VeeR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_R, Self::WindshieldH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H,
VideoStandardTransitionType::BarnveeD => { Self::Crossfade => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE,
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_D Self::__Unknown(value) => value,
}
VideoStandardTransitionType::BarnveeL => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_L
}
VideoStandardTransitionType::BarnveeU => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_U
}
VideoStandardTransitionType::BarnveeR => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_R
}
VideoStandardTransitionType::IrisRect => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_IRIS_RECT
}
VideoStandardTransitionType::ClockCw12 => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW12
}
VideoStandardTransitionType::ClockCw3 => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW3
}
VideoStandardTransitionType::ClockCw6 => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW6
}
VideoStandardTransitionType::ClockCw9 => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW9
}
VideoStandardTransitionType::PinwheelTbv => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBV
}
VideoStandardTransitionType::PinwheelTbh => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBH
}
VideoStandardTransitionType::PinwheelFb => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_FB
}
VideoStandardTransitionType::FanCt => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CT,
VideoStandardTransitionType::FanCr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CR,
VideoStandardTransitionType::DoublefanFov => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOV
}
VideoStandardTransitionType::DoublefanFoh => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOH
}
VideoStandardTransitionType::SinglesweepCwt => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWT
}
VideoStandardTransitionType::SinglesweepCwr => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWR
}
VideoStandardTransitionType::SinglesweepCwb => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWB
}
VideoStandardTransitionType::SinglesweepCwl => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWL
}
VideoStandardTransitionType::DoublesweepPv => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PV
}
VideoStandardTransitionType::DoublesweepPd => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PD
}
VideoStandardTransitionType::DoublesweepOv => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OV
}
VideoStandardTransitionType::DoublesweepOh => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OH
}
VideoStandardTransitionType::FanT => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_T,
VideoStandardTransitionType::FanR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_R,
VideoStandardTransitionType::FanB => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_B,
VideoStandardTransitionType::FanL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_L,
VideoStandardTransitionType::DoublefanFiv => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIV
}
VideoStandardTransitionType::DoublefanFih => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIH
}
VideoStandardTransitionType::SinglesweepCwtl => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTL
}
VideoStandardTransitionType::SinglesweepCwbl => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBL
}
VideoStandardTransitionType::SinglesweepCwbr => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBR
}
VideoStandardTransitionType::SinglesweepCwtr => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTR
}
VideoStandardTransitionType::DoublesweepPdtl => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDTL
}
VideoStandardTransitionType::DoublesweepPdbl => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDBL
}
VideoStandardTransitionType::SaloondoorT => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_T
}
VideoStandardTransitionType::SaloondoorL => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_L
}
VideoStandardTransitionType::SaloondoorB => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_B
}
VideoStandardTransitionType::SaloondoorR => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_R
}
VideoStandardTransitionType::WindshieldR => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_R
}
VideoStandardTransitionType::WindshieldU => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_U
}
VideoStandardTransitionType::WindshieldV => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V
}
VideoStandardTransitionType::WindshieldH => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H
}
VideoStandardTransitionType::Crossfade => {
ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE
}
VideoStandardTransitionType::__Unknown(value) => value,
} }
} }
} }
@ -583,79 +461,79 @@ impl FromGlib<ffi::GESVideoStandardTransitionType> for VideoStandardTransitionTy
unsafe fn from_glib(value: ffi::GESVideoStandardTransitionType) -> Self { unsafe fn from_glib(value: ffi::GESVideoStandardTransitionType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => VideoStandardTransitionType::None, 0 => Self::None,
1 => VideoStandardTransitionType::BarWipeLr, 1 => Self::BarWipeLr,
2 => VideoStandardTransitionType::BarWipeTb, 2 => Self::BarWipeTb,
3 => VideoStandardTransitionType::BoxWipeTl, 3 => Self::BoxWipeTl,
4 => VideoStandardTransitionType::BoxWipeTr, 4 => Self::BoxWipeTr,
5 => VideoStandardTransitionType::BoxWipeBr, 5 => Self::BoxWipeBr,
6 => VideoStandardTransitionType::BoxWipeBl, 6 => Self::BoxWipeBl,
7 => VideoStandardTransitionType::FourBoxWipeCi, 7 => Self::FourBoxWipeCi,
8 => VideoStandardTransitionType::FourBoxWipeCo, 8 => Self::FourBoxWipeCo,
21 => VideoStandardTransitionType::BarndoorV, 21 => Self::BarndoorV,
22 => VideoStandardTransitionType::BarndoorH, 22 => Self::BarndoorH,
23 => VideoStandardTransitionType::BoxWipeTc, 23 => Self::BoxWipeTc,
24 => VideoStandardTransitionType::BoxWipeRc, 24 => Self::BoxWipeRc,
25 => VideoStandardTransitionType::BoxWipeBc, 25 => Self::BoxWipeBc,
26 => VideoStandardTransitionType::BoxWipeLc, 26 => Self::BoxWipeLc,
41 => VideoStandardTransitionType::DiagonalTl, 41 => Self::DiagonalTl,
42 => VideoStandardTransitionType::DiagonalTr, 42 => Self::DiagonalTr,
43 => VideoStandardTransitionType::BowtieV, 43 => Self::BowtieV,
44 => VideoStandardTransitionType::BowtieH, 44 => Self::BowtieH,
45 => VideoStandardTransitionType::BarndoorDbl, 45 => Self::BarndoorDbl,
46 => VideoStandardTransitionType::BarndoorDtl, 46 => Self::BarndoorDtl,
47 => VideoStandardTransitionType::MiscDiagonalDbd, 47 => Self::MiscDiagonalDbd,
48 => VideoStandardTransitionType::MiscDiagonalDd, 48 => Self::MiscDiagonalDd,
61 => VideoStandardTransitionType::VeeD, 61 => Self::VeeD,
62 => VideoStandardTransitionType::VeeL, 62 => Self::VeeL,
63 => VideoStandardTransitionType::VeeU, 63 => Self::VeeU,
64 => VideoStandardTransitionType::VeeR, 64 => Self::VeeR,
65 => VideoStandardTransitionType::BarnveeD, 65 => Self::BarnveeD,
66 => VideoStandardTransitionType::BarnveeL, 66 => Self::BarnveeL,
67 => VideoStandardTransitionType::BarnveeU, 67 => Self::BarnveeU,
68 => VideoStandardTransitionType::BarnveeR, 68 => Self::BarnveeR,
101 => VideoStandardTransitionType::IrisRect, 101 => Self::IrisRect,
201 => VideoStandardTransitionType::ClockCw12, 201 => Self::ClockCw12,
202 => VideoStandardTransitionType::ClockCw3, 202 => Self::ClockCw3,
203 => VideoStandardTransitionType::ClockCw6, 203 => Self::ClockCw6,
204 => VideoStandardTransitionType::ClockCw9, 204 => Self::ClockCw9,
205 => VideoStandardTransitionType::PinwheelTbv, 205 => Self::PinwheelTbv,
206 => VideoStandardTransitionType::PinwheelTbh, 206 => Self::PinwheelTbh,
207 => VideoStandardTransitionType::PinwheelFb, 207 => Self::PinwheelFb,
211 => VideoStandardTransitionType::FanCt, 211 => Self::FanCt,
212 => VideoStandardTransitionType::FanCr, 212 => Self::FanCr,
213 => VideoStandardTransitionType::DoublefanFov, 213 => Self::DoublefanFov,
214 => VideoStandardTransitionType::DoublefanFoh, 214 => Self::DoublefanFoh,
221 => VideoStandardTransitionType::SinglesweepCwt, 221 => Self::SinglesweepCwt,
222 => VideoStandardTransitionType::SinglesweepCwr, 222 => Self::SinglesweepCwr,
223 => VideoStandardTransitionType::SinglesweepCwb, 223 => Self::SinglesweepCwb,
224 => VideoStandardTransitionType::SinglesweepCwl, 224 => Self::SinglesweepCwl,
225 => VideoStandardTransitionType::DoublesweepPv, 225 => Self::DoublesweepPv,
226 => VideoStandardTransitionType::DoublesweepPd, 226 => Self::DoublesweepPd,
227 => VideoStandardTransitionType::DoublesweepOv, 227 => Self::DoublesweepOv,
228 => VideoStandardTransitionType::DoublesweepOh, 228 => Self::DoublesweepOh,
231 => VideoStandardTransitionType::FanT, 231 => Self::FanT,
232 => VideoStandardTransitionType::FanR, 232 => Self::FanR,
233 => VideoStandardTransitionType::FanB, 233 => Self::FanB,
234 => VideoStandardTransitionType::FanL, 234 => Self::FanL,
235 => VideoStandardTransitionType::DoublefanFiv, 235 => Self::DoublefanFiv,
236 => VideoStandardTransitionType::DoublefanFih, 236 => Self::DoublefanFih,
241 => VideoStandardTransitionType::SinglesweepCwtl, 241 => Self::SinglesweepCwtl,
242 => VideoStandardTransitionType::SinglesweepCwbl, 242 => Self::SinglesweepCwbl,
243 => VideoStandardTransitionType::SinglesweepCwbr, 243 => Self::SinglesweepCwbr,
244 => VideoStandardTransitionType::SinglesweepCwtr, 244 => Self::SinglesweepCwtr,
245 => VideoStandardTransitionType::DoublesweepPdtl, 245 => Self::DoublesweepPdtl,
246 => VideoStandardTransitionType::DoublesweepPdbl, 246 => Self::DoublesweepPdbl,
251 => VideoStandardTransitionType::SaloondoorT, 251 => Self::SaloondoorT,
252 => VideoStandardTransitionType::SaloondoorL, 252 => Self::SaloondoorL,
253 => VideoStandardTransitionType::SaloondoorB, 253 => Self::SaloondoorB,
254 => VideoStandardTransitionType::SaloondoorR, 254 => Self::SaloondoorR,
261 => VideoStandardTransitionType::WindshieldR, 261 => Self::WindshieldR,
262 => VideoStandardTransitionType::WindshieldU, 262 => Self::WindshieldU,
263 => VideoStandardTransitionType::WindshieldV, 263 => Self::WindshieldV,
264 => VideoStandardTransitionType::WindshieldH, 264 => Self::WindshieldH,
512 => VideoStandardTransitionType::Crossfade, 512 => Self::Crossfade,
value => VideoStandardTransitionType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -681,7 +559,7 @@ unsafe impl<'a> FromValue<'a> for VideoStandardTransitionType {
impl ToValue for VideoStandardTransitionType { impl ToValue for VideoStandardTransitionType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<VideoStandardTransitionType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -33,9 +33,9 @@ impl IntoGlib for PipelineFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESPipelineFlags> for PipelineFlags { impl FromGlib<ffi::GESPipelineFlags> for PipelineFlags {
unsafe fn from_glib(value: ffi::GESPipelineFlags) -> PipelineFlags { unsafe fn from_glib(value: ffi::GESPipelineFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
PipelineFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -60,7 +60,7 @@ unsafe impl<'a> FromValue<'a> for PipelineFlags {
impl ToValue for PipelineFlags { impl ToValue for PipelineFlags {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<PipelineFlags>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }
@ -114,9 +114,9 @@ impl IntoGlib for TrackType {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GESTrackType> for TrackType { impl FromGlib<ffi::GESTrackType> for TrackType {
unsafe fn from_glib(value: ffi::GESTrackType) -> TrackType { unsafe fn from_glib(value: ffi::GESTrackType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
TrackType::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -141,7 +141,7 @@ unsafe impl<'a> FromValue<'a> for TrackType {
impl ToValue for TrackType { impl ToValue for TrackType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<TrackType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -41,13 +41,13 @@ impl IntoGlib for GLContextError {
fn into_glib(self) -> ffi::GstGLContextError { fn into_glib(self) -> ffi::GstGLContextError {
match self { match self {
GLContextError::Failed => ffi::GST_GL_CONTEXT_ERROR_FAILED, Self::Failed => ffi::GST_GL_CONTEXT_ERROR_FAILED,
GLContextError::WrongConfig => ffi::GST_GL_CONTEXT_ERROR_WRONG_CONFIG, Self::WrongConfig => ffi::GST_GL_CONTEXT_ERROR_WRONG_CONFIG,
GLContextError::WrongApi => ffi::GST_GL_CONTEXT_ERROR_WRONG_API, Self::WrongApi => ffi::GST_GL_CONTEXT_ERROR_WRONG_API,
GLContextError::OldLibs => ffi::GST_GL_CONTEXT_ERROR_OLD_LIBS, Self::OldLibs => ffi::GST_GL_CONTEXT_ERROR_OLD_LIBS,
GLContextError::CreateContext => ffi::GST_GL_CONTEXT_ERROR_CREATE_CONTEXT, Self::CreateContext => ffi::GST_GL_CONTEXT_ERROR_CREATE_CONTEXT,
GLContextError::ResourceUnavailable => ffi::GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE, Self::ResourceUnavailable => ffi::GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE,
GLContextError::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -57,13 +57,13 @@ impl FromGlib<ffi::GstGLContextError> for GLContextError {
unsafe fn from_glib(value: ffi::GstGLContextError) -> Self { unsafe fn from_glib(value: ffi::GstGLContextError) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => GLContextError::Failed, 0 => Self::Failed,
1 => GLContextError::WrongConfig, 1 => Self::WrongConfig,
2 => GLContextError::WrongApi, 2 => Self::WrongApi,
3 => GLContextError::OldLibs, 3 => Self::OldLibs,
4 => GLContextError::CreateContext, 4 => Self::CreateContext,
5 => GLContextError::ResourceUnavailable, 5 => Self::ResourceUnavailable,
value => GLContextError::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -82,13 +82,13 @@ impl ErrorDomain for GLContextError {
fn from(code: i32) -> Option<Self> { fn from(code: i32) -> Option<Self> {
skip_assert_initialized!(); skip_assert_initialized!();
match code { match code {
0 => Some(GLContextError::Failed), 0 => Some(Self::Failed),
1 => Some(GLContextError::WrongConfig), 1 => Some(Self::WrongConfig),
2 => Some(GLContextError::WrongApi), 2 => Some(Self::WrongApi),
3 => Some(GLContextError::OldLibs), 3 => Some(Self::OldLibs),
4 => Some(GLContextError::CreateContext), 4 => Some(Self::CreateContext),
5 => Some(GLContextError::ResourceUnavailable), 5 => Some(Self::ResourceUnavailable),
_ => Some(GLContextError::Failed), _ => Some(Self::Failed),
} }
} }
} }
@ -114,7 +114,7 @@ unsafe impl<'a> FromValue<'a> for GLContextError {
impl ToValue for GLContextError { impl ToValue for GLContextError {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLContextError>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -234,26 +234,26 @@ impl IntoGlib for GLFormat {
fn into_glib(self) -> ffi::GstGLFormat { fn into_glib(self) -> ffi::GstGLFormat {
match self { match self {
GLFormat::Luminance => ffi::GST_GL_LUMINANCE, Self::Luminance => ffi::GST_GL_LUMINANCE,
GLFormat::Alpha => ffi::GST_GL_ALPHA, Self::Alpha => ffi::GST_GL_ALPHA,
GLFormat::LuminanceAlpha => ffi::GST_GL_LUMINANCE_ALPHA, Self::LuminanceAlpha => ffi::GST_GL_LUMINANCE_ALPHA,
GLFormat::Red => ffi::GST_GL_RED, Self::Red => ffi::GST_GL_RED,
GLFormat::R8 => ffi::GST_GL_R8, Self::R8 => ffi::GST_GL_R8,
GLFormat::Rg => ffi::GST_GL_RG, Self::Rg => ffi::GST_GL_RG,
GLFormat::Rg8 => ffi::GST_GL_RG8, Self::Rg8 => ffi::GST_GL_RG8,
GLFormat::Rgb => ffi::GST_GL_RGB, Self::Rgb => ffi::GST_GL_RGB,
GLFormat::Rgb8 => ffi::GST_GL_RGB8, Self::Rgb8 => ffi::GST_GL_RGB8,
GLFormat::Rgb565 => ffi::GST_GL_RGB565, Self::Rgb565 => ffi::GST_GL_RGB565,
GLFormat::Rgb16 => ffi::GST_GL_RGB16, Self::Rgb16 => ffi::GST_GL_RGB16,
GLFormat::Rgba => ffi::GST_GL_RGBA, Self::Rgba => ffi::GST_GL_RGBA,
GLFormat::Rgba8 => ffi::GST_GL_RGBA8, Self::Rgba8 => ffi::GST_GL_RGBA8,
GLFormat::Rgba16 => ffi::GST_GL_RGBA16, Self::Rgba16 => ffi::GST_GL_RGBA16,
GLFormat::DepthComponent16 => ffi::GST_GL_DEPTH_COMPONENT16, Self::DepthComponent16 => ffi::GST_GL_DEPTH_COMPONENT16,
GLFormat::Depth24Stencil8 => ffi::GST_GL_DEPTH24_STENCIL8, Self::Depth24Stencil8 => ffi::GST_GL_DEPTH24_STENCIL8,
GLFormat::Rgb10A2 => ffi::GST_GL_RGB10_A2, Self::Rgb10A2 => ffi::GST_GL_RGB10_A2,
GLFormat::R16 => ffi::GST_GL_R16, Self::R16 => ffi::GST_GL_R16,
GLFormat::Rg16 => ffi::GST_GL_RG16, Self::Rg16 => ffi::GST_GL_RG16,
GLFormat::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -263,26 +263,26 @@ impl FromGlib<ffi::GstGLFormat> for GLFormat {
unsafe fn from_glib(value: ffi::GstGLFormat) -> Self { unsafe fn from_glib(value: ffi::GstGLFormat) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
6409 => GLFormat::Luminance, 6409 => Self::Luminance,
6406 => GLFormat::Alpha, 6406 => Self::Alpha,
6410 => GLFormat::LuminanceAlpha, 6410 => Self::LuminanceAlpha,
6403 => GLFormat::Red, 6403 => Self::Red,
33321 => GLFormat::R8, 33321 => Self::R8,
33319 => GLFormat::Rg, 33319 => Self::Rg,
33323 => GLFormat::Rg8, 33323 => Self::Rg8,
6407 => GLFormat::Rgb, 6407 => Self::Rgb,
32849 => GLFormat::Rgb8, 32849 => Self::Rgb8,
36194 => GLFormat::Rgb565, 36194 => Self::Rgb565,
32852 => GLFormat::Rgb16, 32852 => Self::Rgb16,
6408 => GLFormat::Rgba, 6408 => Self::Rgba,
32856 => GLFormat::Rgba8, 32856 => Self::Rgba8,
32859 => GLFormat::Rgba16, 32859 => Self::Rgba16,
33189 => GLFormat::DepthComponent16, 33189 => Self::DepthComponent16,
35056 => GLFormat::Depth24Stencil8, 35056 => Self::Depth24Stencil8,
32857 => GLFormat::Rgb10A2, 32857 => Self::Rgb10A2,
33322 => GLFormat::R16, 33322 => Self::R16,
33324 => GLFormat::Rg16, 33324 => Self::Rg16,
value => GLFormat::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -308,7 +308,7 @@ unsafe impl<'a> FromValue<'a> for GLFormat {
impl ToValue for GLFormat { impl ToValue for GLFormat {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLFormat>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -340,10 +340,10 @@ impl IntoGlib for GLQueryType {
fn into_glib(self) -> ffi::GstGLQueryType { fn into_glib(self) -> ffi::GstGLQueryType {
match self { match self {
GLQueryType::None => ffi::GST_GL_QUERY_NONE, Self::None => ffi::GST_GL_QUERY_NONE,
GLQueryType::TimeElapsed => ffi::GST_GL_QUERY_TIME_ELAPSED, Self::TimeElapsed => ffi::GST_GL_QUERY_TIME_ELAPSED,
GLQueryType::Timestamp => ffi::GST_GL_QUERY_TIMESTAMP, Self::Timestamp => ffi::GST_GL_QUERY_TIMESTAMP,
GLQueryType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -353,10 +353,10 @@ impl FromGlib<ffi::GstGLQueryType> for GLQueryType {
unsafe fn from_glib(value: ffi::GstGLQueryType) -> Self { unsafe fn from_glib(value: ffi::GstGLQueryType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => GLQueryType::None, 0 => Self::None,
1 => GLQueryType::TimeElapsed, 1 => Self::TimeElapsed,
2 => GLQueryType::Timestamp, 2 => Self::Timestamp,
value => GLQueryType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -382,7 +382,7 @@ unsafe impl<'a> FromValue<'a> for GLQueryType {
impl ToValue for GLQueryType { impl ToValue for GLQueryType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLQueryType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -414,10 +414,10 @@ impl IntoGlib for GLSLError {
fn into_glib(self) -> ffi::GstGLSLError { fn into_glib(self) -> ffi::GstGLSLError {
match self { match self {
GLSLError::Compile => ffi::GST_GLSL_ERROR_COMPILE, Self::Compile => ffi::GST_GLSL_ERROR_COMPILE,
GLSLError::Link => ffi::GST_GLSL_ERROR_LINK, Self::Link => ffi::GST_GLSL_ERROR_LINK,
GLSLError::Program => ffi::GST_GLSL_ERROR_PROGRAM, Self::Program => ffi::GST_GLSL_ERROR_PROGRAM,
GLSLError::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -427,10 +427,10 @@ impl FromGlib<ffi::GstGLSLError> for GLSLError {
unsafe fn from_glib(value: ffi::GstGLSLError) -> Self { unsafe fn from_glib(value: ffi::GstGLSLError) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => GLSLError::Compile, 0 => Self::Compile,
1 => GLSLError::Link, 1 => Self::Link,
2 => GLSLError::Program, 2 => Self::Program,
value => GLSLError::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -449,10 +449,10 @@ impl ErrorDomain for GLSLError {
fn from(code: i32) -> Option<Self> { fn from(code: i32) -> Option<Self> {
skip_assert_initialized!(); skip_assert_initialized!();
match code { match code {
0 => Some(GLSLError::Compile), 0 => Some(Self::Compile),
1 => Some(GLSLError::Link), 1 => Some(Self::Link),
2 => Some(GLSLError::Program), 2 => Some(Self::Program),
value => Some(GLSLError::__Unknown(value)), value => Some(Self::__Unknown(value)),
} }
} }
} }
@ -478,7 +478,7 @@ unsafe impl<'a> FromValue<'a> for GLSLError {
impl ToValue for GLSLError { impl ToValue for GLSLError {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLSLError>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -584,24 +584,24 @@ impl IntoGlib for GLSLVersion {
fn into_glib(self) -> ffi::GstGLSLVersion { fn into_glib(self) -> ffi::GstGLSLVersion {
match self { match self {
GLSLVersion::None => ffi::GST_GLSL_VERSION_NONE, Self::None => ffi::GST_GLSL_VERSION_NONE,
GLSLVersion::_100 => ffi::GST_GLSL_VERSION_100, Self::_100 => ffi::GST_GLSL_VERSION_100,
GLSLVersion::_110 => ffi::GST_GLSL_VERSION_110, Self::_110 => ffi::GST_GLSL_VERSION_110,
GLSLVersion::_120 => ffi::GST_GLSL_VERSION_120, Self::_120 => ffi::GST_GLSL_VERSION_120,
GLSLVersion::_130 => ffi::GST_GLSL_VERSION_130, Self::_130 => ffi::GST_GLSL_VERSION_130,
GLSLVersion::_140 => ffi::GST_GLSL_VERSION_140, Self::_140 => ffi::GST_GLSL_VERSION_140,
GLSLVersion::_150 => ffi::GST_GLSL_VERSION_150, Self::_150 => ffi::GST_GLSL_VERSION_150,
GLSLVersion::_300 => ffi::GST_GLSL_VERSION_300, Self::_300 => ffi::GST_GLSL_VERSION_300,
GLSLVersion::_310 => ffi::GST_GLSL_VERSION_310, Self::_310 => ffi::GST_GLSL_VERSION_310,
GLSLVersion::_320 => ffi::GST_GLSL_VERSION_320, Self::_320 => ffi::GST_GLSL_VERSION_320,
GLSLVersion::_330 => ffi::GST_GLSL_VERSION_330, Self::_330 => ffi::GST_GLSL_VERSION_330,
GLSLVersion::_400 => ffi::GST_GLSL_VERSION_400, Self::_400 => ffi::GST_GLSL_VERSION_400,
GLSLVersion::_410 => ffi::GST_GLSL_VERSION_410, Self::_410 => ffi::GST_GLSL_VERSION_410,
GLSLVersion::_420 => ffi::GST_GLSL_VERSION_420, Self::_420 => ffi::GST_GLSL_VERSION_420,
GLSLVersion::_430 => ffi::GST_GLSL_VERSION_430, Self::_430 => ffi::GST_GLSL_VERSION_430,
GLSLVersion::_440 => ffi::GST_GLSL_VERSION_440, Self::_440 => ffi::GST_GLSL_VERSION_440,
GLSLVersion::_450 => ffi::GST_GLSL_VERSION_450, Self::_450 => ffi::GST_GLSL_VERSION_450,
GLSLVersion::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -611,24 +611,24 @@ impl FromGlib<ffi::GstGLSLVersion> for GLSLVersion {
unsafe fn from_glib(value: ffi::GstGLSLVersion) -> Self { unsafe fn from_glib(value: ffi::GstGLSLVersion) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => GLSLVersion::None, 0 => Self::None,
100 => GLSLVersion::_100, 100 => Self::_100,
110 => GLSLVersion::_110, 110 => Self::_110,
120 => GLSLVersion::_120, 120 => Self::_120,
130 => GLSLVersion::_130, 130 => Self::_130,
140 => GLSLVersion::_140, 140 => Self::_140,
150 => GLSLVersion::_150, 150 => Self::_150,
300 => GLSLVersion::_300, 300 => Self::_300,
310 => GLSLVersion::_310, 310 => Self::_310,
320 => GLSLVersion::_320, 320 => Self::_320,
330 => GLSLVersion::_330, 330 => Self::_330,
400 => GLSLVersion::_400, 400 => Self::_400,
410 => GLSLVersion::_410, 410 => Self::_410,
420 => GLSLVersion::_420, 420 => Self::_420,
430 => GLSLVersion::_430, 430 => Self::_430,
440 => GLSLVersion::_440, 440 => Self::_440,
450 => GLSLVersion::_450, 450 => Self::_450,
value => GLSLVersion::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -654,7 +654,7 @@ unsafe impl<'a> FromValue<'a> for GLSLVersion {
impl ToValue for GLSLVersion { impl ToValue for GLSLVersion {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLSLVersion>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -686,14 +686,10 @@ impl IntoGlib for GLStereoDownmix {
fn into_glib(self) -> ffi::GstGLStereoDownmix { fn into_glib(self) -> ffi::GstGLStereoDownmix {
match self { match self {
GLStereoDownmix::GreenMagentaDubois => { Self::GreenMagentaDubois => ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_GREEN_MAGENTA_DUBOIS,
ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_GREEN_MAGENTA_DUBOIS Self::RedCyanDubois => ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_RED_CYAN_DUBOIS,
} Self::AmberBlueDubois => ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_AMBER_BLUE_DUBOIS,
GLStereoDownmix::RedCyanDubois => ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_RED_CYAN_DUBOIS, Self::__Unknown(value) => value,
GLStereoDownmix::AmberBlueDubois => {
ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_AMBER_BLUE_DUBOIS
}
GLStereoDownmix::__Unknown(value) => value,
} }
} }
} }
@ -703,10 +699,10 @@ impl FromGlib<ffi::GstGLStereoDownmix> for GLStereoDownmix {
unsafe fn from_glib(value: ffi::GstGLStereoDownmix) -> Self { unsafe fn from_glib(value: ffi::GstGLStereoDownmix) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => GLStereoDownmix::GreenMagentaDubois, 0 => Self::GreenMagentaDubois,
1 => GLStereoDownmix::RedCyanDubois, 1 => Self::RedCyanDubois,
2 => GLStereoDownmix::AmberBlueDubois, 2 => Self::AmberBlueDubois,
value => GLStereoDownmix::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -732,7 +728,7 @@ unsafe impl<'a> FromValue<'a> for GLStereoDownmix {
impl ToValue for GLStereoDownmix { impl ToValue for GLStereoDownmix {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLStereoDownmix>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -802,11 +798,11 @@ impl IntoGlib for GLTextureTarget {
fn into_glib(self) -> ffi::GstGLTextureTarget { fn into_glib(self) -> ffi::GstGLTextureTarget {
match self { match self {
GLTextureTarget::None => ffi::GST_GL_TEXTURE_TARGET_NONE, Self::None => ffi::GST_GL_TEXTURE_TARGET_NONE,
GLTextureTarget::_2d => ffi::GST_GL_TEXTURE_TARGET_2D, Self::_2d => ffi::GST_GL_TEXTURE_TARGET_2D,
GLTextureTarget::Rectangle => ffi::GST_GL_TEXTURE_TARGET_RECTANGLE, Self::Rectangle => ffi::GST_GL_TEXTURE_TARGET_RECTANGLE,
GLTextureTarget::ExternalOes => ffi::GST_GL_TEXTURE_TARGET_EXTERNAL_OES, Self::ExternalOes => ffi::GST_GL_TEXTURE_TARGET_EXTERNAL_OES,
GLTextureTarget::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -816,11 +812,11 @@ impl FromGlib<ffi::GstGLTextureTarget> for GLTextureTarget {
unsafe fn from_glib(value: ffi::GstGLTextureTarget) -> Self { unsafe fn from_glib(value: ffi::GstGLTextureTarget) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => GLTextureTarget::None, 0 => Self::None,
1 => GLTextureTarget::_2d, 1 => Self::_2d,
2 => GLTextureTarget::Rectangle, 2 => Self::Rectangle,
3 => GLTextureTarget::ExternalOes, 3 => Self::ExternalOes,
value => GLTextureTarget::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -846,7 +842,7 @@ unsafe impl<'a> FromValue<'a> for GLTextureTarget {
impl ToValue for GLTextureTarget { impl ToValue for GLTextureTarget {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLTextureTarget>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -882,12 +878,12 @@ impl IntoGlib for GLUploadReturn {
fn into_glib(self) -> ffi::GstGLUploadReturn { fn into_glib(self) -> ffi::GstGLUploadReturn {
match self { match self {
GLUploadReturn::Done => ffi::GST_GL_UPLOAD_DONE, Self::Done => ffi::GST_GL_UPLOAD_DONE,
GLUploadReturn::Error => ffi::GST_GL_UPLOAD_ERROR, Self::Error => ffi::GST_GL_UPLOAD_ERROR,
GLUploadReturn::Unsupported => ffi::GST_GL_UPLOAD_UNSUPPORTED, Self::Unsupported => ffi::GST_GL_UPLOAD_UNSUPPORTED,
GLUploadReturn::Reconfigure => ffi::GST_GL_UPLOAD_RECONFIGURE, Self::Reconfigure => ffi::GST_GL_UPLOAD_RECONFIGURE,
GLUploadReturn::UnsharedGlContext => ffi::GST_GL_UPLOAD_UNSHARED_GL_CONTEXT, Self::UnsharedGlContext => ffi::GST_GL_UPLOAD_UNSHARED_GL_CONTEXT,
GLUploadReturn::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -897,12 +893,12 @@ impl FromGlib<ffi::GstGLUploadReturn> for GLUploadReturn {
unsafe fn from_glib(value: ffi::GstGLUploadReturn) -> Self { unsafe fn from_glib(value: ffi::GstGLUploadReturn) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
1 => GLUploadReturn::Done, 1 => Self::Done,
-1 => GLUploadReturn::Error, -1 => Self::Error,
-2 => GLUploadReturn::Unsupported, -2 => Self::Unsupported,
-3 => GLUploadReturn::Reconfigure, -3 => Self::Reconfigure,
-100 => GLUploadReturn::UnsharedGlContext, -100 => Self::UnsharedGlContext,
value => GLUploadReturn::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -928,7 +924,7 @@ unsafe impl<'a> FromValue<'a> for GLUploadReturn {
impl ToValue for GLUploadReturn { impl ToValue for GLUploadReturn {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLUploadReturn>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -960,10 +956,10 @@ impl IntoGlib for GLWindowError {
fn into_glib(self) -> ffi::GstGLWindowError { fn into_glib(self) -> ffi::GstGLWindowError {
match self { match self {
GLWindowError::Failed => ffi::GST_GL_WINDOW_ERROR_FAILED, Self::Failed => ffi::GST_GL_WINDOW_ERROR_FAILED,
GLWindowError::OldLibs => ffi::GST_GL_WINDOW_ERROR_OLD_LIBS, Self::OldLibs => ffi::GST_GL_WINDOW_ERROR_OLD_LIBS,
GLWindowError::ResourceUnavailable => ffi::GST_GL_WINDOW_ERROR_RESOURCE_UNAVAILABLE, Self::ResourceUnavailable => ffi::GST_GL_WINDOW_ERROR_RESOURCE_UNAVAILABLE,
GLWindowError::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -973,10 +969,10 @@ impl FromGlib<ffi::GstGLWindowError> for GLWindowError {
unsafe fn from_glib(value: ffi::GstGLWindowError) -> Self { unsafe fn from_glib(value: ffi::GstGLWindowError) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => GLWindowError::Failed, 0 => Self::Failed,
1 => GLWindowError::OldLibs, 1 => Self::OldLibs,
2 => GLWindowError::ResourceUnavailable, 2 => Self::ResourceUnavailable,
value => GLWindowError::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -995,10 +991,10 @@ impl ErrorDomain for GLWindowError {
fn from(code: i32) -> Option<Self> { fn from(code: i32) -> Option<Self> {
skip_assert_initialized!(); skip_assert_initialized!();
match code { match code {
0 => Some(GLWindowError::Failed), 0 => Some(Self::Failed),
1 => Some(GLWindowError::OldLibs), 1 => Some(Self::OldLibs),
2 => Some(GLWindowError::ResourceUnavailable), 2 => Some(Self::ResourceUnavailable),
_ => Some(GLWindowError::Failed), _ => Some(Self::Failed),
} }
} }
} }
@ -1024,7 +1020,7 @@ unsafe impl<'a> FromValue<'a> for GLWindowError {
impl ToValue for GLWindowError { impl ToValue for GLWindowError {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLWindowError>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -52,9 +52,9 @@ impl IntoGlib for GLAPI {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstGLAPI> for GLAPI { impl FromGlib<ffi::GstGLAPI> for GLAPI {
unsafe fn from_glib(value: ffi::GstGLAPI) -> GLAPI { unsafe fn from_glib(value: ffi::GstGLAPI) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
GLAPI::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -79,7 +79,7 @@ unsafe impl<'a> FromValue<'a> for GLAPI {
impl ToValue for GLAPI { impl ToValue for GLAPI {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLAPI>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }
@ -118,9 +118,9 @@ impl IntoGlib for GLDisplayType {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstGLDisplayType> for GLDisplayType { impl FromGlib<ffi::GstGLDisplayType> for GLDisplayType {
unsafe fn from_glib(value: ffi::GstGLDisplayType) -> GLDisplayType { unsafe fn from_glib(value: ffi::GstGLDisplayType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
GLDisplayType::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -145,7 +145,7 @@ unsafe impl<'a> FromValue<'a> for GLDisplayType {
impl ToValue for GLDisplayType { impl ToValue for GLDisplayType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLDisplayType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }
@ -203,9 +203,9 @@ impl IntoGlib for GLPlatform {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstGLPlatform> for GLPlatform { impl FromGlib<ffi::GstGLPlatform> for GLPlatform {
unsafe fn from_glib(value: ffi::GstGLPlatform) -> GLPlatform { unsafe fn from_glib(value: ffi::GstGLPlatform) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
GLPlatform::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -230,7 +230,7 @@ unsafe impl<'a> FromValue<'a> for GLPlatform {
impl ToValue for GLPlatform { impl ToValue for GLPlatform {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLPlatform>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }
@ -275,9 +275,9 @@ impl IntoGlib for GLSLProfile {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstGLSLProfile> for GLSLProfile { impl FromGlib<ffi::GstGLSLProfile> for GLSLProfile {
unsafe fn from_glib(value: ffi::GstGLSLProfile) -> GLSLProfile { unsafe fn from_glib(value: ffi::GstGLSLProfile) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
GLSLProfile::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -302,7 +302,7 @@ unsafe impl<'a> FromValue<'a> for GLSLProfile {
impl ToValue for GLSLProfile { impl ToValue for GLSLProfile {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<GLSLProfile>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -35,13 +35,13 @@ impl IntoGlib for DiscovererResult {
fn into_glib(self) -> ffi::GstDiscovererResult { fn into_glib(self) -> ffi::GstDiscovererResult {
match self { match self {
DiscovererResult::Ok => ffi::GST_DISCOVERER_OK, Self::Ok => ffi::GST_DISCOVERER_OK,
DiscovererResult::UriInvalid => ffi::GST_DISCOVERER_URI_INVALID, Self::UriInvalid => ffi::GST_DISCOVERER_URI_INVALID,
DiscovererResult::Error => ffi::GST_DISCOVERER_ERROR, Self::Error => ffi::GST_DISCOVERER_ERROR,
DiscovererResult::Timeout => ffi::GST_DISCOVERER_TIMEOUT, Self::Timeout => ffi::GST_DISCOVERER_TIMEOUT,
DiscovererResult::Busy => ffi::GST_DISCOVERER_BUSY, Self::Busy => ffi::GST_DISCOVERER_BUSY,
DiscovererResult::MissingPlugins => ffi::GST_DISCOVERER_MISSING_PLUGINS, Self::MissingPlugins => ffi::GST_DISCOVERER_MISSING_PLUGINS,
DiscovererResult::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -51,13 +51,13 @@ impl FromGlib<ffi::GstDiscovererResult> for DiscovererResult {
unsafe fn from_glib(value: ffi::GstDiscovererResult) -> Self { unsafe fn from_glib(value: ffi::GstDiscovererResult) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => DiscovererResult::Ok, 0 => Self::Ok,
1 => DiscovererResult::UriInvalid, 1 => Self::UriInvalid,
2 => DiscovererResult::Error, 2 => Self::Error,
3 => DiscovererResult::Timeout, 3 => Self::Timeout,
4 => DiscovererResult::Busy, 4 => Self::Busy,
5 => DiscovererResult::MissingPlugins, 5 => Self::MissingPlugins,
value => DiscovererResult::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -83,7 +83,7 @@ unsafe impl<'a> FromValue<'a> for DiscovererResult {
impl ToValue for DiscovererResult { impl ToValue for DiscovererResult {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<DiscovererResult>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -29,9 +29,9 @@ impl IntoGlib for DiscovererSerializeFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstDiscovererSerializeFlags> for DiscovererSerializeFlags { impl FromGlib<ffi::GstDiscovererSerializeFlags> for DiscovererSerializeFlags {
unsafe fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> DiscovererSerializeFlags { unsafe fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
DiscovererSerializeFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -56,7 +56,7 @@ unsafe impl<'a> FromValue<'a> for DiscovererSerializeFlags {
impl ToValue for DiscovererSerializeFlags { impl ToValue for DiscovererSerializeFlags {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<DiscovererSerializeFlags>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -45,11 +45,11 @@ impl IntoGlib for PlayerColorBalanceType {
fn into_glib(self) -> ffi::GstPlayerColorBalanceType { fn into_glib(self) -> ffi::GstPlayerColorBalanceType {
match self { match self {
PlayerColorBalanceType::Hue => ffi::GST_PLAYER_COLOR_BALANCE_HUE, Self::Hue => ffi::GST_PLAYER_COLOR_BALANCE_HUE,
PlayerColorBalanceType::Brightness => ffi::GST_PLAYER_COLOR_BALANCE_BRIGHTNESS, Self::Brightness => ffi::GST_PLAYER_COLOR_BALANCE_BRIGHTNESS,
PlayerColorBalanceType::Saturation => ffi::GST_PLAYER_COLOR_BALANCE_SATURATION, Self::Saturation => ffi::GST_PLAYER_COLOR_BALANCE_SATURATION,
PlayerColorBalanceType::Contrast => ffi::GST_PLAYER_COLOR_BALANCE_CONTRAST, Self::Contrast => ffi::GST_PLAYER_COLOR_BALANCE_CONTRAST,
PlayerColorBalanceType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -59,11 +59,11 @@ impl FromGlib<ffi::GstPlayerColorBalanceType> for PlayerColorBalanceType {
unsafe fn from_glib(value: ffi::GstPlayerColorBalanceType) -> Self { unsafe fn from_glib(value: ffi::GstPlayerColorBalanceType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
3 => PlayerColorBalanceType::Hue, 3 => Self::Hue,
0 => PlayerColorBalanceType::Brightness, 0 => Self::Brightness,
2 => PlayerColorBalanceType::Saturation, 2 => Self::Saturation,
1 => PlayerColorBalanceType::Contrast, 1 => Self::Contrast,
value => PlayerColorBalanceType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -89,7 +89,7 @@ unsafe impl<'a> FromValue<'a> for PlayerColorBalanceType {
impl ToValue for PlayerColorBalanceType { impl ToValue for PlayerColorBalanceType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<PlayerColorBalanceType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -125,8 +125,8 @@ impl IntoGlib for PlayerError {
fn into_glib(self) -> ffi::GstPlayerError { fn into_glib(self) -> ffi::GstPlayerError {
match self { match self {
PlayerError::Failed => ffi::GST_PLAYER_ERROR_FAILED, Self::Failed => ffi::GST_PLAYER_ERROR_FAILED,
PlayerError::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -136,8 +136,8 @@ impl FromGlib<ffi::GstPlayerError> for PlayerError {
unsafe fn from_glib(value: ffi::GstPlayerError) -> Self { unsafe fn from_glib(value: ffi::GstPlayerError) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => PlayerError::Failed, 0 => Self::Failed,
value => PlayerError::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -156,8 +156,8 @@ impl ErrorDomain for PlayerError {
fn from(code: i32) -> Option<Self> { fn from(code: i32) -> Option<Self> {
skip_assert_initialized!(); skip_assert_initialized!();
match code { match code {
0 => Some(PlayerError::Failed), 0 => Some(Self::Failed),
_ => Some(PlayerError::Failed), _ => Some(Self::Failed),
} }
} }
} }
@ -183,7 +183,7 @@ unsafe impl<'a> FromValue<'a> for PlayerError {
impl ToValue for PlayerError { impl ToValue for PlayerError {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<PlayerError>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -219,12 +219,12 @@ impl IntoGlib for PlayerSnapshotFormat {
fn into_glib(self) -> ffi::GstPlayerSnapshotFormat { fn into_glib(self) -> ffi::GstPlayerSnapshotFormat {
match self { match self {
PlayerSnapshotFormat::RawNative => ffi::GST_PLAYER_THUMBNAIL_RAW_NATIVE, Self::RawNative => ffi::GST_PLAYER_THUMBNAIL_RAW_NATIVE,
PlayerSnapshotFormat::RawXrgb => ffi::GST_PLAYER_THUMBNAIL_RAW_xRGB, Self::RawXrgb => ffi::GST_PLAYER_THUMBNAIL_RAW_xRGB,
PlayerSnapshotFormat::RawBgrx => ffi::GST_PLAYER_THUMBNAIL_RAW_BGRx, Self::RawBgrx => ffi::GST_PLAYER_THUMBNAIL_RAW_BGRx,
PlayerSnapshotFormat::Jpg => ffi::GST_PLAYER_THUMBNAIL_JPG, Self::Jpg => ffi::GST_PLAYER_THUMBNAIL_JPG,
PlayerSnapshotFormat::Png => ffi::GST_PLAYER_THUMBNAIL_PNG, Self::Png => ffi::GST_PLAYER_THUMBNAIL_PNG,
PlayerSnapshotFormat::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -234,12 +234,12 @@ impl FromGlib<ffi::GstPlayerSnapshotFormat> for PlayerSnapshotFormat {
unsafe fn from_glib(value: ffi::GstPlayerSnapshotFormat) -> Self { unsafe fn from_glib(value: ffi::GstPlayerSnapshotFormat) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => PlayerSnapshotFormat::RawNative, 0 => Self::RawNative,
1 => PlayerSnapshotFormat::RawXrgb, 1 => Self::RawXrgb,
2 => PlayerSnapshotFormat::RawBgrx, 2 => Self::RawBgrx,
3 => PlayerSnapshotFormat::Jpg, 3 => Self::Jpg,
4 => PlayerSnapshotFormat::Png, 4 => Self::Png,
value => PlayerSnapshotFormat::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -274,11 +274,11 @@ impl IntoGlib for PlayerState {
fn into_glib(self) -> ffi::GstPlayerState { fn into_glib(self) -> ffi::GstPlayerState {
match self { match self {
PlayerState::Stopped => ffi::GST_PLAYER_STATE_STOPPED, Self::Stopped => ffi::GST_PLAYER_STATE_STOPPED,
PlayerState::Buffering => ffi::GST_PLAYER_STATE_BUFFERING, Self::Buffering => ffi::GST_PLAYER_STATE_BUFFERING,
PlayerState::Paused => ffi::GST_PLAYER_STATE_PAUSED, Self::Paused => ffi::GST_PLAYER_STATE_PAUSED,
PlayerState::Playing => ffi::GST_PLAYER_STATE_PLAYING, Self::Playing => ffi::GST_PLAYER_STATE_PLAYING,
PlayerState::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -288,11 +288,11 @@ impl FromGlib<ffi::GstPlayerState> for PlayerState {
unsafe fn from_glib(value: ffi::GstPlayerState) -> Self { unsafe fn from_glib(value: ffi::GstPlayerState) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => PlayerState::Stopped, 0 => Self::Stopped,
1 => PlayerState::Buffering, 1 => Self::Buffering,
2 => PlayerState::Paused, 2 => Self::Paused,
3 => PlayerState::Playing, 3 => Self::Playing,
value => PlayerState::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -318,7 +318,7 @@ unsafe impl<'a> FromValue<'a> for PlayerState {
impl ToValue for PlayerState { impl ToValue for PlayerState {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<PlayerState>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT
@ -21,7 +21,7 @@ struct Compiler {
} }
impl Compiler { impl Compiler {
pub fn new() -> Result<Compiler, Box<dyn Error>> { pub fn new() -> Result<Self, Box<dyn Error>> {
let mut args = get_var("CC", "cc")?; let mut args = get_var("CC", "cc")?;
args.push("-Wno-deprecated-declarations".to_owned()); args.push("-Wno-deprecated-declarations".to_owned());
// For _Generic // For _Generic
@ -31,7 +31,7 @@ impl Compiler {
args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CFLAGS", "")?);
args.extend(get_var("CPPFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?);
args.extend(pkg_config_cflags(PACKAGES)?); args.extend(pkg_config_cflags(PACKAGES)?);
Ok(Compiler { args }) Ok(Self { args })
} }
pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> { pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) // Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) // from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)
// DO NOT EDIT // DO NOT EDIT

View file

@ -41,16 +41,16 @@ impl IntoGlib for RTCPFBType {
fn into_glib(self) -> ffi::GstRTCPFBType { fn into_glib(self) -> ffi::GstRTCPFBType {
match self { match self {
RTCPFBType::FbTypeInvalid => ffi::GST_RTCP_FB_TYPE_INVALID, Self::FbTypeInvalid => ffi::GST_RTCP_FB_TYPE_INVALID,
RTCPFBType::RtpfbTypeNack => ffi::GST_RTCP_RTPFB_TYPE_NACK, Self::RtpfbTypeNack => ffi::GST_RTCP_RTPFB_TYPE_NACK,
RTCPFBType::RtpfbTypeTmmbr => ffi::GST_RTCP_RTPFB_TYPE_TMMBR, Self::RtpfbTypeTmmbr => ffi::GST_RTCP_RTPFB_TYPE_TMMBR,
RTCPFBType::RtpfbTypeTmmbn => ffi::GST_RTCP_RTPFB_TYPE_TMMBN, Self::RtpfbTypeTmmbn => ffi::GST_RTCP_RTPFB_TYPE_TMMBN,
RTCPFBType::RtpfbTypeRtcpSrReq => ffi::GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ, Self::RtpfbTypeRtcpSrReq => ffi::GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ,
RTCPFBType::RtpfbTypeTwcc => ffi::GST_RTCP_RTPFB_TYPE_TWCC, Self::RtpfbTypeTwcc => ffi::GST_RTCP_RTPFB_TYPE_TWCC,
RTCPFBType::PsfbTypeSli => ffi::GST_RTCP_PSFB_TYPE_SLI, Self::PsfbTypeSli => ffi::GST_RTCP_PSFB_TYPE_SLI,
RTCPFBType::PsfbTypeTstn => ffi::GST_RTCP_PSFB_TYPE_TSTN, Self::PsfbTypeTstn => ffi::GST_RTCP_PSFB_TYPE_TSTN,
RTCPFBType::PsfbTypeVbcn => ffi::GST_RTCP_PSFB_TYPE_VBCN, Self::PsfbTypeVbcn => ffi::GST_RTCP_PSFB_TYPE_VBCN,
RTCPFBType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -60,16 +60,16 @@ impl FromGlib<ffi::GstRTCPFBType> for RTCPFBType {
unsafe fn from_glib(value: ffi::GstRTCPFBType) -> Self { unsafe fn from_glib(value: ffi::GstRTCPFBType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => RTCPFBType::FbTypeInvalid, 0 => Self::FbTypeInvalid,
1 => RTCPFBType::RtpfbTypeNack, 1 => Self::RtpfbTypeNack,
3 => RTCPFBType::RtpfbTypeTmmbr, 3 => Self::RtpfbTypeTmmbr,
4 => RTCPFBType::RtpfbTypeTmmbn, 4 => Self::RtpfbTypeTmmbn,
5 => RTCPFBType::RtpfbTypeRtcpSrReq, 5 => Self::RtpfbTypeRtcpSrReq,
15 => RTCPFBType::RtpfbTypeTwcc, 15 => Self::RtpfbTypeTwcc,
2 => RTCPFBType::PsfbTypeSli, 2 => Self::PsfbTypeSli,
6 => RTCPFBType::PsfbTypeTstn, 6 => Self::PsfbTypeTstn,
7 => RTCPFBType::PsfbTypeVbcn, 7 => Self::PsfbTypeVbcn,
value => RTCPFBType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -95,7 +95,7 @@ unsafe impl<'a> FromValue<'a> for RTCPFBType {
impl ToValue for RTCPFBType { impl ToValue for RTCPFBType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTCPFBType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -141,17 +141,17 @@ impl IntoGlib for RTCPSDESType {
fn into_glib(self) -> ffi::GstRTCPSDESType { fn into_glib(self) -> ffi::GstRTCPSDESType {
match self { match self {
RTCPSDESType::Invalid => ffi::GST_RTCP_SDES_INVALID, Self::Invalid => ffi::GST_RTCP_SDES_INVALID,
RTCPSDESType::End => ffi::GST_RTCP_SDES_END, Self::End => ffi::GST_RTCP_SDES_END,
RTCPSDESType::Cname => ffi::GST_RTCP_SDES_CNAME, Self::Cname => ffi::GST_RTCP_SDES_CNAME,
RTCPSDESType::Name => ffi::GST_RTCP_SDES_NAME, Self::Name => ffi::GST_RTCP_SDES_NAME,
RTCPSDESType::Email => ffi::GST_RTCP_SDES_EMAIL, Self::Email => ffi::GST_RTCP_SDES_EMAIL,
RTCPSDESType::Phone => ffi::GST_RTCP_SDES_PHONE, Self::Phone => ffi::GST_RTCP_SDES_PHONE,
RTCPSDESType::Loc => ffi::GST_RTCP_SDES_LOC, Self::Loc => ffi::GST_RTCP_SDES_LOC,
RTCPSDESType::Tool => ffi::GST_RTCP_SDES_TOOL, Self::Tool => ffi::GST_RTCP_SDES_TOOL,
RTCPSDESType::Note => ffi::GST_RTCP_SDES_NOTE, Self::Note => ffi::GST_RTCP_SDES_NOTE,
RTCPSDESType::Priv => ffi::GST_RTCP_SDES_PRIV, Self::Priv => ffi::GST_RTCP_SDES_PRIV,
RTCPSDESType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -161,17 +161,17 @@ impl FromGlib<ffi::GstRTCPSDESType> for RTCPSDESType {
unsafe fn from_glib(value: ffi::GstRTCPSDESType) -> Self { unsafe fn from_glib(value: ffi::GstRTCPSDESType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
-1 => RTCPSDESType::Invalid, -1 => Self::Invalid,
0 => RTCPSDESType::End, 0 => Self::End,
1 => RTCPSDESType::Cname, 1 => Self::Cname,
2 => RTCPSDESType::Name, 2 => Self::Name,
3 => RTCPSDESType::Email, 3 => Self::Email,
4 => RTCPSDESType::Phone, 4 => Self::Phone,
5 => RTCPSDESType::Loc, 5 => Self::Loc,
6 => RTCPSDESType::Tool, 6 => Self::Tool,
7 => RTCPSDESType::Note, 7 => Self::Note,
8 => RTCPSDESType::Priv, 8 => Self::Priv,
value => RTCPSDESType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -197,7 +197,7 @@ unsafe impl<'a> FromValue<'a> for RTCPSDESType {
impl ToValue for RTCPSDESType { impl ToValue for RTCPSDESType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTCPSDESType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -241,16 +241,16 @@ impl IntoGlib for RTCPType {
fn into_glib(self) -> ffi::GstRTCPType { fn into_glib(self) -> ffi::GstRTCPType {
match self { match self {
RTCPType::Invalid => ffi::GST_RTCP_TYPE_INVALID, Self::Invalid => ffi::GST_RTCP_TYPE_INVALID,
RTCPType::Sr => ffi::GST_RTCP_TYPE_SR, Self::Sr => ffi::GST_RTCP_TYPE_SR,
RTCPType::Rr => ffi::GST_RTCP_TYPE_RR, Self::Rr => ffi::GST_RTCP_TYPE_RR,
RTCPType::Sdes => ffi::GST_RTCP_TYPE_SDES, Self::Sdes => ffi::GST_RTCP_TYPE_SDES,
RTCPType::Bye => ffi::GST_RTCP_TYPE_BYE, Self::Bye => ffi::GST_RTCP_TYPE_BYE,
RTCPType::App => ffi::GST_RTCP_TYPE_APP, Self::App => ffi::GST_RTCP_TYPE_APP,
RTCPType::Rtpfb => ffi::GST_RTCP_TYPE_RTPFB, Self::Rtpfb => ffi::GST_RTCP_TYPE_RTPFB,
RTCPType::Psfb => ffi::GST_RTCP_TYPE_PSFB, Self::Psfb => ffi::GST_RTCP_TYPE_PSFB,
RTCPType::Xr => ffi::GST_RTCP_TYPE_XR, Self::Xr => ffi::GST_RTCP_TYPE_XR,
RTCPType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -260,16 +260,16 @@ impl FromGlib<ffi::GstRTCPType> for RTCPType {
unsafe fn from_glib(value: ffi::GstRTCPType) -> Self { unsafe fn from_glib(value: ffi::GstRTCPType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => RTCPType::Invalid, 0 => Self::Invalid,
200 => RTCPType::Sr, 200 => Self::Sr,
201 => RTCPType::Rr, 201 => Self::Rr,
202 => RTCPType::Sdes, 202 => Self::Sdes,
203 => RTCPType::Bye, 203 => Self::Bye,
204 => RTCPType::App, 204 => Self::App,
205 => RTCPType::Rtpfb, 205 => Self::Rtpfb,
206 => RTCPType::Psfb, 206 => Self::Psfb,
207 => RTCPType::Xr, 207 => Self::Xr,
value => RTCPType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -295,7 +295,7 @@ unsafe impl<'a> FromValue<'a> for RTCPType {
impl ToValue for RTCPType { impl ToValue for RTCPType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTCPType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -341,15 +341,15 @@ impl IntoGlib for RTCPXRType {
fn into_glib(self) -> ffi::GstRTCPXRType { fn into_glib(self) -> ffi::GstRTCPXRType {
match self { match self {
RTCPXRType::Invalid => ffi::GST_RTCP_XR_TYPE_INVALID, Self::Invalid => ffi::GST_RTCP_XR_TYPE_INVALID,
RTCPXRType::Lrle => ffi::GST_RTCP_XR_TYPE_LRLE, Self::Lrle => ffi::GST_RTCP_XR_TYPE_LRLE,
RTCPXRType::Drle => ffi::GST_RTCP_XR_TYPE_DRLE, Self::Drle => ffi::GST_RTCP_XR_TYPE_DRLE,
RTCPXRType::Prt => ffi::GST_RTCP_XR_TYPE_PRT, Self::Prt => ffi::GST_RTCP_XR_TYPE_PRT,
RTCPXRType::Rrt => ffi::GST_RTCP_XR_TYPE_RRT, Self::Rrt => ffi::GST_RTCP_XR_TYPE_RRT,
RTCPXRType::Dlrr => ffi::GST_RTCP_XR_TYPE_DLRR, Self::Dlrr => ffi::GST_RTCP_XR_TYPE_DLRR,
RTCPXRType::Ssumm => ffi::GST_RTCP_XR_TYPE_SSUMM, Self::Ssumm => ffi::GST_RTCP_XR_TYPE_SSUMM,
RTCPXRType::VoipMetrics => ffi::GST_RTCP_XR_TYPE_VOIP_METRICS, Self::VoipMetrics => ffi::GST_RTCP_XR_TYPE_VOIP_METRICS,
RTCPXRType::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -361,15 +361,15 @@ impl FromGlib<ffi::GstRTCPXRType> for RTCPXRType {
unsafe fn from_glib(value: ffi::GstRTCPXRType) -> Self { unsafe fn from_glib(value: ffi::GstRTCPXRType) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
-1 => RTCPXRType::Invalid, -1 => Self::Invalid,
1 => RTCPXRType::Lrle, 1 => Self::Lrle,
2 => RTCPXRType::Drle, 2 => Self::Drle,
3 => RTCPXRType::Prt, 3 => Self::Prt,
4 => RTCPXRType::Rrt, 4 => Self::Rrt,
5 => RTCPXRType::Dlrr, 5 => Self::Dlrr,
6 => RTCPXRType::Ssumm, 6 => Self::Ssumm,
7 => RTCPXRType::VoipMetrics, 7 => Self::VoipMetrics,
value => RTCPXRType::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -403,7 +403,7 @@ unsafe impl<'a> FromValue<'a> for RTCPXRType {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
impl ToValue for RTCPXRType { impl ToValue for RTCPXRType {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTCPXRType>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -481,33 +481,33 @@ impl IntoGlib for RTPPayload {
fn into_glib(self) -> ffi::GstRTPPayload { fn into_glib(self) -> ffi::GstRTPPayload {
match self { match self {
RTPPayload::Pcmu => ffi::GST_RTP_PAYLOAD_PCMU, Self::Pcmu => ffi::GST_RTP_PAYLOAD_PCMU,
RTPPayload::_1016 => ffi::GST_RTP_PAYLOAD_1016, Self::_1016 => ffi::GST_RTP_PAYLOAD_1016,
RTPPayload::G721 => ffi::GST_RTP_PAYLOAD_G721, Self::G721 => ffi::GST_RTP_PAYLOAD_G721,
RTPPayload::Gsm => ffi::GST_RTP_PAYLOAD_GSM, Self::Gsm => ffi::GST_RTP_PAYLOAD_GSM,
RTPPayload::G723 => ffi::GST_RTP_PAYLOAD_G723, Self::G723 => ffi::GST_RTP_PAYLOAD_G723,
RTPPayload::Dvi48000 => ffi::GST_RTP_PAYLOAD_DVI4_8000, Self::Dvi48000 => ffi::GST_RTP_PAYLOAD_DVI4_8000,
RTPPayload::Dvi416000 => ffi::GST_RTP_PAYLOAD_DVI4_16000, Self::Dvi416000 => ffi::GST_RTP_PAYLOAD_DVI4_16000,
RTPPayload::Lpc => ffi::GST_RTP_PAYLOAD_LPC, Self::Lpc => ffi::GST_RTP_PAYLOAD_LPC,
RTPPayload::Pcma => ffi::GST_RTP_PAYLOAD_PCMA, Self::Pcma => ffi::GST_RTP_PAYLOAD_PCMA,
RTPPayload::G722 => ffi::GST_RTP_PAYLOAD_G722, Self::G722 => ffi::GST_RTP_PAYLOAD_G722,
RTPPayload::L16Stereo => ffi::GST_RTP_PAYLOAD_L16_STEREO, Self::L16Stereo => ffi::GST_RTP_PAYLOAD_L16_STEREO,
RTPPayload::L16Mono => ffi::GST_RTP_PAYLOAD_L16_MONO, Self::L16Mono => ffi::GST_RTP_PAYLOAD_L16_MONO,
RTPPayload::Qcelp => ffi::GST_RTP_PAYLOAD_QCELP, Self::Qcelp => ffi::GST_RTP_PAYLOAD_QCELP,
RTPPayload::Cn => ffi::GST_RTP_PAYLOAD_CN, Self::Cn => ffi::GST_RTP_PAYLOAD_CN,
RTPPayload::Mpa => ffi::GST_RTP_PAYLOAD_MPA, Self::Mpa => ffi::GST_RTP_PAYLOAD_MPA,
RTPPayload::G728 => ffi::GST_RTP_PAYLOAD_G728, Self::G728 => ffi::GST_RTP_PAYLOAD_G728,
RTPPayload::Dvi411025 => ffi::GST_RTP_PAYLOAD_DVI4_11025, Self::Dvi411025 => ffi::GST_RTP_PAYLOAD_DVI4_11025,
RTPPayload::Dvi422050 => ffi::GST_RTP_PAYLOAD_DVI4_22050, Self::Dvi422050 => ffi::GST_RTP_PAYLOAD_DVI4_22050,
RTPPayload::G729 => ffi::GST_RTP_PAYLOAD_G729, Self::G729 => ffi::GST_RTP_PAYLOAD_G729,
RTPPayload::Cellb => ffi::GST_RTP_PAYLOAD_CELLB, Self::Cellb => ffi::GST_RTP_PAYLOAD_CELLB,
RTPPayload::Jpeg => ffi::GST_RTP_PAYLOAD_JPEG, Self::Jpeg => ffi::GST_RTP_PAYLOAD_JPEG,
RTPPayload::Nv => ffi::GST_RTP_PAYLOAD_NV, Self::Nv => ffi::GST_RTP_PAYLOAD_NV,
RTPPayload::H261 => ffi::GST_RTP_PAYLOAD_H261, Self::H261 => ffi::GST_RTP_PAYLOAD_H261,
RTPPayload::Mpv => ffi::GST_RTP_PAYLOAD_MPV, Self::Mpv => ffi::GST_RTP_PAYLOAD_MPV,
RTPPayload::Mp2t => ffi::GST_RTP_PAYLOAD_MP2T, Self::Mp2t => ffi::GST_RTP_PAYLOAD_MP2T,
RTPPayload::H263 => ffi::GST_RTP_PAYLOAD_H263, Self::H263 => ffi::GST_RTP_PAYLOAD_H263,
RTPPayload::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -517,33 +517,33 @@ impl FromGlib<ffi::GstRTPPayload> for RTPPayload {
unsafe fn from_glib(value: ffi::GstRTPPayload) -> Self { unsafe fn from_glib(value: ffi::GstRTPPayload) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => RTPPayload::Pcmu, 0 => Self::Pcmu,
1 => RTPPayload::_1016, 1 => Self::_1016,
2 => RTPPayload::G721, 2 => Self::G721,
3 => RTPPayload::Gsm, 3 => Self::Gsm,
4 => RTPPayload::G723, 4 => Self::G723,
5 => RTPPayload::Dvi48000, 5 => Self::Dvi48000,
6 => RTPPayload::Dvi416000, 6 => Self::Dvi416000,
7 => RTPPayload::Lpc, 7 => Self::Lpc,
8 => RTPPayload::Pcma, 8 => Self::Pcma,
9 => RTPPayload::G722, 9 => Self::G722,
10 => RTPPayload::L16Stereo, 10 => Self::L16Stereo,
11 => RTPPayload::L16Mono, 11 => Self::L16Mono,
12 => RTPPayload::Qcelp, 12 => Self::Qcelp,
13 => RTPPayload::Cn, 13 => Self::Cn,
14 => RTPPayload::Mpa, 14 => Self::Mpa,
15 => RTPPayload::G728, 15 => Self::G728,
16 => RTPPayload::Dvi411025, 16 => Self::Dvi411025,
17 => RTPPayload::Dvi422050, 17 => Self::Dvi422050,
18 => RTPPayload::G729, 18 => Self::G729,
25 => RTPPayload::Cellb, 25 => Self::Cellb,
26 => RTPPayload::Jpeg, 26 => Self::Jpeg,
28 => RTPPayload::Nv, 28 => Self::Nv,
31 => RTPPayload::H261, 31 => Self::H261,
32 => RTPPayload::Mpv, 32 => Self::Mpv,
33 => RTPPayload::Mp2t, 33 => Self::Mp2t,
34 => RTPPayload::H263, 34 => Self::H263,
value => RTPPayload::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -569,7 +569,7 @@ unsafe impl<'a> FromValue<'a> for RTPPayload {
impl ToValue for RTPPayload { impl ToValue for RTPPayload {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTPPayload>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }
@ -605,12 +605,12 @@ impl IntoGlib for RTPProfile {
fn into_glib(self) -> ffi::GstRTPProfile { fn into_glib(self) -> ffi::GstRTPProfile {
match self { match self {
RTPProfile::Unknown => ffi::GST_RTP_PROFILE_UNKNOWN, Self::Unknown => ffi::GST_RTP_PROFILE_UNKNOWN,
RTPProfile::Avp => ffi::GST_RTP_PROFILE_AVP, Self::Avp => ffi::GST_RTP_PROFILE_AVP,
RTPProfile::Savp => ffi::GST_RTP_PROFILE_SAVP, Self::Savp => ffi::GST_RTP_PROFILE_SAVP,
RTPProfile::Avpf => ffi::GST_RTP_PROFILE_AVPF, Self::Avpf => ffi::GST_RTP_PROFILE_AVPF,
RTPProfile::Savpf => ffi::GST_RTP_PROFILE_SAVPF, Self::Savpf => ffi::GST_RTP_PROFILE_SAVPF,
RTPProfile::__Unknown(value) => value, Self::__Unknown(value) => value,
} }
} }
} }
@ -620,12 +620,12 @@ impl FromGlib<ffi::GstRTPProfile> for RTPProfile {
unsafe fn from_glib(value: ffi::GstRTPProfile) -> Self { unsafe fn from_glib(value: ffi::GstRTPProfile) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
match value { match value {
0 => RTPProfile::Unknown, 0 => Self::Unknown,
1 => RTPProfile::Avp, 1 => Self::Avp,
2 => RTPProfile::Savp, 2 => Self::Savp,
3 => RTPProfile::Avpf, 3 => Self::Avpf,
4 => RTPProfile::Savpf, 4 => Self::Savpf,
value => RTPProfile::__Unknown(value), value => Self::__Unknown(value),
} }
} }
} }
@ -651,7 +651,7 @@ unsafe impl<'a> FromValue<'a> for RTPProfile {
impl ToValue for RTPProfile { impl ToValue for RTPProfile {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTPProfile>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -34,9 +34,9 @@ impl IntoGlib for RTPBufferFlags {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstRTPBufferFlags> for RTPBufferFlags { impl FromGlib<ffi::GstRTPBufferFlags> for RTPBufferFlags {
unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> RTPBufferFlags { unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
RTPBufferFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -69,7 +69,7 @@ unsafe impl<'a> FromValue<'a> for RTPBufferFlags {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
impl ToValue for RTPBufferFlags { impl ToValue for RTPBufferFlags {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTPBufferFlags>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }
@ -98,9 +98,9 @@ impl IntoGlib for RTPBufferMapFlags {
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstRTPBufferMapFlags> for RTPBufferMapFlags { impl FromGlib<ffi::GstRTPBufferMapFlags> for RTPBufferMapFlags {
unsafe fn from_glib(value: ffi::GstRTPBufferMapFlags) -> RTPBufferMapFlags { unsafe fn from_glib(value: ffi::GstRTPBufferMapFlags) -> Self {
skip_assert_initialized!(); skip_assert_initialized!();
RTPBufferMapFlags::from_bits_truncate(value) Self::from_bits_truncate(value)
} }
} }
@ -125,7 +125,7 @@ unsafe impl<'a> FromValue<'a> for RTPBufferMapFlags {
impl ToValue for RTPBufferMapFlags { impl ToValue for RTPBufferMapFlags {
fn to_value(&self) -> glib::Value { fn to_value(&self) -> glib::Value {
let mut value = glib::Value::for_value_type::<RTPBufferMapFlags>(); let mut value = glib::Value::for_value_type::<Self>();
unsafe { unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
} }

View file

@ -1,3 +1,3 @@
Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b) Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6) from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a)

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