From e8f340c60a680a5983922192326a82389a6e4aab Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sun, 25 Apr 2021 18:45:59 +0200 Subject: [PATCH] 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. --- gir | 2 +- gstreamer-app/src/auto/enums.rs | 18 +- gstreamer-app/src/auto/versions.txt | 2 +- gstreamer-app/sys/build.rs | 2 +- gstreamer-app/sys/src/lib.rs | 2 +- gstreamer-app/sys/tests/abi.rs | 6 +- gstreamer-app/sys/tests/constant.c | 2 +- gstreamer-app/sys/tests/layout.c | 2 +- gstreamer-audio/src/auto/enums.rs | 452 +++--- gstreamer-audio/src/auto/flags.rs | 18 +- gstreamer-audio/src/auto/versions.txt | 2 +- gstreamer-audio/sys/build.rs | 2 +- gstreamer-audio/sys/src/lib.rs | 2 +- gstreamer-audio/sys/tests/abi.rs | 6 +- gstreamer-audio/sys/tests/constant.c | 2 +- gstreamer-audio/sys/tests/layout.c | 2 +- gstreamer-base/src/auto/enums.rs | 18 +- gstreamer-base/src/auto/flags.rs | 4 +- gstreamer-base/src/auto/versions.txt | 2 +- gstreamer-base/sys/build.rs | 2 +- gstreamer-base/sys/src/lib.rs | 2 +- gstreamer-base/sys/tests/abi.rs | 6 +- gstreamer-base/sys/tests/constant.c | 2 +- gstreamer-base/sys/tests/layout.c | 2 +- gstreamer-check/src/auto/versions.txt | 2 +- gstreamer-check/sys/build.rs | 2 +- gstreamer-check/sys/src/lib.rs | 2 +- gstreamer-check/sys/tests/abi.rs | 6 +- gstreamer-check/sys/tests/constant.c | 2 +- gstreamer-check/sys/tests/layout.c | 2 +- gstreamer-controller/src/auto/enums.rs | 48 +- gstreamer-controller/src/auto/versions.txt | 2 +- gstreamer-controller/sys/build.rs | 2 +- gstreamer-controller/sys/src/lib.rs | 2 +- gstreamer-controller/sys/tests/abi.rs | 6 +- gstreamer-controller/sys/tests/constant.c | 2 +- gstreamer-controller/sys/tests/layout.c | 2 +- gstreamer-editing-services/src/auto/enums.rs | 460 ++---- gstreamer-editing-services/src/auto/flags.rs | 12 +- .../src/auto/versions.txt | 2 +- gstreamer-editing-services/sys/build.rs | 2 +- gstreamer-editing-services/sys/src/lib.rs | 2 +- gstreamer-editing-services/sys/tests/abi.rs | 6 +- .../sys/tests/constant.c | 2 +- gstreamer-editing-services/sys/tests/layout.c | 2 +- gstreamer-gl/egl/src/auto/versions.txt | 2 +- gstreamer-gl/egl/sys/build.rs | 2 +- gstreamer-gl/egl/sys/src/lib.rs | 2 +- gstreamer-gl/egl/sys/tests/abi.rs | 6 +- gstreamer-gl/egl/sys/tests/constant.c | 2 +- gstreamer-gl/egl/sys/tests/layout.c | 2 +- gstreamer-gl/src/auto/enums.rs | 340 ++-- gstreamer-gl/src/auto/flags.rs | 24 +- gstreamer-gl/src/auto/versions.txt | 2 +- gstreamer-gl/sys/build.rs | 2 +- gstreamer-gl/sys/src/lib.rs | 2 +- gstreamer-gl/sys/tests/abi.rs | 6 +- gstreamer-gl/sys/tests/constant.c | 2 +- gstreamer-gl/sys/tests/layout.c | 2 +- gstreamer-gl/wayland/src/auto/versions.txt | 2 +- gstreamer-gl/wayland/sys/build.rs | 2 +- gstreamer-gl/wayland/sys/src/lib.rs | 2 +- gstreamer-gl/wayland/sys/tests/abi.rs | 6 +- gstreamer-gl/wayland/sys/tests/constant.c | 2 +- gstreamer-gl/wayland/sys/tests/layout.c | 2 +- gstreamer-gl/x11/src/auto/versions.txt | 2 +- gstreamer-gl/x11/sys/build.rs | 2 +- gstreamer-gl/x11/sys/src/lib.rs | 2 +- gstreamer-gl/x11/sys/tests/abi.rs | 6 +- gstreamer-gl/x11/sys/tests/constant.c | 2 +- gstreamer-gl/x11/sys/tests/layout.c | 2 +- gstreamer-mpegts/sys/build.rs | 2 +- gstreamer-mpegts/sys/src/lib.rs | 2 +- gstreamer-mpegts/sys/tests/abi.rs | 6 +- gstreamer-mpegts/sys/tests/constant.c | 2 +- gstreamer-mpegts/sys/tests/layout.c | 2 +- gstreamer-net/src/auto/versions.txt | 2 +- gstreamer-net/sys/build.rs | 2 +- gstreamer-net/sys/src/lib.rs | 2 +- gstreamer-net/sys/tests/abi.rs | 6 +- gstreamer-net/sys/tests/constant.c | 2 +- gstreamer-net/sys/tests/layout.c | 2 +- gstreamer-pbutils/src/auto/enums.rs | 30 +- gstreamer-pbutils/src/auto/flags.rs | 6 +- gstreamer-pbutils/src/auto/versions.txt | 2 +- gstreamer-pbutils/sys/build.rs | 2 +- gstreamer-pbutils/sys/src/lib.rs | 2 +- gstreamer-pbutils/sys/tests/abi.rs | 6 +- gstreamer-pbutils/sys/tests/constant.c | 2 +- gstreamer-pbutils/sys/tests/layout.c | 2 +- gstreamer-player/src/auto/enums.rs | 82 +- gstreamer-player/src/auto/versions.txt | 2 +- gstreamer-player/sys/build.rs | 2 +- gstreamer-player/sys/src/lib.rs | 2 +- gstreamer-player/sys/tests/abi.rs | 6 +- gstreamer-player/sys/tests/constant.c | 2 +- gstreamer-player/sys/tests/layout.c | 2 +- gstreamer-rtp/src/auto/enums.rs | 304 ++-- gstreamer-rtp/src/auto/flags.rs | 12 +- gstreamer-rtp/src/auto/versions.txt | 2 +- gstreamer-rtp/sys/build.rs | 2 +- gstreamer-rtp/sys/src/lib.rs | 2 +- gstreamer-rtp/sys/tests/abi.rs | 6 +- gstreamer-rtp/sys/tests/constant.c | 2 +- gstreamer-rtp/sys/tests/layout.c | 2 +- gstreamer-rtsp-server/src/auto/enums.rs | 118 +- gstreamer-rtsp-server/src/auto/flags.rs | 10 +- gstreamer-rtsp-server/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/sys/build.rs | 2 +- gstreamer-rtsp-server/sys/src/lib.rs | 2 +- gstreamer-rtsp-server/sys/tests/abi.rs | 6 +- gstreamer-rtsp-server/sys/tests/constant.c | 2 +- gstreamer-rtsp-server/sys/tests/layout.c | 2 +- gstreamer-rtsp/src/auto/enums.rs | 786 +++++---- gstreamer-rtsp/src/auto/flags.rs | 30 +- gstreamer-rtsp/src/auto/versions.txt | 2 +- gstreamer-rtsp/sys/build.rs | 2 +- gstreamer-rtsp/sys/src/lib.rs | 2 +- gstreamer-rtsp/sys/tests/abi.rs | 6 +- gstreamer-rtsp/sys/tests/constant.c | 2 +- gstreamer-rtsp/sys/tests/layout.c | 2 +- gstreamer-sdp/src/auto/versions.txt | 2 +- gstreamer-sdp/sys/build.rs | 2 +- gstreamer-sdp/sys/src/lib.rs | 2 +- gstreamer-sdp/sys/tests/abi.rs | 6 +- gstreamer-sdp/sys/tests/constant.c | 2 +- gstreamer-sdp/sys/tests/layout.c | 2 +- gstreamer-tag/sys/build.rs | 2 +- gstreamer-tag/sys/src/lib.rs | 2 +- gstreamer-tag/sys/tests/abi.rs | 6 +- gstreamer-tag/sys/tests/constant.c | 2 +- gstreamer-tag/sys/tests/layout.c | 2 +- gstreamer-video/src/auto/enums.rs | 1036 ++++++------ gstreamer-video/src/auto/flags.rs | 58 +- gstreamer-video/src/auto/versions.txt | 2 +- gstreamer-video/sys/build.rs | 2 +- gstreamer-video/sys/src/lib.rs | 2 +- gstreamer-video/sys/tests/abi.rs | 6 +- gstreamer-video/sys/tests/constant.c | 2 +- gstreamer-video/sys/tests/layout.c | 2 +- gstreamer-webrtc/src/auto/enums.rs | 440 +++-- gstreamer-webrtc/src/auto/versions.txt | 2 +- gstreamer-webrtc/sys/build.rs | 2 +- gstreamer-webrtc/sys/src/lib.rs | 2 +- gstreamer-webrtc/sys/tests/abi.rs | 6 +- gstreamer-webrtc/sys/tests/constant.c | 2 +- gstreamer-webrtc/sys/tests/layout.c | 2 +- gstreamer/src/auto/enums.rs | 1430 ++++++++--------- gstreamer/src/auto/flags.rs | 150 +- gstreamer/src/auto/versions.txt | 2 +- gstreamer/sys/build.rs | 2 +- gstreamer/sys/src/lib.rs | 2 +- gstreamer/sys/tests/abi.rs | 6 +- gstreamer/sys/tests/constant.c | 2 +- gstreamer/sys/tests/layout.c | 2 +- 155 files changed, 3024 insertions(+), 3212 deletions(-) diff --git a/gir b/gir index 1a0921b55..051682595 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 1a0921b553383ab0e5a34bdab15ebc8844ec3b46 +Subproject commit 05168259538c9d78d2cf41016481426a597c0342 diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 0b7cdc50a..c54c2d7ea 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -29,10 +29,10 @@ impl IntoGlib for AppStreamType { fn into_glib(self) -> ffi::GstAppStreamType { match self { - AppStreamType::Stream => ffi::GST_APP_STREAM_TYPE_STREAM, - AppStreamType::Seekable => ffi::GST_APP_STREAM_TYPE_SEEKABLE, - AppStreamType::RandomAccess => ffi::GST_APP_STREAM_TYPE_RANDOM_ACCESS, - AppStreamType::__Unknown(value) => value, + Self::Stream => ffi::GST_APP_STREAM_TYPE_STREAM, + Self::Seekable => ffi::GST_APP_STREAM_TYPE_SEEKABLE, + Self::RandomAccess => ffi::GST_APP_STREAM_TYPE_RANDOM_ACCESS, + Self::__Unknown(value) => value, } } } @@ -42,10 +42,10 @@ impl FromGlib for AppStreamType { unsafe fn from_glib(value: ffi::GstAppStreamType) -> Self { skip_assert_initialized!(); match value { - 0 => AppStreamType::Stream, - 1 => AppStreamType::Seekable, - 2 => AppStreamType::RandomAccess, - value => AppStreamType::__Unknown(value), + 0 => Self::Stream, + 1 => Self::Seekable, + 2 => Self::RandomAccess, + value => Self::__Unknown(value), } } } @@ -71,7 +71,7 @@ unsafe impl<'a> FromValue<'a> for AppStreamType { impl ToValue for AppStreamType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index 52cbb241a..a72ea6fc8 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 5aa150c00..14a5f95f9 100644 --- a/gstreamer-app/sys/tests/abi.rs +++ b/gstreamer-app/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 61e8a7740..331d18103 100644 --- a/gstreamer-app/sys/tests/constant.c +++ b/gstreamer-app/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index 7dbd36bf9..ba6d00eb5 100644 --- a/gstreamer-app/sys/tests/layout.c +++ b/gstreamer-app/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index bf643adac..052bac752 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -86,50 +86,38 @@ impl IntoGlib for AudioChannelPosition { fn into_glib(self) -> ffi::GstAudioChannelPosition { match self { - AudioChannelPosition::None => ffi::GST_AUDIO_CHANNEL_POSITION_NONE, - AudioChannelPosition::Mono => ffi::GST_AUDIO_CHANNEL_POSITION_MONO, - AudioChannelPosition::Invalid => ffi::GST_AUDIO_CHANNEL_POSITION_INVALID, - AudioChannelPosition::FrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT, - AudioChannelPosition::FrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT, - AudioChannelPosition::FrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER, - AudioChannelPosition::Lfe1 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE1, - AudioChannelPosition::RearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_LEFT, - AudioChannelPosition::RearRight => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT, - AudioChannelPosition::FrontLeftOfCenter => { - ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER - } - AudioChannelPosition::FrontRightOfCenter => { - ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER - } - AudioChannelPosition::RearCenter => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_CENTER, - AudioChannelPosition::Lfe2 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE2, - AudioChannelPosition::SideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT, - AudioChannelPosition::SideRight => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT, - AudioChannelPosition::TopFrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT, - AudioChannelPosition::TopFrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT, - AudioChannelPosition::TopFrontCenter => { - ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER - } - AudioChannelPosition::TopCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_CENTER, - AudioChannelPosition::TopRearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT, - AudioChannelPosition::TopRearRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT, - AudioChannelPosition::TopSideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT, - AudioChannelPosition::TopSideRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT, - AudioChannelPosition::TopRearCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER, - AudioChannelPosition::BottomFrontCenter => { - ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER - } - 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, + Self::None => ffi::GST_AUDIO_CHANNEL_POSITION_NONE, + Self::Mono => ffi::GST_AUDIO_CHANNEL_POSITION_MONO, + Self::Invalid => ffi::GST_AUDIO_CHANNEL_POSITION_INVALID, + Self::FrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT, + Self::FrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT, + Self::FrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER, + Self::Lfe1 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE1, + Self::RearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_LEFT, + Self::RearRight => ffi::GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT, + Self::FrontLeftOfCenter => 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, + Self::Lfe2 => ffi::GST_AUDIO_CHANNEL_POSITION_LFE2, + Self::SideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT, + Self::SideRight => ffi::GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT, + Self::TopFrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT, + Self::TopFrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT, + Self::TopFrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER, + Self::TopCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_CENTER, + Self::TopRearLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT, + Self::TopRearRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT, + Self::TopSideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT, + Self::TopSideRight => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT, + Self::TopRearCenter => ffi::GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER, + Self::BottomFrontCenter => ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER, + Self::BottomFrontLeft => ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT, + Self::BottomFrontRight => ffi::GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT, + Self::WideLeft => ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT, + Self::WideRight => ffi::GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT, + Self::SurroundLeft => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT, + Self::SurroundRight => ffi::GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT, + Self::__Unknown(value) => value, } } } @@ -139,38 +127,38 @@ impl FromGlib for AudioChannelPosition { unsafe fn from_glib(value: ffi::GstAudioChannelPosition) -> Self { skip_assert_initialized!(); match value { - -3 => AudioChannelPosition::None, - -2 => AudioChannelPosition::Mono, - -1 => AudioChannelPosition::Invalid, - 0 => AudioChannelPosition::FrontLeft, - 1 => AudioChannelPosition::FrontRight, - 2 => AudioChannelPosition::FrontCenter, - 3 => AudioChannelPosition::Lfe1, - 4 => AudioChannelPosition::RearLeft, - 5 => AudioChannelPosition::RearRight, - 6 => AudioChannelPosition::FrontLeftOfCenter, - 7 => AudioChannelPosition::FrontRightOfCenter, - 8 => AudioChannelPosition::RearCenter, - 9 => AudioChannelPosition::Lfe2, - 10 => AudioChannelPosition::SideLeft, - 11 => AudioChannelPosition::SideRight, - 12 => AudioChannelPosition::TopFrontLeft, - 13 => AudioChannelPosition::TopFrontRight, - 14 => AudioChannelPosition::TopFrontCenter, - 15 => AudioChannelPosition::TopCenter, - 16 => AudioChannelPosition::TopRearLeft, - 17 => AudioChannelPosition::TopRearRight, - 18 => AudioChannelPosition::TopSideLeft, - 19 => AudioChannelPosition::TopSideRight, - 20 => AudioChannelPosition::TopRearCenter, - 21 => AudioChannelPosition::BottomFrontCenter, - 22 => AudioChannelPosition::BottomFrontLeft, - 23 => AudioChannelPosition::BottomFrontRight, - 24 => AudioChannelPosition::WideLeft, - 25 => AudioChannelPosition::WideRight, - 26 => AudioChannelPosition::SurroundLeft, - 27 => AudioChannelPosition::SurroundRight, - value => AudioChannelPosition::__Unknown(value), + -3 => Self::None, + -2 => Self::Mono, + -1 => Self::Invalid, + 0 => Self::FrontLeft, + 1 => Self::FrontRight, + 2 => Self::FrontCenter, + 3 => Self::Lfe1, + 4 => Self::RearLeft, + 5 => Self::RearRight, + 6 => Self::FrontLeftOfCenter, + 7 => Self::FrontRightOfCenter, + 8 => Self::RearCenter, + 9 => Self::Lfe2, + 10 => Self::SideLeft, + 11 => Self::SideRight, + 12 => Self::TopFrontLeft, + 13 => Self::TopFrontRight, + 14 => Self::TopFrontCenter, + 15 => Self::TopCenter, + 16 => Self::TopRearLeft, + 17 => Self::TopRearRight, + 18 => Self::TopSideLeft, + 19 => Self::TopSideRight, + 20 => Self::TopRearCenter, + 21 => Self::BottomFrontCenter, + 22 => Self::BottomFrontLeft, + 23 => Self::BottomFrontRight, + 24 => Self::WideLeft, + 25 => Self::WideRight, + 26 => Self::SurroundLeft, + 27 => Self::SurroundRight, + value => Self::__Unknown(value), } } } @@ -196,7 +184,7 @@ unsafe impl<'a> FromValue<'a> for AudioChannelPosition { impl ToValue for AudioChannelPosition { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - AudioDitherMethod::None => ffi::GST_AUDIO_DITHER_NONE, - AudioDitherMethod::Rpdf => ffi::GST_AUDIO_DITHER_RPDF, - AudioDitherMethod::Tpdf => ffi::GST_AUDIO_DITHER_TPDF, - AudioDitherMethod::TpdfHf => ffi::GST_AUDIO_DITHER_TPDF_HF, - AudioDitherMethod::__Unknown(value) => value, + Self::None => ffi::GST_AUDIO_DITHER_NONE, + Self::Rpdf => ffi::GST_AUDIO_DITHER_RPDF, + Self::Tpdf => ffi::GST_AUDIO_DITHER_TPDF, + Self::TpdfHf => ffi::GST_AUDIO_DITHER_TPDF_HF, + Self::__Unknown(value) => value, } } } @@ -244,11 +232,11 @@ impl FromGlib for AudioDitherMethod { unsafe fn from_glib(value: ffi::GstAudioDitherMethod) -> Self { skip_assert_initialized!(); match value { - 0 => AudioDitherMethod::None, - 1 => AudioDitherMethod::Rpdf, - 2 => AudioDitherMethod::Tpdf, - 3 => AudioDitherMethod::TpdfHf, - value => AudioDitherMethod::__Unknown(value), + 0 => Self::None, + 1 => Self::Rpdf, + 2 => Self::Tpdf, + 3 => Self::TpdfHf, + value => Self::__Unknown(value), } } } @@ -274,7 +262,7 @@ unsafe impl<'a> FromValue<'a> for AudioDitherMethod { impl ToValue for AudioDitherMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - AudioFormat::Unknown => ffi::GST_AUDIO_FORMAT_UNKNOWN, - AudioFormat::Encoded => ffi::GST_AUDIO_FORMAT_ENCODED, - AudioFormat::S8 => ffi::GST_AUDIO_FORMAT_S8, - AudioFormat::U8 => ffi::GST_AUDIO_FORMAT_U8, - AudioFormat::S16le => ffi::GST_AUDIO_FORMAT_S16LE, - AudioFormat::S16be => ffi::GST_AUDIO_FORMAT_S16BE, - AudioFormat::U16le => ffi::GST_AUDIO_FORMAT_U16LE, - AudioFormat::U16be => ffi::GST_AUDIO_FORMAT_U16BE, - AudioFormat::S2432le => ffi::GST_AUDIO_FORMAT_S24_32LE, - AudioFormat::S2432be => ffi::GST_AUDIO_FORMAT_S24_32BE, - AudioFormat::U2432le => ffi::GST_AUDIO_FORMAT_U24_32LE, - AudioFormat::U2432be => ffi::GST_AUDIO_FORMAT_U24_32BE, - AudioFormat::S32le => ffi::GST_AUDIO_FORMAT_S32LE, - AudioFormat::S32be => ffi::GST_AUDIO_FORMAT_S32BE, - AudioFormat::U32le => ffi::GST_AUDIO_FORMAT_U32LE, - AudioFormat::U32be => ffi::GST_AUDIO_FORMAT_U32BE, - AudioFormat::S24le => ffi::GST_AUDIO_FORMAT_S24LE, - AudioFormat::S24be => ffi::GST_AUDIO_FORMAT_S24BE, - AudioFormat::U24le => ffi::GST_AUDIO_FORMAT_U24LE, - AudioFormat::U24be => ffi::GST_AUDIO_FORMAT_U24BE, - AudioFormat::S20le => ffi::GST_AUDIO_FORMAT_S20LE, - AudioFormat::S20be => ffi::GST_AUDIO_FORMAT_S20BE, - AudioFormat::U20le => ffi::GST_AUDIO_FORMAT_U20LE, - AudioFormat::U20be => ffi::GST_AUDIO_FORMAT_U20BE, - AudioFormat::S18le => ffi::GST_AUDIO_FORMAT_S18LE, - AudioFormat::S18be => ffi::GST_AUDIO_FORMAT_S18BE, - AudioFormat::U18le => ffi::GST_AUDIO_FORMAT_U18LE, - AudioFormat::U18be => ffi::GST_AUDIO_FORMAT_U18BE, - AudioFormat::F32le => ffi::GST_AUDIO_FORMAT_F32LE, - AudioFormat::F32be => ffi::GST_AUDIO_FORMAT_F32BE, - AudioFormat::F64le => ffi::GST_AUDIO_FORMAT_F64LE, - AudioFormat::F64be => ffi::GST_AUDIO_FORMAT_F64BE, - AudioFormat::__Unknown(value) => value, + Self::Unknown => ffi::GST_AUDIO_FORMAT_UNKNOWN, + Self::Encoded => ffi::GST_AUDIO_FORMAT_ENCODED, + Self::S8 => ffi::GST_AUDIO_FORMAT_S8, + Self::U8 => ffi::GST_AUDIO_FORMAT_U8, + Self::S16le => ffi::GST_AUDIO_FORMAT_S16LE, + Self::S16be => ffi::GST_AUDIO_FORMAT_S16BE, + Self::U16le => ffi::GST_AUDIO_FORMAT_U16LE, + Self::U16be => ffi::GST_AUDIO_FORMAT_U16BE, + Self::S2432le => ffi::GST_AUDIO_FORMAT_S24_32LE, + Self::S2432be => ffi::GST_AUDIO_FORMAT_S24_32BE, + Self::U2432le => ffi::GST_AUDIO_FORMAT_U24_32LE, + Self::U2432be => ffi::GST_AUDIO_FORMAT_U24_32BE, + Self::S32le => ffi::GST_AUDIO_FORMAT_S32LE, + Self::S32be => ffi::GST_AUDIO_FORMAT_S32BE, + Self::U32le => ffi::GST_AUDIO_FORMAT_U32LE, + Self::U32be => ffi::GST_AUDIO_FORMAT_U32BE, + Self::S24le => ffi::GST_AUDIO_FORMAT_S24LE, + Self::S24be => ffi::GST_AUDIO_FORMAT_S24BE, + Self::U24le => ffi::GST_AUDIO_FORMAT_U24LE, + Self::U24be => ffi::GST_AUDIO_FORMAT_U24BE, + Self::S20le => ffi::GST_AUDIO_FORMAT_S20LE, + Self::S20be => ffi::GST_AUDIO_FORMAT_S20BE, + Self::U20le => ffi::GST_AUDIO_FORMAT_U20LE, + Self::U20be => ffi::GST_AUDIO_FORMAT_U20BE, + Self::S18le => ffi::GST_AUDIO_FORMAT_S18LE, + Self::S18be => ffi::GST_AUDIO_FORMAT_S18BE, + Self::U18le => ffi::GST_AUDIO_FORMAT_U18LE, + Self::U18be => ffi::GST_AUDIO_FORMAT_U18BE, + Self::F32le => ffi::GST_AUDIO_FORMAT_F32LE, + Self::F32be => ffi::GST_AUDIO_FORMAT_F32BE, + Self::F64le => ffi::GST_AUDIO_FORMAT_F64LE, + Self::F64be => ffi::GST_AUDIO_FORMAT_F64BE, + Self::__Unknown(value) => value, } } } @@ -421,39 +409,39 @@ impl FromGlib for AudioFormat { unsafe fn from_glib(value: ffi::GstAudioFormat) -> Self { skip_assert_initialized!(); match value { - 0 => AudioFormat::Unknown, - 1 => AudioFormat::Encoded, - 2 => AudioFormat::S8, - 3 => AudioFormat::U8, - 4 => AudioFormat::S16le, - 5 => AudioFormat::S16be, - 6 => AudioFormat::U16le, - 7 => AudioFormat::U16be, - 8 => AudioFormat::S2432le, - 9 => AudioFormat::S2432be, - 10 => AudioFormat::U2432le, - 11 => AudioFormat::U2432be, - 12 => AudioFormat::S32le, - 13 => AudioFormat::S32be, - 14 => AudioFormat::U32le, - 15 => AudioFormat::U32be, - 16 => AudioFormat::S24le, - 17 => AudioFormat::S24be, - 18 => AudioFormat::U24le, - 19 => AudioFormat::U24be, - 20 => AudioFormat::S20le, - 21 => AudioFormat::S20be, - 22 => AudioFormat::U20le, - 23 => AudioFormat::U20be, - 24 => AudioFormat::S18le, - 25 => AudioFormat::S18be, - 26 => AudioFormat::U18le, - 27 => AudioFormat::U18be, - 28 => AudioFormat::F32le, - 29 => AudioFormat::F32be, - 30 => AudioFormat::F64le, - 31 => AudioFormat::F64be, - value => AudioFormat::__Unknown(value), + 0 => Self::Unknown, + 1 => Self::Encoded, + 2 => Self::S8, + 3 => Self::U8, + 4 => Self::S16le, + 5 => Self::S16be, + 6 => Self::U16le, + 7 => Self::U16be, + 8 => Self::S2432le, + 9 => Self::S2432be, + 10 => Self::U2432le, + 11 => Self::U2432be, + 12 => Self::S32le, + 13 => Self::S32be, + 14 => Self::U32le, + 15 => Self::U32be, + 16 => Self::S24le, + 17 => Self::S24be, + 18 => Self::U24le, + 19 => Self::U24be, + 20 => Self::S20le, + 21 => Self::S20be, + 22 => Self::U20le, + 23 => Self::U20be, + 24 => Self::S18le, + 25 => Self::S18be, + 26 => Self::U18le, + 27 => Self::U18be, + 28 => Self::F32le, + 29 => Self::F32be, + 30 => Self::F64le, + 31 => Self::F64be, + value => Self::__Unknown(value), } } } @@ -479,7 +467,7 @@ unsafe impl<'a> FromValue<'a> for AudioFormat { impl ToValue for AudioFormat { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - AudioLayout::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED, - AudioLayout::NonInterleaved => ffi::GST_AUDIO_LAYOUT_NON_INTERLEAVED, - AudioLayout::__Unknown(value) => value, + Self::Interleaved => ffi::GST_AUDIO_LAYOUT_INTERLEAVED, + Self::NonInterleaved => ffi::GST_AUDIO_LAYOUT_NON_INTERLEAVED, + Self::__Unknown(value) => value, } } } @@ -521,9 +509,9 @@ impl FromGlib for AudioLayout { unsafe fn from_glib(value: ffi::GstAudioLayout) -> Self { skip_assert_initialized!(); match value { - 0 => AudioLayout::Interleaved, - 1 => AudioLayout::NonInterleaved, - value => AudioLayout::__Unknown(value), + 0 => Self::Interleaved, + 1 => Self::NonInterleaved, + value => Self::__Unknown(value), } } } @@ -549,7 +537,7 @@ unsafe impl<'a> FromValue<'a> for AudioLayout { impl ToValue for AudioLayout { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - AudioNoiseShapingMethod::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE, - AudioNoiseShapingMethod::ErrorFeedback => ffi::GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK, - AudioNoiseShapingMethod::Simple => ffi::GST_AUDIO_NOISE_SHAPING_SIMPLE, - AudioNoiseShapingMethod::Medium => ffi::GST_AUDIO_NOISE_SHAPING_MEDIUM, - AudioNoiseShapingMethod::High => ffi::GST_AUDIO_NOISE_SHAPING_HIGH, - AudioNoiseShapingMethod::__Unknown(value) => value, + Self::None => ffi::GST_AUDIO_NOISE_SHAPING_NONE, + Self::ErrorFeedback => ffi::GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK, + Self::Simple => ffi::GST_AUDIO_NOISE_SHAPING_SIMPLE, + Self::Medium => ffi::GST_AUDIO_NOISE_SHAPING_MEDIUM, + Self::High => ffi::GST_AUDIO_NOISE_SHAPING_HIGH, + Self::__Unknown(value) => value, } } } @@ -600,12 +588,12 @@ impl FromGlib for AudioNoiseShapingMethod { unsafe fn from_glib(value: ffi::GstAudioNoiseShapingMethod) -> Self { skip_assert_initialized!(); match value { - 0 => AudioNoiseShapingMethod::None, - 1 => AudioNoiseShapingMethod::ErrorFeedback, - 2 => AudioNoiseShapingMethod::Simple, - 3 => AudioNoiseShapingMethod::Medium, - 4 => AudioNoiseShapingMethod::High, - value => AudioNoiseShapingMethod::__Unknown(value), + 0 => Self::None, + 1 => Self::ErrorFeedback, + 2 => Self::Simple, + 3 => Self::Medium, + 4 => Self::High, + value => Self::__Unknown(value), } } } @@ -631,7 +619,7 @@ unsafe impl<'a> FromValue<'a> for AudioNoiseShapingMethod { impl ToValue for AudioNoiseShapingMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - AudioResamplerMethod::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST, - AudioResamplerMethod::Linear => ffi::GST_AUDIO_RESAMPLER_METHOD_LINEAR, - AudioResamplerMethod::Cubic => ffi::GST_AUDIO_RESAMPLER_METHOD_CUBIC, - AudioResamplerMethod::BlackmanNuttall => { - ffi::GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL - } - AudioResamplerMethod::Kaiser => ffi::GST_AUDIO_RESAMPLER_METHOD_KAISER, - AudioResamplerMethod::__Unknown(value) => value, + Self::Nearest => ffi::GST_AUDIO_RESAMPLER_METHOD_NEAREST, + Self::Linear => ffi::GST_AUDIO_RESAMPLER_METHOD_LINEAR, + Self::Cubic => ffi::GST_AUDIO_RESAMPLER_METHOD_CUBIC, + Self::BlackmanNuttall => ffi::GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL, + Self::Kaiser => ffi::GST_AUDIO_RESAMPLER_METHOD_KAISER, + Self::__Unknown(value) => value, } } } @@ -690,12 +676,12 @@ impl FromGlib for AudioResamplerMethod { unsafe fn from_glib(value: ffi::GstAudioResamplerMethod) -> Self { skip_assert_initialized!(); match value { - 0 => AudioResamplerMethod::Nearest, - 1 => AudioResamplerMethod::Linear, - 2 => AudioResamplerMethod::Cubic, - 3 => AudioResamplerMethod::BlackmanNuttall, - 4 => AudioResamplerMethod::Kaiser, - value => AudioResamplerMethod::__Unknown(value), + 0 => Self::Nearest, + 1 => Self::Linear, + 2 => Self::Cubic, + 3 => Self::BlackmanNuttall, + 4 => Self::Kaiser, + value => Self::__Unknown(value), } } } @@ -729,7 +715,7 @@ unsafe impl<'a> FromValue<'a> for AudioResamplerMethod { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl ToValue for AudioResamplerMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - AudioRingBufferFormatType::Raw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW, - AudioRingBufferFormatType::MuLaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW, - AudioRingBufferFormatType::ALaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW, - AudioRingBufferFormatType::ImaAdpcm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM, - AudioRingBufferFormatType::Mpeg => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG, - AudioRingBufferFormatType::Gsm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM, - AudioRingBufferFormatType::Iec958 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958, - AudioRingBufferFormatType::Ac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3, - AudioRingBufferFormatType::Eac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3, - AudioRingBufferFormatType::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS, - AudioRingBufferFormatType::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC, - AudioRingBufferFormatType::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC, + Self::Raw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW, + Self::MuLaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW, + Self::ALaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW, + Self::ImaAdpcm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM, + Self::Mpeg => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG, + Self::Gsm => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM, + Self::Iec958 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958, + Self::Ac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3, + Self::Eac3 => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3, + Self::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS, + Self::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC, + Self::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC, #[cfg(any(feature = "v1_12", feature = "dox"))] - AudioRingBufferFormatType::Mpeg2AacRaw => { - ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW - } + Self::Mpeg2AacRaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW, #[cfg(any(feature = "v1_12", feature = "dox"))] - AudioRingBufferFormatType::Mpeg4AacRaw => { - ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW - } + Self::Mpeg4AacRaw => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW, #[cfg(any(feature = "v1_12", feature = "dox"))] - AudioRingBufferFormatType::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC, - AudioRingBufferFormatType::__Unknown(value) => value, + Self::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC, + Self::__Unknown(value) => value, } } } @@ -823,25 +805,25 @@ impl FromGlib for AudioRingBufferFormatType { unsafe fn from_glib(value: ffi::GstAudioRingBufferFormatType) -> Self { skip_assert_initialized!(); match value { - 0 => AudioRingBufferFormatType::Raw, - 1 => AudioRingBufferFormatType::MuLaw, - 2 => AudioRingBufferFormatType::ALaw, - 3 => AudioRingBufferFormatType::ImaAdpcm, - 4 => AudioRingBufferFormatType::Mpeg, - 5 => AudioRingBufferFormatType::Gsm, - 6 => AudioRingBufferFormatType::Iec958, - 7 => AudioRingBufferFormatType::Ac3, - 8 => AudioRingBufferFormatType::Eac3, - 9 => AudioRingBufferFormatType::Dts, - 10 => AudioRingBufferFormatType::Mpeg2Aac, - 11 => AudioRingBufferFormatType::Mpeg4Aac, + 0 => Self::Raw, + 1 => Self::MuLaw, + 2 => Self::ALaw, + 3 => Self::ImaAdpcm, + 4 => Self::Mpeg, + 5 => Self::Gsm, + 6 => Self::Iec958, + 7 => Self::Ac3, + 8 => Self::Eac3, + 9 => Self::Dts, + 10 => Self::Mpeg2Aac, + 11 => Self::Mpeg4Aac, #[cfg(any(feature = "v1_12", feature = "dox"))] - 12 => AudioRingBufferFormatType::Mpeg2AacRaw, + 12 => Self::Mpeg2AacRaw, #[cfg(any(feature = "v1_12", feature = "dox"))] - 13 => AudioRingBufferFormatType::Mpeg4AacRaw, + 13 => Self::Mpeg4AacRaw, #[cfg(any(feature = "v1_12", feature = "dox"))] - 14 => AudioRingBufferFormatType::Flac, - value => AudioRingBufferFormatType::__Unknown(value), + 14 => Self::Flac, + value => Self::__Unknown(value), } } } @@ -867,7 +849,7 @@ unsafe impl<'a> FromValue<'a> for AudioRingBufferFormatType { impl ToValue for AudioRingBufferFormatType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - StreamVolumeFormat::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR, - StreamVolumeFormat::Cubic => ffi::GST_STREAM_VOLUME_FORMAT_CUBIC, - StreamVolumeFormat::Db => ffi::GST_STREAM_VOLUME_FORMAT_DB, - StreamVolumeFormat::__Unknown(value) => value, + Self::Linear => ffi::GST_STREAM_VOLUME_FORMAT_LINEAR, + Self::Cubic => ffi::GST_STREAM_VOLUME_FORMAT_CUBIC, + Self::Db => ffi::GST_STREAM_VOLUME_FORMAT_DB, + Self::__Unknown(value) => value, } } } @@ -912,10 +894,10 @@ impl FromGlib for StreamVolumeFormat { unsafe fn from_glib(value: ffi::GstStreamVolumeFormat) -> Self { skip_assert_initialized!(); match value { - 0 => StreamVolumeFormat::Linear, - 1 => StreamVolumeFormat::Cubic, - 2 => StreamVolumeFormat::Db, - value => StreamVolumeFormat::__Unknown(value), + 0 => Self::Linear, + 1 => Self::Cubic, + 2 => Self::Db, + value => Self::__Unknown(value), } } } diff --git a/gstreamer-audio/src/auto/flags.rs b/gstreamer-audio/src/auto/flags.rs index 45ab8f68a..f552b0b41 100644 --- a/gstreamer-audio/src/auto/flags.rs +++ b/gstreamer-audio/src/auto/flags.rs @@ -27,9 +27,9 @@ impl IntoGlib for AudioFlags { #[doc(hidden)] impl FromGlib for AudioFlags { - unsafe fn from_glib(value: ffi::GstAudioFlags) -> AudioFlags { + unsafe fn from_glib(value: ffi::GstAudioFlags) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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)] impl FromGlib for AudioFormatFlags { - unsafe fn from_glib(value: ffi::GstAudioFormatFlags) -> AudioFormatFlags { + unsafe fn from_glib(value: ffi::GstAudioFormatFlags) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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)] impl FromGlib for AudioPackFlags { - unsafe fn from_glib(value: ffi::GstAudioPackFlags) -> AudioPackFlags { + unsafe fn from_glib(value: ffi::GstAudioPackFlags) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index 224858394..db2a4b93f 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index 04cda99a7..57f32cce7 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 0e8d770cd..71f308117 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index fe000e13c..bf36bd6db 100644 --- a/gstreamer-audio/sys/tests/layout.c +++ b/gstreamer-audio/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 1cc9d98c7..640888465 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -43,10 +43,10 @@ impl IntoGlib for AggregatorStartTimeSelection { fn into_glib(self) -> ffi::GstAggregatorStartTimeSelection { match self { - AggregatorStartTimeSelection::Zero => ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO, - AggregatorStartTimeSelection::First => ffi::GST_AGGREGATOR_START_TIME_SELECTION_FIRST, - AggregatorStartTimeSelection::Set => ffi::GST_AGGREGATOR_START_TIME_SELECTION_SET, - AggregatorStartTimeSelection::__Unknown(value) => value, + Self::Zero => ffi::GST_AGGREGATOR_START_TIME_SELECTION_ZERO, + Self::First => ffi::GST_AGGREGATOR_START_TIME_SELECTION_FIRST, + Self::Set => ffi::GST_AGGREGATOR_START_TIME_SELECTION_SET, + Self::__Unknown(value) => value, } } } @@ -58,10 +58,10 @@ impl FromGlib for AggregatorStartTimeSelec unsafe fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { skip_assert_initialized!(); match value { - 0 => AggregatorStartTimeSelection::Zero, - 1 => AggregatorStartTimeSelection::First, - 2 => AggregatorStartTimeSelection::Set, - value => AggregatorStartTimeSelection::__Unknown(value), + 0 => Self::Zero, + 1 => Self::First, + 2 => Self::Set, + value => Self::__Unknown(value), } } } @@ -95,7 +95,7 @@ unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl ToValue for AggregatorStartTimeSelection { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-base/src/auto/flags.rs b/gstreamer-base/src/auto/flags.rs index a9b9085ac..b80cb67cb 100644 --- a/gstreamer-base/src/auto/flags.rs +++ b/gstreamer-base/src/auto/flags.rs @@ -27,8 +27,8 @@ impl IntoGlib for BaseParseFrameFlags { #[doc(hidden)] impl FromGlib for BaseParseFrameFlags { - unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> BaseParseFrameFlags { + unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> Self { skip_assert_initialized!(); - BaseParseFrameFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index 861c23a11..12272ef61 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index fc06d9500..04b5bd13c 100644 --- a/gstreamer-base/sys/tests/abi.rs +++ b/gstreamer-base/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index d7b4c4e07..addb9780f 100644 --- a/gstreamer-base/sys/tests/constant.c +++ b/gstreamer-base/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 432921aaa..3ae6487a4 100644 --- a/gstreamer-base/sys/tests/layout.c +++ b/gstreamer-base/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index b274e71e9..15ca104f0 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index a083c2cf0..d4d87a42a 100644 --- a/gstreamer-check/sys/tests/abi.rs +++ b/gstreamer-check/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 4a57f2659..2249df463 100644 --- a/gstreamer-check/sys/tests/constant.c +++ b/gstreamer-check/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index 044028c6a..ec5f47c00 100644 --- a/gstreamer-check/sys/tests/layout.c +++ b/gstreamer-check/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/src/auto/enums.rs b/gstreamer-controller/src/auto/enums.rs index c59ac70a2..787f2c76c 100644 --- a/gstreamer-controller/src/auto/enums.rs +++ b/gstreamer-controller/src/auto/enums.rs @@ -31,11 +31,11 @@ impl IntoGlib for InterpolationMode { fn into_glib(self) -> ffi::GstInterpolationMode { match self { - InterpolationMode::None => ffi::GST_INTERPOLATION_MODE_NONE, - InterpolationMode::Linear => ffi::GST_INTERPOLATION_MODE_LINEAR, - InterpolationMode::Cubic => ffi::GST_INTERPOLATION_MODE_CUBIC, - InterpolationMode::CubicMonotonic => ffi::GST_INTERPOLATION_MODE_CUBIC_MONOTONIC, - InterpolationMode::__Unknown(value) => value, + Self::None => ffi::GST_INTERPOLATION_MODE_NONE, + Self::Linear => ffi::GST_INTERPOLATION_MODE_LINEAR, + Self::Cubic => ffi::GST_INTERPOLATION_MODE_CUBIC, + Self::CubicMonotonic => ffi::GST_INTERPOLATION_MODE_CUBIC_MONOTONIC, + Self::__Unknown(value) => value, } } } @@ -45,11 +45,11 @@ impl FromGlib for InterpolationMode { unsafe fn from_glib(value: ffi::GstInterpolationMode) -> Self { skip_assert_initialized!(); match value { - 0 => InterpolationMode::None, - 1 => InterpolationMode::Linear, - 2 => InterpolationMode::Cubic, - 3 => InterpolationMode::CubicMonotonic, - value => InterpolationMode::__Unknown(value), + 0 => Self::None, + 1 => Self::Linear, + 2 => Self::Cubic, + 3 => Self::CubicMonotonic, + value => Self::__Unknown(value), } } } @@ -75,7 +75,7 @@ unsafe impl<'a> FromValue<'a> for InterpolationMode { impl ToValue for InterpolationMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - LFOWaveform::Sine => ffi::GST_LFO_WAVEFORM_SINE, - LFOWaveform::Square => ffi::GST_LFO_WAVEFORM_SQUARE, - LFOWaveform::Saw => ffi::GST_LFO_WAVEFORM_SAW, - LFOWaveform::ReverseSaw => ffi::GST_LFO_WAVEFORM_REVERSE_SAW, - LFOWaveform::Triangle => ffi::GST_LFO_WAVEFORM_TRIANGLE, - LFOWaveform::__Unknown(value) => value, + Self::Sine => ffi::GST_LFO_WAVEFORM_SINE, + Self::Square => ffi::GST_LFO_WAVEFORM_SQUARE, + Self::Saw => ffi::GST_LFO_WAVEFORM_SAW, + Self::ReverseSaw => ffi::GST_LFO_WAVEFORM_REVERSE_SAW, + Self::Triangle => ffi::GST_LFO_WAVEFORM_TRIANGLE, + Self::__Unknown(value) => value, } } } @@ -126,12 +126,12 @@ impl FromGlib for LFOWaveform { unsafe fn from_glib(value: ffi::GstLFOWaveform) -> Self { skip_assert_initialized!(); match value { - 0 => LFOWaveform::Sine, - 1 => LFOWaveform::Square, - 2 => LFOWaveform::Saw, - 3 => LFOWaveform::ReverseSaw, - 4 => LFOWaveform::Triangle, - value => LFOWaveform::__Unknown(value), + 0 => Self::Sine, + 1 => Self::Square, + 2 => Self::Saw, + 3 => Self::ReverseSaw, + 4 => Self::Triangle, + value => Self::__Unknown(value), } } } @@ -157,7 +157,7 @@ unsafe impl<'a> FromValue<'a> for LFOWaveform { impl ToValue for LFOWaveform { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index f0b12196e..8751f1417 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index 6f8c28f5e..34c22d856 100644 --- a/gstreamer-controller/sys/tests/abi.rs +++ b/gstreamer-controller/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index cf32ef1a8..a93fd6f28 100644 --- a/gstreamer-controller/sys/tests/constant.c +++ b/gstreamer-controller/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index 93afe2607..0ab8e4eab 100644 --- a/gstreamer-controller/sys/tests/layout.c +++ b/gstreamer-controller/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index 554eeaf52..4b9c3e810 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -60,10 +60,10 @@ impl IntoGlib for Edge { fn into_glib(self) -> ffi::GESEdge { match self { - Edge::Start => ffi::GES_EDGE_START, - Edge::End => ffi::GES_EDGE_END, - Edge::None => ffi::GES_EDGE_NONE, - Edge::__Unknown(value) => value, + Self::Start => ffi::GES_EDGE_START, + Self::End => ffi::GES_EDGE_END, + Self::None => ffi::GES_EDGE_NONE, + Self::__Unknown(value) => value, } } } @@ -73,10 +73,10 @@ impl FromGlib for Edge { unsafe fn from_glib(value: ffi::GESEdge) -> Self { skip_assert_initialized!(); match value { - 0 => Edge::Start, - 1 => Edge::End, - 2 => Edge::None, - value => Edge::__Unknown(value), + 0 => Self::Start, + 1 => Self::End, + 2 => Self::None, + value => Self::__Unknown(value), } } } @@ -102,7 +102,7 @@ unsafe impl<'a> FromValue<'a> for Edge { impl ToValue for Edge { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - EditMode::Normal => ffi::GES_EDIT_MODE_NORMAL, - EditMode::Ripple => ffi::GES_EDIT_MODE_RIPPLE, - EditMode::Roll => ffi::GES_EDIT_MODE_ROLL, - EditMode::Trim => ffi::GES_EDIT_MODE_TRIM, - EditMode::Slide => ffi::GES_EDIT_MODE_SLIDE, - EditMode::__Unknown(value) => value, + Self::Normal => ffi::GES_EDIT_MODE_NORMAL, + Self::Ripple => ffi::GES_EDIT_MODE_RIPPLE, + Self::Roll => ffi::GES_EDIT_MODE_ROLL, + Self::Trim => ffi::GES_EDIT_MODE_TRIM, + Self::Slide => ffi::GES_EDIT_MODE_SLIDE, + Self::__Unknown(value) => value, } } } @@ -178,12 +178,12 @@ impl FromGlib for EditMode { unsafe fn from_glib(value: ffi::GESEditMode) -> Self { skip_assert_initialized!(); match value { - 0 => EditMode::Normal, - 1 => EditMode::Ripple, - 2 => EditMode::Roll, - 3 => EditMode::Trim, - 4 => EditMode::Slide, - value => EditMode::__Unknown(value), + 0 => Self::Normal, + 1 => Self::Ripple, + 2 => Self::Roll, + 3 => Self::Trim, + 4 => Self::Slide, + value => Self::__Unknown(value), } } } @@ -209,7 +209,7 @@ unsafe impl<'a> FromValue<'a> for EditMode { impl ToValue for EditMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - VideoStandardTransitionType::None => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE, - VideoStandardTransitionType::BarWipeLr => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_LR - } - VideoStandardTransitionType::BarWipeTb => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BAR_WIPE_TB - } - VideoStandardTransitionType::BoxWipeTl => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TL - } - VideoStandardTransitionType::BoxWipeTr => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TR - } - VideoStandardTransitionType::BoxWipeBr => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BR - } - VideoStandardTransitionType::BoxWipeBl => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BL - } - VideoStandardTransitionType::FourBoxWipeCi => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CI - } - VideoStandardTransitionType::FourBoxWipeCo => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CO - } - VideoStandardTransitionType::BarndoorV => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_V - } - VideoStandardTransitionType::BarndoorH => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_H - } - VideoStandardTransitionType::BoxWipeTc => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TC - } - VideoStandardTransitionType::BoxWipeRc => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_RC - } - VideoStandardTransitionType::BoxWipeBc => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BC - } - VideoStandardTransitionType::BoxWipeLc => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_LC - } - VideoStandardTransitionType::DiagonalTl => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TL - } - VideoStandardTransitionType::DiagonalTr => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TR - } - VideoStandardTransitionType::BowtieV => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_V - } - VideoStandardTransitionType::BowtieH => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_H - } - VideoStandardTransitionType::BarndoorDbl => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DBL - } - VideoStandardTransitionType::BarndoorDtl => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DTL - } - VideoStandardTransitionType::MiscDiagonalDbd => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DBD - } - VideoStandardTransitionType::MiscDiagonalDd => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DD - } - VideoStandardTransitionType::VeeD => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_D, - VideoStandardTransitionType::VeeL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_L, - VideoStandardTransitionType::VeeU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_U, - VideoStandardTransitionType::VeeR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_R, - VideoStandardTransitionType::BarnveeD => { - ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_D - } - 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, + Self::None => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE, + Self::BarWipeLr => 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, + Self::BoxWipeTr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TR, + Self::BoxWipeBr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BR, + Self::BoxWipeBl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BL, + Self::FourBoxWipeCi => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CI, + Self::FourBoxWipeCo => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FOUR_BOX_WIPE_CO, + Self::BarndoorV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_V, + Self::BarndoorH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_H, + Self::BoxWipeTc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_TC, + Self::BoxWipeRc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_RC, + Self::BoxWipeBc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_BC, + Self::BoxWipeLc => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOX_WIPE_LC, + Self::DiagonalTl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TL, + Self::DiagonalTr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TR, + Self::BowtieV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_V, + Self::BowtieH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BOWTIE_H, + Self::BarndoorDbl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DBL, + Self::BarndoorDtl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNDOOR_DTL, + Self::MiscDiagonalDbd => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DBD, + Self::MiscDiagonalDd => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_MISC_DIAGONAL_DD, + Self::VeeD => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_D, + Self::VeeL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_L, + Self::VeeU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_U, + Self::VeeR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_VEE_R, + Self::BarnveeD => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_D, + Self::BarnveeL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_L, + Self::BarnveeU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_U, + Self::BarnveeR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_BARNVEE_R, + Self::IrisRect => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_IRIS_RECT, + Self::ClockCw12 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW12, + Self::ClockCw3 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW3, + Self::ClockCw6 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW6, + Self::ClockCw9 => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CLOCK_CW9, + Self::PinwheelTbv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBV, + Self::PinwheelTbh => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_TBH, + Self::PinwheelFb => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_PINWHEEL_FB, + Self::FanCt => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CT, + Self::FanCr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_CR, + Self::DoublefanFov => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOV, + Self::DoublefanFoh => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FOH, + Self::SinglesweepCwt => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWT, + Self::SinglesweepCwr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWR, + Self::SinglesweepCwb => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWB, + Self::SinglesweepCwl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWL, + Self::DoublesweepPv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PV, + Self::DoublesweepPd => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PD, + Self::DoublesweepOv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OV, + Self::DoublesweepOh => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_OH, + Self::FanT => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_T, + Self::FanR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_R, + Self::FanB => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_B, + Self::FanL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_L, + Self::DoublefanFiv => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIV, + Self::DoublefanFih => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLEFAN_FIH, + Self::SinglesweepCwtl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTL, + Self::SinglesweepCwbl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBL, + Self::SinglesweepCwbr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWBR, + Self::SinglesweepCwtr => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SINGLESWEEP_CWTR, + Self::DoublesweepPdtl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDTL, + Self::DoublesweepPdbl => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_DOUBLESWEEP_PDBL, + Self::SaloondoorT => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_T, + Self::SaloondoorL => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_L, + Self::SaloondoorB => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_B, + Self::SaloondoorR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_SALOONDOOR_R, + Self::WindshieldR => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_R, + Self::WindshieldU => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_U, + Self::WindshieldV => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_V, + Self::WindshieldH => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_WINDSHIELD_H, + Self::Crossfade => ffi::GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE, + Self::__Unknown(value) => value, } } } @@ -583,79 +461,79 @@ impl FromGlib for VideoStandardTransitionTy unsafe fn from_glib(value: ffi::GESVideoStandardTransitionType) -> Self { skip_assert_initialized!(); match value { - 0 => VideoStandardTransitionType::None, - 1 => VideoStandardTransitionType::BarWipeLr, - 2 => VideoStandardTransitionType::BarWipeTb, - 3 => VideoStandardTransitionType::BoxWipeTl, - 4 => VideoStandardTransitionType::BoxWipeTr, - 5 => VideoStandardTransitionType::BoxWipeBr, - 6 => VideoStandardTransitionType::BoxWipeBl, - 7 => VideoStandardTransitionType::FourBoxWipeCi, - 8 => VideoStandardTransitionType::FourBoxWipeCo, - 21 => VideoStandardTransitionType::BarndoorV, - 22 => VideoStandardTransitionType::BarndoorH, - 23 => VideoStandardTransitionType::BoxWipeTc, - 24 => VideoStandardTransitionType::BoxWipeRc, - 25 => VideoStandardTransitionType::BoxWipeBc, - 26 => VideoStandardTransitionType::BoxWipeLc, - 41 => VideoStandardTransitionType::DiagonalTl, - 42 => VideoStandardTransitionType::DiagonalTr, - 43 => VideoStandardTransitionType::BowtieV, - 44 => VideoStandardTransitionType::BowtieH, - 45 => VideoStandardTransitionType::BarndoorDbl, - 46 => VideoStandardTransitionType::BarndoorDtl, - 47 => VideoStandardTransitionType::MiscDiagonalDbd, - 48 => VideoStandardTransitionType::MiscDiagonalDd, - 61 => VideoStandardTransitionType::VeeD, - 62 => VideoStandardTransitionType::VeeL, - 63 => VideoStandardTransitionType::VeeU, - 64 => VideoStandardTransitionType::VeeR, - 65 => VideoStandardTransitionType::BarnveeD, - 66 => VideoStandardTransitionType::BarnveeL, - 67 => VideoStandardTransitionType::BarnveeU, - 68 => VideoStandardTransitionType::BarnveeR, - 101 => VideoStandardTransitionType::IrisRect, - 201 => VideoStandardTransitionType::ClockCw12, - 202 => VideoStandardTransitionType::ClockCw3, - 203 => VideoStandardTransitionType::ClockCw6, - 204 => VideoStandardTransitionType::ClockCw9, - 205 => VideoStandardTransitionType::PinwheelTbv, - 206 => VideoStandardTransitionType::PinwheelTbh, - 207 => VideoStandardTransitionType::PinwheelFb, - 211 => VideoStandardTransitionType::FanCt, - 212 => VideoStandardTransitionType::FanCr, - 213 => VideoStandardTransitionType::DoublefanFov, - 214 => VideoStandardTransitionType::DoublefanFoh, - 221 => VideoStandardTransitionType::SinglesweepCwt, - 222 => VideoStandardTransitionType::SinglesweepCwr, - 223 => VideoStandardTransitionType::SinglesweepCwb, - 224 => VideoStandardTransitionType::SinglesweepCwl, - 225 => VideoStandardTransitionType::DoublesweepPv, - 226 => VideoStandardTransitionType::DoublesweepPd, - 227 => VideoStandardTransitionType::DoublesweepOv, - 228 => VideoStandardTransitionType::DoublesweepOh, - 231 => VideoStandardTransitionType::FanT, - 232 => VideoStandardTransitionType::FanR, - 233 => VideoStandardTransitionType::FanB, - 234 => VideoStandardTransitionType::FanL, - 235 => VideoStandardTransitionType::DoublefanFiv, - 236 => VideoStandardTransitionType::DoublefanFih, - 241 => VideoStandardTransitionType::SinglesweepCwtl, - 242 => VideoStandardTransitionType::SinglesweepCwbl, - 243 => VideoStandardTransitionType::SinglesweepCwbr, - 244 => VideoStandardTransitionType::SinglesweepCwtr, - 245 => VideoStandardTransitionType::DoublesweepPdtl, - 246 => VideoStandardTransitionType::DoublesweepPdbl, - 251 => VideoStandardTransitionType::SaloondoorT, - 252 => VideoStandardTransitionType::SaloondoorL, - 253 => VideoStandardTransitionType::SaloondoorB, - 254 => VideoStandardTransitionType::SaloondoorR, - 261 => VideoStandardTransitionType::WindshieldR, - 262 => VideoStandardTransitionType::WindshieldU, - 263 => VideoStandardTransitionType::WindshieldV, - 264 => VideoStandardTransitionType::WindshieldH, - 512 => VideoStandardTransitionType::Crossfade, - value => VideoStandardTransitionType::__Unknown(value), + 0 => Self::None, + 1 => Self::BarWipeLr, + 2 => Self::BarWipeTb, + 3 => Self::BoxWipeTl, + 4 => Self::BoxWipeTr, + 5 => Self::BoxWipeBr, + 6 => Self::BoxWipeBl, + 7 => Self::FourBoxWipeCi, + 8 => Self::FourBoxWipeCo, + 21 => Self::BarndoorV, + 22 => Self::BarndoorH, + 23 => Self::BoxWipeTc, + 24 => Self::BoxWipeRc, + 25 => Self::BoxWipeBc, + 26 => Self::BoxWipeLc, + 41 => Self::DiagonalTl, + 42 => Self::DiagonalTr, + 43 => Self::BowtieV, + 44 => Self::BowtieH, + 45 => Self::BarndoorDbl, + 46 => Self::BarndoorDtl, + 47 => Self::MiscDiagonalDbd, + 48 => Self::MiscDiagonalDd, + 61 => Self::VeeD, + 62 => Self::VeeL, + 63 => Self::VeeU, + 64 => Self::VeeR, + 65 => Self::BarnveeD, + 66 => Self::BarnveeL, + 67 => Self::BarnveeU, + 68 => Self::BarnveeR, + 101 => Self::IrisRect, + 201 => Self::ClockCw12, + 202 => Self::ClockCw3, + 203 => Self::ClockCw6, + 204 => Self::ClockCw9, + 205 => Self::PinwheelTbv, + 206 => Self::PinwheelTbh, + 207 => Self::PinwheelFb, + 211 => Self::FanCt, + 212 => Self::FanCr, + 213 => Self::DoublefanFov, + 214 => Self::DoublefanFoh, + 221 => Self::SinglesweepCwt, + 222 => Self::SinglesweepCwr, + 223 => Self::SinglesweepCwb, + 224 => Self::SinglesweepCwl, + 225 => Self::DoublesweepPv, + 226 => Self::DoublesweepPd, + 227 => Self::DoublesweepOv, + 228 => Self::DoublesweepOh, + 231 => Self::FanT, + 232 => Self::FanR, + 233 => Self::FanB, + 234 => Self::FanL, + 235 => Self::DoublefanFiv, + 236 => Self::DoublefanFih, + 241 => Self::SinglesweepCwtl, + 242 => Self::SinglesweepCwbl, + 243 => Self::SinglesweepCwbr, + 244 => Self::SinglesweepCwtr, + 245 => Self::DoublesweepPdtl, + 246 => Self::DoublesweepPdbl, + 251 => Self::SaloondoorT, + 252 => Self::SaloondoorL, + 253 => Self::SaloondoorB, + 254 => Self::SaloondoorR, + 261 => Self::WindshieldR, + 262 => Self::WindshieldU, + 263 => Self::WindshieldV, + 264 => Self::WindshieldH, + 512 => Self::Crossfade, + value => Self::__Unknown(value), } } } @@ -681,7 +559,7 @@ unsafe impl<'a> FromValue<'a> for VideoStandardTransitionType { impl ToValue for VideoStandardTransitionType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-editing-services/src/auto/flags.rs b/gstreamer-editing-services/src/auto/flags.rs index 88ea00e10..589c274fd 100644 --- a/gstreamer-editing-services/src/auto/flags.rs +++ b/gstreamer-editing-services/src/auto/flags.rs @@ -33,9 +33,9 @@ impl IntoGlib for PipelineFlags { #[doc(hidden)] impl FromGlib for PipelineFlags { - unsafe fn from_glib(value: ffi::GESPipelineFlags) -> PipelineFlags { + unsafe fn from_glib(value: ffi::GESPipelineFlags) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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)] impl FromGlib for TrackType { - unsafe fn from_glib(value: ffi::GESTrackType) -> TrackType { + unsafe fn from_glib(value: ffi::GESTrackType) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index 5cc19635d..753c38f8d 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index c24ba43c2..4a906ba49 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index c10cc94ae..6b780fa27 100644 --- a/gstreamer-editing-services/sys/tests/constant.c +++ b/gstreamer-editing-services/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index 12106861b..942d1e22a 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/egl/sys/build.rs b/gstreamer-gl/egl/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-gl/egl/sys/build.rs +++ b/gstreamer-gl/egl/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index 66b7d5afa..e25527fdf 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/abi.rs b/gstreamer-gl/egl/sys/tests/abi.rs index 397afb6c9..95aabe052 100644 --- a/gstreamer-gl/egl/sys/tests/abi.rs +++ b/gstreamer-gl/egl/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-gl/egl/sys/tests/constant.c b/gstreamer-gl/egl/sys/tests/constant.c index 5f9d85dc1..158e3f312 100644 --- a/gstreamer-gl/egl/sys/tests/constant.c +++ b/gstreamer-gl/egl/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/layout.c b/gstreamer-gl/egl/sys/tests/layout.c index 78734ebcb..c9cf71f74 100644 --- a/gstreamer-gl/egl/sys/tests/layout.c +++ b/gstreamer-gl/egl/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index aacfd6013..fa3ebdd46 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -41,13 +41,13 @@ impl IntoGlib for GLContextError { fn into_glib(self) -> ffi::GstGLContextError { match self { - GLContextError::Failed => ffi::GST_GL_CONTEXT_ERROR_FAILED, - GLContextError::WrongConfig => ffi::GST_GL_CONTEXT_ERROR_WRONG_CONFIG, - GLContextError::WrongApi => ffi::GST_GL_CONTEXT_ERROR_WRONG_API, - GLContextError::OldLibs => ffi::GST_GL_CONTEXT_ERROR_OLD_LIBS, - GLContextError::CreateContext => ffi::GST_GL_CONTEXT_ERROR_CREATE_CONTEXT, - GLContextError::ResourceUnavailable => ffi::GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE, - GLContextError::__Unknown(value) => value, + Self::Failed => ffi::GST_GL_CONTEXT_ERROR_FAILED, + Self::WrongConfig => ffi::GST_GL_CONTEXT_ERROR_WRONG_CONFIG, + Self::WrongApi => ffi::GST_GL_CONTEXT_ERROR_WRONG_API, + Self::OldLibs => ffi::GST_GL_CONTEXT_ERROR_OLD_LIBS, + Self::CreateContext => ffi::GST_GL_CONTEXT_ERROR_CREATE_CONTEXT, + Self::ResourceUnavailable => ffi::GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE, + Self::__Unknown(value) => value, } } } @@ -57,13 +57,13 @@ impl FromGlib for GLContextError { unsafe fn from_glib(value: ffi::GstGLContextError) -> Self { skip_assert_initialized!(); match value { - 0 => GLContextError::Failed, - 1 => GLContextError::WrongConfig, - 2 => GLContextError::WrongApi, - 3 => GLContextError::OldLibs, - 4 => GLContextError::CreateContext, - 5 => GLContextError::ResourceUnavailable, - value => GLContextError::__Unknown(value), + 0 => Self::Failed, + 1 => Self::WrongConfig, + 2 => Self::WrongApi, + 3 => Self::OldLibs, + 4 => Self::CreateContext, + 5 => Self::ResourceUnavailable, + value => Self::__Unknown(value), } } } @@ -82,13 +82,13 @@ impl ErrorDomain for GLContextError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(GLContextError::Failed), - 1 => Some(GLContextError::WrongConfig), - 2 => Some(GLContextError::WrongApi), - 3 => Some(GLContextError::OldLibs), - 4 => Some(GLContextError::CreateContext), - 5 => Some(GLContextError::ResourceUnavailable), - _ => Some(GLContextError::Failed), + 0 => Some(Self::Failed), + 1 => Some(Self::WrongConfig), + 2 => Some(Self::WrongApi), + 3 => Some(Self::OldLibs), + 4 => Some(Self::CreateContext), + 5 => Some(Self::ResourceUnavailable), + _ => Some(Self::Failed), } } } @@ -114,7 +114,7 @@ unsafe impl<'a> FromValue<'a> for GLContextError { impl ToValue for GLContextError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLFormat::Luminance => ffi::GST_GL_LUMINANCE, - GLFormat::Alpha => ffi::GST_GL_ALPHA, - GLFormat::LuminanceAlpha => ffi::GST_GL_LUMINANCE_ALPHA, - GLFormat::Red => ffi::GST_GL_RED, - GLFormat::R8 => ffi::GST_GL_R8, - GLFormat::Rg => ffi::GST_GL_RG, - GLFormat::Rg8 => ffi::GST_GL_RG8, - GLFormat::Rgb => ffi::GST_GL_RGB, - GLFormat::Rgb8 => ffi::GST_GL_RGB8, - GLFormat::Rgb565 => ffi::GST_GL_RGB565, - GLFormat::Rgb16 => ffi::GST_GL_RGB16, - GLFormat::Rgba => ffi::GST_GL_RGBA, - GLFormat::Rgba8 => ffi::GST_GL_RGBA8, - GLFormat::Rgba16 => ffi::GST_GL_RGBA16, - GLFormat::DepthComponent16 => ffi::GST_GL_DEPTH_COMPONENT16, - GLFormat::Depth24Stencil8 => ffi::GST_GL_DEPTH24_STENCIL8, - GLFormat::Rgb10A2 => ffi::GST_GL_RGB10_A2, - GLFormat::R16 => ffi::GST_GL_R16, - GLFormat::Rg16 => ffi::GST_GL_RG16, - GLFormat::__Unknown(value) => value, + Self::Luminance => ffi::GST_GL_LUMINANCE, + Self::Alpha => ffi::GST_GL_ALPHA, + Self::LuminanceAlpha => ffi::GST_GL_LUMINANCE_ALPHA, + Self::Red => ffi::GST_GL_RED, + Self::R8 => ffi::GST_GL_R8, + Self::Rg => ffi::GST_GL_RG, + Self::Rg8 => ffi::GST_GL_RG8, + Self::Rgb => ffi::GST_GL_RGB, + Self::Rgb8 => ffi::GST_GL_RGB8, + Self::Rgb565 => ffi::GST_GL_RGB565, + Self::Rgb16 => ffi::GST_GL_RGB16, + Self::Rgba => ffi::GST_GL_RGBA, + Self::Rgba8 => ffi::GST_GL_RGBA8, + Self::Rgba16 => ffi::GST_GL_RGBA16, + Self::DepthComponent16 => ffi::GST_GL_DEPTH_COMPONENT16, + Self::Depth24Stencil8 => ffi::GST_GL_DEPTH24_STENCIL8, + Self::Rgb10A2 => ffi::GST_GL_RGB10_A2, + Self::R16 => ffi::GST_GL_R16, + Self::Rg16 => ffi::GST_GL_RG16, + Self::__Unknown(value) => value, } } } @@ -263,26 +263,26 @@ impl FromGlib for GLFormat { unsafe fn from_glib(value: ffi::GstGLFormat) -> Self { skip_assert_initialized!(); match value { - 6409 => GLFormat::Luminance, - 6406 => GLFormat::Alpha, - 6410 => GLFormat::LuminanceAlpha, - 6403 => GLFormat::Red, - 33321 => GLFormat::R8, - 33319 => GLFormat::Rg, - 33323 => GLFormat::Rg8, - 6407 => GLFormat::Rgb, - 32849 => GLFormat::Rgb8, - 36194 => GLFormat::Rgb565, - 32852 => GLFormat::Rgb16, - 6408 => GLFormat::Rgba, - 32856 => GLFormat::Rgba8, - 32859 => GLFormat::Rgba16, - 33189 => GLFormat::DepthComponent16, - 35056 => GLFormat::Depth24Stencil8, - 32857 => GLFormat::Rgb10A2, - 33322 => GLFormat::R16, - 33324 => GLFormat::Rg16, - value => GLFormat::__Unknown(value), + 6409 => Self::Luminance, + 6406 => Self::Alpha, + 6410 => Self::LuminanceAlpha, + 6403 => Self::Red, + 33321 => Self::R8, + 33319 => Self::Rg, + 33323 => Self::Rg8, + 6407 => Self::Rgb, + 32849 => Self::Rgb8, + 36194 => Self::Rgb565, + 32852 => Self::Rgb16, + 6408 => Self::Rgba, + 32856 => Self::Rgba8, + 32859 => Self::Rgba16, + 33189 => Self::DepthComponent16, + 35056 => Self::Depth24Stencil8, + 32857 => Self::Rgb10A2, + 33322 => Self::R16, + 33324 => Self::Rg16, + value => Self::__Unknown(value), } } } @@ -308,7 +308,7 @@ unsafe impl<'a> FromValue<'a> for GLFormat { impl ToValue for GLFormat { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLQueryType::None => ffi::GST_GL_QUERY_NONE, - GLQueryType::TimeElapsed => ffi::GST_GL_QUERY_TIME_ELAPSED, - GLQueryType::Timestamp => ffi::GST_GL_QUERY_TIMESTAMP, - GLQueryType::__Unknown(value) => value, + Self::None => ffi::GST_GL_QUERY_NONE, + Self::TimeElapsed => ffi::GST_GL_QUERY_TIME_ELAPSED, + Self::Timestamp => ffi::GST_GL_QUERY_TIMESTAMP, + Self::__Unknown(value) => value, } } } @@ -353,10 +353,10 @@ impl FromGlib for GLQueryType { unsafe fn from_glib(value: ffi::GstGLQueryType) -> Self { skip_assert_initialized!(); match value { - 0 => GLQueryType::None, - 1 => GLQueryType::TimeElapsed, - 2 => GLQueryType::Timestamp, - value => GLQueryType::__Unknown(value), + 0 => Self::None, + 1 => Self::TimeElapsed, + 2 => Self::Timestamp, + value => Self::__Unknown(value), } } } @@ -382,7 +382,7 @@ unsafe impl<'a> FromValue<'a> for GLQueryType { impl ToValue for GLQueryType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLSLError::Compile => ffi::GST_GLSL_ERROR_COMPILE, - GLSLError::Link => ffi::GST_GLSL_ERROR_LINK, - GLSLError::Program => ffi::GST_GLSL_ERROR_PROGRAM, - GLSLError::__Unknown(value) => value, + Self::Compile => ffi::GST_GLSL_ERROR_COMPILE, + Self::Link => ffi::GST_GLSL_ERROR_LINK, + Self::Program => ffi::GST_GLSL_ERROR_PROGRAM, + Self::__Unknown(value) => value, } } } @@ -427,10 +427,10 @@ impl FromGlib for GLSLError { unsafe fn from_glib(value: ffi::GstGLSLError) -> Self { skip_assert_initialized!(); match value { - 0 => GLSLError::Compile, - 1 => GLSLError::Link, - 2 => GLSLError::Program, - value => GLSLError::__Unknown(value), + 0 => Self::Compile, + 1 => Self::Link, + 2 => Self::Program, + value => Self::__Unknown(value), } } } @@ -449,10 +449,10 @@ impl ErrorDomain for GLSLError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(GLSLError::Compile), - 1 => Some(GLSLError::Link), - 2 => Some(GLSLError::Program), - value => Some(GLSLError::__Unknown(value)), + 0 => Some(Self::Compile), + 1 => Some(Self::Link), + 2 => Some(Self::Program), + value => Some(Self::__Unknown(value)), } } } @@ -478,7 +478,7 @@ unsafe impl<'a> FromValue<'a> for GLSLError { impl ToValue for GLSLError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLSLVersion::None => ffi::GST_GLSL_VERSION_NONE, - GLSLVersion::_100 => ffi::GST_GLSL_VERSION_100, - GLSLVersion::_110 => ffi::GST_GLSL_VERSION_110, - GLSLVersion::_120 => ffi::GST_GLSL_VERSION_120, - GLSLVersion::_130 => ffi::GST_GLSL_VERSION_130, - GLSLVersion::_140 => ffi::GST_GLSL_VERSION_140, - GLSLVersion::_150 => ffi::GST_GLSL_VERSION_150, - GLSLVersion::_300 => ffi::GST_GLSL_VERSION_300, - GLSLVersion::_310 => ffi::GST_GLSL_VERSION_310, - GLSLVersion::_320 => ffi::GST_GLSL_VERSION_320, - GLSLVersion::_330 => ffi::GST_GLSL_VERSION_330, - GLSLVersion::_400 => ffi::GST_GLSL_VERSION_400, - GLSLVersion::_410 => ffi::GST_GLSL_VERSION_410, - GLSLVersion::_420 => ffi::GST_GLSL_VERSION_420, - GLSLVersion::_430 => ffi::GST_GLSL_VERSION_430, - GLSLVersion::_440 => ffi::GST_GLSL_VERSION_440, - GLSLVersion::_450 => ffi::GST_GLSL_VERSION_450, - GLSLVersion::__Unknown(value) => value, + Self::None => ffi::GST_GLSL_VERSION_NONE, + Self::_100 => ffi::GST_GLSL_VERSION_100, + Self::_110 => ffi::GST_GLSL_VERSION_110, + Self::_120 => ffi::GST_GLSL_VERSION_120, + Self::_130 => ffi::GST_GLSL_VERSION_130, + Self::_140 => ffi::GST_GLSL_VERSION_140, + Self::_150 => ffi::GST_GLSL_VERSION_150, + Self::_300 => ffi::GST_GLSL_VERSION_300, + Self::_310 => ffi::GST_GLSL_VERSION_310, + Self::_320 => ffi::GST_GLSL_VERSION_320, + Self::_330 => ffi::GST_GLSL_VERSION_330, + Self::_400 => ffi::GST_GLSL_VERSION_400, + Self::_410 => ffi::GST_GLSL_VERSION_410, + Self::_420 => ffi::GST_GLSL_VERSION_420, + Self::_430 => ffi::GST_GLSL_VERSION_430, + Self::_440 => ffi::GST_GLSL_VERSION_440, + Self::_450 => ffi::GST_GLSL_VERSION_450, + Self::__Unknown(value) => value, } } } @@ -611,24 +611,24 @@ impl FromGlib for GLSLVersion { unsafe fn from_glib(value: ffi::GstGLSLVersion) -> Self { skip_assert_initialized!(); match value { - 0 => GLSLVersion::None, - 100 => GLSLVersion::_100, - 110 => GLSLVersion::_110, - 120 => GLSLVersion::_120, - 130 => GLSLVersion::_130, - 140 => GLSLVersion::_140, - 150 => GLSLVersion::_150, - 300 => GLSLVersion::_300, - 310 => GLSLVersion::_310, - 320 => GLSLVersion::_320, - 330 => GLSLVersion::_330, - 400 => GLSLVersion::_400, - 410 => GLSLVersion::_410, - 420 => GLSLVersion::_420, - 430 => GLSLVersion::_430, - 440 => GLSLVersion::_440, - 450 => GLSLVersion::_450, - value => GLSLVersion::__Unknown(value), + 0 => Self::None, + 100 => Self::_100, + 110 => Self::_110, + 120 => Self::_120, + 130 => Self::_130, + 140 => Self::_140, + 150 => Self::_150, + 300 => Self::_300, + 310 => Self::_310, + 320 => Self::_320, + 330 => Self::_330, + 400 => Self::_400, + 410 => Self::_410, + 420 => Self::_420, + 430 => Self::_430, + 440 => Self::_440, + 450 => Self::_450, + value => Self::__Unknown(value), } } } @@ -654,7 +654,7 @@ unsafe impl<'a> FromValue<'a> for GLSLVersion { impl ToValue for GLSLVersion { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLStereoDownmix::GreenMagentaDubois => { - ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_GREEN_MAGENTA_DUBOIS - } - GLStereoDownmix::RedCyanDubois => ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_RED_CYAN_DUBOIS, - GLStereoDownmix::AmberBlueDubois => { - ffi::GST_GL_STEREO_DOWNMIX_ANAGLYPH_AMBER_BLUE_DUBOIS - } - GLStereoDownmix::__Unknown(value) => value, + Self::GreenMagentaDubois => 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, + Self::__Unknown(value) => value, } } } @@ -703,10 +699,10 @@ impl FromGlib for GLStereoDownmix { unsafe fn from_glib(value: ffi::GstGLStereoDownmix) -> Self { skip_assert_initialized!(); match value { - 0 => GLStereoDownmix::GreenMagentaDubois, - 1 => GLStereoDownmix::RedCyanDubois, - 2 => GLStereoDownmix::AmberBlueDubois, - value => GLStereoDownmix::__Unknown(value), + 0 => Self::GreenMagentaDubois, + 1 => Self::RedCyanDubois, + 2 => Self::AmberBlueDubois, + value => Self::__Unknown(value), } } } @@ -732,7 +728,7 @@ unsafe impl<'a> FromValue<'a> for GLStereoDownmix { impl ToValue for GLStereoDownmix { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLTextureTarget::None => ffi::GST_GL_TEXTURE_TARGET_NONE, - GLTextureTarget::_2d => ffi::GST_GL_TEXTURE_TARGET_2D, - GLTextureTarget::Rectangle => ffi::GST_GL_TEXTURE_TARGET_RECTANGLE, - GLTextureTarget::ExternalOes => ffi::GST_GL_TEXTURE_TARGET_EXTERNAL_OES, - GLTextureTarget::__Unknown(value) => value, + Self::None => ffi::GST_GL_TEXTURE_TARGET_NONE, + Self::_2d => ffi::GST_GL_TEXTURE_TARGET_2D, + Self::Rectangle => ffi::GST_GL_TEXTURE_TARGET_RECTANGLE, + Self::ExternalOes => ffi::GST_GL_TEXTURE_TARGET_EXTERNAL_OES, + Self::__Unknown(value) => value, } } } @@ -816,11 +812,11 @@ impl FromGlib for GLTextureTarget { unsafe fn from_glib(value: ffi::GstGLTextureTarget) -> Self { skip_assert_initialized!(); match value { - 0 => GLTextureTarget::None, - 1 => GLTextureTarget::_2d, - 2 => GLTextureTarget::Rectangle, - 3 => GLTextureTarget::ExternalOes, - value => GLTextureTarget::__Unknown(value), + 0 => Self::None, + 1 => Self::_2d, + 2 => Self::Rectangle, + 3 => Self::ExternalOes, + value => Self::__Unknown(value), } } } @@ -846,7 +842,7 @@ unsafe impl<'a> FromValue<'a> for GLTextureTarget { impl ToValue for GLTextureTarget { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLUploadReturn::Done => ffi::GST_GL_UPLOAD_DONE, - GLUploadReturn::Error => ffi::GST_GL_UPLOAD_ERROR, - GLUploadReturn::Unsupported => ffi::GST_GL_UPLOAD_UNSUPPORTED, - GLUploadReturn::Reconfigure => ffi::GST_GL_UPLOAD_RECONFIGURE, - GLUploadReturn::UnsharedGlContext => ffi::GST_GL_UPLOAD_UNSHARED_GL_CONTEXT, - GLUploadReturn::__Unknown(value) => value, + Self::Done => ffi::GST_GL_UPLOAD_DONE, + Self::Error => ffi::GST_GL_UPLOAD_ERROR, + Self::Unsupported => ffi::GST_GL_UPLOAD_UNSUPPORTED, + Self::Reconfigure => ffi::GST_GL_UPLOAD_RECONFIGURE, + Self::UnsharedGlContext => ffi::GST_GL_UPLOAD_UNSHARED_GL_CONTEXT, + Self::__Unknown(value) => value, } } } @@ -897,12 +893,12 @@ impl FromGlib for GLUploadReturn { unsafe fn from_glib(value: ffi::GstGLUploadReturn) -> Self { skip_assert_initialized!(); match value { - 1 => GLUploadReturn::Done, - -1 => GLUploadReturn::Error, - -2 => GLUploadReturn::Unsupported, - -3 => GLUploadReturn::Reconfigure, - -100 => GLUploadReturn::UnsharedGlContext, - value => GLUploadReturn::__Unknown(value), + 1 => Self::Done, + -1 => Self::Error, + -2 => Self::Unsupported, + -3 => Self::Reconfigure, + -100 => Self::UnsharedGlContext, + value => Self::__Unknown(value), } } } @@ -928,7 +924,7 @@ unsafe impl<'a> FromValue<'a> for GLUploadReturn { impl ToValue for GLUploadReturn { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - GLWindowError::Failed => ffi::GST_GL_WINDOW_ERROR_FAILED, - GLWindowError::OldLibs => ffi::GST_GL_WINDOW_ERROR_OLD_LIBS, - GLWindowError::ResourceUnavailable => ffi::GST_GL_WINDOW_ERROR_RESOURCE_UNAVAILABLE, - GLWindowError::__Unknown(value) => value, + Self::Failed => ffi::GST_GL_WINDOW_ERROR_FAILED, + Self::OldLibs => ffi::GST_GL_WINDOW_ERROR_OLD_LIBS, + Self::ResourceUnavailable => ffi::GST_GL_WINDOW_ERROR_RESOURCE_UNAVAILABLE, + Self::__Unknown(value) => value, } } } @@ -973,10 +969,10 @@ impl FromGlib for GLWindowError { unsafe fn from_glib(value: ffi::GstGLWindowError) -> Self { skip_assert_initialized!(); match value { - 0 => GLWindowError::Failed, - 1 => GLWindowError::OldLibs, - 2 => GLWindowError::ResourceUnavailable, - value => GLWindowError::__Unknown(value), + 0 => Self::Failed, + 1 => Self::OldLibs, + 2 => Self::ResourceUnavailable, + value => Self::__Unknown(value), } } } @@ -995,10 +991,10 @@ impl ErrorDomain for GLWindowError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(GLWindowError::Failed), - 1 => Some(GLWindowError::OldLibs), - 2 => Some(GLWindowError::ResourceUnavailable), - _ => Some(GLWindowError::Failed), + 0 => Some(Self::Failed), + 1 => Some(Self::OldLibs), + 2 => Some(Self::ResourceUnavailable), + _ => Some(Self::Failed), } } } @@ -1024,7 +1020,7 @@ unsafe impl<'a> FromValue<'a> for GLWindowError { impl ToValue for GLWindowError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index 4bfa07a01..bfb07e7d1 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -52,9 +52,9 @@ impl IntoGlib for GLAPI { #[doc(hidden)] impl FromGlib for GLAPI { - unsafe fn from_glib(value: ffi::GstGLAPI) -> GLAPI { + unsafe fn from_glib(value: ffi::GstGLAPI) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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)] impl FromGlib for GLDisplayType { - unsafe fn from_glib(value: ffi::GstGLDisplayType) -> GLDisplayType { + unsafe fn from_glib(value: ffi::GstGLDisplayType) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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)] impl FromGlib for GLPlatform { - unsafe fn from_glib(value: ffi::GstGLPlatform) -> GLPlatform { + unsafe fn from_glib(value: ffi::GstGLPlatform) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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)] impl FromGlib for GLSLProfile { - unsafe fn from_glib(value: ffi::GstGLSLProfile) -> GLSLProfile { + unsafe fn from_glib(value: ffi::GstGLSLProfile) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index c7be92a39..683368d14 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index 192581783..257cb1b88 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 9ab38b847..8a3110826 100644 --- a/gstreamer-gl/sys/tests/constant.c +++ b/gstreamer-gl/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index c754fb69e..0f6d48375 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/wayland/sys/build.rs b/gstreamer-gl/wayland/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-gl/wayland/sys/build.rs +++ b/gstreamer-gl/wayland/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index 17d5e4c02..023c54b72 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/abi.rs b/gstreamer-gl/wayland/sys/tests/abi.rs index 6f4172175..df23c78a0 100644 --- a/gstreamer-gl/wayland/sys/tests/abi.rs +++ b/gstreamer-gl/wayland/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-gl/wayland/sys/tests/constant.c b/gstreamer-gl/wayland/sys/tests/constant.c index 4a57f2659..2249df463 100644 --- a/gstreamer-gl/wayland/sys/tests/constant.c +++ b/gstreamer-gl/wayland/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/layout.c b/gstreamer-gl/wayland/sys/tests/layout.c index 56cbe8d28..df41511be 100644 --- a/gstreamer-gl/wayland/sys/tests/layout.c +++ b/gstreamer-gl/wayland/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-gl/x11/sys/build.rs b/gstreamer-gl/x11/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-gl/x11/sys/build.rs +++ b/gstreamer-gl/x11/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index 4c375444c..8be607625 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/abi.rs b/gstreamer-gl/x11/sys/tests/abi.rs index edd5d8ac0..4b08354d3 100644 --- a/gstreamer-gl/x11/sys/tests/abi.rs +++ b/gstreamer-gl/x11/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-gl/x11/sys/tests/constant.c b/gstreamer-gl/x11/sys/tests/constant.c index 4a57f2659..2249df463 100644 --- a/gstreamer-gl/x11/sys/tests/constant.c +++ b/gstreamer-gl/x11/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/layout.c b/gstreamer-gl/x11/sys/tests/layout.c index 7284d593d..f4327e7ba 100644 --- a/gstreamer-gl/x11/sys/tests/layout.c +++ b/gstreamer-gl/x11/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 82f41cbe3..312f2ab88 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index dc3075e75..95d5224b9 100644 --- a/gstreamer-mpegts/sys/tests/abi.rs +++ b/gstreamer-mpegts/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index aa34a098a..744535d26 100644 --- a/gstreamer-mpegts/sys/tests/constant.c +++ b/gstreamer-mpegts/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index ecd9453b2..67134b928 100644 --- a/gstreamer-mpegts/sys/tests/layout.c +++ b/gstreamer-mpegts/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index 905c08a4e..1de429d7b 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index 49f5e1c61..bf80eba3e 100644 --- a/gstreamer-net/sys/tests/abi.rs +++ b/gstreamer-net/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index 0857f37ca..9658627cd 100644 --- a/gstreamer-net/sys/tests/constant.c +++ b/gstreamer-net/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index f3734943d..4b5335221 100644 --- a/gstreamer-net/sys/tests/layout.c +++ b/gstreamer-net/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/src/auto/enums.rs b/gstreamer-pbutils/src/auto/enums.rs index c9e9e3bb9..a7066671e 100644 --- a/gstreamer-pbutils/src/auto/enums.rs +++ b/gstreamer-pbutils/src/auto/enums.rs @@ -35,13 +35,13 @@ impl IntoGlib for DiscovererResult { fn into_glib(self) -> ffi::GstDiscovererResult { match self { - DiscovererResult::Ok => ffi::GST_DISCOVERER_OK, - DiscovererResult::UriInvalid => ffi::GST_DISCOVERER_URI_INVALID, - DiscovererResult::Error => ffi::GST_DISCOVERER_ERROR, - DiscovererResult::Timeout => ffi::GST_DISCOVERER_TIMEOUT, - DiscovererResult::Busy => ffi::GST_DISCOVERER_BUSY, - DiscovererResult::MissingPlugins => ffi::GST_DISCOVERER_MISSING_PLUGINS, - DiscovererResult::__Unknown(value) => value, + Self::Ok => ffi::GST_DISCOVERER_OK, + Self::UriInvalid => ffi::GST_DISCOVERER_URI_INVALID, + Self::Error => ffi::GST_DISCOVERER_ERROR, + Self::Timeout => ffi::GST_DISCOVERER_TIMEOUT, + Self::Busy => ffi::GST_DISCOVERER_BUSY, + Self::MissingPlugins => ffi::GST_DISCOVERER_MISSING_PLUGINS, + Self::__Unknown(value) => value, } } } @@ -51,13 +51,13 @@ impl FromGlib for DiscovererResult { unsafe fn from_glib(value: ffi::GstDiscovererResult) -> Self { skip_assert_initialized!(); match value { - 0 => DiscovererResult::Ok, - 1 => DiscovererResult::UriInvalid, - 2 => DiscovererResult::Error, - 3 => DiscovererResult::Timeout, - 4 => DiscovererResult::Busy, - 5 => DiscovererResult::MissingPlugins, - value => DiscovererResult::__Unknown(value), + 0 => Self::Ok, + 1 => Self::UriInvalid, + 2 => Self::Error, + 3 => Self::Timeout, + 4 => Self::Busy, + 5 => Self::MissingPlugins, + value => Self::__Unknown(value), } } } @@ -83,7 +83,7 @@ unsafe impl<'a> FromValue<'a> for DiscovererResult { impl ToValue for DiscovererResult { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-pbutils/src/auto/flags.rs b/gstreamer-pbutils/src/auto/flags.rs index c568b93e0..b09cd982d 100644 --- a/gstreamer-pbutils/src/auto/flags.rs +++ b/gstreamer-pbutils/src/auto/flags.rs @@ -29,9 +29,9 @@ impl IntoGlib for DiscovererSerializeFlags { #[doc(hidden)] impl FromGlib for DiscovererSerializeFlags { - unsafe fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> DiscovererSerializeFlags { + unsafe fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 4b3f10c0d..3a6ebd75e 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index ea3f294bd..c34e064ab 100644 --- a/gstreamer-pbutils/sys/tests/abi.rs +++ b/gstreamer-pbutils/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index 136154866..5c845aa6f 100644 --- a/gstreamer-pbutils/sys/tests/constant.c +++ b/gstreamer-pbutils/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index c6ea3b49e..35b592257 100644 --- a/gstreamer-pbutils/sys/tests/layout.c +++ b/gstreamer-pbutils/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index dccd8238e..9d76ef415 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -45,11 +45,11 @@ impl IntoGlib for PlayerColorBalanceType { fn into_glib(self) -> ffi::GstPlayerColorBalanceType { match self { - PlayerColorBalanceType::Hue => ffi::GST_PLAYER_COLOR_BALANCE_HUE, - PlayerColorBalanceType::Brightness => ffi::GST_PLAYER_COLOR_BALANCE_BRIGHTNESS, - PlayerColorBalanceType::Saturation => ffi::GST_PLAYER_COLOR_BALANCE_SATURATION, - PlayerColorBalanceType::Contrast => ffi::GST_PLAYER_COLOR_BALANCE_CONTRAST, - PlayerColorBalanceType::__Unknown(value) => value, + Self::Hue => ffi::GST_PLAYER_COLOR_BALANCE_HUE, + Self::Brightness => ffi::GST_PLAYER_COLOR_BALANCE_BRIGHTNESS, + Self::Saturation => ffi::GST_PLAYER_COLOR_BALANCE_SATURATION, + Self::Contrast => ffi::GST_PLAYER_COLOR_BALANCE_CONTRAST, + Self::__Unknown(value) => value, } } } @@ -59,11 +59,11 @@ impl FromGlib for PlayerColorBalanceType { unsafe fn from_glib(value: ffi::GstPlayerColorBalanceType) -> Self { skip_assert_initialized!(); match value { - 3 => PlayerColorBalanceType::Hue, - 0 => PlayerColorBalanceType::Brightness, - 2 => PlayerColorBalanceType::Saturation, - 1 => PlayerColorBalanceType::Contrast, - value => PlayerColorBalanceType::__Unknown(value), + 3 => Self::Hue, + 0 => Self::Brightness, + 2 => Self::Saturation, + 1 => Self::Contrast, + value => Self::__Unknown(value), } } } @@ -89,7 +89,7 @@ unsafe impl<'a> FromValue<'a> for PlayerColorBalanceType { impl ToValue for PlayerColorBalanceType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - PlayerError::Failed => ffi::GST_PLAYER_ERROR_FAILED, - PlayerError::__Unknown(value) => value, + Self::Failed => ffi::GST_PLAYER_ERROR_FAILED, + Self::__Unknown(value) => value, } } } @@ -136,8 +136,8 @@ impl FromGlib for PlayerError { unsafe fn from_glib(value: ffi::GstPlayerError) -> Self { skip_assert_initialized!(); match value { - 0 => PlayerError::Failed, - value => PlayerError::__Unknown(value), + 0 => Self::Failed, + value => Self::__Unknown(value), } } } @@ -156,8 +156,8 @@ impl ErrorDomain for PlayerError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(PlayerError::Failed), - _ => Some(PlayerError::Failed), + 0 => Some(Self::Failed), + _ => Some(Self::Failed), } } } @@ -183,7 +183,7 @@ unsafe impl<'a> FromValue<'a> for PlayerError { impl ToValue for PlayerError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - PlayerSnapshotFormat::RawNative => ffi::GST_PLAYER_THUMBNAIL_RAW_NATIVE, - PlayerSnapshotFormat::RawXrgb => ffi::GST_PLAYER_THUMBNAIL_RAW_xRGB, - PlayerSnapshotFormat::RawBgrx => ffi::GST_PLAYER_THUMBNAIL_RAW_BGRx, - PlayerSnapshotFormat::Jpg => ffi::GST_PLAYER_THUMBNAIL_JPG, - PlayerSnapshotFormat::Png => ffi::GST_PLAYER_THUMBNAIL_PNG, - PlayerSnapshotFormat::__Unknown(value) => value, + Self::RawNative => ffi::GST_PLAYER_THUMBNAIL_RAW_NATIVE, + Self::RawXrgb => ffi::GST_PLAYER_THUMBNAIL_RAW_xRGB, + Self::RawBgrx => ffi::GST_PLAYER_THUMBNAIL_RAW_BGRx, + Self::Jpg => ffi::GST_PLAYER_THUMBNAIL_JPG, + Self::Png => ffi::GST_PLAYER_THUMBNAIL_PNG, + Self::__Unknown(value) => value, } } } @@ -234,12 +234,12 @@ impl FromGlib for PlayerSnapshotFormat { unsafe fn from_glib(value: ffi::GstPlayerSnapshotFormat) -> Self { skip_assert_initialized!(); match value { - 0 => PlayerSnapshotFormat::RawNative, - 1 => PlayerSnapshotFormat::RawXrgb, - 2 => PlayerSnapshotFormat::RawBgrx, - 3 => PlayerSnapshotFormat::Jpg, - 4 => PlayerSnapshotFormat::Png, - value => PlayerSnapshotFormat::__Unknown(value), + 0 => Self::RawNative, + 1 => Self::RawXrgb, + 2 => Self::RawBgrx, + 3 => Self::Jpg, + 4 => Self::Png, + value => Self::__Unknown(value), } } } @@ -274,11 +274,11 @@ impl IntoGlib for PlayerState { fn into_glib(self) -> ffi::GstPlayerState { match self { - PlayerState::Stopped => ffi::GST_PLAYER_STATE_STOPPED, - PlayerState::Buffering => ffi::GST_PLAYER_STATE_BUFFERING, - PlayerState::Paused => ffi::GST_PLAYER_STATE_PAUSED, - PlayerState::Playing => ffi::GST_PLAYER_STATE_PLAYING, - PlayerState::__Unknown(value) => value, + Self::Stopped => ffi::GST_PLAYER_STATE_STOPPED, + Self::Buffering => ffi::GST_PLAYER_STATE_BUFFERING, + Self::Paused => ffi::GST_PLAYER_STATE_PAUSED, + Self::Playing => ffi::GST_PLAYER_STATE_PLAYING, + Self::__Unknown(value) => value, } } } @@ -288,11 +288,11 @@ impl FromGlib for PlayerState { unsafe fn from_glib(value: ffi::GstPlayerState) -> Self { skip_assert_initialized!(); match value { - 0 => PlayerState::Stopped, - 1 => PlayerState::Buffering, - 2 => PlayerState::Paused, - 3 => PlayerState::Playing, - value => PlayerState::__Unknown(value), + 0 => Self::Stopped, + 1 => Self::Buffering, + 2 => Self::Paused, + 3 => Self::Playing, + value => Self::__Unknown(value), } } } @@ -318,7 +318,7 @@ unsafe impl<'a> FromValue<'a> for PlayerState { impl ToValue for PlayerState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index 992e78192..475fd963a 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index 9018c3fed..b1e08d8f6 100644 --- a/gstreamer-player/sys/tests/abi.rs +++ b/gstreamer-player/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index fafbed18b..6df723694 100644 --- a/gstreamer-player/sys/tests/constant.c +++ b/gstreamer-player/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index b12cd2598..980048e07 100644 --- a/gstreamer-player/sys/tests/layout.c +++ b/gstreamer-player/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index 4d9f8b0c2..df8b3cc6c 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -41,16 +41,16 @@ impl IntoGlib for RTCPFBType { fn into_glib(self) -> ffi::GstRTCPFBType { match self { - RTCPFBType::FbTypeInvalid => ffi::GST_RTCP_FB_TYPE_INVALID, - RTCPFBType::RtpfbTypeNack => ffi::GST_RTCP_RTPFB_TYPE_NACK, - RTCPFBType::RtpfbTypeTmmbr => ffi::GST_RTCP_RTPFB_TYPE_TMMBR, - RTCPFBType::RtpfbTypeTmmbn => ffi::GST_RTCP_RTPFB_TYPE_TMMBN, - RTCPFBType::RtpfbTypeRtcpSrReq => ffi::GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ, - RTCPFBType::RtpfbTypeTwcc => ffi::GST_RTCP_RTPFB_TYPE_TWCC, - RTCPFBType::PsfbTypeSli => ffi::GST_RTCP_PSFB_TYPE_SLI, - RTCPFBType::PsfbTypeTstn => ffi::GST_RTCP_PSFB_TYPE_TSTN, - RTCPFBType::PsfbTypeVbcn => ffi::GST_RTCP_PSFB_TYPE_VBCN, - RTCPFBType::__Unknown(value) => value, + Self::FbTypeInvalid => ffi::GST_RTCP_FB_TYPE_INVALID, + Self::RtpfbTypeNack => ffi::GST_RTCP_RTPFB_TYPE_NACK, + Self::RtpfbTypeTmmbr => ffi::GST_RTCP_RTPFB_TYPE_TMMBR, + Self::RtpfbTypeTmmbn => ffi::GST_RTCP_RTPFB_TYPE_TMMBN, + Self::RtpfbTypeRtcpSrReq => ffi::GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ, + Self::RtpfbTypeTwcc => ffi::GST_RTCP_RTPFB_TYPE_TWCC, + Self::PsfbTypeSli => ffi::GST_RTCP_PSFB_TYPE_SLI, + Self::PsfbTypeTstn => ffi::GST_RTCP_PSFB_TYPE_TSTN, + Self::PsfbTypeVbcn => ffi::GST_RTCP_PSFB_TYPE_VBCN, + Self::__Unknown(value) => value, } } } @@ -60,16 +60,16 @@ impl FromGlib for RTCPFBType { unsafe fn from_glib(value: ffi::GstRTCPFBType) -> Self { skip_assert_initialized!(); match value { - 0 => RTCPFBType::FbTypeInvalid, - 1 => RTCPFBType::RtpfbTypeNack, - 3 => RTCPFBType::RtpfbTypeTmmbr, - 4 => RTCPFBType::RtpfbTypeTmmbn, - 5 => RTCPFBType::RtpfbTypeRtcpSrReq, - 15 => RTCPFBType::RtpfbTypeTwcc, - 2 => RTCPFBType::PsfbTypeSli, - 6 => RTCPFBType::PsfbTypeTstn, - 7 => RTCPFBType::PsfbTypeVbcn, - value => RTCPFBType::__Unknown(value), + 0 => Self::FbTypeInvalid, + 1 => Self::RtpfbTypeNack, + 3 => Self::RtpfbTypeTmmbr, + 4 => Self::RtpfbTypeTmmbn, + 5 => Self::RtpfbTypeRtcpSrReq, + 15 => Self::RtpfbTypeTwcc, + 2 => Self::PsfbTypeSli, + 6 => Self::PsfbTypeTstn, + 7 => Self::PsfbTypeVbcn, + value => Self::__Unknown(value), } } } @@ -95,7 +95,7 @@ unsafe impl<'a> FromValue<'a> for RTCPFBType { impl ToValue for RTCPFBType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - RTCPSDESType::Invalid => ffi::GST_RTCP_SDES_INVALID, - RTCPSDESType::End => ffi::GST_RTCP_SDES_END, - RTCPSDESType::Cname => ffi::GST_RTCP_SDES_CNAME, - RTCPSDESType::Name => ffi::GST_RTCP_SDES_NAME, - RTCPSDESType::Email => ffi::GST_RTCP_SDES_EMAIL, - RTCPSDESType::Phone => ffi::GST_RTCP_SDES_PHONE, - RTCPSDESType::Loc => ffi::GST_RTCP_SDES_LOC, - RTCPSDESType::Tool => ffi::GST_RTCP_SDES_TOOL, - RTCPSDESType::Note => ffi::GST_RTCP_SDES_NOTE, - RTCPSDESType::Priv => ffi::GST_RTCP_SDES_PRIV, - RTCPSDESType::__Unknown(value) => value, + Self::Invalid => ffi::GST_RTCP_SDES_INVALID, + Self::End => ffi::GST_RTCP_SDES_END, + Self::Cname => ffi::GST_RTCP_SDES_CNAME, + Self::Name => ffi::GST_RTCP_SDES_NAME, + Self::Email => ffi::GST_RTCP_SDES_EMAIL, + Self::Phone => ffi::GST_RTCP_SDES_PHONE, + Self::Loc => ffi::GST_RTCP_SDES_LOC, + Self::Tool => ffi::GST_RTCP_SDES_TOOL, + Self::Note => ffi::GST_RTCP_SDES_NOTE, + Self::Priv => ffi::GST_RTCP_SDES_PRIV, + Self::__Unknown(value) => value, } } } @@ -161,17 +161,17 @@ impl FromGlib for RTCPSDESType { unsafe fn from_glib(value: ffi::GstRTCPSDESType) -> Self { skip_assert_initialized!(); match value { - -1 => RTCPSDESType::Invalid, - 0 => RTCPSDESType::End, - 1 => RTCPSDESType::Cname, - 2 => RTCPSDESType::Name, - 3 => RTCPSDESType::Email, - 4 => RTCPSDESType::Phone, - 5 => RTCPSDESType::Loc, - 6 => RTCPSDESType::Tool, - 7 => RTCPSDESType::Note, - 8 => RTCPSDESType::Priv, - value => RTCPSDESType::__Unknown(value), + -1 => Self::Invalid, + 0 => Self::End, + 1 => Self::Cname, + 2 => Self::Name, + 3 => Self::Email, + 4 => Self::Phone, + 5 => Self::Loc, + 6 => Self::Tool, + 7 => Self::Note, + 8 => Self::Priv, + value => Self::__Unknown(value), } } } @@ -197,7 +197,7 @@ unsafe impl<'a> FromValue<'a> for RTCPSDESType { impl ToValue for RTCPSDESType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - RTCPType::Invalid => ffi::GST_RTCP_TYPE_INVALID, - RTCPType::Sr => ffi::GST_RTCP_TYPE_SR, - RTCPType::Rr => ffi::GST_RTCP_TYPE_RR, - RTCPType::Sdes => ffi::GST_RTCP_TYPE_SDES, - RTCPType::Bye => ffi::GST_RTCP_TYPE_BYE, - RTCPType::App => ffi::GST_RTCP_TYPE_APP, - RTCPType::Rtpfb => ffi::GST_RTCP_TYPE_RTPFB, - RTCPType::Psfb => ffi::GST_RTCP_TYPE_PSFB, - RTCPType::Xr => ffi::GST_RTCP_TYPE_XR, - RTCPType::__Unknown(value) => value, + Self::Invalid => ffi::GST_RTCP_TYPE_INVALID, + Self::Sr => ffi::GST_RTCP_TYPE_SR, + Self::Rr => ffi::GST_RTCP_TYPE_RR, + Self::Sdes => ffi::GST_RTCP_TYPE_SDES, + Self::Bye => ffi::GST_RTCP_TYPE_BYE, + Self::App => ffi::GST_RTCP_TYPE_APP, + Self::Rtpfb => ffi::GST_RTCP_TYPE_RTPFB, + Self::Psfb => ffi::GST_RTCP_TYPE_PSFB, + Self::Xr => ffi::GST_RTCP_TYPE_XR, + Self::__Unknown(value) => value, } } } @@ -260,16 +260,16 @@ impl FromGlib for RTCPType { unsafe fn from_glib(value: ffi::GstRTCPType) -> Self { skip_assert_initialized!(); match value { - 0 => RTCPType::Invalid, - 200 => RTCPType::Sr, - 201 => RTCPType::Rr, - 202 => RTCPType::Sdes, - 203 => RTCPType::Bye, - 204 => RTCPType::App, - 205 => RTCPType::Rtpfb, - 206 => RTCPType::Psfb, - 207 => RTCPType::Xr, - value => RTCPType::__Unknown(value), + 0 => Self::Invalid, + 200 => Self::Sr, + 201 => Self::Rr, + 202 => Self::Sdes, + 203 => Self::Bye, + 204 => Self::App, + 205 => Self::Rtpfb, + 206 => Self::Psfb, + 207 => Self::Xr, + value => Self::__Unknown(value), } } } @@ -295,7 +295,7 @@ unsafe impl<'a> FromValue<'a> for RTCPType { impl ToValue for RTCPType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - RTCPXRType::Invalid => ffi::GST_RTCP_XR_TYPE_INVALID, - RTCPXRType::Lrle => ffi::GST_RTCP_XR_TYPE_LRLE, - RTCPXRType::Drle => ffi::GST_RTCP_XR_TYPE_DRLE, - RTCPXRType::Prt => ffi::GST_RTCP_XR_TYPE_PRT, - RTCPXRType::Rrt => ffi::GST_RTCP_XR_TYPE_RRT, - RTCPXRType::Dlrr => ffi::GST_RTCP_XR_TYPE_DLRR, - RTCPXRType::Ssumm => ffi::GST_RTCP_XR_TYPE_SSUMM, - RTCPXRType::VoipMetrics => ffi::GST_RTCP_XR_TYPE_VOIP_METRICS, - RTCPXRType::__Unknown(value) => value, + Self::Invalid => ffi::GST_RTCP_XR_TYPE_INVALID, + Self::Lrle => ffi::GST_RTCP_XR_TYPE_LRLE, + Self::Drle => ffi::GST_RTCP_XR_TYPE_DRLE, + Self::Prt => ffi::GST_RTCP_XR_TYPE_PRT, + Self::Rrt => ffi::GST_RTCP_XR_TYPE_RRT, + Self::Dlrr => ffi::GST_RTCP_XR_TYPE_DLRR, + Self::Ssumm => ffi::GST_RTCP_XR_TYPE_SSUMM, + Self::VoipMetrics => ffi::GST_RTCP_XR_TYPE_VOIP_METRICS, + Self::__Unknown(value) => value, } } } @@ -361,15 +361,15 @@ impl FromGlib for RTCPXRType { unsafe fn from_glib(value: ffi::GstRTCPXRType) -> Self { skip_assert_initialized!(); match value { - -1 => RTCPXRType::Invalid, - 1 => RTCPXRType::Lrle, - 2 => RTCPXRType::Drle, - 3 => RTCPXRType::Prt, - 4 => RTCPXRType::Rrt, - 5 => RTCPXRType::Dlrr, - 6 => RTCPXRType::Ssumm, - 7 => RTCPXRType::VoipMetrics, - value => RTCPXRType::__Unknown(value), + -1 => Self::Invalid, + 1 => Self::Lrle, + 2 => Self::Drle, + 3 => Self::Prt, + 4 => Self::Rrt, + 5 => Self::Dlrr, + 6 => Self::Ssumm, + 7 => Self::VoipMetrics, + value => Self::__Unknown(value), } } } @@ -403,7 +403,7 @@ unsafe impl<'a> FromValue<'a> for RTCPXRType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for RTCPXRType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - RTPPayload::Pcmu => ffi::GST_RTP_PAYLOAD_PCMU, - RTPPayload::_1016 => ffi::GST_RTP_PAYLOAD_1016, - RTPPayload::G721 => ffi::GST_RTP_PAYLOAD_G721, - RTPPayload::Gsm => ffi::GST_RTP_PAYLOAD_GSM, - RTPPayload::G723 => ffi::GST_RTP_PAYLOAD_G723, - RTPPayload::Dvi48000 => ffi::GST_RTP_PAYLOAD_DVI4_8000, - RTPPayload::Dvi416000 => ffi::GST_RTP_PAYLOAD_DVI4_16000, - RTPPayload::Lpc => ffi::GST_RTP_PAYLOAD_LPC, - RTPPayload::Pcma => ffi::GST_RTP_PAYLOAD_PCMA, - RTPPayload::G722 => ffi::GST_RTP_PAYLOAD_G722, - RTPPayload::L16Stereo => ffi::GST_RTP_PAYLOAD_L16_STEREO, - RTPPayload::L16Mono => ffi::GST_RTP_PAYLOAD_L16_MONO, - RTPPayload::Qcelp => ffi::GST_RTP_PAYLOAD_QCELP, - RTPPayload::Cn => ffi::GST_RTP_PAYLOAD_CN, - RTPPayload::Mpa => ffi::GST_RTP_PAYLOAD_MPA, - RTPPayload::G728 => ffi::GST_RTP_PAYLOAD_G728, - RTPPayload::Dvi411025 => ffi::GST_RTP_PAYLOAD_DVI4_11025, - RTPPayload::Dvi422050 => ffi::GST_RTP_PAYLOAD_DVI4_22050, - RTPPayload::G729 => ffi::GST_RTP_PAYLOAD_G729, - RTPPayload::Cellb => ffi::GST_RTP_PAYLOAD_CELLB, - RTPPayload::Jpeg => ffi::GST_RTP_PAYLOAD_JPEG, - RTPPayload::Nv => ffi::GST_RTP_PAYLOAD_NV, - RTPPayload::H261 => ffi::GST_RTP_PAYLOAD_H261, - RTPPayload::Mpv => ffi::GST_RTP_PAYLOAD_MPV, - RTPPayload::Mp2t => ffi::GST_RTP_PAYLOAD_MP2T, - RTPPayload::H263 => ffi::GST_RTP_PAYLOAD_H263, - RTPPayload::__Unknown(value) => value, + Self::Pcmu => ffi::GST_RTP_PAYLOAD_PCMU, + Self::_1016 => ffi::GST_RTP_PAYLOAD_1016, + Self::G721 => ffi::GST_RTP_PAYLOAD_G721, + Self::Gsm => ffi::GST_RTP_PAYLOAD_GSM, + Self::G723 => ffi::GST_RTP_PAYLOAD_G723, + Self::Dvi48000 => ffi::GST_RTP_PAYLOAD_DVI4_8000, + Self::Dvi416000 => ffi::GST_RTP_PAYLOAD_DVI4_16000, + Self::Lpc => ffi::GST_RTP_PAYLOAD_LPC, + Self::Pcma => ffi::GST_RTP_PAYLOAD_PCMA, + Self::G722 => ffi::GST_RTP_PAYLOAD_G722, + Self::L16Stereo => ffi::GST_RTP_PAYLOAD_L16_STEREO, + Self::L16Mono => ffi::GST_RTP_PAYLOAD_L16_MONO, + Self::Qcelp => ffi::GST_RTP_PAYLOAD_QCELP, + Self::Cn => ffi::GST_RTP_PAYLOAD_CN, + Self::Mpa => ffi::GST_RTP_PAYLOAD_MPA, + Self::G728 => ffi::GST_RTP_PAYLOAD_G728, + Self::Dvi411025 => ffi::GST_RTP_PAYLOAD_DVI4_11025, + Self::Dvi422050 => ffi::GST_RTP_PAYLOAD_DVI4_22050, + Self::G729 => ffi::GST_RTP_PAYLOAD_G729, + Self::Cellb => ffi::GST_RTP_PAYLOAD_CELLB, + Self::Jpeg => ffi::GST_RTP_PAYLOAD_JPEG, + Self::Nv => ffi::GST_RTP_PAYLOAD_NV, + Self::H261 => ffi::GST_RTP_PAYLOAD_H261, + Self::Mpv => ffi::GST_RTP_PAYLOAD_MPV, + Self::Mp2t => ffi::GST_RTP_PAYLOAD_MP2T, + Self::H263 => ffi::GST_RTP_PAYLOAD_H263, + Self::__Unknown(value) => value, } } } @@ -517,33 +517,33 @@ impl FromGlib for RTPPayload { unsafe fn from_glib(value: ffi::GstRTPPayload) -> Self { skip_assert_initialized!(); match value { - 0 => RTPPayload::Pcmu, - 1 => RTPPayload::_1016, - 2 => RTPPayload::G721, - 3 => RTPPayload::Gsm, - 4 => RTPPayload::G723, - 5 => RTPPayload::Dvi48000, - 6 => RTPPayload::Dvi416000, - 7 => RTPPayload::Lpc, - 8 => RTPPayload::Pcma, - 9 => RTPPayload::G722, - 10 => RTPPayload::L16Stereo, - 11 => RTPPayload::L16Mono, - 12 => RTPPayload::Qcelp, - 13 => RTPPayload::Cn, - 14 => RTPPayload::Mpa, - 15 => RTPPayload::G728, - 16 => RTPPayload::Dvi411025, - 17 => RTPPayload::Dvi422050, - 18 => RTPPayload::G729, - 25 => RTPPayload::Cellb, - 26 => RTPPayload::Jpeg, - 28 => RTPPayload::Nv, - 31 => RTPPayload::H261, - 32 => RTPPayload::Mpv, - 33 => RTPPayload::Mp2t, - 34 => RTPPayload::H263, - value => RTPPayload::__Unknown(value), + 0 => Self::Pcmu, + 1 => Self::_1016, + 2 => Self::G721, + 3 => Self::Gsm, + 4 => Self::G723, + 5 => Self::Dvi48000, + 6 => Self::Dvi416000, + 7 => Self::Lpc, + 8 => Self::Pcma, + 9 => Self::G722, + 10 => Self::L16Stereo, + 11 => Self::L16Mono, + 12 => Self::Qcelp, + 13 => Self::Cn, + 14 => Self::Mpa, + 15 => Self::G728, + 16 => Self::Dvi411025, + 17 => Self::Dvi422050, + 18 => Self::G729, + 25 => Self::Cellb, + 26 => Self::Jpeg, + 28 => Self::Nv, + 31 => Self::H261, + 32 => Self::Mpv, + 33 => Self::Mp2t, + 34 => Self::H263, + value => Self::__Unknown(value), } } } @@ -569,7 +569,7 @@ unsafe impl<'a> FromValue<'a> for RTPPayload { impl ToValue for RTPPayload { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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 { match self { - RTPProfile::Unknown => ffi::GST_RTP_PROFILE_UNKNOWN, - RTPProfile::Avp => ffi::GST_RTP_PROFILE_AVP, - RTPProfile::Savp => ffi::GST_RTP_PROFILE_SAVP, - RTPProfile::Avpf => ffi::GST_RTP_PROFILE_AVPF, - RTPProfile::Savpf => ffi::GST_RTP_PROFILE_SAVPF, - RTPProfile::__Unknown(value) => value, + Self::Unknown => ffi::GST_RTP_PROFILE_UNKNOWN, + Self::Avp => ffi::GST_RTP_PROFILE_AVP, + Self::Savp => ffi::GST_RTP_PROFILE_SAVP, + Self::Avpf => ffi::GST_RTP_PROFILE_AVPF, + Self::Savpf => ffi::GST_RTP_PROFILE_SAVPF, + Self::__Unknown(value) => value, } } } @@ -620,12 +620,12 @@ impl FromGlib for RTPProfile { unsafe fn from_glib(value: ffi::GstRTPProfile) -> Self { skip_assert_initialized!(); match value { - 0 => RTPProfile::Unknown, - 1 => RTPProfile::Avp, - 2 => RTPProfile::Savp, - 3 => RTPProfile::Avpf, - 4 => RTPProfile::Savpf, - value => RTPProfile::__Unknown(value), + 0 => Self::Unknown, + 1 => Self::Avp, + 2 => Self::Savp, + 3 => Self::Avpf, + 4 => Self::Savpf, + value => Self::__Unknown(value), } } } @@ -651,7 +651,7 @@ unsafe impl<'a> FromValue<'a> for RTPProfile { impl ToValue for RTPProfile { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-rtp/src/auto/flags.rs b/gstreamer-rtp/src/auto/flags.rs index c82fb70cd..b01867a59 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -34,9 +34,9 @@ impl IntoGlib for RTPBufferFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for RTPBufferFlags { - unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> RTPBufferFlags { + unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> Self { 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")))] impl ToValue for RTPBufferFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { 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)] impl FromGlib for RTPBufferMapFlags { - unsafe fn from_glib(value: ffi::GstRTPBufferMapFlags) -> RTPBufferMapFlags { + unsafe fn from_glib(value: ffi::GstRTPBufferMapFlags) -> Self { 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 { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index 7ee48c27c..c66762382 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index 3f3cdd78a..4b68f608c 100644 --- a/gstreamer-rtp/sys/tests/abi.rs +++ b/gstreamer-rtp/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index 8f61166bb..030513b5a 100644 --- a/gstreamer-rtp/sys/tests/constant.c +++ b/gstreamer-rtp/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index e1907742a..ba333d7ef 100644 --- a/gstreamer-rtp/sys/tests/layout.c +++ b/gstreamer-rtp/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/src/auto/enums.rs b/gstreamer-rtsp-server/src/auto/enums.rs index 878d09cf9..c6bf4b24b 100644 --- a/gstreamer-rtsp-server/src/auto/enums.rs +++ b/gstreamer-rtsp-server/src/auto/enums.rs @@ -33,12 +33,12 @@ impl IntoGlib for RTSPAddressPoolResult { fn into_glib(self) -> ffi::GstRTSPAddressPoolResult { match self { - RTSPAddressPoolResult::Ok => ffi::GST_RTSP_ADDRESS_POOL_OK, - RTSPAddressPoolResult::Einval => ffi::GST_RTSP_ADDRESS_POOL_EINVAL, - RTSPAddressPoolResult::Ereserved => ffi::GST_RTSP_ADDRESS_POOL_ERESERVED, - RTSPAddressPoolResult::Erange => ffi::GST_RTSP_ADDRESS_POOL_ERANGE, - RTSPAddressPoolResult::Elast => ffi::GST_RTSP_ADDRESS_POOL_ELAST, - RTSPAddressPoolResult::__Unknown(value) => value, + Self::Ok => ffi::GST_RTSP_ADDRESS_POOL_OK, + Self::Einval => ffi::GST_RTSP_ADDRESS_POOL_EINVAL, + Self::Ereserved => ffi::GST_RTSP_ADDRESS_POOL_ERESERVED, + Self::Erange => ffi::GST_RTSP_ADDRESS_POOL_ERANGE, + Self::Elast => ffi::GST_RTSP_ADDRESS_POOL_ELAST, + Self::__Unknown(value) => value, } } } @@ -48,12 +48,12 @@ impl FromGlib for RTSPAddressPoolResult { unsafe fn from_glib(value: ffi::GstRTSPAddressPoolResult) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPAddressPoolResult::Ok, - -1 => RTSPAddressPoolResult::Einval, - -2 => RTSPAddressPoolResult::Ereserved, - -3 => RTSPAddressPoolResult::Erange, - -4 => RTSPAddressPoolResult::Elast, - value => RTSPAddressPoolResult::__Unknown(value), + 0 => Self::Ok, + -1 => Self::Einval, + -2 => Self::Ereserved, + -3 => Self::Erange, + -4 => Self::Elast, + value => Self::__Unknown(value), } } } @@ -78,10 +78,10 @@ impl IntoGlib for RTSPFilterResult { fn into_glib(self) -> ffi::GstRTSPFilterResult { match self { - RTSPFilterResult::Remove => ffi::GST_RTSP_FILTER_REMOVE, - RTSPFilterResult::Keep => ffi::GST_RTSP_FILTER_KEEP, - RTSPFilterResult::Ref => ffi::GST_RTSP_FILTER_REF, - RTSPFilterResult::__Unknown(value) => value, + Self::Remove => ffi::GST_RTSP_FILTER_REMOVE, + Self::Keep => ffi::GST_RTSP_FILTER_KEEP, + Self::Ref => ffi::GST_RTSP_FILTER_REF, + Self::__Unknown(value) => value, } } } @@ -91,10 +91,10 @@ impl FromGlib for RTSPFilterResult { unsafe fn from_glib(value: ffi::GstRTSPFilterResult) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPFilterResult::Remove, - 1 => RTSPFilterResult::Keep, - 2 => RTSPFilterResult::Ref, - value => RTSPFilterResult::__Unknown(value), + 0 => Self::Remove, + 1 => Self::Keep, + 2 => Self::Ref, + value => Self::__Unknown(value), } } } @@ -125,13 +125,13 @@ impl IntoGlib for RTSPMediaStatus { fn into_glib(self) -> ffi::GstRTSPMediaStatus { match self { - RTSPMediaStatus::Unprepared => ffi::GST_RTSP_MEDIA_STATUS_UNPREPARED, - RTSPMediaStatus::Unpreparing => ffi::GST_RTSP_MEDIA_STATUS_UNPREPARING, - RTSPMediaStatus::Preparing => ffi::GST_RTSP_MEDIA_STATUS_PREPARING, - RTSPMediaStatus::Prepared => ffi::GST_RTSP_MEDIA_STATUS_PREPARED, - RTSPMediaStatus::Suspended => ffi::GST_RTSP_MEDIA_STATUS_SUSPENDED, - RTSPMediaStatus::Error => ffi::GST_RTSP_MEDIA_STATUS_ERROR, - RTSPMediaStatus::__Unknown(value) => value, + Self::Unprepared => ffi::GST_RTSP_MEDIA_STATUS_UNPREPARED, + Self::Unpreparing => ffi::GST_RTSP_MEDIA_STATUS_UNPREPARING, + Self::Preparing => ffi::GST_RTSP_MEDIA_STATUS_PREPARING, + Self::Prepared => ffi::GST_RTSP_MEDIA_STATUS_PREPARED, + Self::Suspended => ffi::GST_RTSP_MEDIA_STATUS_SUSPENDED, + Self::Error => ffi::GST_RTSP_MEDIA_STATUS_ERROR, + Self::__Unknown(value) => value, } } } @@ -141,13 +141,13 @@ impl FromGlib for RTSPMediaStatus { unsafe fn from_glib(value: ffi::GstRTSPMediaStatus) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPMediaStatus::Unprepared, - 1 => RTSPMediaStatus::Unpreparing, - 2 => RTSPMediaStatus::Preparing, - 3 => RTSPMediaStatus::Prepared, - 4 => RTSPMediaStatus::Suspended, - 5 => RTSPMediaStatus::Error, - value => RTSPMediaStatus::__Unknown(value), + 0 => Self::Unprepared, + 1 => Self::Unpreparing, + 2 => Self::Preparing, + 3 => Self::Prepared, + 4 => Self::Suspended, + 5 => Self::Error, + value => Self::__Unknown(value), } } } @@ -172,12 +172,10 @@ impl IntoGlib for RTSPPublishClockMode { fn into_glib(self) -> ffi::GstRTSPPublishClockMode { match self { - RTSPPublishClockMode::None => ffi::GST_RTSP_PUBLISH_CLOCK_MODE_NONE, - RTSPPublishClockMode::Clock => ffi::GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK, - RTSPPublishClockMode::ClockAndOffset => { - ffi::GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK_AND_OFFSET - } - RTSPPublishClockMode::__Unknown(value) => value, + Self::None => ffi::GST_RTSP_PUBLISH_CLOCK_MODE_NONE, + Self::Clock => ffi::GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK, + Self::ClockAndOffset => ffi::GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK_AND_OFFSET, + Self::__Unknown(value) => value, } } } @@ -187,10 +185,10 @@ impl FromGlib for RTSPPublishClockMode { unsafe fn from_glib(value: ffi::GstRTSPPublishClockMode) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPPublishClockMode::None, - 1 => RTSPPublishClockMode::Clock, - 2 => RTSPPublishClockMode::ClockAndOffset, - value => RTSPPublishClockMode::__Unknown(value), + 0 => Self::None, + 1 => Self::Clock, + 2 => Self::ClockAndOffset, + value => Self::__Unknown(value), } } } @@ -216,7 +214,7 @@ unsafe impl<'a> FromValue<'a> for RTSPPublishClockMode { impl ToValue for RTSPPublishClockMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -248,10 +246,10 @@ impl IntoGlib for RTSPSuspendMode { fn into_glib(self) -> ffi::GstRTSPSuspendMode { match self { - RTSPSuspendMode::None => ffi::GST_RTSP_SUSPEND_MODE_NONE, - RTSPSuspendMode::Pause => ffi::GST_RTSP_SUSPEND_MODE_PAUSE, - RTSPSuspendMode::Reset => ffi::GST_RTSP_SUSPEND_MODE_RESET, - RTSPSuspendMode::__Unknown(value) => value, + Self::None => ffi::GST_RTSP_SUSPEND_MODE_NONE, + Self::Pause => ffi::GST_RTSP_SUSPEND_MODE_PAUSE, + Self::Reset => ffi::GST_RTSP_SUSPEND_MODE_RESET, + Self::__Unknown(value) => value, } } } @@ -261,10 +259,10 @@ impl FromGlib for RTSPSuspendMode { unsafe fn from_glib(value: ffi::GstRTSPSuspendMode) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPSuspendMode::None, - 1 => RTSPSuspendMode::Pause, - 2 => RTSPSuspendMode::Reset, - value => RTSPSuspendMode::__Unknown(value), + 0 => Self::None, + 1 => Self::Pause, + 2 => Self::Reset, + value => Self::__Unknown(value), } } } @@ -290,7 +288,7 @@ unsafe impl<'a> FromValue<'a> for RTSPSuspendMode { impl ToValue for RTSPSuspendMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -320,9 +318,9 @@ impl IntoGlib for RTSPThreadType { fn into_glib(self) -> ffi::GstRTSPThreadType { match self { - RTSPThreadType::Client => ffi::GST_RTSP_THREAD_TYPE_CLIENT, - RTSPThreadType::Media => ffi::GST_RTSP_THREAD_TYPE_MEDIA, - RTSPThreadType::__Unknown(value) => value, + Self::Client => ffi::GST_RTSP_THREAD_TYPE_CLIENT, + Self::Media => ffi::GST_RTSP_THREAD_TYPE_MEDIA, + Self::__Unknown(value) => value, } } } @@ -332,9 +330,9 @@ impl FromGlib for RTSPThreadType { unsafe fn from_glib(value: ffi::GstRTSPThreadType) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPThreadType::Client, - 1 => RTSPThreadType::Media, - value => RTSPThreadType::__Unknown(value), + 0 => Self::Client, + 1 => Self::Media, + value => Self::__Unknown(value), } } } diff --git a/gstreamer-rtsp-server/src/auto/flags.rs b/gstreamer-rtsp-server/src/auto/flags.rs index 680384b47..94ef08b6b 100644 --- a/gstreamer-rtsp-server/src/auto/flags.rs +++ b/gstreamer-rtsp-server/src/auto/flags.rs @@ -31,9 +31,9 @@ impl IntoGlib for RTSPAddressFlags { #[doc(hidden)] impl FromGlib for RTSPAddressFlags { - unsafe fn from_glib(value: ffi::GstRTSPAddressFlags) -> RTSPAddressFlags { + unsafe fn from_glib(value: ffi::GstRTSPAddressFlags) -> Self { skip_assert_initialized!(); - RTSPAddressFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -55,9 +55,9 @@ impl IntoGlib for RTSPTransportMode { #[doc(hidden)] impl FromGlib for RTSPTransportMode { - unsafe fn from_glib(value: ffi::GstRTSPTransportMode) -> RTSPTransportMode { + unsafe fn from_glib(value: ffi::GstRTSPTransportMode) -> Self { skip_assert_initialized!(); - RTSPTransportMode::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -82,7 +82,7 @@ unsafe impl<'a> FromValue<'a> for RTSPTransportMode { impl ToValue for RTSPTransportMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index 150246b32..40f8abb38 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index 16cfe1818..b6cece3b6 100644 --- a/gstreamer-rtsp-server/sys/tests/abi.rs +++ b/gstreamer-rtsp-server/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index 770fdc1ea..3ce22c46c 100644 --- a/gstreamer-rtsp-server/sys/tests/constant.c +++ b/gstreamer-rtsp-server/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/layout.c b/gstreamer-rtsp-server/sys/tests/layout.c index ed3e17407..1202e979f 100644 --- a/gstreamer-rtsp-server/sys/tests/layout.c +++ b/gstreamer-rtsp-server/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/src/auto/enums.rs b/gstreamer-rtsp/src/auto/enums.rs index 124da741b..83961c578 100644 --- a/gstreamer-rtsp/src/auto/enums.rs +++ b/gstreamer-rtsp/src/auto/enums.rs @@ -29,10 +29,10 @@ impl IntoGlib for RTSPAuthMethod { fn into_glib(self) -> ffi::GstRTSPAuthMethod { match self { - RTSPAuthMethod::None => ffi::GST_RTSP_AUTH_NONE, - RTSPAuthMethod::Basic => ffi::GST_RTSP_AUTH_BASIC, - RTSPAuthMethod::Digest => ffi::GST_RTSP_AUTH_DIGEST, - RTSPAuthMethod::__Unknown(value) => value, + Self::None => ffi::GST_RTSP_AUTH_NONE, + Self::Basic => ffi::GST_RTSP_AUTH_BASIC, + Self::Digest => ffi::GST_RTSP_AUTH_DIGEST, + Self::__Unknown(value) => value, } } } @@ -42,10 +42,10 @@ impl FromGlib for RTSPAuthMethod { unsafe fn from_glib(value: ffi::GstRTSPAuthMethod) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPAuthMethod::None, - 1 => RTSPAuthMethod::Basic, - 2 => RTSPAuthMethod::Digest, - value => RTSPAuthMethod::__Unknown(value), + 0 => Self::None, + 1 => Self::Basic, + 2 => Self::Digest, + value => Self::__Unknown(value), } } } @@ -71,7 +71,7 @@ unsafe impl<'a> FromValue<'a> for RTSPAuthMethod { impl ToValue for RTSPAuthMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -103,10 +103,10 @@ impl IntoGlib for RTSPFamily { fn into_glib(self) -> ffi::GstRTSPFamily { match self { - RTSPFamily::None => ffi::GST_RTSP_FAM_NONE, - RTSPFamily::Inet => ffi::GST_RTSP_FAM_INET, - RTSPFamily::Inet6 => ffi::GST_RTSP_FAM_INET6, - RTSPFamily::__Unknown(value) => value, + Self::None => ffi::GST_RTSP_FAM_NONE, + Self::Inet => ffi::GST_RTSP_FAM_INET, + Self::Inet6 => ffi::GST_RTSP_FAM_INET6, + Self::__Unknown(value) => value, } } } @@ -116,10 +116,10 @@ impl FromGlib for RTSPFamily { unsafe fn from_glib(value: ffi::GstRTSPFamily) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPFamily::None, - 1 => RTSPFamily::Inet, - 2 => RTSPFamily::Inet6, - value => RTSPFamily::__Unknown(value), + 0 => Self::None, + 1 => Self::Inet, + 2 => Self::Inet6, + value => Self::__Unknown(value), } } } @@ -145,7 +145,7 @@ unsafe impl<'a> FromValue<'a> for RTSPFamily { impl ToValue for RTSPFamily { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -351,97 +351,97 @@ impl IntoGlib for RTSPHeaderField { fn into_glib(self) -> ffi::GstRTSPHeaderField { match self { - RTSPHeaderField::Invalid => ffi::GST_RTSP_HDR_INVALID, - RTSPHeaderField::Accept => ffi::GST_RTSP_HDR_ACCEPT, - RTSPHeaderField::AcceptEncoding => ffi::GST_RTSP_HDR_ACCEPT_ENCODING, - RTSPHeaderField::AcceptLanguage => ffi::GST_RTSP_HDR_ACCEPT_LANGUAGE, - RTSPHeaderField::Allow => ffi::GST_RTSP_HDR_ALLOW, - RTSPHeaderField::Authorization => ffi::GST_RTSP_HDR_AUTHORIZATION, - RTSPHeaderField::Bandwidth => ffi::GST_RTSP_HDR_BANDWIDTH, - RTSPHeaderField::Blocksize => ffi::GST_RTSP_HDR_BLOCKSIZE, - RTSPHeaderField::CacheControl => ffi::GST_RTSP_HDR_CACHE_CONTROL, - RTSPHeaderField::Conference => ffi::GST_RTSP_HDR_CONFERENCE, - RTSPHeaderField::Connection => ffi::GST_RTSP_HDR_CONNECTION, - RTSPHeaderField::ContentBase => ffi::GST_RTSP_HDR_CONTENT_BASE, - RTSPHeaderField::ContentEncoding => ffi::GST_RTSP_HDR_CONTENT_ENCODING, - RTSPHeaderField::ContentLanguage => ffi::GST_RTSP_HDR_CONTENT_LANGUAGE, - RTSPHeaderField::ContentLength => ffi::GST_RTSP_HDR_CONTENT_LENGTH, - RTSPHeaderField::ContentLocation => ffi::GST_RTSP_HDR_CONTENT_LOCATION, - RTSPHeaderField::ContentType => ffi::GST_RTSP_HDR_CONTENT_TYPE, - RTSPHeaderField::Cseq => ffi::GST_RTSP_HDR_CSEQ, - RTSPHeaderField::Date => ffi::GST_RTSP_HDR_DATE, - RTSPHeaderField::Expires => ffi::GST_RTSP_HDR_EXPIRES, - RTSPHeaderField::From => ffi::GST_RTSP_HDR_FROM, - RTSPHeaderField::IfModifiedSince => ffi::GST_RTSP_HDR_IF_MODIFIED_SINCE, - RTSPHeaderField::LastModified => ffi::GST_RTSP_HDR_LAST_MODIFIED, - RTSPHeaderField::ProxyAuthenticate => ffi::GST_RTSP_HDR_PROXY_AUTHENTICATE, - RTSPHeaderField::ProxyRequire => ffi::GST_RTSP_HDR_PROXY_REQUIRE, - RTSPHeaderField::Public => ffi::GST_RTSP_HDR_PUBLIC, - RTSPHeaderField::Range => ffi::GST_RTSP_HDR_RANGE, - RTSPHeaderField::Referer => ffi::GST_RTSP_HDR_REFERER, - RTSPHeaderField::Require => ffi::GST_RTSP_HDR_REQUIRE, - RTSPHeaderField::RetryAfter => ffi::GST_RTSP_HDR_RETRY_AFTER, - RTSPHeaderField::RtpInfo => ffi::GST_RTSP_HDR_RTP_INFO, - RTSPHeaderField::Scale => ffi::GST_RTSP_HDR_SCALE, - RTSPHeaderField::Session => ffi::GST_RTSP_HDR_SESSION, - RTSPHeaderField::Server => ffi::GST_RTSP_HDR_SERVER, - RTSPHeaderField::Speed => ffi::GST_RTSP_HDR_SPEED, - RTSPHeaderField::Transport => ffi::GST_RTSP_HDR_TRANSPORT, - RTSPHeaderField::Unsupported => ffi::GST_RTSP_HDR_UNSUPPORTED, - RTSPHeaderField::UserAgent => ffi::GST_RTSP_HDR_USER_AGENT, - RTSPHeaderField::Via => ffi::GST_RTSP_HDR_VIA, - RTSPHeaderField::WwwAuthenticate => ffi::GST_RTSP_HDR_WWW_AUTHENTICATE, - RTSPHeaderField::ClientChallenge => ffi::GST_RTSP_HDR_CLIENT_CHALLENGE, - RTSPHeaderField::RealChallenge1 => ffi::GST_RTSP_HDR_REAL_CHALLENGE1, - RTSPHeaderField::RealChallenge2 => ffi::GST_RTSP_HDR_REAL_CHALLENGE2, - RTSPHeaderField::RealChallenge3 => ffi::GST_RTSP_HDR_REAL_CHALLENGE3, - RTSPHeaderField::Subscribe => ffi::GST_RTSP_HDR_SUBSCRIBE, - RTSPHeaderField::Alert => ffi::GST_RTSP_HDR_ALERT, - RTSPHeaderField::ClientId => ffi::GST_RTSP_HDR_CLIENT_ID, - RTSPHeaderField::CompanyId => ffi::GST_RTSP_HDR_COMPANY_ID, - RTSPHeaderField::Guid => ffi::GST_RTSP_HDR_GUID, - RTSPHeaderField::RegionData => ffi::GST_RTSP_HDR_REGION_DATA, - RTSPHeaderField::MaxAsmWidth => ffi::GST_RTSP_HDR_MAX_ASM_WIDTH, - RTSPHeaderField::Language => ffi::GST_RTSP_HDR_LANGUAGE, - RTSPHeaderField::PlayerStartTime => ffi::GST_RTSP_HDR_PLAYER_START_TIME, - RTSPHeaderField::Location => ffi::GST_RTSP_HDR_LOCATION, - RTSPHeaderField::Etag => ffi::GST_RTSP_HDR_ETAG, - RTSPHeaderField::IfMatch => ffi::GST_RTSP_HDR_IF_MATCH, - RTSPHeaderField::AcceptCharset => ffi::GST_RTSP_HDR_ACCEPT_CHARSET, - RTSPHeaderField::Supported => ffi::GST_RTSP_HDR_SUPPORTED, - RTSPHeaderField::Vary => ffi::GST_RTSP_HDR_VARY, - RTSPHeaderField::XAccelerateStreaming => ffi::GST_RTSP_HDR_X_ACCELERATE_STREAMING, - RTSPHeaderField::XAcceptAuthent => ffi::GST_RTSP_HDR_X_ACCEPT_AUTHENT, - RTSPHeaderField::XAcceptProxyAuthent => ffi::GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT, - RTSPHeaderField::XBroadcastId => ffi::GST_RTSP_HDR_X_BROADCAST_ID, - RTSPHeaderField::XBurstStreaming => ffi::GST_RTSP_HDR_X_BURST_STREAMING, - RTSPHeaderField::XNotice => ffi::GST_RTSP_HDR_X_NOTICE, - RTSPHeaderField::XPlayerLagTime => ffi::GST_RTSP_HDR_X_PLAYER_LAG_TIME, - RTSPHeaderField::XPlaylist => ffi::GST_RTSP_HDR_X_PLAYLIST, - RTSPHeaderField::XPlaylistChangeNotice => ffi::GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE, - RTSPHeaderField::XPlaylistGenId => ffi::GST_RTSP_HDR_X_PLAYLIST_GEN_ID, - RTSPHeaderField::XPlaylistSeekId => ffi::GST_RTSP_HDR_X_PLAYLIST_SEEK_ID, - RTSPHeaderField::XProxyClientAgent => ffi::GST_RTSP_HDR_X_PROXY_CLIENT_AGENT, - RTSPHeaderField::XProxyClientVerb => ffi::GST_RTSP_HDR_X_PROXY_CLIENT_VERB, - RTSPHeaderField::XRecedingPlaylistchange => ffi::GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE, - RTSPHeaderField::XRtpInfo => ffi::GST_RTSP_HDR_X_RTP_INFO, - RTSPHeaderField::XStartupprofile => ffi::GST_RTSP_HDR_X_STARTUPPROFILE, - RTSPHeaderField::Timestamp => ffi::GST_RTSP_HDR_TIMESTAMP, - RTSPHeaderField::AuthenticationInfo => ffi::GST_RTSP_HDR_AUTHENTICATION_INFO, - RTSPHeaderField::Host => ffi::GST_RTSP_HDR_HOST, - RTSPHeaderField::Pragma => ffi::GST_RTSP_HDR_PRAGMA, - RTSPHeaderField::XServerIpAddress => ffi::GST_RTSP_HDR_X_SERVER_IP_ADDRESS, - RTSPHeaderField::XSessioncookie => ffi::GST_RTSP_HDR_X_SESSIONCOOKIE, - RTSPHeaderField::RtcpInterval => ffi::GST_RTSP_HDR_RTCP_INTERVAL, - RTSPHeaderField::Keymgmt => ffi::GST_RTSP_HDR_KEYMGMT, - RTSPHeaderField::PipelinedRequests => ffi::GST_RTSP_HDR_PIPELINED_REQUESTS, - RTSPHeaderField::MediaProperties => ffi::GST_RTSP_HDR_MEDIA_PROPERTIES, - RTSPHeaderField::SeekStyle => ffi::GST_RTSP_HDR_SEEK_STYLE, - RTSPHeaderField::AcceptRanges => ffi::GST_RTSP_HDR_ACCEPT_RANGES, - RTSPHeaderField::Frames => ffi::GST_RTSP_HDR_FRAMES, - RTSPHeaderField::RateControl => ffi::GST_RTSP_HDR_RATE_CONTROL, - RTSPHeaderField::Last => ffi::GST_RTSP_HDR_LAST, - RTSPHeaderField::__Unknown(value) => value, + Self::Invalid => ffi::GST_RTSP_HDR_INVALID, + Self::Accept => ffi::GST_RTSP_HDR_ACCEPT, + Self::AcceptEncoding => ffi::GST_RTSP_HDR_ACCEPT_ENCODING, + Self::AcceptLanguage => ffi::GST_RTSP_HDR_ACCEPT_LANGUAGE, + Self::Allow => ffi::GST_RTSP_HDR_ALLOW, + Self::Authorization => ffi::GST_RTSP_HDR_AUTHORIZATION, + Self::Bandwidth => ffi::GST_RTSP_HDR_BANDWIDTH, + Self::Blocksize => ffi::GST_RTSP_HDR_BLOCKSIZE, + Self::CacheControl => ffi::GST_RTSP_HDR_CACHE_CONTROL, + Self::Conference => ffi::GST_RTSP_HDR_CONFERENCE, + Self::Connection => ffi::GST_RTSP_HDR_CONNECTION, + Self::ContentBase => ffi::GST_RTSP_HDR_CONTENT_BASE, + Self::ContentEncoding => ffi::GST_RTSP_HDR_CONTENT_ENCODING, + Self::ContentLanguage => ffi::GST_RTSP_HDR_CONTENT_LANGUAGE, + Self::ContentLength => ffi::GST_RTSP_HDR_CONTENT_LENGTH, + Self::ContentLocation => ffi::GST_RTSP_HDR_CONTENT_LOCATION, + Self::ContentType => ffi::GST_RTSP_HDR_CONTENT_TYPE, + Self::Cseq => ffi::GST_RTSP_HDR_CSEQ, + Self::Date => ffi::GST_RTSP_HDR_DATE, + Self::Expires => ffi::GST_RTSP_HDR_EXPIRES, + Self::From => ffi::GST_RTSP_HDR_FROM, + Self::IfModifiedSince => ffi::GST_RTSP_HDR_IF_MODIFIED_SINCE, + Self::LastModified => ffi::GST_RTSP_HDR_LAST_MODIFIED, + Self::ProxyAuthenticate => ffi::GST_RTSP_HDR_PROXY_AUTHENTICATE, + Self::ProxyRequire => ffi::GST_RTSP_HDR_PROXY_REQUIRE, + Self::Public => ffi::GST_RTSP_HDR_PUBLIC, + Self::Range => ffi::GST_RTSP_HDR_RANGE, + Self::Referer => ffi::GST_RTSP_HDR_REFERER, + Self::Require => ffi::GST_RTSP_HDR_REQUIRE, + Self::RetryAfter => ffi::GST_RTSP_HDR_RETRY_AFTER, + Self::RtpInfo => ffi::GST_RTSP_HDR_RTP_INFO, + Self::Scale => ffi::GST_RTSP_HDR_SCALE, + Self::Session => ffi::GST_RTSP_HDR_SESSION, + Self::Server => ffi::GST_RTSP_HDR_SERVER, + Self::Speed => ffi::GST_RTSP_HDR_SPEED, + Self::Transport => ffi::GST_RTSP_HDR_TRANSPORT, + Self::Unsupported => ffi::GST_RTSP_HDR_UNSUPPORTED, + Self::UserAgent => ffi::GST_RTSP_HDR_USER_AGENT, + Self::Via => ffi::GST_RTSP_HDR_VIA, + Self::WwwAuthenticate => ffi::GST_RTSP_HDR_WWW_AUTHENTICATE, + Self::ClientChallenge => ffi::GST_RTSP_HDR_CLIENT_CHALLENGE, + Self::RealChallenge1 => ffi::GST_RTSP_HDR_REAL_CHALLENGE1, + Self::RealChallenge2 => ffi::GST_RTSP_HDR_REAL_CHALLENGE2, + Self::RealChallenge3 => ffi::GST_RTSP_HDR_REAL_CHALLENGE3, + Self::Subscribe => ffi::GST_RTSP_HDR_SUBSCRIBE, + Self::Alert => ffi::GST_RTSP_HDR_ALERT, + Self::ClientId => ffi::GST_RTSP_HDR_CLIENT_ID, + Self::CompanyId => ffi::GST_RTSP_HDR_COMPANY_ID, + Self::Guid => ffi::GST_RTSP_HDR_GUID, + Self::RegionData => ffi::GST_RTSP_HDR_REGION_DATA, + Self::MaxAsmWidth => ffi::GST_RTSP_HDR_MAX_ASM_WIDTH, + Self::Language => ffi::GST_RTSP_HDR_LANGUAGE, + Self::PlayerStartTime => ffi::GST_RTSP_HDR_PLAYER_START_TIME, + Self::Location => ffi::GST_RTSP_HDR_LOCATION, + Self::Etag => ffi::GST_RTSP_HDR_ETAG, + Self::IfMatch => ffi::GST_RTSP_HDR_IF_MATCH, + Self::AcceptCharset => ffi::GST_RTSP_HDR_ACCEPT_CHARSET, + Self::Supported => ffi::GST_RTSP_HDR_SUPPORTED, + Self::Vary => ffi::GST_RTSP_HDR_VARY, + Self::XAccelerateStreaming => ffi::GST_RTSP_HDR_X_ACCELERATE_STREAMING, + Self::XAcceptAuthent => ffi::GST_RTSP_HDR_X_ACCEPT_AUTHENT, + Self::XAcceptProxyAuthent => ffi::GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT, + Self::XBroadcastId => ffi::GST_RTSP_HDR_X_BROADCAST_ID, + Self::XBurstStreaming => ffi::GST_RTSP_HDR_X_BURST_STREAMING, + Self::XNotice => ffi::GST_RTSP_HDR_X_NOTICE, + Self::XPlayerLagTime => ffi::GST_RTSP_HDR_X_PLAYER_LAG_TIME, + Self::XPlaylist => ffi::GST_RTSP_HDR_X_PLAYLIST, + Self::XPlaylistChangeNotice => ffi::GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE, + Self::XPlaylistGenId => ffi::GST_RTSP_HDR_X_PLAYLIST_GEN_ID, + Self::XPlaylistSeekId => ffi::GST_RTSP_HDR_X_PLAYLIST_SEEK_ID, + Self::XProxyClientAgent => ffi::GST_RTSP_HDR_X_PROXY_CLIENT_AGENT, + Self::XProxyClientVerb => ffi::GST_RTSP_HDR_X_PROXY_CLIENT_VERB, + Self::XRecedingPlaylistchange => ffi::GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE, + Self::XRtpInfo => ffi::GST_RTSP_HDR_X_RTP_INFO, + Self::XStartupprofile => ffi::GST_RTSP_HDR_X_STARTUPPROFILE, + Self::Timestamp => ffi::GST_RTSP_HDR_TIMESTAMP, + Self::AuthenticationInfo => ffi::GST_RTSP_HDR_AUTHENTICATION_INFO, + Self::Host => ffi::GST_RTSP_HDR_HOST, + Self::Pragma => ffi::GST_RTSP_HDR_PRAGMA, + Self::XServerIpAddress => ffi::GST_RTSP_HDR_X_SERVER_IP_ADDRESS, + Self::XSessioncookie => ffi::GST_RTSP_HDR_X_SESSIONCOOKIE, + Self::RtcpInterval => ffi::GST_RTSP_HDR_RTCP_INTERVAL, + Self::Keymgmt => ffi::GST_RTSP_HDR_KEYMGMT, + Self::PipelinedRequests => ffi::GST_RTSP_HDR_PIPELINED_REQUESTS, + Self::MediaProperties => ffi::GST_RTSP_HDR_MEDIA_PROPERTIES, + Self::SeekStyle => ffi::GST_RTSP_HDR_SEEK_STYLE, + Self::AcceptRanges => ffi::GST_RTSP_HDR_ACCEPT_RANGES, + Self::Frames => ffi::GST_RTSP_HDR_FRAMES, + Self::RateControl => ffi::GST_RTSP_HDR_RATE_CONTROL, + Self::Last => ffi::GST_RTSP_HDR_LAST, + Self::__Unknown(value) => value, } } } @@ -451,97 +451,97 @@ impl FromGlib for RTSPHeaderField { unsafe fn from_glib(value: ffi::GstRTSPHeaderField) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPHeaderField::Invalid, - 1 => RTSPHeaderField::Accept, - 2 => RTSPHeaderField::AcceptEncoding, - 3 => RTSPHeaderField::AcceptLanguage, - 4 => RTSPHeaderField::Allow, - 5 => RTSPHeaderField::Authorization, - 6 => RTSPHeaderField::Bandwidth, - 7 => RTSPHeaderField::Blocksize, - 8 => RTSPHeaderField::CacheControl, - 9 => RTSPHeaderField::Conference, - 10 => RTSPHeaderField::Connection, - 11 => RTSPHeaderField::ContentBase, - 12 => RTSPHeaderField::ContentEncoding, - 13 => RTSPHeaderField::ContentLanguage, - 14 => RTSPHeaderField::ContentLength, - 15 => RTSPHeaderField::ContentLocation, - 16 => RTSPHeaderField::ContentType, - 17 => RTSPHeaderField::Cseq, - 18 => RTSPHeaderField::Date, - 19 => RTSPHeaderField::Expires, - 20 => RTSPHeaderField::From, - 21 => RTSPHeaderField::IfModifiedSince, - 22 => RTSPHeaderField::LastModified, - 23 => RTSPHeaderField::ProxyAuthenticate, - 24 => RTSPHeaderField::ProxyRequire, - 25 => RTSPHeaderField::Public, - 26 => RTSPHeaderField::Range, - 27 => RTSPHeaderField::Referer, - 28 => RTSPHeaderField::Require, - 29 => RTSPHeaderField::RetryAfter, - 30 => RTSPHeaderField::RtpInfo, - 31 => RTSPHeaderField::Scale, - 32 => RTSPHeaderField::Session, - 33 => RTSPHeaderField::Server, - 34 => RTSPHeaderField::Speed, - 35 => RTSPHeaderField::Transport, - 36 => RTSPHeaderField::Unsupported, - 37 => RTSPHeaderField::UserAgent, - 38 => RTSPHeaderField::Via, - 39 => RTSPHeaderField::WwwAuthenticate, - 40 => RTSPHeaderField::ClientChallenge, - 41 => RTSPHeaderField::RealChallenge1, - 42 => RTSPHeaderField::RealChallenge2, - 43 => RTSPHeaderField::RealChallenge3, - 44 => RTSPHeaderField::Subscribe, - 45 => RTSPHeaderField::Alert, - 46 => RTSPHeaderField::ClientId, - 47 => RTSPHeaderField::CompanyId, - 48 => RTSPHeaderField::Guid, - 49 => RTSPHeaderField::RegionData, - 50 => RTSPHeaderField::MaxAsmWidth, - 51 => RTSPHeaderField::Language, - 52 => RTSPHeaderField::PlayerStartTime, - 53 => RTSPHeaderField::Location, - 54 => RTSPHeaderField::Etag, - 55 => RTSPHeaderField::IfMatch, - 56 => RTSPHeaderField::AcceptCharset, - 57 => RTSPHeaderField::Supported, - 58 => RTSPHeaderField::Vary, - 59 => RTSPHeaderField::XAccelerateStreaming, - 60 => RTSPHeaderField::XAcceptAuthent, - 61 => RTSPHeaderField::XAcceptProxyAuthent, - 62 => RTSPHeaderField::XBroadcastId, - 63 => RTSPHeaderField::XBurstStreaming, - 64 => RTSPHeaderField::XNotice, - 65 => RTSPHeaderField::XPlayerLagTime, - 66 => RTSPHeaderField::XPlaylist, - 67 => RTSPHeaderField::XPlaylistChangeNotice, - 68 => RTSPHeaderField::XPlaylistGenId, - 69 => RTSPHeaderField::XPlaylistSeekId, - 70 => RTSPHeaderField::XProxyClientAgent, - 71 => RTSPHeaderField::XProxyClientVerb, - 72 => RTSPHeaderField::XRecedingPlaylistchange, - 73 => RTSPHeaderField::XRtpInfo, - 74 => RTSPHeaderField::XStartupprofile, - 75 => RTSPHeaderField::Timestamp, - 76 => RTSPHeaderField::AuthenticationInfo, - 77 => RTSPHeaderField::Host, - 78 => RTSPHeaderField::Pragma, - 79 => RTSPHeaderField::XServerIpAddress, - 80 => RTSPHeaderField::XSessioncookie, - 81 => RTSPHeaderField::RtcpInterval, - 82 => RTSPHeaderField::Keymgmt, - 83 => RTSPHeaderField::PipelinedRequests, - 84 => RTSPHeaderField::MediaProperties, - 85 => RTSPHeaderField::SeekStyle, - 86 => RTSPHeaderField::AcceptRanges, - 87 => RTSPHeaderField::Frames, - 88 => RTSPHeaderField::RateControl, - 89 => RTSPHeaderField::Last, - value => RTSPHeaderField::__Unknown(value), + 0 => Self::Invalid, + 1 => Self::Accept, + 2 => Self::AcceptEncoding, + 3 => Self::AcceptLanguage, + 4 => Self::Allow, + 5 => Self::Authorization, + 6 => Self::Bandwidth, + 7 => Self::Blocksize, + 8 => Self::CacheControl, + 9 => Self::Conference, + 10 => Self::Connection, + 11 => Self::ContentBase, + 12 => Self::ContentEncoding, + 13 => Self::ContentLanguage, + 14 => Self::ContentLength, + 15 => Self::ContentLocation, + 16 => Self::ContentType, + 17 => Self::Cseq, + 18 => Self::Date, + 19 => Self::Expires, + 20 => Self::From, + 21 => Self::IfModifiedSince, + 22 => Self::LastModified, + 23 => Self::ProxyAuthenticate, + 24 => Self::ProxyRequire, + 25 => Self::Public, + 26 => Self::Range, + 27 => Self::Referer, + 28 => Self::Require, + 29 => Self::RetryAfter, + 30 => Self::RtpInfo, + 31 => Self::Scale, + 32 => Self::Session, + 33 => Self::Server, + 34 => Self::Speed, + 35 => Self::Transport, + 36 => Self::Unsupported, + 37 => Self::UserAgent, + 38 => Self::Via, + 39 => Self::WwwAuthenticate, + 40 => Self::ClientChallenge, + 41 => Self::RealChallenge1, + 42 => Self::RealChallenge2, + 43 => Self::RealChallenge3, + 44 => Self::Subscribe, + 45 => Self::Alert, + 46 => Self::ClientId, + 47 => Self::CompanyId, + 48 => Self::Guid, + 49 => Self::RegionData, + 50 => Self::MaxAsmWidth, + 51 => Self::Language, + 52 => Self::PlayerStartTime, + 53 => Self::Location, + 54 => Self::Etag, + 55 => Self::IfMatch, + 56 => Self::AcceptCharset, + 57 => Self::Supported, + 58 => Self::Vary, + 59 => Self::XAccelerateStreaming, + 60 => Self::XAcceptAuthent, + 61 => Self::XAcceptProxyAuthent, + 62 => Self::XBroadcastId, + 63 => Self::XBurstStreaming, + 64 => Self::XNotice, + 65 => Self::XPlayerLagTime, + 66 => Self::XPlaylist, + 67 => Self::XPlaylistChangeNotice, + 68 => Self::XPlaylistGenId, + 69 => Self::XPlaylistSeekId, + 70 => Self::XProxyClientAgent, + 71 => Self::XProxyClientVerb, + 72 => Self::XRecedingPlaylistchange, + 73 => Self::XRtpInfo, + 74 => Self::XStartupprofile, + 75 => Self::Timestamp, + 76 => Self::AuthenticationInfo, + 77 => Self::Host, + 78 => Self::Pragma, + 79 => Self::XServerIpAddress, + 80 => Self::XSessioncookie, + 81 => Self::RtcpInterval, + 82 => Self::Keymgmt, + 83 => Self::PipelinedRequests, + 84 => Self::MediaProperties, + 85 => Self::SeekStyle, + 86 => Self::AcceptRanges, + 87 => Self::Frames, + 88 => Self::RateControl, + 89 => Self::Last, + value => Self::__Unknown(value), } } } @@ -567,7 +567,7 @@ unsafe impl<'a> FromValue<'a> for RTSPHeaderField { impl ToValue for RTSPHeaderField { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -605,13 +605,13 @@ impl IntoGlib for RTSPMsgType { fn into_glib(self) -> ffi::GstRTSPMsgType { match self { - RTSPMsgType::Invalid => ffi::GST_RTSP_MESSAGE_INVALID, - RTSPMsgType::Request => ffi::GST_RTSP_MESSAGE_REQUEST, - RTSPMsgType::Response => ffi::GST_RTSP_MESSAGE_RESPONSE, - RTSPMsgType::HttpRequest => ffi::GST_RTSP_MESSAGE_HTTP_REQUEST, - RTSPMsgType::HttpResponse => ffi::GST_RTSP_MESSAGE_HTTP_RESPONSE, - RTSPMsgType::Data => ffi::GST_RTSP_MESSAGE_DATA, - RTSPMsgType::__Unknown(value) => value, + Self::Invalid => ffi::GST_RTSP_MESSAGE_INVALID, + Self::Request => ffi::GST_RTSP_MESSAGE_REQUEST, + Self::Response => ffi::GST_RTSP_MESSAGE_RESPONSE, + Self::HttpRequest => ffi::GST_RTSP_MESSAGE_HTTP_REQUEST, + Self::HttpResponse => ffi::GST_RTSP_MESSAGE_HTTP_RESPONSE, + Self::Data => ffi::GST_RTSP_MESSAGE_DATA, + Self::__Unknown(value) => value, } } } @@ -621,13 +621,13 @@ impl FromGlib for RTSPMsgType { unsafe fn from_glib(value: ffi::GstRTSPMsgType) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPMsgType::Invalid, - 1 => RTSPMsgType::Request, - 2 => RTSPMsgType::Response, - 3 => RTSPMsgType::HttpRequest, - 4 => RTSPMsgType::HttpResponse, - 5 => RTSPMsgType::Data, - value => RTSPMsgType::__Unknown(value), + 0 => Self::Invalid, + 1 => Self::Request, + 2 => Self::Response, + 3 => Self::HttpRequest, + 4 => Self::HttpResponse, + 5 => Self::Data, + value => Self::__Unknown(value), } } } @@ -653,7 +653,7 @@ unsafe impl<'a> FromValue<'a> for RTSPMsgType { impl ToValue for RTSPMsgType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -689,12 +689,12 @@ impl IntoGlib for RTSPRangeUnit { fn into_glib(self) -> ffi::GstRTSPRangeUnit { match self { - RTSPRangeUnit::Smpte => ffi::GST_RTSP_RANGE_SMPTE, - RTSPRangeUnit::Smpte30Drop => ffi::GST_RTSP_RANGE_SMPTE_30_DROP, - RTSPRangeUnit::Smpte25 => ffi::GST_RTSP_RANGE_SMPTE_25, - RTSPRangeUnit::Npt => ffi::GST_RTSP_RANGE_NPT, - RTSPRangeUnit::Clock => ffi::GST_RTSP_RANGE_CLOCK, - RTSPRangeUnit::__Unknown(value) => value, + Self::Smpte => ffi::GST_RTSP_RANGE_SMPTE, + Self::Smpte30Drop => ffi::GST_RTSP_RANGE_SMPTE_30_DROP, + Self::Smpte25 => ffi::GST_RTSP_RANGE_SMPTE_25, + Self::Npt => ffi::GST_RTSP_RANGE_NPT, + Self::Clock => ffi::GST_RTSP_RANGE_CLOCK, + Self::__Unknown(value) => value, } } } @@ -704,12 +704,12 @@ impl FromGlib for RTSPRangeUnit { unsafe fn from_glib(value: ffi::GstRTSPRangeUnit) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPRangeUnit::Smpte, - 1 => RTSPRangeUnit::Smpte30Drop, - 2 => RTSPRangeUnit::Smpte25, - 3 => RTSPRangeUnit::Npt, - 4 => RTSPRangeUnit::Clock, - value => RTSPRangeUnit::__Unknown(value), + 0 => Self::Smpte, + 1 => Self::Smpte30Drop, + 2 => Self::Smpte25, + 3 => Self::Npt, + 4 => Self::Clock, + value => Self::__Unknown(value), } } } @@ -735,7 +735,7 @@ unsafe impl<'a> FromValue<'a> for RTSPRangeUnit { impl ToValue for RTSPRangeUnit { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -797,25 +797,25 @@ impl IntoGlib for RTSPResult { fn into_glib(self) -> ffi::GstRTSPResult { match self { - RTSPResult::Ok => ffi::GST_RTSP_OK, - RTSPResult::Error => ffi::GST_RTSP_ERROR, - RTSPResult::Einval => ffi::GST_RTSP_EINVAL, - RTSPResult::Eintr => ffi::GST_RTSP_EINTR, - RTSPResult::Enomem => ffi::GST_RTSP_ENOMEM, - RTSPResult::Eresolv => ffi::GST_RTSP_ERESOLV, - RTSPResult::Enotimpl => ffi::GST_RTSP_ENOTIMPL, - RTSPResult::Esys => ffi::GST_RTSP_ESYS, - RTSPResult::Eparse => ffi::GST_RTSP_EPARSE, - RTSPResult::Ewsastart => ffi::GST_RTSP_EWSASTART, - RTSPResult::Ewsaversion => ffi::GST_RTSP_EWSAVERSION, - RTSPResult::Eeof => ffi::GST_RTSP_EEOF, - RTSPResult::Enet => ffi::GST_RTSP_ENET, - RTSPResult::Enotip => ffi::GST_RTSP_ENOTIP, - RTSPResult::Etimeout => ffi::GST_RTSP_ETIMEOUT, - RTSPResult::Etget => ffi::GST_RTSP_ETGET, - RTSPResult::Etpost => ffi::GST_RTSP_ETPOST, - RTSPResult::Elast => ffi::GST_RTSP_ELAST, - RTSPResult::__Unknown(value) => value, + Self::Ok => ffi::GST_RTSP_OK, + Self::Error => ffi::GST_RTSP_ERROR, + Self::Einval => ffi::GST_RTSP_EINVAL, + Self::Eintr => ffi::GST_RTSP_EINTR, + Self::Enomem => ffi::GST_RTSP_ENOMEM, + Self::Eresolv => ffi::GST_RTSP_ERESOLV, + Self::Enotimpl => ffi::GST_RTSP_ENOTIMPL, + Self::Esys => ffi::GST_RTSP_ESYS, + Self::Eparse => ffi::GST_RTSP_EPARSE, + Self::Ewsastart => ffi::GST_RTSP_EWSASTART, + Self::Ewsaversion => ffi::GST_RTSP_EWSAVERSION, + Self::Eeof => ffi::GST_RTSP_EEOF, + Self::Enet => ffi::GST_RTSP_ENET, + Self::Enotip => ffi::GST_RTSP_ENOTIP, + Self::Etimeout => ffi::GST_RTSP_ETIMEOUT, + Self::Etget => ffi::GST_RTSP_ETGET, + Self::Etpost => ffi::GST_RTSP_ETPOST, + Self::Elast => ffi::GST_RTSP_ELAST, + Self::__Unknown(value) => value, } } } @@ -825,25 +825,25 @@ impl FromGlib for RTSPResult { unsafe fn from_glib(value: ffi::GstRTSPResult) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPResult::Ok, - -1 => RTSPResult::Error, - -2 => RTSPResult::Einval, - -3 => RTSPResult::Eintr, - -4 => RTSPResult::Enomem, - -5 => RTSPResult::Eresolv, - -6 => RTSPResult::Enotimpl, - -7 => RTSPResult::Esys, - -8 => RTSPResult::Eparse, - -9 => RTSPResult::Ewsastart, - -10 => RTSPResult::Ewsaversion, - -11 => RTSPResult::Eeof, - -12 => RTSPResult::Enet, - -13 => RTSPResult::Enotip, - -14 => RTSPResult::Etimeout, - -15 => RTSPResult::Etget, - -16 => RTSPResult::Etpost, - -17 => RTSPResult::Elast, - value => RTSPResult::__Unknown(value), + 0 => Self::Ok, + -1 => Self::Error, + -2 => Self::Einval, + -3 => Self::Eintr, + -4 => Self::Enomem, + -5 => Self::Eresolv, + -6 => Self::Enotimpl, + -7 => Self::Esys, + -8 => Self::Eparse, + -9 => Self::Ewsastart, + -10 => Self::Ewsaversion, + -11 => Self::Eeof, + -12 => Self::Enet, + -13 => Self::Enotip, + -14 => Self::Etimeout, + -15 => Self::Etget, + -16 => Self::Etpost, + -17 => Self::Elast, + value => Self::__Unknown(value), } } } @@ -869,7 +869,7 @@ unsafe impl<'a> FromValue<'a> for RTSPResult { impl ToValue for RTSPResult { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -907,13 +907,13 @@ impl IntoGlib for RTSPState { fn into_glib(self) -> ffi::GstRTSPState { match self { - RTSPState::Invalid => ffi::GST_RTSP_STATE_INVALID, - RTSPState::Init => ffi::GST_RTSP_STATE_INIT, - RTSPState::Ready => ffi::GST_RTSP_STATE_READY, - RTSPState::Seeking => ffi::GST_RTSP_STATE_SEEKING, - RTSPState::Playing => ffi::GST_RTSP_STATE_PLAYING, - RTSPState::Recording => ffi::GST_RTSP_STATE_RECORDING, - RTSPState::__Unknown(value) => value, + Self::Invalid => ffi::GST_RTSP_STATE_INVALID, + Self::Init => ffi::GST_RTSP_STATE_INIT, + Self::Ready => ffi::GST_RTSP_STATE_READY, + Self::Seeking => ffi::GST_RTSP_STATE_SEEKING, + Self::Playing => ffi::GST_RTSP_STATE_PLAYING, + Self::Recording => ffi::GST_RTSP_STATE_RECORDING, + Self::__Unknown(value) => value, } } } @@ -923,13 +923,13 @@ impl FromGlib for RTSPState { unsafe fn from_glib(value: ffi::GstRTSPState) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPState::Invalid, - 1 => RTSPState::Init, - 2 => RTSPState::Ready, - 3 => RTSPState::Seeking, - 4 => RTSPState::Playing, - 5 => RTSPState::Recording, - value => RTSPState::__Unknown(value), + 0 => Self::Invalid, + 1 => Self::Init, + 2 => Self::Ready, + 3 => Self::Seeking, + 4 => Self::Playing, + 5 => Self::Recording, + value => Self::__Unknown(value), } } } @@ -955,7 +955,7 @@ unsafe impl<'a> FromValue<'a> for RTSPState { impl ToValue for RTSPState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1073,61 +1073,57 @@ impl IntoGlib for RTSPStatusCode { fn into_glib(self) -> ffi::GstRTSPStatusCode { match self { - RTSPStatusCode::Invalid => ffi::GST_RTSP_STS_INVALID, - RTSPStatusCode::Continue => ffi::GST_RTSP_STS_CONTINUE, - RTSPStatusCode::Ok => ffi::GST_RTSP_STS_OK, - RTSPStatusCode::Created => ffi::GST_RTSP_STS_CREATED, - RTSPStatusCode::LowOnStorage => ffi::GST_RTSP_STS_LOW_ON_STORAGE, - RTSPStatusCode::MultipleChoices => ffi::GST_RTSP_STS_MULTIPLE_CHOICES, - RTSPStatusCode::MovedPermanently => ffi::GST_RTSP_STS_MOVED_PERMANENTLY, - RTSPStatusCode::MoveTemporarily => ffi::GST_RTSP_STS_MOVE_TEMPORARILY, - RTSPStatusCode::SeeOther => ffi::GST_RTSP_STS_SEE_OTHER, - RTSPStatusCode::NotModified => ffi::GST_RTSP_STS_NOT_MODIFIED, - RTSPStatusCode::UseProxy => ffi::GST_RTSP_STS_USE_PROXY, - RTSPStatusCode::BadRequest => ffi::GST_RTSP_STS_BAD_REQUEST, - RTSPStatusCode::Unauthorized => ffi::GST_RTSP_STS_UNAUTHORIZED, - RTSPStatusCode::PaymentRequired => ffi::GST_RTSP_STS_PAYMENT_REQUIRED, - RTSPStatusCode::Forbidden => ffi::GST_RTSP_STS_FORBIDDEN, - RTSPStatusCode::NotFound => ffi::GST_RTSP_STS_NOT_FOUND, - RTSPStatusCode::MethodNotAllowed => ffi::GST_RTSP_STS_METHOD_NOT_ALLOWED, - RTSPStatusCode::NotAcceptable => ffi::GST_RTSP_STS_NOT_ACCEPTABLE, - RTSPStatusCode::ProxyAuthRequired => ffi::GST_RTSP_STS_PROXY_AUTH_REQUIRED, - RTSPStatusCode::RequestTimeout => ffi::GST_RTSP_STS_REQUEST_TIMEOUT, - RTSPStatusCode::Gone => ffi::GST_RTSP_STS_GONE, - RTSPStatusCode::LengthRequired => ffi::GST_RTSP_STS_LENGTH_REQUIRED, - RTSPStatusCode::PreconditionFailed => ffi::GST_RTSP_STS_PRECONDITION_FAILED, - RTSPStatusCode::RequestEntityTooLarge => ffi::GST_RTSP_STS_REQUEST_ENTITY_TOO_LARGE, - RTSPStatusCode::RequestUriTooLarge => ffi::GST_RTSP_STS_REQUEST_URI_TOO_LARGE, - RTSPStatusCode::UnsupportedMediaType => ffi::GST_RTSP_STS_UNSUPPORTED_MEDIA_TYPE, - RTSPStatusCode::ParameterNotUnderstood => ffi::GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD, - RTSPStatusCode::ConferenceNotFound => ffi::GST_RTSP_STS_CONFERENCE_NOT_FOUND, - RTSPStatusCode::NotEnoughBandwidth => ffi::GST_RTSP_STS_NOT_ENOUGH_BANDWIDTH, - RTSPStatusCode::SessionNotFound => ffi::GST_RTSP_STS_SESSION_NOT_FOUND, - RTSPStatusCode::MethodNotValidInThisState => { - ffi::GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE - } - RTSPStatusCode::HeaderFieldNotValidForResource => { + Self::Invalid => ffi::GST_RTSP_STS_INVALID, + Self::Continue => ffi::GST_RTSP_STS_CONTINUE, + Self::Ok => ffi::GST_RTSP_STS_OK, + Self::Created => ffi::GST_RTSP_STS_CREATED, + Self::LowOnStorage => ffi::GST_RTSP_STS_LOW_ON_STORAGE, + Self::MultipleChoices => ffi::GST_RTSP_STS_MULTIPLE_CHOICES, + Self::MovedPermanently => ffi::GST_RTSP_STS_MOVED_PERMANENTLY, + Self::MoveTemporarily => ffi::GST_RTSP_STS_MOVE_TEMPORARILY, + Self::SeeOther => ffi::GST_RTSP_STS_SEE_OTHER, + Self::NotModified => ffi::GST_RTSP_STS_NOT_MODIFIED, + Self::UseProxy => ffi::GST_RTSP_STS_USE_PROXY, + Self::BadRequest => ffi::GST_RTSP_STS_BAD_REQUEST, + Self::Unauthorized => ffi::GST_RTSP_STS_UNAUTHORIZED, + Self::PaymentRequired => ffi::GST_RTSP_STS_PAYMENT_REQUIRED, + Self::Forbidden => ffi::GST_RTSP_STS_FORBIDDEN, + Self::NotFound => ffi::GST_RTSP_STS_NOT_FOUND, + Self::MethodNotAllowed => ffi::GST_RTSP_STS_METHOD_NOT_ALLOWED, + Self::NotAcceptable => ffi::GST_RTSP_STS_NOT_ACCEPTABLE, + Self::ProxyAuthRequired => ffi::GST_RTSP_STS_PROXY_AUTH_REQUIRED, + Self::RequestTimeout => ffi::GST_RTSP_STS_REQUEST_TIMEOUT, + Self::Gone => ffi::GST_RTSP_STS_GONE, + Self::LengthRequired => ffi::GST_RTSP_STS_LENGTH_REQUIRED, + Self::PreconditionFailed => ffi::GST_RTSP_STS_PRECONDITION_FAILED, + Self::RequestEntityTooLarge => ffi::GST_RTSP_STS_REQUEST_ENTITY_TOO_LARGE, + Self::RequestUriTooLarge => ffi::GST_RTSP_STS_REQUEST_URI_TOO_LARGE, + Self::UnsupportedMediaType => ffi::GST_RTSP_STS_UNSUPPORTED_MEDIA_TYPE, + Self::ParameterNotUnderstood => ffi::GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD, + Self::ConferenceNotFound => ffi::GST_RTSP_STS_CONFERENCE_NOT_FOUND, + Self::NotEnoughBandwidth => ffi::GST_RTSP_STS_NOT_ENOUGH_BANDWIDTH, + Self::SessionNotFound => ffi::GST_RTSP_STS_SESSION_NOT_FOUND, + Self::MethodNotValidInThisState => ffi::GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE, + Self::HeaderFieldNotValidForResource => { ffi::GST_RTSP_STS_HEADER_FIELD_NOT_VALID_FOR_RESOURCE } - RTSPStatusCode::InvalidRange => ffi::GST_RTSP_STS_INVALID_RANGE, - RTSPStatusCode::ParameterIsReadonly => ffi::GST_RTSP_STS_PARAMETER_IS_READONLY, - RTSPStatusCode::AggregateOperationNotAllowed => { - ffi::GST_RTSP_STS_AGGREGATE_OPERATION_NOT_ALLOWED - } - RTSPStatusCode::OnlyAggregateOperationAllowed => { + Self::InvalidRange => ffi::GST_RTSP_STS_INVALID_RANGE, + Self::ParameterIsReadonly => ffi::GST_RTSP_STS_PARAMETER_IS_READONLY, + Self::AggregateOperationNotAllowed => ffi::GST_RTSP_STS_AGGREGATE_OPERATION_NOT_ALLOWED, + Self::OnlyAggregateOperationAllowed => { ffi::GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED } - RTSPStatusCode::UnsupportedTransport => ffi::GST_RTSP_STS_UNSUPPORTED_TRANSPORT, - RTSPStatusCode::DestinationUnreachable => ffi::GST_RTSP_STS_DESTINATION_UNREACHABLE, - RTSPStatusCode::KeyManagementFailure => ffi::GST_RTSP_STS_KEY_MANAGEMENT_FAILURE, - RTSPStatusCode::InternalServerError => ffi::GST_RTSP_STS_INTERNAL_SERVER_ERROR, - RTSPStatusCode::NotImplemented => ffi::GST_RTSP_STS_NOT_IMPLEMENTED, - RTSPStatusCode::BadGateway => ffi::GST_RTSP_STS_BAD_GATEWAY, - RTSPStatusCode::ServiceUnavailable => ffi::GST_RTSP_STS_SERVICE_UNAVAILABLE, - RTSPStatusCode::GatewayTimeout => ffi::GST_RTSP_STS_GATEWAY_TIMEOUT, - RTSPStatusCode::RtspVersionNotSupported => ffi::GST_RTSP_STS_RTSP_VERSION_NOT_SUPPORTED, - RTSPStatusCode::OptionNotSupported => ffi::GST_RTSP_STS_OPTION_NOT_SUPPORTED, - RTSPStatusCode::__Unknown(value) => value, + Self::UnsupportedTransport => ffi::GST_RTSP_STS_UNSUPPORTED_TRANSPORT, + Self::DestinationUnreachable => ffi::GST_RTSP_STS_DESTINATION_UNREACHABLE, + Self::KeyManagementFailure => ffi::GST_RTSP_STS_KEY_MANAGEMENT_FAILURE, + Self::InternalServerError => ffi::GST_RTSP_STS_INTERNAL_SERVER_ERROR, + Self::NotImplemented => ffi::GST_RTSP_STS_NOT_IMPLEMENTED, + Self::BadGateway => ffi::GST_RTSP_STS_BAD_GATEWAY, + Self::ServiceUnavailable => ffi::GST_RTSP_STS_SERVICE_UNAVAILABLE, + Self::GatewayTimeout => ffi::GST_RTSP_STS_GATEWAY_TIMEOUT, + Self::RtspVersionNotSupported => ffi::GST_RTSP_STS_RTSP_VERSION_NOT_SUPPORTED, + Self::OptionNotSupported => ffi::GST_RTSP_STS_OPTION_NOT_SUPPORTED, + Self::__Unknown(value) => value, } } } @@ -1137,53 +1133,53 @@ impl FromGlib for RTSPStatusCode { unsafe fn from_glib(value: ffi::GstRTSPStatusCode) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPStatusCode::Invalid, - 100 => RTSPStatusCode::Continue, - 200 => RTSPStatusCode::Ok, - 201 => RTSPStatusCode::Created, - 250 => RTSPStatusCode::LowOnStorage, - 300 => RTSPStatusCode::MultipleChoices, - 301 => RTSPStatusCode::MovedPermanently, - 302 => RTSPStatusCode::MoveTemporarily, - 303 => RTSPStatusCode::SeeOther, - 304 => RTSPStatusCode::NotModified, - 305 => RTSPStatusCode::UseProxy, - 400 => RTSPStatusCode::BadRequest, - 401 => RTSPStatusCode::Unauthorized, - 402 => RTSPStatusCode::PaymentRequired, - 403 => RTSPStatusCode::Forbidden, - 404 => RTSPStatusCode::NotFound, - 405 => RTSPStatusCode::MethodNotAllowed, - 406 => RTSPStatusCode::NotAcceptable, - 407 => RTSPStatusCode::ProxyAuthRequired, - 408 => RTSPStatusCode::RequestTimeout, - 410 => RTSPStatusCode::Gone, - 411 => RTSPStatusCode::LengthRequired, - 412 => RTSPStatusCode::PreconditionFailed, - 413 => RTSPStatusCode::RequestEntityTooLarge, - 414 => RTSPStatusCode::RequestUriTooLarge, - 415 => RTSPStatusCode::UnsupportedMediaType, - 451 => RTSPStatusCode::ParameterNotUnderstood, - 452 => RTSPStatusCode::ConferenceNotFound, - 453 => RTSPStatusCode::NotEnoughBandwidth, - 454 => RTSPStatusCode::SessionNotFound, - 455 => RTSPStatusCode::MethodNotValidInThisState, - 456 => RTSPStatusCode::HeaderFieldNotValidForResource, - 457 => RTSPStatusCode::InvalidRange, - 458 => RTSPStatusCode::ParameterIsReadonly, - 459 => RTSPStatusCode::AggregateOperationNotAllowed, - 460 => RTSPStatusCode::OnlyAggregateOperationAllowed, - 461 => RTSPStatusCode::UnsupportedTransport, - 462 => RTSPStatusCode::DestinationUnreachable, - 463 => RTSPStatusCode::KeyManagementFailure, - 500 => RTSPStatusCode::InternalServerError, - 501 => RTSPStatusCode::NotImplemented, - 502 => RTSPStatusCode::BadGateway, - 503 => RTSPStatusCode::ServiceUnavailable, - 504 => RTSPStatusCode::GatewayTimeout, - 505 => RTSPStatusCode::RtspVersionNotSupported, - 551 => RTSPStatusCode::OptionNotSupported, - value => RTSPStatusCode::__Unknown(value), + 0 => Self::Invalid, + 100 => Self::Continue, + 200 => Self::Ok, + 201 => Self::Created, + 250 => Self::LowOnStorage, + 300 => Self::MultipleChoices, + 301 => Self::MovedPermanently, + 302 => Self::MoveTemporarily, + 303 => Self::SeeOther, + 304 => Self::NotModified, + 305 => Self::UseProxy, + 400 => Self::BadRequest, + 401 => Self::Unauthorized, + 402 => Self::PaymentRequired, + 403 => Self::Forbidden, + 404 => Self::NotFound, + 405 => Self::MethodNotAllowed, + 406 => Self::NotAcceptable, + 407 => Self::ProxyAuthRequired, + 408 => Self::RequestTimeout, + 410 => Self::Gone, + 411 => Self::LengthRequired, + 412 => Self::PreconditionFailed, + 413 => Self::RequestEntityTooLarge, + 414 => Self::RequestUriTooLarge, + 415 => Self::UnsupportedMediaType, + 451 => Self::ParameterNotUnderstood, + 452 => Self::ConferenceNotFound, + 453 => Self::NotEnoughBandwidth, + 454 => Self::SessionNotFound, + 455 => Self::MethodNotValidInThisState, + 456 => Self::HeaderFieldNotValidForResource, + 457 => Self::InvalidRange, + 458 => Self::ParameterIsReadonly, + 459 => Self::AggregateOperationNotAllowed, + 460 => Self::OnlyAggregateOperationAllowed, + 461 => Self::UnsupportedTransport, + 462 => Self::DestinationUnreachable, + 463 => Self::KeyManagementFailure, + 500 => Self::InternalServerError, + 501 => Self::NotImplemented, + 502 => Self::BadGateway, + 503 => Self::ServiceUnavailable, + 504 => Self::GatewayTimeout, + 505 => Self::RtspVersionNotSupported, + 551 => Self::OptionNotSupported, + value => Self::__Unknown(value), } } } @@ -1209,7 +1205,7 @@ unsafe impl<'a> FromValue<'a> for RTSPStatusCode { impl ToValue for RTSPStatusCode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1245,12 +1241,12 @@ impl IntoGlib for RTSPTimeType { fn into_glib(self) -> ffi::GstRTSPTimeType { match self { - RTSPTimeType::Seconds => ffi::GST_RTSP_TIME_SECONDS, - RTSPTimeType::Now => ffi::GST_RTSP_TIME_NOW, - RTSPTimeType::End => ffi::GST_RTSP_TIME_END, - RTSPTimeType::Frames => ffi::GST_RTSP_TIME_FRAMES, - RTSPTimeType::Utc => ffi::GST_RTSP_TIME_UTC, - RTSPTimeType::__Unknown(value) => value, + Self::Seconds => ffi::GST_RTSP_TIME_SECONDS, + Self::Now => ffi::GST_RTSP_TIME_NOW, + Self::End => ffi::GST_RTSP_TIME_END, + Self::Frames => ffi::GST_RTSP_TIME_FRAMES, + Self::Utc => ffi::GST_RTSP_TIME_UTC, + Self::__Unknown(value) => value, } } } @@ -1260,12 +1256,12 @@ impl FromGlib for RTSPTimeType { unsafe fn from_glib(value: ffi::GstRTSPTimeType) -> Self { skip_assert_initialized!(); match value { - 0 => RTSPTimeType::Seconds, - 1 => RTSPTimeType::Now, - 2 => RTSPTimeType::End, - 3 => RTSPTimeType::Frames, - 4 => RTSPTimeType::Utc, - value => RTSPTimeType::__Unknown(value), + 0 => Self::Seconds, + 1 => Self::Now, + 2 => Self::End, + 3 => Self::Frames, + 4 => Self::Utc, + value => Self::__Unknown(value), } } } @@ -1291,7 +1287,7 @@ unsafe impl<'a> FromValue<'a> for RTSPTimeType { impl ToValue for RTSPTimeType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-rtsp/src/auto/flags.rs b/gstreamer-rtsp/src/auto/flags.rs index e4db0f043..5cb867d33 100644 --- a/gstreamer-rtsp/src/auto/flags.rs +++ b/gstreamer-rtsp/src/auto/flags.rs @@ -28,9 +28,9 @@ impl IntoGlib for RTSPEvent { #[doc(hidden)] impl FromGlib for RTSPEvent { - unsafe fn from_glib(value: ffi::GstRTSPEvent) -> RTSPEvent { + unsafe fn from_glib(value: ffi::GstRTSPEvent) -> Self { skip_assert_initialized!(); - RTSPEvent::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -55,7 +55,7 @@ unsafe impl<'a> FromValue<'a> for RTSPEvent { impl ToValue for RTSPEvent { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -88,9 +88,9 @@ impl IntoGlib for RTSPLowerTrans { #[doc(hidden)] impl FromGlib for RTSPLowerTrans { - unsafe fn from_glib(value: ffi::GstRTSPLowerTrans) -> RTSPLowerTrans { + unsafe fn from_glib(value: ffi::GstRTSPLowerTrans) -> Self { skip_assert_initialized!(); - RTSPLowerTrans::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -115,7 +115,7 @@ unsafe impl<'a> FromValue<'a> for RTSPLowerTrans { impl ToValue for RTSPLowerTrans { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -164,9 +164,9 @@ impl IntoGlib for RTSPMethod { #[doc(hidden)] impl FromGlib for RTSPMethod { - unsafe fn from_glib(value: ffi::GstRTSPMethod) -> RTSPMethod { + unsafe fn from_glib(value: ffi::GstRTSPMethod) -> Self { skip_assert_initialized!(); - RTSPMethod::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -191,7 +191,7 @@ unsafe impl<'a> FromValue<'a> for RTSPMethod { impl ToValue for RTSPMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -223,9 +223,9 @@ impl IntoGlib for RTSPProfile { #[doc(hidden)] impl FromGlib for RTSPProfile { - unsafe fn from_glib(value: ffi::GstRTSPProfile) -> RTSPProfile { + unsafe fn from_glib(value: ffi::GstRTSPProfile) -> Self { skip_assert_initialized!(); - RTSPProfile::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -250,7 +250,7 @@ unsafe impl<'a> FromValue<'a> for RTSPProfile { impl ToValue for RTSPProfile { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -280,9 +280,9 @@ impl IntoGlib for RTSPTransMode { #[doc(hidden)] impl FromGlib for RTSPTransMode { - unsafe fn from_glib(value: ffi::GstRTSPTransMode) -> RTSPTransMode { + unsafe fn from_glib(value: ffi::GstRTSPTransMode) -> Self { skip_assert_initialized!(); - RTSPTransMode::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -307,7 +307,7 @@ unsafe impl<'a> FromValue<'a> for RTSPTransMode { impl ToValue for RTSPTransMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 1589abd72..0e67259f3 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index c7a3d1b26..f1f17416a 100644 --- a/gstreamer-rtsp/sys/tests/abi.rs +++ b/gstreamer-rtsp/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index f43b204b9..b6f265cdb 100644 --- a/gstreamer-rtsp/sys/tests/constant.c +++ b/gstreamer-rtsp/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index cbffd2c82..033823a28 100644 --- a/gstreamer-rtsp/sys/tests/layout.c +++ b/gstreamer-rtsp/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index 74607be83..639e1e641 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index eb20a8d4f..4f82bf9bf 100644 --- a/gstreamer-sdp/sys/tests/abi.rs +++ b/gstreamer-sdp/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index 7507d0703..d92a3756b 100644 --- a/gstreamer-sdp/sys/tests/constant.c +++ b/gstreamer-sdp/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index 157dbc2d6..a378d1261 100644 --- a/gstreamer-sdp/sys/tests/layout.c +++ b/gstreamer-sdp/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 74272860f..858ffa4fd 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index 419047f1c..a94a733e5 100644 --- a/gstreamer-tag/sys/tests/abi.rs +++ b/gstreamer-tag/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index 8da195d50..026bb3927 100644 --- a/gstreamer-tag/sys/tests/constant.c +++ b/gstreamer-tag/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index 5830eacc7..15f782b70 100644 --- a/gstreamer-tag/sys/tests/layout.c +++ b/gstreamer-tag/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index d03d24603..494c7e624 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -35,10 +35,10 @@ impl IntoGlib for VideoAFDSpec { fn into_glib(self) -> ffi::GstVideoAFDSpec { match self { - VideoAFDSpec::DvbEtsi => ffi::GST_VIDEO_AFD_SPEC_DVB_ETSI, - VideoAFDSpec::AtscA53 => ffi::GST_VIDEO_AFD_SPEC_ATSC_A53, - VideoAFDSpec::SmpteSt20161 => ffi::GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1, - VideoAFDSpec::__Unknown(value) => value, + Self::DvbEtsi => ffi::GST_VIDEO_AFD_SPEC_DVB_ETSI, + Self::AtscA53 => ffi::GST_VIDEO_AFD_SPEC_ATSC_A53, + Self::SmpteSt20161 => ffi::GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1, + Self::__Unknown(value) => value, } } } @@ -50,10 +50,10 @@ impl FromGlib for VideoAFDSpec { unsafe fn from_glib(value: ffi::GstVideoAFDSpec) -> Self { skip_assert_initialized!(); match value { - 0 => VideoAFDSpec::DvbEtsi, - 1 => VideoAFDSpec::AtscA53, - 2 => VideoAFDSpec::SmpteSt20161, - value => VideoAFDSpec::__Unknown(value), + 0 => Self::DvbEtsi, + 1 => Self::AtscA53, + 2 => Self::SmpteSt20161, + value => Self::__Unknown(value), } } } @@ -87,7 +87,7 @@ unsafe impl<'a> FromValue<'a> for VideoAFDSpec { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl ToValue for VideoAFDSpec { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -139,18 +139,18 @@ impl IntoGlib for VideoAFDValue { fn into_glib(self) -> ffi::GstVideoAFDValue { match self { - VideoAFDValue::Unavailable => ffi::GST_VIDEO_AFD_UNAVAILABLE, - VideoAFDValue::_169TopAligned => ffi::GST_VIDEO_AFD_16_9_TOP_ALIGNED, - VideoAFDValue::_149TopAligned => ffi::GST_VIDEO_AFD_14_9_TOP_ALIGNED, - VideoAFDValue::GreaterThan169 => ffi::GST_VIDEO_AFD_GREATER_THAN_16_9, - VideoAFDValue::_43Full169Full => ffi::GST_VIDEO_AFD_4_3_FULL_16_9_FULL, - VideoAFDValue::_43Full43Pillar => ffi::GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR, - VideoAFDValue::_169Letter169Full => ffi::GST_VIDEO_AFD_16_9_LETTER_16_9_FULL, - VideoAFDValue::_149Letter149Pillar => ffi::GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR, - VideoAFDValue::_43Full149Center => ffi::GST_VIDEO_AFD_4_3_FULL_14_9_CENTER, - VideoAFDValue::_169Letter149Center => ffi::GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER, - VideoAFDValue::_169Letter43Center => ffi::GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER, - VideoAFDValue::__Unknown(value) => value, + Self::Unavailable => ffi::GST_VIDEO_AFD_UNAVAILABLE, + Self::_169TopAligned => ffi::GST_VIDEO_AFD_16_9_TOP_ALIGNED, + Self::_149TopAligned => ffi::GST_VIDEO_AFD_14_9_TOP_ALIGNED, + Self::GreaterThan169 => ffi::GST_VIDEO_AFD_GREATER_THAN_16_9, + Self::_43Full169Full => ffi::GST_VIDEO_AFD_4_3_FULL_16_9_FULL, + Self::_43Full43Pillar => ffi::GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR, + Self::_169Letter169Full => ffi::GST_VIDEO_AFD_16_9_LETTER_16_9_FULL, + Self::_149Letter149Pillar => ffi::GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR, + Self::_43Full149Center => ffi::GST_VIDEO_AFD_4_3_FULL_14_9_CENTER, + Self::_169Letter149Center => ffi::GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER, + Self::_169Letter43Center => ffi::GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER, + Self::__Unknown(value) => value, } } } @@ -162,18 +162,18 @@ impl FromGlib for VideoAFDValue { unsafe fn from_glib(value: ffi::GstVideoAFDValue) -> Self { skip_assert_initialized!(); match value { - 0 => VideoAFDValue::Unavailable, - 2 => VideoAFDValue::_169TopAligned, - 3 => VideoAFDValue::_149TopAligned, - 4 => VideoAFDValue::GreaterThan169, - 8 => VideoAFDValue::_43Full169Full, - 9 => VideoAFDValue::_43Full43Pillar, - 10 => VideoAFDValue::_169Letter169Full, - 11 => VideoAFDValue::_149Letter149Pillar, - 13 => VideoAFDValue::_43Full149Center, - 14 => VideoAFDValue::_169Letter149Center, - 15 => VideoAFDValue::_169Letter43Center, - value => VideoAFDValue::__Unknown(value), + 0 => Self::Unavailable, + 2 => Self::_169TopAligned, + 3 => Self::_149TopAligned, + 4 => Self::GreaterThan169, + 8 => Self::_43Full169Full, + 9 => Self::_43Full43Pillar, + 10 => Self::_169Letter169Full, + 11 => Self::_149Letter149Pillar, + 13 => Self::_43Full149Center, + 14 => Self::_169Letter149Center, + 15 => Self::_169Letter43Center, + value => Self::__Unknown(value), } } } @@ -207,7 +207,7 @@ unsafe impl<'a> FromValue<'a> for VideoAFDValue { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl ToValue for VideoAFDValue { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -239,10 +239,10 @@ impl IntoGlib for VideoAlphaMode { fn into_glib(self) -> ffi::GstVideoAlphaMode { match self { - VideoAlphaMode::Copy => ffi::GST_VIDEO_ALPHA_MODE_COPY, - VideoAlphaMode::Set => ffi::GST_VIDEO_ALPHA_MODE_SET, - VideoAlphaMode::Mult => ffi::GST_VIDEO_ALPHA_MODE_MULT, - VideoAlphaMode::__Unknown(value) => value, + Self::Copy => ffi::GST_VIDEO_ALPHA_MODE_COPY, + Self::Set => ffi::GST_VIDEO_ALPHA_MODE_SET, + Self::Mult => ffi::GST_VIDEO_ALPHA_MODE_MULT, + Self::__Unknown(value) => value, } } } @@ -252,10 +252,10 @@ impl FromGlib for VideoAlphaMode { unsafe fn from_glib(value: ffi::GstVideoAlphaMode) -> Self { skip_assert_initialized!(); match value { - 0 => VideoAlphaMode::Copy, - 1 => VideoAlphaMode::Set, - 2 => VideoAlphaMode::Mult, - value => VideoAlphaMode::__Unknown(value), + 0 => Self::Copy, + 1 => Self::Set, + 2 => Self::Mult, + value => Self::__Unknown(value), } } } @@ -281,7 +281,7 @@ unsafe impl<'a> FromValue<'a> for VideoAlphaMode { impl ToValue for VideoAlphaMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -337,12 +337,12 @@ impl IntoGlib for VideoCaptionType { fn into_glib(self) -> ffi::GstVideoCaptionType { match self { - VideoCaptionType::Unknown => ffi::GST_VIDEO_CAPTION_TYPE_UNKNOWN, - VideoCaptionType::Cea608Raw => ffi::GST_VIDEO_CAPTION_TYPE_CEA608_RAW, - VideoCaptionType::Cea608S3341a => ffi::GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A, - VideoCaptionType::Cea708Raw => ffi::GST_VIDEO_CAPTION_TYPE_CEA708_RAW, - VideoCaptionType::Cea708Cdp => ffi::GST_VIDEO_CAPTION_TYPE_CEA708_CDP, - VideoCaptionType::__Unknown(value) => value, + Self::Unknown => ffi::GST_VIDEO_CAPTION_TYPE_UNKNOWN, + Self::Cea608Raw => ffi::GST_VIDEO_CAPTION_TYPE_CEA608_RAW, + Self::Cea608S3341a => ffi::GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A, + Self::Cea708Raw => ffi::GST_VIDEO_CAPTION_TYPE_CEA708_RAW, + Self::Cea708Cdp => ffi::GST_VIDEO_CAPTION_TYPE_CEA708_CDP, + Self::__Unknown(value) => value, } } } @@ -354,12 +354,12 @@ impl FromGlib for VideoCaptionType { unsafe fn from_glib(value: ffi::GstVideoCaptionType) -> Self { skip_assert_initialized!(); match value { - 0 => VideoCaptionType::Unknown, - 1 => VideoCaptionType::Cea608Raw, - 2 => VideoCaptionType::Cea608S3341a, - 3 => VideoCaptionType::Cea708Raw, - 4 => VideoCaptionType::Cea708Cdp, - value => VideoCaptionType::__Unknown(value), + 0 => Self::Unknown, + 1 => Self::Cea608Raw, + 2 => Self::Cea608S3341a, + 3 => Self::Cea708Raw, + 4 => Self::Cea708Cdp, + value => Self::__Unknown(value), } } } @@ -393,7 +393,7 @@ unsafe impl<'a> FromValue<'a> for VideoCaptionType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for VideoCaptionType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -427,11 +427,11 @@ impl IntoGlib for VideoChromaMode { fn into_glib(self) -> ffi::GstVideoChromaMode { match self { - VideoChromaMode::Full => ffi::GST_VIDEO_CHROMA_MODE_FULL, - VideoChromaMode::UpsampleOnly => ffi::GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY, - VideoChromaMode::DownsampleOnly => ffi::GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY, - VideoChromaMode::None => ffi::GST_VIDEO_CHROMA_MODE_NONE, - VideoChromaMode::__Unknown(value) => value, + Self::Full => ffi::GST_VIDEO_CHROMA_MODE_FULL, + Self::UpsampleOnly => ffi::GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY, + Self::DownsampleOnly => ffi::GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY, + Self::None => ffi::GST_VIDEO_CHROMA_MODE_NONE, + Self::__Unknown(value) => value, } } } @@ -441,11 +441,11 @@ impl FromGlib for VideoChromaMode { unsafe fn from_glib(value: ffi::GstVideoChromaMode) -> Self { skip_assert_initialized!(); match value { - 0 => VideoChromaMode::Full, - 1 => VideoChromaMode::UpsampleOnly, - 2 => VideoChromaMode::DownsampleOnly, - 3 => VideoChromaMode::None, - value => VideoChromaMode::__Unknown(value), + 0 => Self::Full, + 1 => Self::UpsampleOnly, + 2 => Self::DownsampleOnly, + 3 => Self::None, + value => Self::__Unknown(value), } } } @@ -471,7 +471,7 @@ unsafe impl<'a> FromValue<'a> for VideoChromaMode { impl ToValue for VideoChromaMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -529,14 +529,14 @@ impl IntoGlib for VideoColorMatrix { fn into_glib(self) -> ffi::GstVideoColorMatrix { match self { - VideoColorMatrix::Unknown => ffi::GST_VIDEO_COLOR_MATRIX_UNKNOWN, - VideoColorMatrix::Rgb => ffi::GST_VIDEO_COLOR_MATRIX_RGB, - VideoColorMatrix::Fcc => ffi::GST_VIDEO_COLOR_MATRIX_FCC, - VideoColorMatrix::Bt709 => ffi::GST_VIDEO_COLOR_MATRIX_BT709, - VideoColorMatrix::Bt601 => ffi::GST_VIDEO_COLOR_MATRIX_BT601, - VideoColorMatrix::Smpte240m => ffi::GST_VIDEO_COLOR_MATRIX_SMPTE240M, - VideoColorMatrix::Bt2020 => ffi::GST_VIDEO_COLOR_MATRIX_BT2020, - VideoColorMatrix::__Unknown(value) => value, + Self::Unknown => ffi::GST_VIDEO_COLOR_MATRIX_UNKNOWN, + Self::Rgb => ffi::GST_VIDEO_COLOR_MATRIX_RGB, + Self::Fcc => ffi::GST_VIDEO_COLOR_MATRIX_FCC, + Self::Bt709 => ffi::GST_VIDEO_COLOR_MATRIX_BT709, + Self::Bt601 => ffi::GST_VIDEO_COLOR_MATRIX_BT601, + Self::Smpte240m => ffi::GST_VIDEO_COLOR_MATRIX_SMPTE240M, + Self::Bt2020 => ffi::GST_VIDEO_COLOR_MATRIX_BT2020, + Self::__Unknown(value) => value, } } } @@ -546,14 +546,14 @@ impl FromGlib for VideoColorMatrix { unsafe fn from_glib(value: ffi::GstVideoColorMatrix) -> Self { skip_assert_initialized!(); match value { - 0 => VideoColorMatrix::Unknown, - 1 => VideoColorMatrix::Rgb, - 2 => VideoColorMatrix::Fcc, - 3 => VideoColorMatrix::Bt709, - 4 => VideoColorMatrix::Bt601, - 5 => VideoColorMatrix::Smpte240m, - 6 => VideoColorMatrix::Bt2020, - value => VideoColorMatrix::__Unknown(value), + 0 => Self::Unknown, + 1 => Self::Rgb, + 2 => Self::Fcc, + 3 => Self::Bt709, + 4 => Self::Bt601, + 5 => Self::Smpte240m, + 6 => Self::Bt2020, + value => Self::__Unknown(value), } } } @@ -579,7 +579,7 @@ unsafe impl<'a> FromValue<'a> for VideoColorMatrix { impl ToValue for VideoColorMatrix { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -662,24 +662,24 @@ impl IntoGlib for VideoColorPrimaries { fn into_glib(self) -> ffi::GstVideoColorPrimaries { match self { - VideoColorPrimaries::Unknown => ffi::GST_VIDEO_COLOR_PRIMARIES_UNKNOWN, - VideoColorPrimaries::Bt709 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT709, - VideoColorPrimaries::Bt470m => ffi::GST_VIDEO_COLOR_PRIMARIES_BT470M, - VideoColorPrimaries::Bt470bg => ffi::GST_VIDEO_COLOR_PRIMARIES_BT470BG, - VideoColorPrimaries::Smpte170m => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTE170M, - VideoColorPrimaries::Smpte240m => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTE240M, - VideoColorPrimaries::Film => ffi::GST_VIDEO_COLOR_PRIMARIES_FILM, - VideoColorPrimaries::Bt2020 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020, - VideoColorPrimaries::Adobergb => ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB, + Self::Unknown => ffi::GST_VIDEO_COLOR_PRIMARIES_UNKNOWN, + Self::Bt709 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT709, + Self::Bt470m => ffi::GST_VIDEO_COLOR_PRIMARIES_BT470M, + Self::Bt470bg => ffi::GST_VIDEO_COLOR_PRIMARIES_BT470BG, + Self::Smpte170m => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTE170M, + Self::Smpte240m => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTE240M, + Self::Film => ffi::GST_VIDEO_COLOR_PRIMARIES_FILM, + Self::Bt2020 => ffi::GST_VIDEO_COLOR_PRIMARIES_BT2020, + Self::Adobergb => ffi::GST_VIDEO_COLOR_PRIMARIES_ADOBERGB, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoColorPrimaries::Smptest428 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEST428, + Self::Smptest428 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEST428, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoColorPrimaries::Smpterp431 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTERP431, + Self::Smpterp431 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTERP431, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoColorPrimaries::Smpteeg432 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432, + Self::Smpteeg432 => ffi::GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoColorPrimaries::Ebu3213 => ffi::GST_VIDEO_COLOR_PRIMARIES_EBU3213, - VideoColorPrimaries::__Unknown(value) => value, + Self::Ebu3213 => ffi::GST_VIDEO_COLOR_PRIMARIES_EBU3213, + Self::__Unknown(value) => value, } } } @@ -689,24 +689,24 @@ impl FromGlib for VideoColorPrimaries { unsafe fn from_glib(value: ffi::GstVideoColorPrimaries) -> Self { skip_assert_initialized!(); match value { - 0 => VideoColorPrimaries::Unknown, - 1 => VideoColorPrimaries::Bt709, - 2 => VideoColorPrimaries::Bt470m, - 3 => VideoColorPrimaries::Bt470bg, - 4 => VideoColorPrimaries::Smpte170m, - 5 => VideoColorPrimaries::Smpte240m, - 6 => VideoColorPrimaries::Film, - 7 => VideoColorPrimaries::Bt2020, - 8 => VideoColorPrimaries::Adobergb, + 0 => Self::Unknown, + 1 => Self::Bt709, + 2 => Self::Bt470m, + 3 => Self::Bt470bg, + 4 => Self::Smpte170m, + 5 => Self::Smpte240m, + 6 => Self::Film, + 7 => Self::Bt2020, + 8 => Self::Adobergb, #[cfg(any(feature = "v1_16", feature = "dox"))] - 9 => VideoColorPrimaries::Smptest428, + 9 => Self::Smptest428, #[cfg(any(feature = "v1_16", feature = "dox"))] - 10 => VideoColorPrimaries::Smpterp431, + 10 => Self::Smpterp431, #[cfg(any(feature = "v1_16", feature = "dox"))] - 11 => VideoColorPrimaries::Smpteeg432, + 11 => Self::Smpteeg432, #[cfg(any(feature = "v1_16", feature = "dox"))] - 12 => VideoColorPrimaries::Ebu3213, - value => VideoColorPrimaries::__Unknown(value), + 12 => Self::Ebu3213, + value => Self::__Unknown(value), } } } @@ -732,7 +732,7 @@ unsafe impl<'a> FromValue<'a> for VideoColorPrimaries { impl ToValue for VideoColorPrimaries { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -768,12 +768,12 @@ impl IntoGlib for VideoDitherMethod { fn into_glib(self) -> ffi::GstVideoDitherMethod { match self { - VideoDitherMethod::None => ffi::GST_VIDEO_DITHER_NONE, - VideoDitherMethod::Verterr => ffi::GST_VIDEO_DITHER_VERTERR, - VideoDitherMethod::FloydSteinberg => ffi::GST_VIDEO_DITHER_FLOYD_STEINBERG, - VideoDitherMethod::SierraLite => ffi::GST_VIDEO_DITHER_SIERRA_LITE, - VideoDitherMethod::Bayer => ffi::GST_VIDEO_DITHER_BAYER, - VideoDitherMethod::__Unknown(value) => value, + Self::None => ffi::GST_VIDEO_DITHER_NONE, + Self::Verterr => ffi::GST_VIDEO_DITHER_VERTERR, + Self::FloydSteinberg => ffi::GST_VIDEO_DITHER_FLOYD_STEINBERG, + Self::SierraLite => ffi::GST_VIDEO_DITHER_SIERRA_LITE, + Self::Bayer => ffi::GST_VIDEO_DITHER_BAYER, + Self::__Unknown(value) => value, } } } @@ -783,12 +783,12 @@ impl FromGlib for VideoDitherMethod { unsafe fn from_glib(value: ffi::GstVideoDitherMethod) -> Self { skip_assert_initialized!(); match value { - 0 => VideoDitherMethod::None, - 1 => VideoDitherMethod::Verterr, - 2 => VideoDitherMethod::FloydSteinberg, - 3 => VideoDitherMethod::SierraLite, - 4 => VideoDitherMethod::Bayer, - value => VideoDitherMethod::__Unknown(value), + 0 => Self::None, + 1 => Self::Verterr, + 2 => Self::FloydSteinberg, + 3 => Self::SierraLite, + 4 => Self::Bayer, + value => Self::__Unknown(value), } } } @@ -814,7 +814,7 @@ unsafe impl<'a> FromValue<'a> for VideoDitherMethod { impl ToValue for VideoDitherMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -873,10 +873,10 @@ impl IntoGlib for VideoFieldOrder { fn into_glib(self) -> ffi::GstVideoFieldOrder { match self { - VideoFieldOrder::Unknown => ffi::GST_VIDEO_FIELD_ORDER_UNKNOWN, - VideoFieldOrder::TopFieldFirst => ffi::GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST, - VideoFieldOrder::BottomFieldFirst => ffi::GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST, - VideoFieldOrder::__Unknown(value) => value, + Self::Unknown => ffi::GST_VIDEO_FIELD_ORDER_UNKNOWN, + Self::TopFieldFirst => ffi::GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST, + Self::BottomFieldFirst => ffi::GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST, + Self::__Unknown(value) => value, } } } @@ -888,10 +888,10 @@ impl FromGlib for VideoFieldOrder { unsafe fn from_glib(value: ffi::GstVideoFieldOrder) -> Self { skip_assert_initialized!(); match value { - 0 => VideoFieldOrder::Unknown, - 1 => VideoFieldOrder::TopFieldFirst, - 2 => VideoFieldOrder::BottomFieldFirst, - value => VideoFieldOrder::__Unknown(value), + 0 => Self::Unknown, + 1 => Self::TopFieldFirst, + 2 => Self::BottomFieldFirst, + value => Self::__Unknown(value), } } } @@ -925,7 +925,7 @@ unsafe impl<'a> FromValue<'a> for VideoFieldOrder { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl ToValue for VideoFieldOrder { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1257,144 +1257,144 @@ impl IntoGlib for VideoFormat { fn into_glib(self) -> ffi::GstVideoFormat { match self { - VideoFormat::Unknown => ffi::GST_VIDEO_FORMAT_UNKNOWN, - VideoFormat::Encoded => ffi::GST_VIDEO_FORMAT_ENCODED, - VideoFormat::I420 => ffi::GST_VIDEO_FORMAT_I420, - VideoFormat::Yv12 => ffi::GST_VIDEO_FORMAT_YV12, - VideoFormat::Yuy2 => ffi::GST_VIDEO_FORMAT_YUY2, - VideoFormat::Uyvy => ffi::GST_VIDEO_FORMAT_UYVY, - VideoFormat::Ayuv => ffi::GST_VIDEO_FORMAT_AYUV, - VideoFormat::Rgbx => ffi::GST_VIDEO_FORMAT_RGBx, - VideoFormat::Bgrx => ffi::GST_VIDEO_FORMAT_BGRx, - VideoFormat::Xrgb => ffi::GST_VIDEO_FORMAT_xRGB, - VideoFormat::Xbgr => ffi::GST_VIDEO_FORMAT_xBGR, - VideoFormat::Rgba => ffi::GST_VIDEO_FORMAT_RGBA, - VideoFormat::Bgra => ffi::GST_VIDEO_FORMAT_BGRA, - VideoFormat::Argb => ffi::GST_VIDEO_FORMAT_ARGB, - VideoFormat::Abgr => ffi::GST_VIDEO_FORMAT_ABGR, - VideoFormat::Rgb => ffi::GST_VIDEO_FORMAT_RGB, - VideoFormat::Bgr => ffi::GST_VIDEO_FORMAT_BGR, - VideoFormat::Y41b => ffi::GST_VIDEO_FORMAT_Y41B, - VideoFormat::Y42b => ffi::GST_VIDEO_FORMAT_Y42B, - VideoFormat::Yvyu => ffi::GST_VIDEO_FORMAT_YVYU, - VideoFormat::Y444 => ffi::GST_VIDEO_FORMAT_Y444, - VideoFormat::V210 => ffi::GST_VIDEO_FORMAT_v210, - VideoFormat::V216 => ffi::GST_VIDEO_FORMAT_v216, - VideoFormat::Nv12 => ffi::GST_VIDEO_FORMAT_NV12, - VideoFormat::Nv21 => ffi::GST_VIDEO_FORMAT_NV21, - VideoFormat::Gray8 => ffi::GST_VIDEO_FORMAT_GRAY8, - VideoFormat::Gray16Be => ffi::GST_VIDEO_FORMAT_GRAY16_BE, - VideoFormat::Gray16Le => ffi::GST_VIDEO_FORMAT_GRAY16_LE, - VideoFormat::V308 => ffi::GST_VIDEO_FORMAT_v308, - VideoFormat::Rgb16 => ffi::GST_VIDEO_FORMAT_RGB16, - VideoFormat::Bgr16 => ffi::GST_VIDEO_FORMAT_BGR16, - VideoFormat::Rgb15 => ffi::GST_VIDEO_FORMAT_RGB15, - VideoFormat::Bgr15 => ffi::GST_VIDEO_FORMAT_BGR15, - VideoFormat::Uyvp => ffi::GST_VIDEO_FORMAT_UYVP, - VideoFormat::A420 => ffi::GST_VIDEO_FORMAT_A420, - VideoFormat::Rgb8p => ffi::GST_VIDEO_FORMAT_RGB8P, - VideoFormat::Yuv9 => ffi::GST_VIDEO_FORMAT_YUV9, - VideoFormat::Yvu9 => ffi::GST_VIDEO_FORMAT_YVU9, - VideoFormat::Iyu1 => ffi::GST_VIDEO_FORMAT_IYU1, - VideoFormat::Argb64 => ffi::GST_VIDEO_FORMAT_ARGB64, - VideoFormat::Ayuv64 => ffi::GST_VIDEO_FORMAT_AYUV64, - VideoFormat::R210 => ffi::GST_VIDEO_FORMAT_r210, - VideoFormat::I42010be => ffi::GST_VIDEO_FORMAT_I420_10BE, - VideoFormat::I42010le => ffi::GST_VIDEO_FORMAT_I420_10LE, - VideoFormat::I42210be => ffi::GST_VIDEO_FORMAT_I422_10BE, - VideoFormat::I42210le => ffi::GST_VIDEO_FORMAT_I422_10LE, - VideoFormat::Y44410be => ffi::GST_VIDEO_FORMAT_Y444_10BE, - VideoFormat::Y44410le => ffi::GST_VIDEO_FORMAT_Y444_10LE, - VideoFormat::Gbr => ffi::GST_VIDEO_FORMAT_GBR, - VideoFormat::Gbr10be => ffi::GST_VIDEO_FORMAT_GBR_10BE, - VideoFormat::Gbr10le => ffi::GST_VIDEO_FORMAT_GBR_10LE, - VideoFormat::Nv16 => ffi::GST_VIDEO_FORMAT_NV16, - VideoFormat::Nv24 => ffi::GST_VIDEO_FORMAT_NV24, - VideoFormat::Nv1264z32 => ffi::GST_VIDEO_FORMAT_NV12_64Z32, - VideoFormat::A42010be => ffi::GST_VIDEO_FORMAT_A420_10BE, - VideoFormat::A42010le => ffi::GST_VIDEO_FORMAT_A420_10LE, - VideoFormat::A42210be => ffi::GST_VIDEO_FORMAT_A422_10BE, - VideoFormat::A42210le => ffi::GST_VIDEO_FORMAT_A422_10LE, - VideoFormat::A44410be => ffi::GST_VIDEO_FORMAT_A444_10BE, - VideoFormat::A44410le => ffi::GST_VIDEO_FORMAT_A444_10LE, - VideoFormat::Nv61 => ffi::GST_VIDEO_FORMAT_NV61, + Self::Unknown => ffi::GST_VIDEO_FORMAT_UNKNOWN, + Self::Encoded => ffi::GST_VIDEO_FORMAT_ENCODED, + Self::I420 => ffi::GST_VIDEO_FORMAT_I420, + Self::Yv12 => ffi::GST_VIDEO_FORMAT_YV12, + Self::Yuy2 => ffi::GST_VIDEO_FORMAT_YUY2, + Self::Uyvy => ffi::GST_VIDEO_FORMAT_UYVY, + Self::Ayuv => ffi::GST_VIDEO_FORMAT_AYUV, + Self::Rgbx => ffi::GST_VIDEO_FORMAT_RGBx, + Self::Bgrx => ffi::GST_VIDEO_FORMAT_BGRx, + Self::Xrgb => ffi::GST_VIDEO_FORMAT_xRGB, + Self::Xbgr => ffi::GST_VIDEO_FORMAT_xBGR, + Self::Rgba => ffi::GST_VIDEO_FORMAT_RGBA, + Self::Bgra => ffi::GST_VIDEO_FORMAT_BGRA, + Self::Argb => ffi::GST_VIDEO_FORMAT_ARGB, + Self::Abgr => ffi::GST_VIDEO_FORMAT_ABGR, + Self::Rgb => ffi::GST_VIDEO_FORMAT_RGB, + Self::Bgr => ffi::GST_VIDEO_FORMAT_BGR, + Self::Y41b => ffi::GST_VIDEO_FORMAT_Y41B, + Self::Y42b => ffi::GST_VIDEO_FORMAT_Y42B, + Self::Yvyu => ffi::GST_VIDEO_FORMAT_YVYU, + Self::Y444 => ffi::GST_VIDEO_FORMAT_Y444, + Self::V210 => ffi::GST_VIDEO_FORMAT_v210, + Self::V216 => ffi::GST_VIDEO_FORMAT_v216, + Self::Nv12 => ffi::GST_VIDEO_FORMAT_NV12, + Self::Nv21 => ffi::GST_VIDEO_FORMAT_NV21, + Self::Gray8 => ffi::GST_VIDEO_FORMAT_GRAY8, + Self::Gray16Be => ffi::GST_VIDEO_FORMAT_GRAY16_BE, + Self::Gray16Le => ffi::GST_VIDEO_FORMAT_GRAY16_LE, + Self::V308 => ffi::GST_VIDEO_FORMAT_v308, + Self::Rgb16 => ffi::GST_VIDEO_FORMAT_RGB16, + Self::Bgr16 => ffi::GST_VIDEO_FORMAT_BGR16, + Self::Rgb15 => ffi::GST_VIDEO_FORMAT_RGB15, + Self::Bgr15 => ffi::GST_VIDEO_FORMAT_BGR15, + Self::Uyvp => ffi::GST_VIDEO_FORMAT_UYVP, + Self::A420 => ffi::GST_VIDEO_FORMAT_A420, + Self::Rgb8p => ffi::GST_VIDEO_FORMAT_RGB8P, + Self::Yuv9 => ffi::GST_VIDEO_FORMAT_YUV9, + Self::Yvu9 => ffi::GST_VIDEO_FORMAT_YVU9, + Self::Iyu1 => ffi::GST_VIDEO_FORMAT_IYU1, + Self::Argb64 => ffi::GST_VIDEO_FORMAT_ARGB64, + Self::Ayuv64 => ffi::GST_VIDEO_FORMAT_AYUV64, + Self::R210 => ffi::GST_VIDEO_FORMAT_r210, + Self::I42010be => ffi::GST_VIDEO_FORMAT_I420_10BE, + Self::I42010le => ffi::GST_VIDEO_FORMAT_I420_10LE, + Self::I42210be => ffi::GST_VIDEO_FORMAT_I422_10BE, + Self::I42210le => ffi::GST_VIDEO_FORMAT_I422_10LE, + Self::Y44410be => ffi::GST_VIDEO_FORMAT_Y444_10BE, + Self::Y44410le => ffi::GST_VIDEO_FORMAT_Y444_10LE, + Self::Gbr => ffi::GST_VIDEO_FORMAT_GBR, + Self::Gbr10be => ffi::GST_VIDEO_FORMAT_GBR_10BE, + Self::Gbr10le => ffi::GST_VIDEO_FORMAT_GBR_10LE, + Self::Nv16 => ffi::GST_VIDEO_FORMAT_NV16, + Self::Nv24 => ffi::GST_VIDEO_FORMAT_NV24, + Self::Nv1264z32 => ffi::GST_VIDEO_FORMAT_NV12_64Z32, + Self::A42010be => ffi::GST_VIDEO_FORMAT_A420_10BE, + Self::A42010le => ffi::GST_VIDEO_FORMAT_A420_10LE, + Self::A42210be => ffi::GST_VIDEO_FORMAT_A422_10BE, + Self::A42210le => ffi::GST_VIDEO_FORMAT_A422_10LE, + Self::A44410be => ffi::GST_VIDEO_FORMAT_A444_10BE, + Self::A44410le => ffi::GST_VIDEO_FORMAT_A444_10LE, + Self::Nv61 => ffi::GST_VIDEO_FORMAT_NV61, #[cfg(any(feature = "v1_10", feature = "dox"))] - VideoFormat::P01010be => ffi::GST_VIDEO_FORMAT_P010_10BE, + Self::P01010be => ffi::GST_VIDEO_FORMAT_P010_10BE, #[cfg(any(feature = "v1_10", feature = "dox"))] - VideoFormat::P01010le => ffi::GST_VIDEO_FORMAT_P010_10LE, + Self::P01010le => ffi::GST_VIDEO_FORMAT_P010_10LE, #[cfg(any(feature = "v1_10", feature = "dox"))] - VideoFormat::Iyu2 => ffi::GST_VIDEO_FORMAT_IYU2, + Self::Iyu2 => ffi::GST_VIDEO_FORMAT_IYU2, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Vyuy => ffi::GST_VIDEO_FORMAT_VYUY, + Self::Vyuy => ffi::GST_VIDEO_FORMAT_VYUY, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Gbra => ffi::GST_VIDEO_FORMAT_GBRA, + Self::Gbra => ffi::GST_VIDEO_FORMAT_GBRA, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Gbra10be => ffi::GST_VIDEO_FORMAT_GBRA_10BE, + Self::Gbra10be => ffi::GST_VIDEO_FORMAT_GBRA_10BE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Gbra10le => ffi::GST_VIDEO_FORMAT_GBRA_10LE, + Self::Gbra10le => ffi::GST_VIDEO_FORMAT_GBRA_10LE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Gbr12be => ffi::GST_VIDEO_FORMAT_GBR_12BE, + Self::Gbr12be => ffi::GST_VIDEO_FORMAT_GBR_12BE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Gbr12le => ffi::GST_VIDEO_FORMAT_GBR_12LE, + Self::Gbr12le => ffi::GST_VIDEO_FORMAT_GBR_12LE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Gbra12be => ffi::GST_VIDEO_FORMAT_GBRA_12BE, + Self::Gbra12be => ffi::GST_VIDEO_FORMAT_GBRA_12BE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Gbra12le => ffi::GST_VIDEO_FORMAT_GBRA_12LE, + Self::Gbra12le => ffi::GST_VIDEO_FORMAT_GBRA_12LE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::I42012be => ffi::GST_VIDEO_FORMAT_I420_12BE, + Self::I42012be => ffi::GST_VIDEO_FORMAT_I420_12BE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::I42012le => ffi::GST_VIDEO_FORMAT_I420_12LE, + Self::I42012le => ffi::GST_VIDEO_FORMAT_I420_12LE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::I42212be => ffi::GST_VIDEO_FORMAT_I422_12BE, + Self::I42212be => ffi::GST_VIDEO_FORMAT_I422_12BE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::I42212le => ffi::GST_VIDEO_FORMAT_I422_12LE, + Self::I42212le => ffi::GST_VIDEO_FORMAT_I422_12LE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Y44412be => ffi::GST_VIDEO_FORMAT_Y444_12BE, + Self::Y44412be => ffi::GST_VIDEO_FORMAT_Y444_12BE, #[cfg(any(feature = "v1_12", feature = "dox"))] - VideoFormat::Y44412le => ffi::GST_VIDEO_FORMAT_Y444_12LE, + Self::Y44412le => ffi::GST_VIDEO_FORMAT_Y444_12LE, #[cfg(any(feature = "v1_14", feature = "dox"))] - VideoFormat::Gray10Le32 => ffi::GST_VIDEO_FORMAT_GRAY10_LE32, + Self::Gray10Le32 => ffi::GST_VIDEO_FORMAT_GRAY10_LE32, #[cfg(any(feature = "v1_14", feature = "dox"))] - VideoFormat::Nv1210le32 => ffi::GST_VIDEO_FORMAT_NV12_10LE32, + Self::Nv1210le32 => ffi::GST_VIDEO_FORMAT_NV12_10LE32, #[cfg(any(feature = "v1_14", feature = "dox"))] - VideoFormat::Nv1610le32 => ffi::GST_VIDEO_FORMAT_NV16_10LE32, + Self::Nv1610le32 => ffi::GST_VIDEO_FORMAT_NV16_10LE32, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoFormat::Nv1210le40 => ffi::GST_VIDEO_FORMAT_NV12_10LE40, + Self::Nv1210le40 => ffi::GST_VIDEO_FORMAT_NV12_10LE40, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoFormat::Y210 => ffi::GST_VIDEO_FORMAT_Y210, + Self::Y210 => ffi::GST_VIDEO_FORMAT_Y210, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoFormat::Y410 => ffi::GST_VIDEO_FORMAT_Y410, + Self::Y410 => ffi::GST_VIDEO_FORMAT_Y410, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoFormat::Vuya => ffi::GST_VIDEO_FORMAT_VUYA, + Self::Vuya => ffi::GST_VIDEO_FORMAT_VUYA, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoFormat::Bgr10a2Le => ffi::GST_VIDEO_FORMAT_BGR10A2_LE, + Self::Bgr10a2Le => ffi::GST_VIDEO_FORMAT_BGR10A2_LE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Rgb10a2Le => ffi::GST_VIDEO_FORMAT_RGB10A2_LE, + Self::Rgb10a2Le => ffi::GST_VIDEO_FORMAT_RGB10A2_LE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Y44416be => ffi::GST_VIDEO_FORMAT_Y444_16BE, + Self::Y44416be => ffi::GST_VIDEO_FORMAT_Y444_16BE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Y44416le => ffi::GST_VIDEO_FORMAT_Y444_16LE, + Self::Y44416le => ffi::GST_VIDEO_FORMAT_Y444_16LE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::P016Be => ffi::GST_VIDEO_FORMAT_P016_BE, + Self::P016Be => ffi::GST_VIDEO_FORMAT_P016_BE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::P016Le => ffi::GST_VIDEO_FORMAT_P016_LE, + Self::P016Le => ffi::GST_VIDEO_FORMAT_P016_LE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::P012Be => ffi::GST_VIDEO_FORMAT_P012_BE, + Self::P012Be => ffi::GST_VIDEO_FORMAT_P012_BE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::P012Le => ffi::GST_VIDEO_FORMAT_P012_LE, + Self::P012Le => ffi::GST_VIDEO_FORMAT_P012_LE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Y212Be => ffi::GST_VIDEO_FORMAT_Y212_BE, + Self::Y212Be => ffi::GST_VIDEO_FORMAT_Y212_BE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Y212Le => ffi::GST_VIDEO_FORMAT_Y212_LE, + Self::Y212Le => ffi::GST_VIDEO_FORMAT_Y212_LE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Y412Be => ffi::GST_VIDEO_FORMAT_Y412_BE, + Self::Y412Be => ffi::GST_VIDEO_FORMAT_Y412_BE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Y412Le => ffi::GST_VIDEO_FORMAT_Y412_LE, + Self::Y412Le => ffi::GST_VIDEO_FORMAT_Y412_LE, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Nv124l4 => ffi::GST_VIDEO_FORMAT_NV12_4L4, + Self::Nv124l4 => ffi::GST_VIDEO_FORMAT_NV12_4L4, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoFormat::Nv1232l32 => ffi::GST_VIDEO_FORMAT_NV12_32L32, - VideoFormat::__Unknown(value) => value, + Self::Nv1232l32 => ffi::GST_VIDEO_FORMAT_NV12_32L32, + Self::__Unknown(value) => value, } } } @@ -1404,144 +1404,144 @@ impl FromGlib for VideoFormat { unsafe fn from_glib(value: ffi::GstVideoFormat) -> Self { skip_assert_initialized!(); match value { - 0 => VideoFormat::Unknown, - 1 => VideoFormat::Encoded, - 2 => VideoFormat::I420, - 3 => VideoFormat::Yv12, - 4 => VideoFormat::Yuy2, - 5 => VideoFormat::Uyvy, - 6 => VideoFormat::Ayuv, - 7 => VideoFormat::Rgbx, - 8 => VideoFormat::Bgrx, - 9 => VideoFormat::Xrgb, - 10 => VideoFormat::Xbgr, - 11 => VideoFormat::Rgba, - 12 => VideoFormat::Bgra, - 13 => VideoFormat::Argb, - 14 => VideoFormat::Abgr, - 15 => VideoFormat::Rgb, - 16 => VideoFormat::Bgr, - 17 => VideoFormat::Y41b, - 18 => VideoFormat::Y42b, - 19 => VideoFormat::Yvyu, - 20 => VideoFormat::Y444, - 21 => VideoFormat::V210, - 22 => VideoFormat::V216, - 23 => VideoFormat::Nv12, - 24 => VideoFormat::Nv21, - 25 => VideoFormat::Gray8, - 26 => VideoFormat::Gray16Be, - 27 => VideoFormat::Gray16Le, - 28 => VideoFormat::V308, - 29 => VideoFormat::Rgb16, - 30 => VideoFormat::Bgr16, - 31 => VideoFormat::Rgb15, - 32 => VideoFormat::Bgr15, - 33 => VideoFormat::Uyvp, - 34 => VideoFormat::A420, - 35 => VideoFormat::Rgb8p, - 36 => VideoFormat::Yuv9, - 37 => VideoFormat::Yvu9, - 38 => VideoFormat::Iyu1, - 39 => VideoFormat::Argb64, - 40 => VideoFormat::Ayuv64, - 41 => VideoFormat::R210, - 42 => VideoFormat::I42010be, - 43 => VideoFormat::I42010le, - 44 => VideoFormat::I42210be, - 45 => VideoFormat::I42210le, - 46 => VideoFormat::Y44410be, - 47 => VideoFormat::Y44410le, - 48 => VideoFormat::Gbr, - 49 => VideoFormat::Gbr10be, - 50 => VideoFormat::Gbr10le, - 51 => VideoFormat::Nv16, - 52 => VideoFormat::Nv24, - 53 => VideoFormat::Nv1264z32, - 54 => VideoFormat::A42010be, - 55 => VideoFormat::A42010le, - 56 => VideoFormat::A42210be, - 57 => VideoFormat::A42210le, - 58 => VideoFormat::A44410be, - 59 => VideoFormat::A44410le, - 60 => VideoFormat::Nv61, + 0 => Self::Unknown, + 1 => Self::Encoded, + 2 => Self::I420, + 3 => Self::Yv12, + 4 => Self::Yuy2, + 5 => Self::Uyvy, + 6 => Self::Ayuv, + 7 => Self::Rgbx, + 8 => Self::Bgrx, + 9 => Self::Xrgb, + 10 => Self::Xbgr, + 11 => Self::Rgba, + 12 => Self::Bgra, + 13 => Self::Argb, + 14 => Self::Abgr, + 15 => Self::Rgb, + 16 => Self::Bgr, + 17 => Self::Y41b, + 18 => Self::Y42b, + 19 => Self::Yvyu, + 20 => Self::Y444, + 21 => Self::V210, + 22 => Self::V216, + 23 => Self::Nv12, + 24 => Self::Nv21, + 25 => Self::Gray8, + 26 => Self::Gray16Be, + 27 => Self::Gray16Le, + 28 => Self::V308, + 29 => Self::Rgb16, + 30 => Self::Bgr16, + 31 => Self::Rgb15, + 32 => Self::Bgr15, + 33 => Self::Uyvp, + 34 => Self::A420, + 35 => Self::Rgb8p, + 36 => Self::Yuv9, + 37 => Self::Yvu9, + 38 => Self::Iyu1, + 39 => Self::Argb64, + 40 => Self::Ayuv64, + 41 => Self::R210, + 42 => Self::I42010be, + 43 => Self::I42010le, + 44 => Self::I42210be, + 45 => Self::I42210le, + 46 => Self::Y44410be, + 47 => Self::Y44410le, + 48 => Self::Gbr, + 49 => Self::Gbr10be, + 50 => Self::Gbr10le, + 51 => Self::Nv16, + 52 => Self::Nv24, + 53 => Self::Nv1264z32, + 54 => Self::A42010be, + 55 => Self::A42010le, + 56 => Self::A42210be, + 57 => Self::A42210le, + 58 => Self::A44410be, + 59 => Self::A44410le, + 60 => Self::Nv61, #[cfg(any(feature = "v1_10", feature = "dox"))] - 61 => VideoFormat::P01010be, + 61 => Self::P01010be, #[cfg(any(feature = "v1_10", feature = "dox"))] - 62 => VideoFormat::P01010le, + 62 => Self::P01010le, #[cfg(any(feature = "v1_10", feature = "dox"))] - 63 => VideoFormat::Iyu2, + 63 => Self::Iyu2, #[cfg(any(feature = "v1_12", feature = "dox"))] - 64 => VideoFormat::Vyuy, + 64 => Self::Vyuy, #[cfg(any(feature = "v1_12", feature = "dox"))] - 65 => VideoFormat::Gbra, + 65 => Self::Gbra, #[cfg(any(feature = "v1_12", feature = "dox"))] - 66 => VideoFormat::Gbra10be, + 66 => Self::Gbra10be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 67 => VideoFormat::Gbra10le, + 67 => Self::Gbra10le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 68 => VideoFormat::Gbr12be, + 68 => Self::Gbr12be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 69 => VideoFormat::Gbr12le, + 69 => Self::Gbr12le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 70 => VideoFormat::Gbra12be, + 70 => Self::Gbra12be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 71 => VideoFormat::Gbra12le, + 71 => Self::Gbra12le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 72 => VideoFormat::I42012be, + 72 => Self::I42012be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 73 => VideoFormat::I42012le, + 73 => Self::I42012le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 74 => VideoFormat::I42212be, + 74 => Self::I42212be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 75 => VideoFormat::I42212le, + 75 => Self::I42212le, #[cfg(any(feature = "v1_12", feature = "dox"))] - 76 => VideoFormat::Y44412be, + 76 => Self::Y44412be, #[cfg(any(feature = "v1_12", feature = "dox"))] - 77 => VideoFormat::Y44412le, + 77 => Self::Y44412le, #[cfg(any(feature = "v1_14", feature = "dox"))] - 78 => VideoFormat::Gray10Le32, + 78 => Self::Gray10Le32, #[cfg(any(feature = "v1_14", feature = "dox"))] - 79 => VideoFormat::Nv1210le32, + 79 => Self::Nv1210le32, #[cfg(any(feature = "v1_14", feature = "dox"))] - 80 => VideoFormat::Nv1610le32, + 80 => Self::Nv1610le32, #[cfg(any(feature = "v1_16", feature = "dox"))] - 81 => VideoFormat::Nv1210le40, + 81 => Self::Nv1210le40, #[cfg(any(feature = "v1_16", feature = "dox"))] - 82 => VideoFormat::Y210, + 82 => Self::Y210, #[cfg(any(feature = "v1_16", feature = "dox"))] - 83 => VideoFormat::Y410, + 83 => Self::Y410, #[cfg(any(feature = "v1_16", feature = "dox"))] - 84 => VideoFormat::Vuya, + 84 => Self::Vuya, #[cfg(any(feature = "v1_16", feature = "dox"))] - 85 => VideoFormat::Bgr10a2Le, + 85 => Self::Bgr10a2Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 86 => VideoFormat::Rgb10a2Le, + 86 => Self::Rgb10a2Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 87 => VideoFormat::Y44416be, + 87 => Self::Y44416be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 88 => VideoFormat::Y44416le, + 88 => Self::Y44416le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 89 => VideoFormat::P016Be, + 89 => Self::P016Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 90 => VideoFormat::P016Le, + 90 => Self::P016Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 91 => VideoFormat::P012Be, + 91 => Self::P012Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 92 => VideoFormat::P012Le, + 92 => Self::P012Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 93 => VideoFormat::Y212Be, + 93 => Self::Y212Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 94 => VideoFormat::Y212Le, + 94 => Self::Y212Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 95 => VideoFormat::Y412Be, + 95 => Self::Y412Be, #[cfg(any(feature = "v1_18", feature = "dox"))] - 96 => VideoFormat::Y412Le, + 96 => Self::Y412Le, #[cfg(any(feature = "v1_18", feature = "dox"))] - 97 => VideoFormat::Nv124l4, + 97 => Self::Nv124l4, #[cfg(any(feature = "v1_18", feature = "dox"))] - 98 => VideoFormat::Nv1232l32, - value => VideoFormat::__Unknown(value), + 98 => Self::Nv1232l32, + value => Self::__Unknown(value), } } } @@ -1567,7 +1567,7 @@ unsafe impl<'a> FromValue<'a> for VideoFormat { impl ToValue for VideoFormat { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1597,9 +1597,9 @@ impl IntoGlib for VideoGammaMode { fn into_glib(self) -> ffi::GstVideoGammaMode { match self { - VideoGammaMode::None => ffi::GST_VIDEO_GAMMA_MODE_NONE, - VideoGammaMode::Remap => ffi::GST_VIDEO_GAMMA_MODE_REMAP, - VideoGammaMode::__Unknown(value) => value, + Self::None => ffi::GST_VIDEO_GAMMA_MODE_NONE, + Self::Remap => ffi::GST_VIDEO_GAMMA_MODE_REMAP, + Self::__Unknown(value) => value, } } } @@ -1609,9 +1609,9 @@ impl FromGlib for VideoGammaMode { unsafe fn from_glib(value: ffi::GstVideoGammaMode) -> Self { skip_assert_initialized!(); match value { - 0 => VideoGammaMode::None, - 1 => VideoGammaMode::Remap, - value => VideoGammaMode::__Unknown(value), + 0 => Self::None, + 1 => Self::Remap, + value => Self::__Unknown(value), } } } @@ -1637,7 +1637,7 @@ unsafe impl<'a> FromValue<'a> for VideoGammaMode { impl ToValue for VideoGammaMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1706,13 +1706,13 @@ impl IntoGlib for VideoInterlaceMode { fn into_glib(self) -> ffi::GstVideoInterlaceMode { match self { - VideoInterlaceMode::Progressive => ffi::GST_VIDEO_INTERLACE_MODE_PROGRESSIVE, - VideoInterlaceMode::Interleaved => ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED, - VideoInterlaceMode::Mixed => ffi::GST_VIDEO_INTERLACE_MODE_MIXED, - VideoInterlaceMode::Fields => ffi::GST_VIDEO_INTERLACE_MODE_FIELDS, + Self::Progressive => ffi::GST_VIDEO_INTERLACE_MODE_PROGRESSIVE, + Self::Interleaved => ffi::GST_VIDEO_INTERLACE_MODE_INTERLEAVED, + Self::Mixed => ffi::GST_VIDEO_INTERLACE_MODE_MIXED, + Self::Fields => ffi::GST_VIDEO_INTERLACE_MODE_FIELDS, #[cfg(any(feature = "v1_16", feature = "dox"))] - VideoInterlaceMode::Alternate => ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE, - VideoInterlaceMode::__Unknown(value) => value, + Self::Alternate => ffi::GST_VIDEO_INTERLACE_MODE_ALTERNATE, + Self::__Unknown(value) => value, } } } @@ -1722,13 +1722,13 @@ impl FromGlib for VideoInterlaceMode { unsafe fn from_glib(value: ffi::GstVideoInterlaceMode) -> Self { skip_assert_initialized!(); match value { - 0 => VideoInterlaceMode::Progressive, - 1 => VideoInterlaceMode::Interleaved, - 2 => VideoInterlaceMode::Mixed, - 3 => VideoInterlaceMode::Fields, + 0 => Self::Progressive, + 1 => Self::Interleaved, + 2 => Self::Mixed, + 3 => Self::Fields, #[cfg(any(feature = "v1_16", feature = "dox"))] - 4 => VideoInterlaceMode::Alternate, - value => VideoInterlaceMode::__Unknown(value), + 4 => Self::Alternate, + value => Self::__Unknown(value), } } } @@ -1754,7 +1754,7 @@ unsafe impl<'a> FromValue<'a> for VideoInterlaceMode { impl ToValue for VideoInterlaceMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1788,11 +1788,11 @@ impl IntoGlib for VideoMatrixMode { fn into_glib(self) -> ffi::GstVideoMatrixMode { match self { - VideoMatrixMode::Full => ffi::GST_VIDEO_MATRIX_MODE_FULL, - VideoMatrixMode::InputOnly => ffi::GST_VIDEO_MATRIX_MODE_INPUT_ONLY, - VideoMatrixMode::OutputOnly => ffi::GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY, - VideoMatrixMode::None => ffi::GST_VIDEO_MATRIX_MODE_NONE, - VideoMatrixMode::__Unknown(value) => value, + Self::Full => ffi::GST_VIDEO_MATRIX_MODE_FULL, + Self::InputOnly => ffi::GST_VIDEO_MATRIX_MODE_INPUT_ONLY, + Self::OutputOnly => ffi::GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY, + Self::None => ffi::GST_VIDEO_MATRIX_MODE_NONE, + Self::__Unknown(value) => value, } } } @@ -1802,11 +1802,11 @@ impl FromGlib for VideoMatrixMode { unsafe fn from_glib(value: ffi::GstVideoMatrixMode) -> Self { skip_assert_initialized!(); match value { - 0 => VideoMatrixMode::Full, - 1 => VideoMatrixMode::InputOnly, - 2 => VideoMatrixMode::OutputOnly, - 3 => VideoMatrixMode::None, - value => VideoMatrixMode::__Unknown(value), + 0 => Self::Full, + 1 => Self::InputOnly, + 2 => Self::OutputOnly, + 3 => Self::None, + value => Self::__Unknown(value), } } } @@ -1832,7 +1832,7 @@ unsafe impl<'a> FromValue<'a> for VideoMatrixMode { impl ToValue for VideoMatrixMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1878,29 +1878,19 @@ impl IntoGlib for VideoMultiviewFramePacking { fn into_glib(self) -> ffi::GstVideoMultiviewFramePacking { match self { - VideoMultiviewFramePacking::None => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE, - VideoMultiviewFramePacking::Mono => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO, - VideoMultiviewFramePacking::Left => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT, - VideoMultiviewFramePacking::Right => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT, - VideoMultiviewFramePacking::SideBySide => { - ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE - } - VideoMultiviewFramePacking::SideBySideQuincunx => { + Self::None => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE, + Self::Mono => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO, + Self::Left => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT, + Self::Right => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT, + Self::SideBySide => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE, + Self::SideBySideQuincunx => { ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX } - VideoMultiviewFramePacking::ColumnInterleaved => { - ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED - } - VideoMultiviewFramePacking::RowInterleaved => { - ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED - } - VideoMultiviewFramePacking::TopBottom => { - ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM - } - VideoMultiviewFramePacking::Checkerboard => { - ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD - } - VideoMultiviewFramePacking::__Unknown(value) => value, + Self::ColumnInterleaved => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED, + Self::RowInterleaved => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED, + Self::TopBottom => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM, + Self::Checkerboard => ffi::GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD, + Self::__Unknown(value) => value, } } } @@ -1910,17 +1900,17 @@ impl FromGlib for VideoMultiviewFramePacking unsafe fn from_glib(value: ffi::GstVideoMultiviewFramePacking) -> Self { skip_assert_initialized!(); match value { - -1 => VideoMultiviewFramePacking::None, - 0 => VideoMultiviewFramePacking::Mono, - 1 => VideoMultiviewFramePacking::Left, - 2 => VideoMultiviewFramePacking::Right, - 3 => VideoMultiviewFramePacking::SideBySide, - 4 => VideoMultiviewFramePacking::SideBySideQuincunx, - 5 => VideoMultiviewFramePacking::ColumnInterleaved, - 6 => VideoMultiviewFramePacking::RowInterleaved, - 7 => VideoMultiviewFramePacking::TopBottom, - 8 => VideoMultiviewFramePacking::Checkerboard, - value => VideoMultiviewFramePacking::__Unknown(value), + -1 => Self::None, + 0 => Self::Mono, + 1 => Self::Left, + 2 => Self::Right, + 3 => Self::SideBySide, + 4 => Self::SideBySideQuincunx, + 5 => Self::ColumnInterleaved, + 6 => Self::RowInterleaved, + 7 => Self::TopBottom, + 8 => Self::Checkerboard, + value => Self::__Unknown(value), } } } @@ -1946,7 +1936,7 @@ unsafe impl<'a> FromValue<'a> for VideoMultiviewFramePacking { impl ToValue for VideoMultiviewFramePacking { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2020,26 +2010,20 @@ impl IntoGlib for VideoMultiviewMode { fn into_glib(self) -> ffi::GstVideoMultiviewMode { match self { - VideoMultiviewMode::None => ffi::GST_VIDEO_MULTIVIEW_MODE_NONE, - VideoMultiviewMode::Mono => ffi::GST_VIDEO_MULTIVIEW_MODE_MONO, - VideoMultiviewMode::Left => ffi::GST_VIDEO_MULTIVIEW_MODE_LEFT, - VideoMultiviewMode::Right => ffi::GST_VIDEO_MULTIVIEW_MODE_RIGHT, - VideoMultiviewMode::SideBySide => ffi::GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE, - VideoMultiviewMode::SideBySideQuincunx => { - ffi::GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX - } - VideoMultiviewMode::ColumnInterleaved => { - ffi::GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED - } - VideoMultiviewMode::RowInterleaved => ffi::GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED, - VideoMultiviewMode::TopBottom => ffi::GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM, - VideoMultiviewMode::Checkerboard => ffi::GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD, - VideoMultiviewMode::FrameByFrame => ffi::GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME, - VideoMultiviewMode::MultiviewFrameByFrame => { - ffi::GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME - } - VideoMultiviewMode::Separated => ffi::GST_VIDEO_MULTIVIEW_MODE_SEPARATED, - VideoMultiviewMode::__Unknown(value) => value, + Self::None => ffi::GST_VIDEO_MULTIVIEW_MODE_NONE, + Self::Mono => ffi::GST_VIDEO_MULTIVIEW_MODE_MONO, + Self::Left => ffi::GST_VIDEO_MULTIVIEW_MODE_LEFT, + Self::Right => ffi::GST_VIDEO_MULTIVIEW_MODE_RIGHT, + Self::SideBySide => ffi::GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE, + Self::SideBySideQuincunx => ffi::GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX, + Self::ColumnInterleaved => ffi::GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED, + Self::RowInterleaved => ffi::GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED, + Self::TopBottom => ffi::GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM, + Self::Checkerboard => ffi::GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD, + Self::FrameByFrame => ffi::GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME, + Self::MultiviewFrameByFrame => ffi::GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME, + Self::Separated => ffi::GST_VIDEO_MULTIVIEW_MODE_SEPARATED, + Self::__Unknown(value) => value, } } } @@ -2049,20 +2033,20 @@ impl FromGlib for VideoMultiviewMode { unsafe fn from_glib(value: ffi::GstVideoMultiviewMode) -> Self { skip_assert_initialized!(); match value { - -1 => VideoMultiviewMode::None, - 0 => VideoMultiviewMode::Mono, - 1 => VideoMultiviewMode::Left, - 2 => VideoMultiviewMode::Right, - 3 => VideoMultiviewMode::SideBySide, - 4 => VideoMultiviewMode::SideBySideQuincunx, - 5 => VideoMultiviewMode::ColumnInterleaved, - 6 => VideoMultiviewMode::RowInterleaved, - 7 => VideoMultiviewMode::TopBottom, - 8 => VideoMultiviewMode::Checkerboard, - 32 => VideoMultiviewMode::FrameByFrame, - 33 => VideoMultiviewMode::MultiviewFrameByFrame, - 34 => VideoMultiviewMode::Separated, - value => VideoMultiviewMode::__Unknown(value), + -1 => Self::None, + 0 => Self::Mono, + 1 => Self::Left, + 2 => Self::Right, + 3 => Self::SideBySide, + 4 => Self::SideBySideQuincunx, + 5 => Self::ColumnInterleaved, + 6 => Self::RowInterleaved, + 7 => Self::TopBottom, + 8 => Self::Checkerboard, + 32 => Self::FrameByFrame, + 33 => Self::MultiviewFrameByFrame, + 34 => Self::Separated, + value => Self::__Unknown(value), } } } @@ -2088,7 +2072,7 @@ unsafe impl<'a> FromValue<'a> for VideoMultiviewMode { impl ToValue for VideoMultiviewMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2138,17 +2122,17 @@ impl IntoGlib for VideoOrientationMethod { fn into_glib(self) -> ffi::GstVideoOrientationMethod { match self { - VideoOrientationMethod::Identity => ffi::GST_VIDEO_ORIENTATION_IDENTITY, - VideoOrientationMethod::_90r => ffi::GST_VIDEO_ORIENTATION_90R, - VideoOrientationMethod::_180 => ffi::GST_VIDEO_ORIENTATION_180, - VideoOrientationMethod::_90l => ffi::GST_VIDEO_ORIENTATION_90L, - VideoOrientationMethod::Horiz => ffi::GST_VIDEO_ORIENTATION_HORIZ, - VideoOrientationMethod::Vert => ffi::GST_VIDEO_ORIENTATION_VERT, - VideoOrientationMethod::UlLr => ffi::GST_VIDEO_ORIENTATION_UL_LR, - VideoOrientationMethod::UrLl => ffi::GST_VIDEO_ORIENTATION_UR_LL, - VideoOrientationMethod::Auto => ffi::GST_VIDEO_ORIENTATION_AUTO, - VideoOrientationMethod::Custom => ffi::GST_VIDEO_ORIENTATION_CUSTOM, - VideoOrientationMethod::__Unknown(value) => value, + Self::Identity => ffi::GST_VIDEO_ORIENTATION_IDENTITY, + Self::_90r => ffi::GST_VIDEO_ORIENTATION_90R, + Self::_180 => ffi::GST_VIDEO_ORIENTATION_180, + Self::_90l => ffi::GST_VIDEO_ORIENTATION_90L, + Self::Horiz => ffi::GST_VIDEO_ORIENTATION_HORIZ, + Self::Vert => ffi::GST_VIDEO_ORIENTATION_VERT, + Self::UlLr => ffi::GST_VIDEO_ORIENTATION_UL_LR, + Self::UrLl => ffi::GST_VIDEO_ORIENTATION_UR_LL, + Self::Auto => ffi::GST_VIDEO_ORIENTATION_AUTO, + Self::Custom => ffi::GST_VIDEO_ORIENTATION_CUSTOM, + Self::__Unknown(value) => value, } } } @@ -2160,17 +2144,17 @@ impl FromGlib for VideoOrientationMethod { unsafe fn from_glib(value: ffi::GstVideoOrientationMethod) -> Self { skip_assert_initialized!(); match value { - 0 => VideoOrientationMethod::Identity, - 1 => VideoOrientationMethod::_90r, - 2 => VideoOrientationMethod::_180, - 3 => VideoOrientationMethod::_90l, - 4 => VideoOrientationMethod::Horiz, - 5 => VideoOrientationMethod::Vert, - 6 => VideoOrientationMethod::UlLr, - 7 => VideoOrientationMethod::UrLl, - 8 => VideoOrientationMethod::Auto, - 9 => VideoOrientationMethod::Custom, - value => VideoOrientationMethod::__Unknown(value), + 0 => Self::Identity, + 1 => Self::_90r, + 2 => Self::_180, + 3 => Self::_90l, + 4 => Self::Horiz, + 5 => Self::Vert, + 6 => Self::UlLr, + 7 => Self::UrLl, + 8 => Self::Auto, + 9 => Self::Custom, + value => Self::__Unknown(value), } } } @@ -2204,7 +2188,7 @@ unsafe impl<'a> FromValue<'a> for VideoOrientationMethod { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl ToValue for VideoOrientationMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2236,10 +2220,10 @@ impl IntoGlib for VideoPrimariesMode { fn into_glib(self) -> ffi::GstVideoPrimariesMode { match self { - VideoPrimariesMode::None => ffi::GST_VIDEO_PRIMARIES_MODE_NONE, - VideoPrimariesMode::MergeOnly => ffi::GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY, - VideoPrimariesMode::Fast => ffi::GST_VIDEO_PRIMARIES_MODE_FAST, - VideoPrimariesMode::__Unknown(value) => value, + Self::None => ffi::GST_VIDEO_PRIMARIES_MODE_NONE, + Self::MergeOnly => ffi::GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY, + Self::Fast => ffi::GST_VIDEO_PRIMARIES_MODE_FAST, + Self::__Unknown(value) => value, } } } @@ -2249,10 +2233,10 @@ impl FromGlib for VideoPrimariesMode { unsafe fn from_glib(value: ffi::GstVideoPrimariesMode) -> Self { skip_assert_initialized!(); match value { - 0 => VideoPrimariesMode::None, - 1 => VideoPrimariesMode::MergeOnly, - 2 => VideoPrimariesMode::Fast, - value => VideoPrimariesMode::__Unknown(value), + 0 => Self::None, + 1 => Self::MergeOnly, + 2 => Self::Fast, + value => Self::__Unknown(value), } } } @@ -2278,7 +2262,7 @@ unsafe impl<'a> FromValue<'a> for VideoPrimariesMode { impl ToValue for VideoPrimariesMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2314,12 +2298,12 @@ impl IntoGlib for VideoResamplerMethod { fn into_glib(self) -> ffi::GstVideoResamplerMethod { match self { - VideoResamplerMethod::Nearest => ffi::GST_VIDEO_RESAMPLER_METHOD_NEAREST, - VideoResamplerMethod::Linear => ffi::GST_VIDEO_RESAMPLER_METHOD_LINEAR, - VideoResamplerMethod::Cubic => ffi::GST_VIDEO_RESAMPLER_METHOD_CUBIC, - VideoResamplerMethod::Sinc => ffi::GST_VIDEO_RESAMPLER_METHOD_SINC, - VideoResamplerMethod::Lanczos => ffi::GST_VIDEO_RESAMPLER_METHOD_LANCZOS, - VideoResamplerMethod::__Unknown(value) => value, + Self::Nearest => ffi::GST_VIDEO_RESAMPLER_METHOD_NEAREST, + Self::Linear => ffi::GST_VIDEO_RESAMPLER_METHOD_LINEAR, + Self::Cubic => ffi::GST_VIDEO_RESAMPLER_METHOD_CUBIC, + Self::Sinc => ffi::GST_VIDEO_RESAMPLER_METHOD_SINC, + Self::Lanczos => ffi::GST_VIDEO_RESAMPLER_METHOD_LANCZOS, + Self::__Unknown(value) => value, } } } @@ -2329,12 +2313,12 @@ impl FromGlib for VideoResamplerMethod { unsafe fn from_glib(value: ffi::GstVideoResamplerMethod) -> Self { skip_assert_initialized!(); match value { - 0 => VideoResamplerMethod::Nearest, - 1 => VideoResamplerMethod::Linear, - 2 => VideoResamplerMethod::Cubic, - 3 => VideoResamplerMethod::Sinc, - 4 => VideoResamplerMethod::Lanczos, - value => VideoResamplerMethod::__Unknown(value), + 0 => Self::Nearest, + 1 => Self::Linear, + 2 => Self::Cubic, + 3 => Self::Sinc, + 4 => Self::Lanczos, + value => Self::__Unknown(value), } } } @@ -2360,7 +2344,7 @@ unsafe impl<'a> FromValue<'a> for VideoResamplerMethod { impl ToValue for VideoResamplerMethod { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2394,11 +2378,11 @@ impl IntoGlib for VideoTileMode { fn into_glib(self) -> ffi::GstVideoTileMode { match self { - VideoTileMode::Unknown => ffi::GST_VIDEO_TILE_MODE_UNKNOWN, - VideoTileMode::Zflipz2x2 => ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2, + Self::Unknown => ffi::GST_VIDEO_TILE_MODE_UNKNOWN, + Self::Zflipz2x2 => ffi::GST_VIDEO_TILE_MODE_ZFLIPZ_2X2, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoTileMode::Linear => ffi::GST_VIDEO_TILE_MODE_LINEAR, - VideoTileMode::__Unknown(value) => value, + Self::Linear => ffi::GST_VIDEO_TILE_MODE_LINEAR, + Self::__Unknown(value) => value, } } } @@ -2408,11 +2392,11 @@ impl FromGlib for VideoTileMode { unsafe fn from_glib(value: ffi::GstVideoTileMode) -> Self { skip_assert_initialized!(); match value { - 0 => VideoTileMode::Unknown, - 65536 => VideoTileMode::Zflipz2x2, + 0 => Self::Unknown, + 65536 => Self::Zflipz2x2, #[cfg(any(feature = "v1_18", feature = "dox"))] - 131072 => VideoTileMode::Linear, - value => VideoTileMode::__Unknown(value), + 131072 => Self::Linear, + value => Self::__Unknown(value), } } } @@ -2438,7 +2422,7 @@ unsafe impl<'a> FromValue<'a> for VideoTileMode { impl ToValue for VideoTileMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2539,28 +2523,28 @@ impl IntoGlib for VideoTransferFunction { fn into_glib(self) -> ffi::GstVideoTransferFunction { match self { - VideoTransferFunction::Unknown => ffi::GST_VIDEO_TRANSFER_UNKNOWN, - VideoTransferFunction::Gamma10 => ffi::GST_VIDEO_TRANSFER_GAMMA10, - VideoTransferFunction::Gamma18 => ffi::GST_VIDEO_TRANSFER_GAMMA18, - VideoTransferFunction::Gamma20 => ffi::GST_VIDEO_TRANSFER_GAMMA20, - VideoTransferFunction::Gamma22 => ffi::GST_VIDEO_TRANSFER_GAMMA22, - VideoTransferFunction::Bt709 => ffi::GST_VIDEO_TRANSFER_BT709, - VideoTransferFunction::Smpte240m => ffi::GST_VIDEO_TRANSFER_SMPTE240M, - VideoTransferFunction::Srgb => ffi::GST_VIDEO_TRANSFER_SRGB, - VideoTransferFunction::Gamma28 => ffi::GST_VIDEO_TRANSFER_GAMMA28, - VideoTransferFunction::Log100 => ffi::GST_VIDEO_TRANSFER_LOG100, - VideoTransferFunction::Log316 => ffi::GST_VIDEO_TRANSFER_LOG316, - VideoTransferFunction::Bt202012 => ffi::GST_VIDEO_TRANSFER_BT2020_12, - VideoTransferFunction::Adobergb => ffi::GST_VIDEO_TRANSFER_ADOBERGB, + Self::Unknown => ffi::GST_VIDEO_TRANSFER_UNKNOWN, + Self::Gamma10 => ffi::GST_VIDEO_TRANSFER_GAMMA10, + Self::Gamma18 => ffi::GST_VIDEO_TRANSFER_GAMMA18, + Self::Gamma20 => ffi::GST_VIDEO_TRANSFER_GAMMA20, + Self::Gamma22 => ffi::GST_VIDEO_TRANSFER_GAMMA22, + Self::Bt709 => ffi::GST_VIDEO_TRANSFER_BT709, + Self::Smpte240m => ffi::GST_VIDEO_TRANSFER_SMPTE240M, + Self::Srgb => ffi::GST_VIDEO_TRANSFER_SRGB, + Self::Gamma28 => ffi::GST_VIDEO_TRANSFER_GAMMA28, + Self::Log100 => ffi::GST_VIDEO_TRANSFER_LOG100, + Self::Log316 => ffi::GST_VIDEO_TRANSFER_LOG316, + Self::Bt202012 => ffi::GST_VIDEO_TRANSFER_BT2020_12, + Self::Adobergb => ffi::GST_VIDEO_TRANSFER_ADOBERGB, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoTransferFunction::Bt202010 => ffi::GST_VIDEO_TRANSFER_BT2020_10, + Self::Bt202010 => ffi::GST_VIDEO_TRANSFER_BT2020_10, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoTransferFunction::Smpte2084 => ffi::GST_VIDEO_TRANSFER_SMPTE2084, + Self::Smpte2084 => ffi::GST_VIDEO_TRANSFER_SMPTE2084, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoTransferFunction::AribStdB67 => ffi::GST_VIDEO_TRANSFER_ARIB_STD_B67, + Self::AribStdB67 => ffi::GST_VIDEO_TRANSFER_ARIB_STD_B67, #[cfg(any(feature = "v1_18", feature = "dox"))] - VideoTransferFunction::Bt601 => ffi::GST_VIDEO_TRANSFER_BT601, - VideoTransferFunction::__Unknown(value) => value, + Self::Bt601 => ffi::GST_VIDEO_TRANSFER_BT601, + Self::__Unknown(value) => value, } } } @@ -2570,28 +2554,28 @@ impl FromGlib for VideoTransferFunction { unsafe fn from_glib(value: ffi::GstVideoTransferFunction) -> Self { skip_assert_initialized!(); match value { - 0 => VideoTransferFunction::Unknown, - 1 => VideoTransferFunction::Gamma10, - 2 => VideoTransferFunction::Gamma18, - 3 => VideoTransferFunction::Gamma20, - 4 => VideoTransferFunction::Gamma22, - 5 => VideoTransferFunction::Bt709, - 6 => VideoTransferFunction::Smpte240m, - 7 => VideoTransferFunction::Srgb, - 8 => VideoTransferFunction::Gamma28, - 9 => VideoTransferFunction::Log100, - 10 => VideoTransferFunction::Log316, - 11 => VideoTransferFunction::Bt202012, - 12 => VideoTransferFunction::Adobergb, + 0 => Self::Unknown, + 1 => Self::Gamma10, + 2 => Self::Gamma18, + 3 => Self::Gamma20, + 4 => Self::Gamma22, + 5 => Self::Bt709, + 6 => Self::Smpte240m, + 7 => Self::Srgb, + 8 => Self::Gamma28, + 9 => Self::Log100, + 10 => Self::Log316, + 11 => Self::Bt202012, + 12 => Self::Adobergb, #[cfg(any(feature = "v1_18", feature = "dox"))] - 13 => VideoTransferFunction::Bt202010, + 13 => Self::Bt202010, #[cfg(any(feature = "v1_18", feature = "dox"))] - 14 => VideoTransferFunction::Smpte2084, + 14 => Self::Smpte2084, #[cfg(any(feature = "v1_18", feature = "dox"))] - 15 => VideoTransferFunction::AribStdB67, + 15 => Self::AribStdB67, #[cfg(any(feature = "v1_18", feature = "dox"))] - 16 => VideoTransferFunction::Bt601, - value => VideoTransferFunction::__Unknown(value), + 16 => Self::Bt601, + value => Self::__Unknown(value), } } } @@ -2617,7 +2601,7 @@ unsafe impl<'a> FromValue<'a> for VideoTransferFunction { impl ToValue for VideoTransferFunction { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index e50a26c23..fe591286d 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -41,9 +41,9 @@ impl IntoGlib for VideoBufferFlags { #[doc(hidden)] impl FromGlib for VideoBufferFlags { - unsafe fn from_glib(value: ffi::GstVideoBufferFlags) -> VideoBufferFlags { + unsafe fn from_glib(value: ffi::GstVideoBufferFlags) -> Self { skip_assert_initialized!(); - VideoBufferFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -68,7 +68,7 @@ unsafe impl<'a> FromValue<'a> for VideoBufferFlags { impl ToValue for VideoBufferFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -104,9 +104,9 @@ impl IntoGlib for VideoChromaSite { #[doc(hidden)] impl FromGlib for VideoChromaSite { - unsafe fn from_glib(value: ffi::GstVideoChromaSite) -> VideoChromaSite { + unsafe fn from_glib(value: ffi::GstVideoChromaSite) -> Self { skip_assert_initialized!(); - VideoChromaSite::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -131,7 +131,7 @@ unsafe impl<'a> FromValue<'a> for VideoChromaSite { impl ToValue for VideoChromaSite { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -163,9 +163,9 @@ impl IntoGlib for VideoCodecFrameFlags { #[doc(hidden)] impl FromGlib for VideoCodecFrameFlags { - unsafe fn from_glib(value: ffi::GstVideoCodecFrameFlags) -> VideoCodecFrameFlags { + unsafe fn from_glib(value: ffi::GstVideoCodecFrameFlags) -> Self { skip_assert_initialized!(); - VideoCodecFrameFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -187,9 +187,9 @@ impl IntoGlib for VideoFlags { #[doc(hidden)] impl FromGlib for VideoFlags { - unsafe fn from_glib(value: ffi::GstVideoFlags) -> VideoFlags { + unsafe fn from_glib(value: ffi::GstVideoFlags) -> Self { skip_assert_initialized!(); - VideoFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -214,7 +214,7 @@ unsafe impl<'a> FromValue<'a> for VideoFlags { impl ToValue for VideoFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -251,9 +251,9 @@ impl IntoGlib for VideoFormatFlags { #[doc(hidden)] impl FromGlib for VideoFormatFlags { - unsafe fn from_glib(value: ffi::GstVideoFormatFlags) -> VideoFormatFlags { + unsafe fn from_glib(value: ffi::GstVideoFormatFlags) -> Self { skip_assert_initialized!(); - VideoFormatFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -278,7 +278,7 @@ unsafe impl<'a> FromValue<'a> for VideoFormatFlags { impl ToValue for VideoFormatFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -314,9 +314,9 @@ impl IntoGlib for VideoFrameFlags { #[doc(hidden)] impl FromGlib for VideoFrameFlags { - unsafe fn from_glib(value: ffi::GstVideoFrameFlags) -> VideoFrameFlags { + unsafe fn from_glib(value: ffi::GstVideoFrameFlags) -> Self { skip_assert_initialized!(); - VideoFrameFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -341,7 +341,7 @@ unsafe impl<'a> FromValue<'a> for VideoFrameFlags { impl ToValue for VideoFrameFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -376,9 +376,9 @@ impl IntoGlib for VideoMultiviewFlags { #[doc(hidden)] impl FromGlib for VideoMultiviewFlags { - unsafe fn from_glib(value: ffi::GstVideoMultiviewFlags) -> VideoMultiviewFlags { + unsafe fn from_glib(value: ffi::GstVideoMultiviewFlags) -> Self { skip_assert_initialized!(); - VideoMultiviewFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -403,7 +403,7 @@ unsafe impl<'a> FromValue<'a> for VideoMultiviewFlags { impl ToValue for VideoMultiviewFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -433,9 +433,9 @@ impl IntoGlib for VideoOverlayFormatFlags { #[doc(hidden)] impl FromGlib for VideoOverlayFormatFlags { - unsafe fn from_glib(value: ffi::GstVideoOverlayFormatFlags) -> VideoOverlayFormatFlags { + unsafe fn from_glib(value: ffi::GstVideoOverlayFormatFlags) -> Self { skip_assert_initialized!(); - VideoOverlayFormatFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -468,7 +468,7 @@ unsafe impl<'a> FromValue<'a> for VideoOverlayFormatFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for VideoOverlayFormatFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -498,9 +498,9 @@ impl IntoGlib for VideoPackFlags { #[doc(hidden)] impl FromGlib for VideoPackFlags { - unsafe fn from_glib(value: ffi::GstVideoPackFlags) -> VideoPackFlags { + unsafe fn from_glib(value: ffi::GstVideoPackFlags) -> Self { skip_assert_initialized!(); - VideoPackFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -525,7 +525,7 @@ unsafe impl<'a> FromValue<'a> for VideoPackFlags { impl ToValue for VideoPackFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -561,9 +561,9 @@ impl IntoGlib for VideoTimeCodeFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for VideoTimeCodeFlags { - unsafe fn from_glib(value: ffi::GstVideoTimeCodeFlags) -> VideoTimeCodeFlags { + unsafe fn from_glib(value: ffi::GstVideoTimeCodeFlags) -> Self { skip_assert_initialized!(); - VideoTimeCodeFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -596,7 +596,7 @@ unsafe impl<'a> FromValue<'a> for VideoTimeCodeFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl ToValue for VideoTimeCodeFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index 0000329e5..87e8ea487 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index 0619754cd..908100e5c 100644 --- a/gstreamer-video/sys/tests/abi.rs +++ b/gstreamer-video/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index ad5fe441a..96e2bbb3d 100644 --- a/gstreamer-video/sys/tests/constant.c +++ b/gstreamer-video/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index 1eb1282ef..1ad6b39ce 100644 --- a/gstreamer-video/sys/tests/layout.c +++ b/gstreamer-video/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 751b5ec40..ade268247 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -37,11 +37,11 @@ impl IntoGlib for WebRTCBundlePolicy { fn into_glib(self) -> ffi::GstWebRTCBundlePolicy { match self { - WebRTCBundlePolicy::None => ffi::GST_WEBRTC_BUNDLE_POLICY_NONE, - WebRTCBundlePolicy::Balanced => ffi::GST_WEBRTC_BUNDLE_POLICY_BALANCED, - WebRTCBundlePolicy::MaxCompat => ffi::GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT, - WebRTCBundlePolicy::MaxBundle => ffi::GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE, - WebRTCBundlePolicy::__Unknown(value) => value, + Self::None => ffi::GST_WEBRTC_BUNDLE_POLICY_NONE, + Self::Balanced => ffi::GST_WEBRTC_BUNDLE_POLICY_BALANCED, + Self::MaxCompat => ffi::GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT, + Self::MaxBundle => ffi::GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE, + Self::__Unknown(value) => value, } } } @@ -53,11 +53,11 @@ impl FromGlib for WebRTCBundlePolicy { unsafe fn from_glib(value: ffi::GstWebRTCBundlePolicy) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCBundlePolicy::None, - 1 => WebRTCBundlePolicy::Balanced, - 2 => WebRTCBundlePolicy::MaxCompat, - 3 => WebRTCBundlePolicy::MaxBundle, - value => WebRTCBundlePolicy::__Unknown(value), + 0 => Self::None, + 1 => Self::Balanced, + 2 => Self::MaxCompat, + 3 => Self::MaxBundle, + value => Self::__Unknown(value), } } } @@ -91,7 +91,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCBundlePolicy { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCBundlePolicy { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -125,11 +125,11 @@ impl IntoGlib for WebRTCDTLSSetup { fn into_glib(self) -> ffi::GstWebRTCDTLSSetup { match self { - WebRTCDTLSSetup::None => ffi::GST_WEBRTC_DTLS_SETUP_NONE, - WebRTCDTLSSetup::Actpass => ffi::GST_WEBRTC_DTLS_SETUP_ACTPASS, - WebRTCDTLSSetup::Active => ffi::GST_WEBRTC_DTLS_SETUP_ACTIVE, - WebRTCDTLSSetup::Passive => ffi::GST_WEBRTC_DTLS_SETUP_PASSIVE, - WebRTCDTLSSetup::__Unknown(value) => value, + Self::None => ffi::GST_WEBRTC_DTLS_SETUP_NONE, + Self::Actpass => ffi::GST_WEBRTC_DTLS_SETUP_ACTPASS, + Self::Active => ffi::GST_WEBRTC_DTLS_SETUP_ACTIVE, + Self::Passive => ffi::GST_WEBRTC_DTLS_SETUP_PASSIVE, + Self::__Unknown(value) => value, } } } @@ -139,11 +139,11 @@ impl FromGlib for WebRTCDTLSSetup { unsafe fn from_glib(value: ffi::GstWebRTCDTLSSetup) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCDTLSSetup::None, - 1 => WebRTCDTLSSetup::Actpass, - 2 => WebRTCDTLSSetup::Active, - 3 => WebRTCDTLSSetup::Passive, - value => WebRTCDTLSSetup::__Unknown(value), + 0 => Self::None, + 1 => Self::Actpass, + 2 => Self::Active, + 3 => Self::Passive, + value => Self::__Unknown(value), } } } @@ -169,7 +169,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCDTLSSetup { impl ToValue for WebRTCDTLSSetup { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -205,12 +205,12 @@ impl IntoGlib for WebRTCDTLSTransportState { fn into_glib(self) -> ffi::GstWebRTCDTLSTransportState { match self { - WebRTCDTLSTransportState::New => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW, - WebRTCDTLSTransportState::Closed => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED, - WebRTCDTLSTransportState::Failed => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED, - WebRTCDTLSTransportState::Connecting => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING, - WebRTCDTLSTransportState::Connected => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED, - WebRTCDTLSTransportState::__Unknown(value) => value, + Self::New => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW, + Self::Closed => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED, + Self::Failed => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED, + Self::Connecting => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING, + Self::Connected => ffi::GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED, + Self::__Unknown(value) => value, } } } @@ -220,12 +220,12 @@ impl FromGlib for WebRTCDTLSTransportState { unsafe fn from_glib(value: ffi::GstWebRTCDTLSTransportState) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCDTLSTransportState::New, - 1 => WebRTCDTLSTransportState::Closed, - 2 => WebRTCDTLSTransportState::Failed, - 3 => WebRTCDTLSTransportState::Connecting, - 4 => WebRTCDTLSTransportState::Connected, - value => WebRTCDTLSTransportState::__Unknown(value), + 0 => Self::New, + 1 => Self::Closed, + 2 => Self::Failed, + 3 => Self::Connecting, + 4 => Self::Connected, + value => Self::__Unknown(value), } } } @@ -251,7 +251,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCDTLSTransportState { impl ToValue for WebRTCDTLSTransportState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -291,12 +291,12 @@ impl IntoGlib for WebRTCDataChannelState { fn into_glib(self) -> ffi::GstWebRTCDataChannelState { match self { - WebRTCDataChannelState::New => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_NEW, - WebRTCDataChannelState::Connecting => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING, - WebRTCDataChannelState::Open => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_OPEN, - WebRTCDataChannelState::Closing => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING, - WebRTCDataChannelState::Closed => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED, - WebRTCDataChannelState::__Unknown(value) => value, + Self::New => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_NEW, + Self::Connecting => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING, + Self::Open => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_OPEN, + Self::Closing => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING, + Self::Closed => ffi::GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED, + Self::__Unknown(value) => value, } } } @@ -308,12 +308,12 @@ impl FromGlib for WebRTCDataChannelState { unsafe fn from_glib(value: ffi::GstWebRTCDataChannelState) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCDataChannelState::New, - 1 => WebRTCDataChannelState::Connecting, - 2 => WebRTCDataChannelState::Open, - 3 => WebRTCDataChannelState::Closing, - 4 => WebRTCDataChannelState::Closed, - value => WebRTCDataChannelState::__Unknown(value), + 0 => Self::New, + 1 => Self::Connecting, + 2 => Self::Open, + 3 => Self::Closing, + 4 => Self::Closed, + value => Self::__Unknown(value), } } } @@ -347,7 +347,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCDataChannelState { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCDataChannelState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -381,9 +381,9 @@ impl IntoGlib for WebRTCFECType { fn into_glib(self) -> ffi::GstWebRTCFECType { match self { - WebRTCFECType::None => ffi::GST_WEBRTC_FEC_TYPE_NONE, - WebRTCFECType::UlpRed => ffi::GST_WEBRTC_FEC_TYPE_ULP_RED, - WebRTCFECType::__Unknown(value) => value, + Self::None => ffi::GST_WEBRTC_FEC_TYPE_NONE, + Self::UlpRed => ffi::GST_WEBRTC_FEC_TYPE_ULP_RED, + Self::__Unknown(value) => value, } } } @@ -395,9 +395,9 @@ impl FromGlib for WebRTCFECType { unsafe fn from_glib(value: ffi::GstWebRTCFECType) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCFECType::None, - 1 => WebRTCFECType::UlpRed, - value => WebRTCFECType::__Unknown(value), + 0 => Self::None, + 1 => Self::UlpRed, + value => Self::__Unknown(value), } } } @@ -431,7 +431,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCFECType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] impl ToValue for WebRTCFECType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -461,9 +461,9 @@ impl IntoGlib for WebRTCICEComponent { fn into_glib(self) -> ffi::GstWebRTCICEComponent { match self { - WebRTCICEComponent::Rtp => ffi::GST_WEBRTC_ICE_COMPONENT_RTP, - WebRTCICEComponent::Rtcp => ffi::GST_WEBRTC_ICE_COMPONENT_RTCP, - WebRTCICEComponent::__Unknown(value) => value, + Self::Rtp => ffi::GST_WEBRTC_ICE_COMPONENT_RTP, + Self::Rtcp => ffi::GST_WEBRTC_ICE_COMPONENT_RTCP, + Self::__Unknown(value) => value, } } } @@ -473,9 +473,9 @@ impl FromGlib for WebRTCICEComponent { unsafe fn from_glib(value: ffi::GstWebRTCICEComponent) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCICEComponent::Rtp, - 1 => WebRTCICEComponent::Rtcp, - value => WebRTCICEComponent::__Unknown(value), + 0 => Self::Rtp, + 1 => Self::Rtcp, + value => Self::__Unknown(value), } } } @@ -501,7 +501,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCICEComponent { impl ToValue for WebRTCICEComponent { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -541,16 +541,14 @@ impl IntoGlib for WebRTCICEConnectionState { fn into_glib(self) -> ffi::GstWebRTCICEConnectionState { match self { - WebRTCICEConnectionState::New => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_NEW, - WebRTCICEConnectionState::Checking => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING, - WebRTCICEConnectionState::Connected => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED, - WebRTCICEConnectionState::Completed => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED, - WebRTCICEConnectionState::Failed => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_FAILED, - WebRTCICEConnectionState::Disconnected => { - ffi::GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED - } - WebRTCICEConnectionState::Closed => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED, - WebRTCICEConnectionState::__Unknown(value) => value, + Self::New => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_NEW, + Self::Checking => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING, + Self::Connected => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED, + Self::Completed => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED, + Self::Failed => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_FAILED, + Self::Disconnected => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED, + Self::Closed => ffi::GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED, + Self::__Unknown(value) => value, } } } @@ -560,14 +558,14 @@ impl FromGlib for WebRTCICEConnectionState { unsafe fn from_glib(value: ffi::GstWebRTCICEConnectionState) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCICEConnectionState::New, - 1 => WebRTCICEConnectionState::Checking, - 2 => WebRTCICEConnectionState::Connected, - 3 => WebRTCICEConnectionState::Completed, - 4 => WebRTCICEConnectionState::Failed, - 5 => WebRTCICEConnectionState::Disconnected, - 6 => WebRTCICEConnectionState::Closed, - value => WebRTCICEConnectionState::__Unknown(value), + 0 => Self::New, + 1 => Self::Checking, + 2 => Self::Connected, + 3 => Self::Completed, + 4 => Self::Failed, + 5 => Self::Disconnected, + 6 => Self::Closed, + value => Self::__Unknown(value), } } } @@ -593,7 +591,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCICEConnectionState { impl ToValue for WebRTCICEConnectionState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -625,10 +623,10 @@ impl IntoGlib for WebRTCICEGatheringState { fn into_glib(self) -> ffi::GstWebRTCICEGatheringState { match self { - WebRTCICEGatheringState::New => ffi::GST_WEBRTC_ICE_GATHERING_STATE_NEW, - WebRTCICEGatheringState::Gathering => ffi::GST_WEBRTC_ICE_GATHERING_STATE_GATHERING, - WebRTCICEGatheringState::Complete => ffi::GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE, - WebRTCICEGatheringState::__Unknown(value) => value, + Self::New => ffi::GST_WEBRTC_ICE_GATHERING_STATE_NEW, + Self::Gathering => ffi::GST_WEBRTC_ICE_GATHERING_STATE_GATHERING, + Self::Complete => ffi::GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE, + Self::__Unknown(value) => value, } } } @@ -638,10 +636,10 @@ impl FromGlib for WebRTCICEGatheringState { unsafe fn from_glib(value: ffi::GstWebRTCICEGatheringState) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCICEGatheringState::New, - 1 => WebRTCICEGatheringState::Gathering, - 2 => WebRTCICEGatheringState::Complete, - value => WebRTCICEGatheringState::__Unknown(value), + 0 => Self::New, + 1 => Self::Gathering, + 2 => Self::Complete, + value => Self::__Unknown(value), } } } @@ -667,7 +665,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCICEGatheringState { impl ToValue for WebRTCICEGatheringState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -697,9 +695,9 @@ impl IntoGlib for WebRTCICERole { fn into_glib(self) -> ffi::GstWebRTCICERole { match self { - WebRTCICERole::Controlled => ffi::GST_WEBRTC_ICE_ROLE_CONTROLLED, - WebRTCICERole::Controlling => ffi::GST_WEBRTC_ICE_ROLE_CONTROLLING, - WebRTCICERole::__Unknown(value) => value, + Self::Controlled => ffi::GST_WEBRTC_ICE_ROLE_CONTROLLED, + Self::Controlling => ffi::GST_WEBRTC_ICE_ROLE_CONTROLLING, + Self::__Unknown(value) => value, } } } @@ -709,9 +707,9 @@ impl FromGlib for WebRTCICERole { unsafe fn from_glib(value: ffi::GstWebRTCICERole) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCICERole::Controlled, - 1 => WebRTCICERole::Controlling, - value => WebRTCICERole::__Unknown(value), + 0 => Self::Controlled, + 1 => Self::Controlling, + value => Self::__Unknown(value), } } } @@ -737,7 +735,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCICERole { impl ToValue for WebRTCICERole { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -771,9 +769,9 @@ impl IntoGlib for WebRTCICETransportPolicy { fn into_glib(self) -> ffi::GstWebRTCICETransportPolicy { match self { - WebRTCICETransportPolicy::All => ffi::GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL, - WebRTCICETransportPolicy::Relay => ffi::GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY, - WebRTCICETransportPolicy::__Unknown(value) => value, + Self::All => ffi::GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL, + Self::Relay => ffi::GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY, + Self::__Unknown(value) => value, } } } @@ -785,9 +783,9 @@ impl FromGlib for WebRTCICETransportPolicy { unsafe fn from_glib(value: ffi::GstWebRTCICETransportPolicy) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCICETransportPolicy::All, - 1 => WebRTCICETransportPolicy::Relay, - value => WebRTCICETransportPolicy::__Unknown(value), + 0 => Self::All, + 1 => Self::Relay, + value => Self::__Unknown(value), } } } @@ -821,7 +819,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCICETransportPolicy { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCICETransportPolicy { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -859,17 +857,13 @@ impl IntoGlib for WebRTCPeerConnectionState { fn into_glib(self) -> ffi::GstWebRTCPeerConnectionState { match self { - WebRTCPeerConnectionState::New => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_NEW, - WebRTCPeerConnectionState::Connecting => { - ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING - } - WebRTCPeerConnectionState::Connected => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED, - WebRTCPeerConnectionState::Disconnected => { - ffi::GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED - } - WebRTCPeerConnectionState::Failed => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_FAILED, - WebRTCPeerConnectionState::Closed => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED, - WebRTCPeerConnectionState::__Unknown(value) => value, + Self::New => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_NEW, + Self::Connecting => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING, + Self::Connected => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED, + Self::Disconnected => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED, + Self::Failed => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_FAILED, + Self::Closed => ffi::GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED, + Self::__Unknown(value) => value, } } } @@ -879,13 +873,13 @@ impl FromGlib for WebRTCPeerConnectionState { unsafe fn from_glib(value: ffi::GstWebRTCPeerConnectionState) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCPeerConnectionState::New, - 1 => WebRTCPeerConnectionState::Connecting, - 2 => WebRTCPeerConnectionState::Connected, - 3 => WebRTCPeerConnectionState::Disconnected, - 4 => WebRTCPeerConnectionState::Failed, - 5 => WebRTCPeerConnectionState::Closed, - value => WebRTCPeerConnectionState::__Unknown(value), + 0 => Self::New, + 1 => Self::Connecting, + 2 => Self::Connected, + 3 => Self::Disconnected, + 4 => Self::Failed, + 5 => Self::Closed, + value => Self::__Unknown(value), } } } @@ -911,7 +905,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCPeerConnectionState { impl ToValue for WebRTCPeerConnectionState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -949,11 +943,11 @@ impl IntoGlib for WebRTCPriorityType { fn into_glib(self) -> ffi::GstWebRTCPriorityType { match self { - WebRTCPriorityType::VeryLow => ffi::GST_WEBRTC_PRIORITY_TYPE_VERY_LOW, - WebRTCPriorityType::Low => ffi::GST_WEBRTC_PRIORITY_TYPE_LOW, - WebRTCPriorityType::Medium => ffi::GST_WEBRTC_PRIORITY_TYPE_MEDIUM, - WebRTCPriorityType::High => ffi::GST_WEBRTC_PRIORITY_TYPE_HIGH, - WebRTCPriorityType::__Unknown(value) => value, + Self::VeryLow => ffi::GST_WEBRTC_PRIORITY_TYPE_VERY_LOW, + Self::Low => ffi::GST_WEBRTC_PRIORITY_TYPE_LOW, + Self::Medium => ffi::GST_WEBRTC_PRIORITY_TYPE_MEDIUM, + Self::High => ffi::GST_WEBRTC_PRIORITY_TYPE_HIGH, + Self::__Unknown(value) => value, } } } @@ -965,11 +959,11 @@ impl FromGlib for WebRTCPriorityType { unsafe fn from_glib(value: ffi::GstWebRTCPriorityType) -> Self { skip_assert_initialized!(); match value { - 1 => WebRTCPriorityType::VeryLow, - 2 => WebRTCPriorityType::Low, - 3 => WebRTCPriorityType::Medium, - 4 => WebRTCPriorityType::High, - value => WebRTCPriorityType::__Unknown(value), + 1 => Self::VeryLow, + 2 => Self::Low, + 3 => Self::Medium, + 4 => Self::High, + value => Self::__Unknown(value), } } } @@ -1003,7 +997,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCPriorityType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCPriorityType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1039,20 +1033,12 @@ impl IntoGlib for WebRTCRTPTransceiverDirection { fn into_glib(self) -> ffi::GstWebRTCRTPTransceiverDirection { match self { - WebRTCRTPTransceiverDirection::None => ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE, - WebRTCRTPTransceiverDirection::Inactive => { - ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE - } - WebRTCRTPTransceiverDirection::Sendonly => { - ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY - } - WebRTCRTPTransceiverDirection::Recvonly => { - ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY - } - WebRTCRTPTransceiverDirection::Sendrecv => { - ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV - } - WebRTCRTPTransceiverDirection::__Unknown(value) => value, + Self::None => ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE, + Self::Inactive => ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE, + Self::Sendonly => ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY, + Self::Recvonly => ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY, + Self::Sendrecv => ffi::GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV, + Self::__Unknown(value) => value, } } } @@ -1062,12 +1048,12 @@ impl FromGlib for WebRTCRTPTransceiverDir unsafe fn from_glib(value: ffi::GstWebRTCRTPTransceiverDirection) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCRTPTransceiverDirection::None, - 1 => WebRTCRTPTransceiverDirection::Inactive, - 2 => WebRTCRTPTransceiverDirection::Sendonly, - 3 => WebRTCRTPTransceiverDirection::Recvonly, - 4 => WebRTCRTPTransceiverDirection::Sendrecv, - value => WebRTCRTPTransceiverDirection::__Unknown(value), + 0 => Self::None, + 1 => Self::Inactive, + 2 => Self::Sendonly, + 3 => Self::Recvonly, + 4 => Self::Sendrecv, + value => Self::__Unknown(value), } } } @@ -1093,7 +1079,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCRTPTransceiverDirection { impl ToValue for WebRTCRTPTransceiverDirection { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1131,11 +1117,11 @@ impl IntoGlib for WebRTCSCTPTransportState { fn into_glib(self) -> ffi::GstWebRTCSCTPTransportState { match self { - WebRTCSCTPTransportState::New => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW, - WebRTCSCTPTransportState::Connecting => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING, - WebRTCSCTPTransportState::Connected => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED, - WebRTCSCTPTransportState::Closed => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED, - WebRTCSCTPTransportState::__Unknown(value) => value, + Self::New => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW, + Self::Connecting => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING, + Self::Connected => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED, + Self::Closed => ffi::GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED, + Self::__Unknown(value) => value, } } } @@ -1147,11 +1133,11 @@ impl FromGlib for WebRTCSCTPTransportState { unsafe fn from_glib(value: ffi::GstWebRTCSCTPTransportState) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCSCTPTransportState::New, - 1 => WebRTCSCTPTransportState::Connecting, - 2 => WebRTCSCTPTransportState::Connected, - 3 => WebRTCSCTPTransportState::Closed, - value => WebRTCSCTPTransportState::__Unknown(value), + 0 => Self::New, + 1 => Self::Connecting, + 2 => Self::Connected, + 3 => Self::Closed, + value => Self::__Unknown(value), } } } @@ -1185,7 +1171,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCSCTPTransportState { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] impl ToValue for WebRTCSCTPTransportState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1240,11 +1226,11 @@ impl IntoGlib for WebRTCSDPType { fn into_glib(self) -> ffi::GstWebRTCSDPType { match self { - WebRTCSDPType::Offer => ffi::GST_WEBRTC_SDP_TYPE_OFFER, - WebRTCSDPType::Pranswer => ffi::GST_WEBRTC_SDP_TYPE_PRANSWER, - WebRTCSDPType::Answer => ffi::GST_WEBRTC_SDP_TYPE_ANSWER, - WebRTCSDPType::Rollback => ffi::GST_WEBRTC_SDP_TYPE_ROLLBACK, - WebRTCSDPType::__Unknown(value) => value, + Self::Offer => ffi::GST_WEBRTC_SDP_TYPE_OFFER, + Self::Pranswer => ffi::GST_WEBRTC_SDP_TYPE_PRANSWER, + Self::Answer => ffi::GST_WEBRTC_SDP_TYPE_ANSWER, + Self::Rollback => ffi::GST_WEBRTC_SDP_TYPE_ROLLBACK, + Self::__Unknown(value) => value, } } } @@ -1254,11 +1240,11 @@ impl FromGlib for WebRTCSDPType { unsafe fn from_glib(value: ffi::GstWebRTCSDPType) -> Self { skip_assert_initialized!(); match value { - 1 => WebRTCSDPType::Offer, - 2 => WebRTCSDPType::Pranswer, - 3 => WebRTCSDPType::Answer, - 4 => WebRTCSDPType::Rollback, - value => WebRTCSDPType::__Unknown(value), + 1 => Self::Offer, + 2 => Self::Pranswer, + 3 => Self::Answer, + 4 => Self::Rollback, + value => Self::__Unknown(value), } } } @@ -1284,7 +1270,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCSDPType { impl ToValue for WebRTCSDPType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1322,21 +1308,13 @@ impl IntoGlib for WebRTCSignalingState { fn into_glib(self) -> ffi::GstWebRTCSignalingState { match self { - WebRTCSignalingState::Stable => ffi::GST_WEBRTC_SIGNALING_STATE_STABLE, - WebRTCSignalingState::Closed => ffi::GST_WEBRTC_SIGNALING_STATE_CLOSED, - WebRTCSignalingState::HaveLocalOffer => { - ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER - } - WebRTCSignalingState::HaveRemoteOffer => { - ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER - } - WebRTCSignalingState::HaveLocalPranswer => { - ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER - } - WebRTCSignalingState::HaveRemotePranswer => { - ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER - } - WebRTCSignalingState::__Unknown(value) => value, + Self::Stable => ffi::GST_WEBRTC_SIGNALING_STATE_STABLE, + Self::Closed => ffi::GST_WEBRTC_SIGNALING_STATE_CLOSED, + Self::HaveLocalOffer => ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER, + Self::HaveRemoteOffer => ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER, + Self::HaveLocalPranswer => ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER, + Self::HaveRemotePranswer => ffi::GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER, + Self::__Unknown(value) => value, } } } @@ -1346,13 +1324,13 @@ impl FromGlib for WebRTCSignalingState { unsafe fn from_glib(value: ffi::GstWebRTCSignalingState) -> Self { skip_assert_initialized!(); match value { - 0 => WebRTCSignalingState::Stable, - 1 => WebRTCSignalingState::Closed, - 2 => WebRTCSignalingState::HaveLocalOffer, - 3 => WebRTCSignalingState::HaveRemoteOffer, - 4 => WebRTCSignalingState::HaveLocalPranswer, - 5 => WebRTCSignalingState::HaveRemotePranswer, - value => WebRTCSignalingState::__Unknown(value), + 0 => Self::Stable, + 1 => Self::Closed, + 2 => Self::HaveLocalOffer, + 3 => Self::HaveRemoteOffer, + 4 => Self::HaveLocalPranswer, + 5 => Self::HaveRemotePranswer, + value => Self::__Unknown(value), } } } @@ -1378,7 +1356,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCSignalingState { impl ToValue for WebRTCSignalingState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1432,21 +1410,21 @@ impl IntoGlib for WebRTCStatsType { fn into_glib(self) -> ffi::GstWebRTCStatsType { match self { - WebRTCStatsType::Codec => ffi::GST_WEBRTC_STATS_CODEC, - WebRTCStatsType::InboundRtp => ffi::GST_WEBRTC_STATS_INBOUND_RTP, - WebRTCStatsType::OutboundRtp => ffi::GST_WEBRTC_STATS_OUTBOUND_RTP, - WebRTCStatsType::RemoteInboundRtp => ffi::GST_WEBRTC_STATS_REMOTE_INBOUND_RTP, - WebRTCStatsType::RemoteOutboundRtp => ffi::GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP, - WebRTCStatsType::Csrc => ffi::GST_WEBRTC_STATS_CSRC, - WebRTCStatsType::PeerConnection => ffi::GST_WEBRTC_STATS_PEER_CONNECTION, - WebRTCStatsType::DataChannel => ffi::GST_WEBRTC_STATS_DATA_CHANNEL, - WebRTCStatsType::Stream => ffi::GST_WEBRTC_STATS_STREAM, - WebRTCStatsType::Transport => ffi::GST_WEBRTC_STATS_TRANSPORT, - WebRTCStatsType::CandidatePair => ffi::GST_WEBRTC_STATS_CANDIDATE_PAIR, - WebRTCStatsType::LocalCandidate => ffi::GST_WEBRTC_STATS_LOCAL_CANDIDATE, - WebRTCStatsType::RemoteCandidate => ffi::GST_WEBRTC_STATS_REMOTE_CANDIDATE, - WebRTCStatsType::Certificate => ffi::GST_WEBRTC_STATS_CERTIFICATE, - WebRTCStatsType::__Unknown(value) => value, + Self::Codec => ffi::GST_WEBRTC_STATS_CODEC, + Self::InboundRtp => ffi::GST_WEBRTC_STATS_INBOUND_RTP, + Self::OutboundRtp => ffi::GST_WEBRTC_STATS_OUTBOUND_RTP, + Self::RemoteInboundRtp => ffi::GST_WEBRTC_STATS_REMOTE_INBOUND_RTP, + Self::RemoteOutboundRtp => ffi::GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP, + Self::Csrc => ffi::GST_WEBRTC_STATS_CSRC, + Self::PeerConnection => ffi::GST_WEBRTC_STATS_PEER_CONNECTION, + Self::DataChannel => ffi::GST_WEBRTC_STATS_DATA_CHANNEL, + Self::Stream => ffi::GST_WEBRTC_STATS_STREAM, + Self::Transport => ffi::GST_WEBRTC_STATS_TRANSPORT, + Self::CandidatePair => ffi::GST_WEBRTC_STATS_CANDIDATE_PAIR, + Self::LocalCandidate => ffi::GST_WEBRTC_STATS_LOCAL_CANDIDATE, + Self::RemoteCandidate => ffi::GST_WEBRTC_STATS_REMOTE_CANDIDATE, + Self::Certificate => ffi::GST_WEBRTC_STATS_CERTIFICATE, + Self::__Unknown(value) => value, } } } @@ -1456,21 +1434,21 @@ impl FromGlib for WebRTCStatsType { unsafe fn from_glib(value: ffi::GstWebRTCStatsType) -> Self { skip_assert_initialized!(); match value { - 1 => WebRTCStatsType::Codec, - 2 => WebRTCStatsType::InboundRtp, - 3 => WebRTCStatsType::OutboundRtp, - 4 => WebRTCStatsType::RemoteInboundRtp, - 5 => WebRTCStatsType::RemoteOutboundRtp, - 6 => WebRTCStatsType::Csrc, - 7 => WebRTCStatsType::PeerConnection, - 8 => WebRTCStatsType::DataChannel, - 9 => WebRTCStatsType::Stream, - 10 => WebRTCStatsType::Transport, - 11 => WebRTCStatsType::CandidatePair, - 12 => WebRTCStatsType::LocalCandidate, - 13 => WebRTCStatsType::RemoteCandidate, - 14 => WebRTCStatsType::Certificate, - value => WebRTCStatsType::__Unknown(value), + 1 => Self::Codec, + 2 => Self::InboundRtp, + 3 => Self::OutboundRtp, + 4 => Self::RemoteInboundRtp, + 5 => Self::RemoteOutboundRtp, + 6 => Self::Csrc, + 7 => Self::PeerConnection, + 8 => Self::DataChannel, + 9 => Self::Stream, + 10 => Self::Transport, + 11 => Self::CandidatePair, + 12 => Self::LocalCandidate, + 13 => Self::RemoteCandidate, + 14 => Self::Certificate, + value => Self::__Unknown(value), } } } @@ -1496,7 +1474,7 @@ unsafe impl<'a> FromValue<'a> for WebRTCStatsType { impl ToValue for WebRTCStatsType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index d9321baf5..362ec3e19 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index c115a48c7..185e3e9e8 100644 --- a/gstreamer-webrtc/sys/tests/abi.rs +++ b/gstreamer-webrtc/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index f2a56313f..5423cb5f8 100644 --- a/gstreamer-webrtc/sys/tests/constant.c +++ b/gstreamer-webrtc/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index a4ca22d33..bf4d04f1c 100644 --- a/gstreamer-webrtc/sys/tests/layout.c +++ b/gstreamer-webrtc/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index ae9219f4f..89506c027 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -36,11 +36,11 @@ impl IntoGlib for BufferingMode { fn into_glib(self) -> ffi::GstBufferingMode { match self { - BufferingMode::Stream => ffi::GST_BUFFERING_STREAM, - BufferingMode::Download => ffi::GST_BUFFERING_DOWNLOAD, - BufferingMode::Timeshift => ffi::GST_BUFFERING_TIMESHIFT, - BufferingMode::Live => ffi::GST_BUFFERING_LIVE, - BufferingMode::__Unknown(value) => value, + Self::Stream => ffi::GST_BUFFERING_STREAM, + Self::Download => ffi::GST_BUFFERING_DOWNLOAD, + Self::Timeshift => ffi::GST_BUFFERING_TIMESHIFT, + Self::Live => ffi::GST_BUFFERING_LIVE, + Self::__Unknown(value) => value, } } } @@ -50,11 +50,11 @@ impl FromGlib for BufferingMode { unsafe fn from_glib(value: ffi::GstBufferingMode) -> Self { skip_assert_initialized!(); match value { - 0 => BufferingMode::Stream, - 1 => BufferingMode::Download, - 2 => BufferingMode::Timeshift, - 3 => BufferingMode::Live, - value => BufferingMode::__Unknown(value), + 0 => Self::Stream, + 1 => Self::Download, + 2 => Self::Timeshift, + 3 => Self::Live, + value => Self::__Unknown(value), } } } @@ -80,7 +80,7 @@ unsafe impl<'a> FromValue<'a> for BufferingMode { impl ToValue for BufferingMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -112,10 +112,10 @@ impl IntoGlib for BusSyncReply { fn into_glib(self) -> ffi::GstBusSyncReply { match self { - BusSyncReply::Drop => ffi::GST_BUS_DROP, - BusSyncReply::Pass => ffi::GST_BUS_PASS, - BusSyncReply::Async => ffi::GST_BUS_ASYNC, - BusSyncReply::__Unknown(value) => value, + Self::Drop => ffi::GST_BUS_DROP, + Self::Pass => ffi::GST_BUS_PASS, + Self::Async => ffi::GST_BUS_ASYNC, + Self::__Unknown(value) => value, } } } @@ -125,10 +125,10 @@ impl FromGlib for BusSyncReply { unsafe fn from_glib(value: ffi::GstBusSyncReply) -> Self { skip_assert_initialized!(); match value { - 0 => BusSyncReply::Drop, - 1 => BusSyncReply::Pass, - 2 => BusSyncReply::Async, - value => BusSyncReply::__Unknown(value), + 0 => Self::Drop, + 1 => Self::Pass, + 2 => Self::Async, + value => Self::__Unknown(value), } } } @@ -154,7 +154,7 @@ unsafe impl<'a> FromValue<'a> for BusSyncReply { impl ToValue for BusSyncReply { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -184,9 +184,9 @@ impl IntoGlib for CapsIntersectMode { fn into_glib(self) -> ffi::GstCapsIntersectMode { match self { - CapsIntersectMode::ZigZag => ffi::GST_CAPS_INTERSECT_ZIG_ZAG, - CapsIntersectMode::First => ffi::GST_CAPS_INTERSECT_FIRST, - CapsIntersectMode::__Unknown(value) => value, + Self::ZigZag => ffi::GST_CAPS_INTERSECT_ZIG_ZAG, + Self::First => ffi::GST_CAPS_INTERSECT_FIRST, + Self::__Unknown(value) => value, } } } @@ -196,9 +196,9 @@ impl FromGlib for CapsIntersectMode { unsafe fn from_glib(value: ffi::GstCapsIntersectMode) -> Self { skip_assert_initialized!(); match value { - 0 => CapsIntersectMode::ZigZag, - 1 => CapsIntersectMode::First, - value => CapsIntersectMode::__Unknown(value), + 0 => Self::ZigZag, + 1 => Self::First, + value => Self::__Unknown(value), } } } @@ -224,7 +224,7 @@ unsafe impl<'a> FromValue<'a> for CapsIntersectMode { impl ToValue for CapsIntersectMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -254,9 +254,9 @@ impl IntoGlib for ClockEntryType { fn into_glib(self) -> ffi::GstClockEntryType { match self { - ClockEntryType::Single => ffi::GST_CLOCK_ENTRY_SINGLE, - ClockEntryType::Periodic => ffi::GST_CLOCK_ENTRY_PERIODIC, - ClockEntryType::__Unknown(value) => value, + Self::Single => ffi::GST_CLOCK_ENTRY_SINGLE, + Self::Periodic => ffi::GST_CLOCK_ENTRY_PERIODIC, + Self::__Unknown(value) => value, } } } @@ -266,9 +266,9 @@ impl FromGlib for ClockEntryType { unsafe fn from_glib(value: ffi::GstClockEntryType) -> Self { skip_assert_initialized!(); match value { - 0 => ClockEntryType::Single, - 1 => ClockEntryType::Periodic, - value => ClockEntryType::__Unknown(value), + 0 => Self::Single, + 1 => Self::Periodic, + value => Self::__Unknown(value), } } } @@ -294,7 +294,7 @@ unsafe impl<'a> FromValue<'a> for ClockEntryType { impl ToValue for ClockEntryType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -337,15 +337,15 @@ impl IntoGlib for ClockReturn { fn into_glib(self) -> ffi::GstClockReturn { match self { - ClockReturn::Ok => ffi::GST_CLOCK_OK, - ClockReturn::Early => ffi::GST_CLOCK_EARLY, - ClockReturn::Unscheduled => ffi::GST_CLOCK_UNSCHEDULED, - ClockReturn::Busy => ffi::GST_CLOCK_BUSY, - ClockReturn::Badtime => ffi::GST_CLOCK_BADTIME, - ClockReturn::Error => ffi::GST_CLOCK_ERROR, - ClockReturn::Unsupported => ffi::GST_CLOCK_UNSUPPORTED, - ClockReturn::Done => ffi::GST_CLOCK_DONE, - ClockReturn::__Unknown(value) => value, + Self::Ok => ffi::GST_CLOCK_OK, + Self::Early => ffi::GST_CLOCK_EARLY, + Self::Unscheduled => ffi::GST_CLOCK_UNSCHEDULED, + Self::Busy => ffi::GST_CLOCK_BUSY, + Self::Badtime => ffi::GST_CLOCK_BADTIME, + Self::Error => ffi::GST_CLOCK_ERROR, + Self::Unsupported => ffi::GST_CLOCK_UNSUPPORTED, + Self::Done => ffi::GST_CLOCK_DONE, + Self::__Unknown(value) => value, } } } @@ -355,15 +355,15 @@ impl FromGlib for ClockReturn { unsafe fn from_glib(value: ffi::GstClockReturn) -> Self { skip_assert_initialized!(); match value { - 0 => ClockReturn::Ok, - 1 => ClockReturn::Early, - 2 => ClockReturn::Unscheduled, - 3 => ClockReturn::Busy, - 4 => ClockReturn::Badtime, - 5 => ClockReturn::Error, - 6 => ClockReturn::Unsupported, - 7 => ClockReturn::Done, - value => ClockReturn::__Unknown(value), + 0 => Self::Ok, + 1 => Self::Early, + 2 => Self::Unscheduled, + 3 => Self::Busy, + 4 => Self::Badtime, + 5 => Self::Error, + 6 => Self::Unsupported, + 7 => Self::Done, + value => Self::__Unknown(value), } } } @@ -389,7 +389,7 @@ unsafe impl<'a> FromValue<'a> for ClockReturn { impl ToValue for ClockReturn { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -425,12 +425,12 @@ impl IntoGlib for ClockType { fn into_glib(self) -> ffi::GstClockType { match self { - ClockType::Realtime => ffi::GST_CLOCK_TYPE_REALTIME, - ClockType::Monotonic => ffi::GST_CLOCK_TYPE_MONOTONIC, - ClockType::Other => ffi::GST_CLOCK_TYPE_OTHER, + Self::Realtime => ffi::GST_CLOCK_TYPE_REALTIME, + Self::Monotonic => ffi::GST_CLOCK_TYPE_MONOTONIC, + Self::Other => ffi::GST_CLOCK_TYPE_OTHER, #[cfg(any(feature = "v1_18", feature = "dox"))] - ClockType::Tai => ffi::GST_CLOCK_TYPE_TAI, - ClockType::__Unknown(value) => value, + Self::Tai => ffi::GST_CLOCK_TYPE_TAI, + Self::__Unknown(value) => value, } } } @@ -440,12 +440,12 @@ impl FromGlib for ClockType { unsafe fn from_glib(value: ffi::GstClockType) -> Self { skip_assert_initialized!(); match value { - 0 => ClockType::Realtime, - 1 => ClockType::Monotonic, - 2 => ClockType::Other, + 0 => Self::Realtime, + 1 => Self::Monotonic, + 2 => Self::Other, #[cfg(any(feature = "v1_18", feature = "dox"))] - 3 => ClockType::Tai, - value => ClockType::__Unknown(value), + 3 => Self::Tai, + value => Self::__Unknown(value), } } } @@ -471,7 +471,7 @@ unsafe impl<'a> FromValue<'a> for ClockType { impl ToValue for ClockType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -527,22 +527,22 @@ impl IntoGlib for CoreError { fn into_glib(self) -> ffi::GstCoreError { match self { - CoreError::Failed => ffi::GST_CORE_ERROR_FAILED, - CoreError::TooLazy => ffi::GST_CORE_ERROR_TOO_LAZY, - CoreError::NotImplemented => ffi::GST_CORE_ERROR_NOT_IMPLEMENTED, - CoreError::StateChange => ffi::GST_CORE_ERROR_STATE_CHANGE, - CoreError::Pad => ffi::GST_CORE_ERROR_PAD, - CoreError::Thread => ffi::GST_CORE_ERROR_THREAD, - CoreError::Negotiation => ffi::GST_CORE_ERROR_NEGOTIATION, - CoreError::Event => ffi::GST_CORE_ERROR_EVENT, - CoreError::Seek => ffi::GST_CORE_ERROR_SEEK, - CoreError::Caps => ffi::GST_CORE_ERROR_CAPS, - CoreError::Tag => ffi::GST_CORE_ERROR_TAG, - CoreError::MissingPlugin => ffi::GST_CORE_ERROR_MISSING_PLUGIN, - CoreError::Clock => ffi::GST_CORE_ERROR_CLOCK, - CoreError::Disabled => ffi::GST_CORE_ERROR_DISABLED, - CoreError::NumErrors => ffi::GST_CORE_ERROR_NUM_ERRORS, - CoreError::__Unknown(value) => value, + Self::Failed => ffi::GST_CORE_ERROR_FAILED, + Self::TooLazy => ffi::GST_CORE_ERROR_TOO_LAZY, + Self::NotImplemented => ffi::GST_CORE_ERROR_NOT_IMPLEMENTED, + Self::StateChange => ffi::GST_CORE_ERROR_STATE_CHANGE, + Self::Pad => ffi::GST_CORE_ERROR_PAD, + Self::Thread => ffi::GST_CORE_ERROR_THREAD, + Self::Negotiation => ffi::GST_CORE_ERROR_NEGOTIATION, + Self::Event => ffi::GST_CORE_ERROR_EVENT, + Self::Seek => ffi::GST_CORE_ERROR_SEEK, + Self::Caps => ffi::GST_CORE_ERROR_CAPS, + Self::Tag => ffi::GST_CORE_ERROR_TAG, + Self::MissingPlugin => ffi::GST_CORE_ERROR_MISSING_PLUGIN, + Self::Clock => ffi::GST_CORE_ERROR_CLOCK, + Self::Disabled => ffi::GST_CORE_ERROR_DISABLED, + Self::NumErrors => ffi::GST_CORE_ERROR_NUM_ERRORS, + Self::__Unknown(value) => value, } } } @@ -552,22 +552,22 @@ impl FromGlib for CoreError { unsafe fn from_glib(value: ffi::GstCoreError) -> Self { skip_assert_initialized!(); match value { - 1 => CoreError::Failed, - 2 => CoreError::TooLazy, - 3 => CoreError::NotImplemented, - 4 => CoreError::StateChange, - 5 => CoreError::Pad, - 6 => CoreError::Thread, - 7 => CoreError::Negotiation, - 8 => CoreError::Event, - 9 => CoreError::Seek, - 10 => CoreError::Caps, - 11 => CoreError::Tag, - 12 => CoreError::MissingPlugin, - 13 => CoreError::Clock, - 14 => CoreError::Disabled, - 15 => CoreError::NumErrors, - value => CoreError::__Unknown(value), + 1 => Self::Failed, + 2 => Self::TooLazy, + 3 => Self::NotImplemented, + 4 => Self::StateChange, + 5 => Self::Pad, + 6 => Self::Thread, + 7 => Self::Negotiation, + 8 => Self::Event, + 9 => Self::Seek, + 10 => Self::Caps, + 11 => Self::Tag, + 12 => Self::MissingPlugin, + 13 => Self::Clock, + 14 => Self::Disabled, + 15 => Self::NumErrors, + value => Self::__Unknown(value), } } } @@ -586,22 +586,22 @@ impl ErrorDomain for CoreError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(CoreError::Failed), - 2 => Some(CoreError::TooLazy), - 3 => Some(CoreError::NotImplemented), - 4 => Some(CoreError::StateChange), - 5 => Some(CoreError::Pad), - 6 => Some(CoreError::Thread), - 7 => Some(CoreError::Negotiation), - 8 => Some(CoreError::Event), - 9 => Some(CoreError::Seek), - 10 => Some(CoreError::Caps), - 11 => Some(CoreError::Tag), - 12 => Some(CoreError::MissingPlugin), - 13 => Some(CoreError::Clock), - 14 => Some(CoreError::Disabled), - 15 => Some(CoreError::NumErrors), - _ => Some(CoreError::Failed), + 1 => Some(Self::Failed), + 2 => Some(Self::TooLazy), + 3 => Some(Self::NotImplemented), + 4 => Some(Self::StateChange), + 5 => Some(Self::Pad), + 6 => Some(Self::Thread), + 7 => Some(Self::Negotiation), + 8 => Some(Self::Event), + 9 => Some(Self::Seek), + 10 => Some(Self::Caps), + 11 => Some(Self::Tag), + 12 => Some(Self::MissingPlugin), + 13 => Some(Self::Clock), + 14 => Some(Self::Disabled), + 15 => Some(Self::NumErrors), + _ => Some(Self::Failed), } } } @@ -627,7 +627,7 @@ unsafe impl<'a> FromValue<'a> for CoreError { impl ToValue for CoreError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -694,17 +694,17 @@ impl IntoGlib for DebugLevel { fn into_glib(self) -> ffi::GstDebugLevel { match self { - DebugLevel::None => ffi::GST_LEVEL_NONE, - DebugLevel::Error => ffi::GST_LEVEL_ERROR, - DebugLevel::Warning => ffi::GST_LEVEL_WARNING, - DebugLevel::Fixme => ffi::GST_LEVEL_FIXME, - DebugLevel::Info => ffi::GST_LEVEL_INFO, - DebugLevel::Debug => ffi::GST_LEVEL_DEBUG, - DebugLevel::Log => ffi::GST_LEVEL_LOG, - DebugLevel::Trace => ffi::GST_LEVEL_TRACE, - DebugLevel::Memdump => ffi::GST_LEVEL_MEMDUMP, - DebugLevel::Count => ffi::GST_LEVEL_COUNT, - DebugLevel::__Unknown(value) => value, + Self::None => ffi::GST_LEVEL_NONE, + Self::Error => ffi::GST_LEVEL_ERROR, + Self::Warning => ffi::GST_LEVEL_WARNING, + Self::Fixme => ffi::GST_LEVEL_FIXME, + Self::Info => ffi::GST_LEVEL_INFO, + Self::Debug => ffi::GST_LEVEL_DEBUG, + Self::Log => ffi::GST_LEVEL_LOG, + Self::Trace => ffi::GST_LEVEL_TRACE, + Self::Memdump => ffi::GST_LEVEL_MEMDUMP, + Self::Count => ffi::GST_LEVEL_COUNT, + Self::__Unknown(value) => value, } } } @@ -714,17 +714,17 @@ impl FromGlib for DebugLevel { unsafe fn from_glib(value: ffi::GstDebugLevel) -> Self { skip_assert_initialized!(); match value { - 0 => DebugLevel::None, - 1 => DebugLevel::Error, - 2 => DebugLevel::Warning, - 3 => DebugLevel::Fixme, - 4 => DebugLevel::Info, - 5 => DebugLevel::Debug, - 6 => DebugLevel::Log, - 7 => DebugLevel::Trace, - 9 => DebugLevel::Memdump, - 10 => DebugLevel::Count, - value => DebugLevel::__Unknown(value), + 0 => Self::None, + 1 => Self::Error, + 2 => Self::Warning, + 3 => Self::Fixme, + 4 => Self::Info, + 5 => Self::Debug, + 6 => Self::Log, + 7 => Self::Trace, + 9 => Self::Memdump, + 10 => Self::Count, + value => Self::__Unknown(value), } } } @@ -750,7 +750,7 @@ unsafe impl<'a> FromValue<'a> for DebugLevel { impl ToValue for DebugLevel { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -881,43 +881,43 @@ impl IntoGlib for EventType { fn into_glib(self) -> ffi::GstEventType { match self { - EventType::Unknown => ffi::GST_EVENT_UNKNOWN, - EventType::FlushStart => ffi::GST_EVENT_FLUSH_START, - EventType::FlushStop => ffi::GST_EVENT_FLUSH_STOP, - EventType::StreamStart => ffi::GST_EVENT_STREAM_START, - EventType::Caps => ffi::GST_EVENT_CAPS, - EventType::Segment => ffi::GST_EVENT_SEGMENT, - EventType::StreamCollection => ffi::GST_EVENT_STREAM_COLLECTION, - EventType::Tag => ffi::GST_EVENT_TAG, - EventType::Buffersize => ffi::GST_EVENT_BUFFERSIZE, - EventType::SinkMessage => ffi::GST_EVENT_SINK_MESSAGE, + Self::Unknown => ffi::GST_EVENT_UNKNOWN, + Self::FlushStart => ffi::GST_EVENT_FLUSH_START, + Self::FlushStop => ffi::GST_EVENT_FLUSH_STOP, + Self::StreamStart => ffi::GST_EVENT_STREAM_START, + Self::Caps => ffi::GST_EVENT_CAPS, + Self::Segment => ffi::GST_EVENT_SEGMENT, + Self::StreamCollection => ffi::GST_EVENT_STREAM_COLLECTION, + Self::Tag => ffi::GST_EVENT_TAG, + Self::Buffersize => ffi::GST_EVENT_BUFFERSIZE, + Self::SinkMessage => ffi::GST_EVENT_SINK_MESSAGE, #[cfg(any(feature = "v1_10", feature = "dox"))] - EventType::StreamGroupDone => ffi::GST_EVENT_STREAM_GROUP_DONE, - EventType::Eos => ffi::GST_EVENT_EOS, - EventType::Toc => ffi::GST_EVENT_TOC, - EventType::Protection => ffi::GST_EVENT_PROTECTION, - EventType::SegmentDone => ffi::GST_EVENT_SEGMENT_DONE, - EventType::Gap => ffi::GST_EVENT_GAP, + Self::StreamGroupDone => ffi::GST_EVENT_STREAM_GROUP_DONE, + Self::Eos => ffi::GST_EVENT_EOS, + Self::Toc => ffi::GST_EVENT_TOC, + Self::Protection => ffi::GST_EVENT_PROTECTION, + Self::SegmentDone => ffi::GST_EVENT_SEGMENT_DONE, + Self::Gap => ffi::GST_EVENT_GAP, #[cfg(any(feature = "v1_18", feature = "dox"))] - EventType::InstantRateChange => ffi::GST_EVENT_INSTANT_RATE_CHANGE, - EventType::Qos => ffi::GST_EVENT_QOS, - EventType::Seek => ffi::GST_EVENT_SEEK, - EventType::Navigation => ffi::GST_EVENT_NAVIGATION, - EventType::Latency => ffi::GST_EVENT_LATENCY, - EventType::Step => ffi::GST_EVENT_STEP, - EventType::Reconfigure => ffi::GST_EVENT_RECONFIGURE, - EventType::TocSelect => ffi::GST_EVENT_TOC_SELECT, + Self::InstantRateChange => ffi::GST_EVENT_INSTANT_RATE_CHANGE, + Self::Qos => ffi::GST_EVENT_QOS, + Self::Seek => ffi::GST_EVENT_SEEK, + Self::Navigation => ffi::GST_EVENT_NAVIGATION, + Self::Latency => ffi::GST_EVENT_LATENCY, + Self::Step => ffi::GST_EVENT_STEP, + Self::Reconfigure => ffi::GST_EVENT_RECONFIGURE, + Self::TocSelect => ffi::GST_EVENT_TOC_SELECT, #[cfg(any(feature = "v1_10", feature = "dox"))] - EventType::SelectStreams => ffi::GST_EVENT_SELECT_STREAMS, + Self::SelectStreams => ffi::GST_EVENT_SELECT_STREAMS, #[cfg(any(feature = "v1_18", feature = "dox"))] - EventType::InstantRateSyncTime => ffi::GST_EVENT_INSTANT_RATE_SYNC_TIME, - EventType::CustomUpstream => ffi::GST_EVENT_CUSTOM_UPSTREAM, - EventType::CustomDownstream => ffi::GST_EVENT_CUSTOM_DOWNSTREAM, - EventType::CustomDownstreamOob => ffi::GST_EVENT_CUSTOM_DOWNSTREAM_OOB, - EventType::CustomDownstreamSticky => ffi::GST_EVENT_CUSTOM_DOWNSTREAM_STICKY, - EventType::CustomBoth => ffi::GST_EVENT_CUSTOM_BOTH, - EventType::CustomBothOob => ffi::GST_EVENT_CUSTOM_BOTH_OOB, - EventType::__Unknown(value) => value, + Self::InstantRateSyncTime => ffi::GST_EVENT_INSTANT_RATE_SYNC_TIME, + Self::CustomUpstream => ffi::GST_EVENT_CUSTOM_UPSTREAM, + Self::CustomDownstream => ffi::GST_EVENT_CUSTOM_DOWNSTREAM, + Self::CustomDownstreamOob => ffi::GST_EVENT_CUSTOM_DOWNSTREAM_OOB, + Self::CustomDownstreamSticky => ffi::GST_EVENT_CUSTOM_DOWNSTREAM_STICKY, + Self::CustomBoth => ffi::GST_EVENT_CUSTOM_BOTH, + Self::CustomBothOob => ffi::GST_EVENT_CUSTOM_BOTH_OOB, + Self::__Unknown(value) => value, } } } @@ -927,43 +927,43 @@ impl FromGlib for EventType { unsafe fn from_glib(value: ffi::GstEventType) -> Self { skip_assert_initialized!(); match value { - 0 => EventType::Unknown, - 2563 => EventType::FlushStart, - 5127 => EventType::FlushStop, - 10254 => EventType::StreamStart, - 12814 => EventType::Caps, - 17934 => EventType::Segment, - 19230 => EventType::StreamCollection, - 20510 => EventType::Tag, - 23054 => EventType::Buffersize, - 25630 => EventType::SinkMessage, + 0 => Self::Unknown, + 2563 => Self::FlushStart, + 5127 => Self::FlushStop, + 10254 => Self::StreamStart, + 12814 => Self::Caps, + 17934 => Self::Segment, + 19230 => Self::StreamCollection, + 20510 => Self::Tag, + 23054 => Self::Buffersize, + 25630 => Self::SinkMessage, #[cfg(any(feature = "v1_10", feature = "dox"))] - 26894 => EventType::StreamGroupDone, - 28174 => EventType::Eos, - 30750 => EventType::Toc, - 33310 => EventType::Protection, - 38406 => EventType::SegmentDone, - 40966 => EventType::Gap, + 26894 => Self::StreamGroupDone, + 28174 => Self::Eos, + 30750 => Self::Toc, + 33310 => Self::Protection, + 38406 => Self::SegmentDone, + 40966 => Self::Gap, #[cfg(any(feature = "v1_18", feature = "dox"))] - 46090 => EventType::InstantRateChange, - 48641 => EventType::Qos, - 51201 => EventType::Seek, - 53761 => EventType::Navigation, - 56321 => EventType::Latency, - 58881 => EventType::Step, - 61441 => EventType::Reconfigure, - 64001 => EventType::TocSelect, + 46090 => Self::InstantRateChange, + 48641 => Self::Qos, + 51201 => Self::Seek, + 53761 => Self::Navigation, + 56321 => Self::Latency, + 58881 => Self::Step, + 61441 => Self::Reconfigure, + 64001 => Self::TocSelect, #[cfg(any(feature = "v1_10", feature = "dox"))] - 66561 => EventType::SelectStreams, + 66561 => Self::SelectStreams, #[cfg(any(feature = "v1_18", feature = "dox"))] - 66817 => EventType::InstantRateSyncTime, - 69121 => EventType::CustomUpstream, - 71686 => EventType::CustomDownstream, - 74242 => EventType::CustomDownstreamOob, - 76830 => EventType::CustomDownstreamSticky, - 79367 => EventType::CustomBoth, - 81923 => EventType::CustomBothOob, - value => EventType::__Unknown(value), + 66817 => Self::InstantRateSyncTime, + 69121 => Self::CustomUpstream, + 71686 => Self::CustomDownstream, + 74242 => Self::CustomDownstreamOob, + 76830 => Self::CustomDownstreamSticky, + 79367 => Self::CustomBoth, + 81923 => Self::CustomBothOob, + value => Self::__Unknown(value), } } } @@ -989,7 +989,7 @@ unsafe impl<'a> FromValue<'a> for EventType { impl ToValue for EventType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1042,20 +1042,20 @@ impl IntoGlib for FlowReturn { fn into_glib(self) -> ffi::GstFlowReturn { match self { - FlowReturn::CustomSuccess2 => ffi::GST_FLOW_CUSTOM_SUCCESS_2, - FlowReturn::CustomSuccess1 => ffi::GST_FLOW_CUSTOM_SUCCESS_1, - FlowReturn::CustomSuccess => ffi::GST_FLOW_CUSTOM_SUCCESS, - FlowReturn::Ok => ffi::GST_FLOW_OK, - FlowReturn::NotLinked => ffi::GST_FLOW_NOT_LINKED, - FlowReturn::Flushing => ffi::GST_FLOW_FLUSHING, - FlowReturn::Eos => ffi::GST_FLOW_EOS, - FlowReturn::NotNegotiated => ffi::GST_FLOW_NOT_NEGOTIATED, - FlowReturn::Error => ffi::GST_FLOW_ERROR, - FlowReturn::NotSupported => ffi::GST_FLOW_NOT_SUPPORTED, - FlowReturn::CustomError => ffi::GST_FLOW_CUSTOM_ERROR, - FlowReturn::CustomError1 => ffi::GST_FLOW_CUSTOM_ERROR_1, - FlowReturn::CustomError2 => ffi::GST_FLOW_CUSTOM_ERROR_2, - FlowReturn::__Unknown(value) => value, + Self::CustomSuccess2 => ffi::GST_FLOW_CUSTOM_SUCCESS_2, + Self::CustomSuccess1 => ffi::GST_FLOW_CUSTOM_SUCCESS_1, + Self::CustomSuccess => ffi::GST_FLOW_CUSTOM_SUCCESS, + Self::Ok => ffi::GST_FLOW_OK, + Self::NotLinked => ffi::GST_FLOW_NOT_LINKED, + Self::Flushing => ffi::GST_FLOW_FLUSHING, + Self::Eos => ffi::GST_FLOW_EOS, + Self::NotNegotiated => ffi::GST_FLOW_NOT_NEGOTIATED, + Self::Error => ffi::GST_FLOW_ERROR, + Self::NotSupported => ffi::GST_FLOW_NOT_SUPPORTED, + Self::CustomError => ffi::GST_FLOW_CUSTOM_ERROR, + Self::CustomError1 => ffi::GST_FLOW_CUSTOM_ERROR_1, + Self::CustomError2 => ffi::GST_FLOW_CUSTOM_ERROR_2, + Self::__Unknown(value) => value, } } } @@ -1065,20 +1065,20 @@ impl FromGlib for FlowReturn { unsafe fn from_glib(value: ffi::GstFlowReturn) -> Self { skip_assert_initialized!(); match value { - 102 => FlowReturn::CustomSuccess2, - 101 => FlowReturn::CustomSuccess1, - 100 => FlowReturn::CustomSuccess, - 0 => FlowReturn::Ok, - -1 => FlowReturn::NotLinked, - -2 => FlowReturn::Flushing, - -3 => FlowReturn::Eos, - -4 => FlowReturn::NotNegotiated, - -5 => FlowReturn::Error, - -6 => FlowReturn::NotSupported, - -100 => FlowReturn::CustomError, - -101 => FlowReturn::CustomError1, - -102 => FlowReturn::CustomError2, - value => FlowReturn::__Unknown(value), + 102 => Self::CustomSuccess2, + 101 => Self::CustomSuccess1, + 100 => Self::CustomSuccess, + 0 => Self::Ok, + -1 => Self::NotLinked, + -2 => Self::Flushing, + -3 => Self::Eos, + -4 => Self::NotNegotiated, + -5 => Self::Error, + -6 => Self::NotSupported, + -100 => Self::CustomError, + -101 => Self::CustomError1, + -102 => Self::CustomError2, + value => Self::__Unknown(value), } } } @@ -1104,7 +1104,7 @@ unsafe impl<'a> FromValue<'a> for FlowReturn { impl ToValue for FlowReturn { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1173,13 +1173,13 @@ impl IntoGlib for Format { fn into_glib(self) -> ffi::GstFormat { match self { - Format::Undefined => ffi::GST_FORMAT_UNDEFINED, - Format::Default => ffi::GST_FORMAT_DEFAULT, - Format::Bytes => ffi::GST_FORMAT_BYTES, - Format::Time => ffi::GST_FORMAT_TIME, - Format::Buffers => ffi::GST_FORMAT_BUFFERS, - Format::Percent => ffi::GST_FORMAT_PERCENT, - Format::__Unknown(value) => value, + Self::Undefined => ffi::GST_FORMAT_UNDEFINED, + Self::Default => ffi::GST_FORMAT_DEFAULT, + Self::Bytes => ffi::GST_FORMAT_BYTES, + Self::Time => ffi::GST_FORMAT_TIME, + Self::Buffers => ffi::GST_FORMAT_BUFFERS, + Self::Percent => ffi::GST_FORMAT_PERCENT, + Self::__Unknown(value) => value, } } } @@ -1189,13 +1189,13 @@ impl FromGlib for Format { unsafe fn from_glib(value: ffi::GstFormat) -> Self { skip_assert_initialized!(); match value { - 0 => Format::Undefined, - 1 => Format::Default, - 2 => Format::Bytes, - 3 => Format::Time, - 4 => Format::Buffers, - 5 => Format::Percent, - value => Format::__Unknown(value), + 0 => Self::Undefined, + 1 => Self::Default, + 2 => Self::Bytes, + 3 => Self::Time, + 4 => Self::Buffers, + 5 => Self::Percent, + value => Self::__Unknown(value), } } } @@ -1221,7 +1221,7 @@ unsafe impl<'a> FromValue<'a> for Format { impl ToValue for Format { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1261,14 +1261,14 @@ impl IntoGlib for LibraryError { fn into_glib(self) -> ffi::GstLibraryError { match self { - LibraryError::Failed => ffi::GST_LIBRARY_ERROR_FAILED, - LibraryError::TooLazy => ffi::GST_LIBRARY_ERROR_TOO_LAZY, - LibraryError::Init => ffi::GST_LIBRARY_ERROR_INIT, - LibraryError::Shutdown => ffi::GST_LIBRARY_ERROR_SHUTDOWN, - LibraryError::Settings => ffi::GST_LIBRARY_ERROR_SETTINGS, - LibraryError::Encode => ffi::GST_LIBRARY_ERROR_ENCODE, - LibraryError::NumErrors => ffi::GST_LIBRARY_ERROR_NUM_ERRORS, - LibraryError::__Unknown(value) => value, + Self::Failed => ffi::GST_LIBRARY_ERROR_FAILED, + Self::TooLazy => ffi::GST_LIBRARY_ERROR_TOO_LAZY, + Self::Init => ffi::GST_LIBRARY_ERROR_INIT, + Self::Shutdown => ffi::GST_LIBRARY_ERROR_SHUTDOWN, + Self::Settings => ffi::GST_LIBRARY_ERROR_SETTINGS, + Self::Encode => ffi::GST_LIBRARY_ERROR_ENCODE, + Self::NumErrors => ffi::GST_LIBRARY_ERROR_NUM_ERRORS, + Self::__Unknown(value) => value, } } } @@ -1278,14 +1278,14 @@ impl FromGlib for LibraryError { unsafe fn from_glib(value: ffi::GstLibraryError) -> Self { skip_assert_initialized!(); match value { - 1 => LibraryError::Failed, - 2 => LibraryError::TooLazy, - 3 => LibraryError::Init, - 4 => LibraryError::Shutdown, - 5 => LibraryError::Settings, - 6 => LibraryError::Encode, - 7 => LibraryError::NumErrors, - value => LibraryError::__Unknown(value), + 1 => Self::Failed, + 2 => Self::TooLazy, + 3 => Self::Init, + 4 => Self::Shutdown, + 5 => Self::Settings, + 6 => Self::Encode, + 7 => Self::NumErrors, + value => Self::__Unknown(value), } } } @@ -1304,14 +1304,14 @@ impl ErrorDomain for LibraryError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(LibraryError::Failed), - 2 => Some(LibraryError::TooLazy), - 3 => Some(LibraryError::Init), - 4 => Some(LibraryError::Shutdown), - 5 => Some(LibraryError::Settings), - 6 => Some(LibraryError::Encode), - 7 => Some(LibraryError::NumErrors), - _ => Some(LibraryError::Failed), + 1 => Some(Self::Failed), + 2 => Some(Self::TooLazy), + 3 => Some(Self::Init), + 4 => Some(Self::Shutdown), + 5 => Some(Self::Settings), + 6 => Some(Self::Encode), + 7 => Some(Self::NumErrors), + _ => Some(Self::Failed), } } } @@ -1337,7 +1337,7 @@ unsafe impl<'a> FromValue<'a> for LibraryError { impl ToValue for LibraryError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1369,10 +1369,10 @@ impl IntoGlib for PadDirection { fn into_glib(self) -> ffi::GstPadDirection { match self { - PadDirection::Unknown => ffi::GST_PAD_UNKNOWN, - PadDirection::Src => ffi::GST_PAD_SRC, - PadDirection::Sink => ffi::GST_PAD_SINK, - PadDirection::__Unknown(value) => value, + Self::Unknown => ffi::GST_PAD_UNKNOWN, + Self::Src => ffi::GST_PAD_SRC, + Self::Sink => ffi::GST_PAD_SINK, + Self::__Unknown(value) => value, } } } @@ -1382,10 +1382,10 @@ impl FromGlib for PadDirection { unsafe fn from_glib(value: ffi::GstPadDirection) -> Self { skip_assert_initialized!(); match value { - 0 => PadDirection::Unknown, - 1 => PadDirection::Src, - 2 => PadDirection::Sink, - value => PadDirection::__Unknown(value), + 0 => Self::Unknown, + 1 => Self::Src, + 2 => Self::Sink, + value => Self::__Unknown(value), } } } @@ -1411,7 +1411,7 @@ unsafe impl<'a> FromValue<'a> for PadDirection { impl ToValue for PadDirection { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1452,14 +1452,14 @@ impl IntoGlib for PadLinkReturn { fn into_glib(self) -> ffi::GstPadLinkReturn { match self { - PadLinkReturn::Ok => ffi::GST_PAD_LINK_OK, - PadLinkReturn::WrongHierarchy => ffi::GST_PAD_LINK_WRONG_HIERARCHY, - PadLinkReturn::WasLinked => ffi::GST_PAD_LINK_WAS_LINKED, - PadLinkReturn::WrongDirection => ffi::GST_PAD_LINK_WRONG_DIRECTION, - PadLinkReturn::Noformat => ffi::GST_PAD_LINK_NOFORMAT, - PadLinkReturn::Nosched => ffi::GST_PAD_LINK_NOSCHED, - PadLinkReturn::Refused => ffi::GST_PAD_LINK_REFUSED, - PadLinkReturn::__Unknown(value) => value, + Self::Ok => ffi::GST_PAD_LINK_OK, + Self::WrongHierarchy => ffi::GST_PAD_LINK_WRONG_HIERARCHY, + Self::WasLinked => ffi::GST_PAD_LINK_WAS_LINKED, + Self::WrongDirection => ffi::GST_PAD_LINK_WRONG_DIRECTION, + Self::Noformat => ffi::GST_PAD_LINK_NOFORMAT, + Self::Nosched => ffi::GST_PAD_LINK_NOSCHED, + Self::Refused => ffi::GST_PAD_LINK_REFUSED, + Self::__Unknown(value) => value, } } } @@ -1469,14 +1469,14 @@ impl FromGlib for PadLinkReturn { unsafe fn from_glib(value: ffi::GstPadLinkReturn) -> Self { skip_assert_initialized!(); match value { - 0 => PadLinkReturn::Ok, - -1 => PadLinkReturn::WrongHierarchy, - -2 => PadLinkReturn::WasLinked, - -3 => PadLinkReturn::WrongDirection, - -4 => PadLinkReturn::Noformat, - -5 => PadLinkReturn::Nosched, - -6 => PadLinkReturn::Refused, - value => PadLinkReturn::__Unknown(value), + 0 => Self::Ok, + -1 => Self::WrongHierarchy, + -2 => Self::WasLinked, + -3 => Self::WrongDirection, + -4 => Self::Noformat, + -5 => Self::Nosched, + -6 => Self::Refused, + value => Self::__Unknown(value), } } } @@ -1502,7 +1502,7 @@ unsafe impl<'a> FromValue<'a> for PadLinkReturn { impl ToValue for PadLinkReturn { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1555,10 +1555,10 @@ impl IntoGlib for PadMode { fn into_glib(self) -> ffi::GstPadMode { match self { - PadMode::None => ffi::GST_PAD_MODE_NONE, - PadMode::Push => ffi::GST_PAD_MODE_PUSH, - PadMode::Pull => ffi::GST_PAD_MODE_PULL, - PadMode::__Unknown(value) => value, + Self::None => ffi::GST_PAD_MODE_NONE, + Self::Push => ffi::GST_PAD_MODE_PUSH, + Self::Pull => ffi::GST_PAD_MODE_PULL, + Self::__Unknown(value) => value, } } } @@ -1568,10 +1568,10 @@ impl FromGlib for PadMode { unsafe fn from_glib(value: ffi::GstPadMode) -> Self { skip_assert_initialized!(); match value { - 0 => PadMode::None, - 1 => PadMode::Push, - 2 => PadMode::Pull, - value => PadMode::__Unknown(value), + 0 => Self::None, + 1 => Self::Push, + 2 => Self::Pull, + value => Self::__Unknown(value), } } } @@ -1597,7 +1597,7 @@ unsafe impl<'a> FromValue<'a> for PadMode { impl ToValue for PadMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1629,10 +1629,10 @@ impl IntoGlib for PadPresence { fn into_glib(self) -> ffi::GstPadPresence { match self { - PadPresence::Always => ffi::GST_PAD_ALWAYS, - PadPresence::Sometimes => ffi::GST_PAD_SOMETIMES, - PadPresence::Request => ffi::GST_PAD_REQUEST, - PadPresence::__Unknown(value) => value, + Self::Always => ffi::GST_PAD_ALWAYS, + Self::Sometimes => ffi::GST_PAD_SOMETIMES, + Self::Request => ffi::GST_PAD_REQUEST, + Self::__Unknown(value) => value, } } } @@ -1642,10 +1642,10 @@ impl FromGlib for PadPresence { unsafe fn from_glib(value: ffi::GstPadPresence) -> Self { skip_assert_initialized!(); match value { - 0 => PadPresence::Always, - 1 => PadPresence::Sometimes, - 2 => PadPresence::Request, - value => PadPresence::__Unknown(value), + 0 => Self::Always, + 1 => Self::Sometimes, + 2 => Self::Request, + value => Self::__Unknown(value), } } } @@ -1671,7 +1671,7 @@ unsafe impl<'a> FromValue<'a> for PadPresence { impl ToValue for PadPresence { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1707,12 +1707,12 @@ impl IntoGlib for PadProbeReturn { fn into_glib(self) -> ffi::GstPadProbeReturn { match self { - PadProbeReturn::Drop => ffi::GST_PAD_PROBE_DROP, - PadProbeReturn::Ok => ffi::GST_PAD_PROBE_OK, - PadProbeReturn::Remove => ffi::GST_PAD_PROBE_REMOVE, - PadProbeReturn::Pass => ffi::GST_PAD_PROBE_PASS, - PadProbeReturn::Handled => ffi::GST_PAD_PROBE_HANDLED, - PadProbeReturn::__Unknown(value) => value, + Self::Drop => ffi::GST_PAD_PROBE_DROP, + Self::Ok => ffi::GST_PAD_PROBE_OK, + Self::Remove => ffi::GST_PAD_PROBE_REMOVE, + Self::Pass => ffi::GST_PAD_PROBE_PASS, + Self::Handled => ffi::GST_PAD_PROBE_HANDLED, + Self::__Unknown(value) => value, } } } @@ -1722,12 +1722,12 @@ impl FromGlib for PadProbeReturn { unsafe fn from_glib(value: ffi::GstPadProbeReturn) -> Self { skip_assert_initialized!(); match value { - 0 => PadProbeReturn::Drop, - 1 => PadProbeReturn::Ok, - 2 => PadProbeReturn::Remove, - 3 => PadProbeReturn::Pass, - 4 => PadProbeReturn::Handled, - value => PadProbeReturn::__Unknown(value), + 0 => Self::Drop, + 1 => Self::Ok, + 2 => Self::Remove, + 3 => Self::Pass, + 4 => Self::Handled, + value => Self::__Unknown(value), } } } @@ -1753,7 +1753,7 @@ unsafe impl<'a> FromValue<'a> for PadProbeReturn { impl ToValue for PadProbeReturn { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1795,15 +1795,15 @@ impl IntoGlib for ParseError { fn into_glib(self) -> ffi::GstParseError { match self { - ParseError::Syntax => ffi::GST_PARSE_ERROR_SYNTAX, - ParseError::NoSuchElement => ffi::GST_PARSE_ERROR_NO_SUCH_ELEMENT, - ParseError::NoSuchProperty => ffi::GST_PARSE_ERROR_NO_SUCH_PROPERTY, - ParseError::Link => ffi::GST_PARSE_ERROR_LINK, - ParseError::CouldNotSetProperty => ffi::GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY, - ParseError::EmptyBin => ffi::GST_PARSE_ERROR_EMPTY_BIN, - ParseError::Empty => ffi::GST_PARSE_ERROR_EMPTY, - ParseError::DelayedLink => ffi::GST_PARSE_ERROR_DELAYED_LINK, - ParseError::__Unknown(value) => value, + Self::Syntax => ffi::GST_PARSE_ERROR_SYNTAX, + Self::NoSuchElement => ffi::GST_PARSE_ERROR_NO_SUCH_ELEMENT, + Self::NoSuchProperty => ffi::GST_PARSE_ERROR_NO_SUCH_PROPERTY, + Self::Link => ffi::GST_PARSE_ERROR_LINK, + Self::CouldNotSetProperty => ffi::GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY, + Self::EmptyBin => ffi::GST_PARSE_ERROR_EMPTY_BIN, + Self::Empty => ffi::GST_PARSE_ERROR_EMPTY, + Self::DelayedLink => ffi::GST_PARSE_ERROR_DELAYED_LINK, + Self::__Unknown(value) => value, } } } @@ -1813,15 +1813,15 @@ impl FromGlib for ParseError { unsafe fn from_glib(value: ffi::GstParseError) -> Self { skip_assert_initialized!(); match value { - 0 => ParseError::Syntax, - 1 => ParseError::NoSuchElement, - 2 => ParseError::NoSuchProperty, - 3 => ParseError::Link, - 4 => ParseError::CouldNotSetProperty, - 5 => ParseError::EmptyBin, - 6 => ParseError::Empty, - 7 => ParseError::DelayedLink, - value => ParseError::__Unknown(value), + 0 => Self::Syntax, + 1 => Self::NoSuchElement, + 2 => Self::NoSuchProperty, + 3 => Self::Link, + 4 => Self::CouldNotSetProperty, + 5 => Self::EmptyBin, + 6 => Self::Empty, + 7 => Self::DelayedLink, + value => Self::__Unknown(value), } } } @@ -1840,15 +1840,15 @@ impl ErrorDomain for ParseError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(ParseError::Syntax), - 1 => Some(ParseError::NoSuchElement), - 2 => Some(ParseError::NoSuchProperty), - 3 => Some(ParseError::Link), - 4 => Some(ParseError::CouldNotSetProperty), - 5 => Some(ParseError::EmptyBin), - 6 => Some(ParseError::Empty), - 7 => Some(ParseError::DelayedLink), - value => Some(ParseError::__Unknown(value)), + 0 => Some(Self::Syntax), + 1 => Some(Self::NoSuchElement), + 2 => Some(Self::NoSuchProperty), + 3 => Some(Self::Link), + 4 => Some(Self::CouldNotSetProperty), + 5 => Some(Self::EmptyBin), + 6 => Some(Self::Empty), + 7 => Some(Self::DelayedLink), + value => Some(Self::__Unknown(value)), } } } @@ -1874,7 +1874,7 @@ unsafe impl<'a> FromValue<'a> for ParseError { impl ToValue for ParseError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -1906,10 +1906,10 @@ impl IntoGlib for PluginError { fn into_glib(self) -> ffi::GstPluginError { match self { - PluginError::Module => ffi::GST_PLUGIN_ERROR_MODULE, - PluginError::Dependencies => ffi::GST_PLUGIN_ERROR_DEPENDENCIES, - PluginError::NameMismatch => ffi::GST_PLUGIN_ERROR_NAME_MISMATCH, - PluginError::__Unknown(value) => value, + Self::Module => ffi::GST_PLUGIN_ERROR_MODULE, + Self::Dependencies => ffi::GST_PLUGIN_ERROR_DEPENDENCIES, + Self::NameMismatch => ffi::GST_PLUGIN_ERROR_NAME_MISMATCH, + Self::__Unknown(value) => value, } } } @@ -1919,10 +1919,10 @@ impl FromGlib for PluginError { unsafe fn from_glib(value: ffi::GstPluginError) -> Self { skip_assert_initialized!(); match value { - 0 => PluginError::Module, - 1 => PluginError::Dependencies, - 2 => PluginError::NameMismatch, - value => PluginError::__Unknown(value), + 0 => Self::Module, + 1 => Self::Dependencies, + 2 => Self::NameMismatch, + value => Self::__Unknown(value), } } } @@ -1941,10 +1941,10 @@ impl ErrorDomain for PluginError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(PluginError::Module), - 1 => Some(PluginError::Dependencies), - 2 => Some(PluginError::NameMismatch), - value => Some(PluginError::__Unknown(value)), + 0 => Some(Self::Module), + 1 => Some(Self::Dependencies), + 2 => Some(Self::NameMismatch), + value => Some(Self::__Unknown(value)), } } } @@ -1970,7 +1970,7 @@ unsafe impl<'a> FromValue<'a> for PluginError { impl ToValue for PluginError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2006,12 +2006,12 @@ impl IntoGlib for ProgressType { fn into_glib(self) -> ffi::GstProgressType { match self { - ProgressType::Start => ffi::GST_PROGRESS_TYPE_START, - ProgressType::Continue => ffi::GST_PROGRESS_TYPE_CONTINUE, - ProgressType::Complete => ffi::GST_PROGRESS_TYPE_COMPLETE, - ProgressType::Canceled => ffi::GST_PROGRESS_TYPE_CANCELED, - ProgressType::Error => ffi::GST_PROGRESS_TYPE_ERROR, - ProgressType::__Unknown(value) => value, + Self::Start => ffi::GST_PROGRESS_TYPE_START, + Self::Continue => ffi::GST_PROGRESS_TYPE_CONTINUE, + Self::Complete => ffi::GST_PROGRESS_TYPE_COMPLETE, + Self::Canceled => ffi::GST_PROGRESS_TYPE_CANCELED, + Self::Error => ffi::GST_PROGRESS_TYPE_ERROR, + Self::__Unknown(value) => value, } } } @@ -2021,12 +2021,12 @@ impl FromGlib for ProgressType { unsafe fn from_glib(value: ffi::GstProgressType) -> Self { skip_assert_initialized!(); match value { - 0 => ProgressType::Start, - 1 => ProgressType::Continue, - 2 => ProgressType::Complete, - 3 => ProgressType::Canceled, - 4 => ProgressType::Error, - value => ProgressType::__Unknown(value), + 0 => Self::Start, + 1 => Self::Continue, + 2 => Self::Complete, + 3 => Self::Canceled, + 4 => Self::Error, + value => Self::__Unknown(value), } } } @@ -2052,7 +2052,7 @@ unsafe impl<'a> FromValue<'a> for ProgressType { impl ToValue for ProgressType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2090,11 +2090,11 @@ impl IntoGlib for PromiseResult { fn into_glib(self) -> ffi::GstPromiseResult { match self { - PromiseResult::Pending => ffi::GST_PROMISE_RESULT_PENDING, - PromiseResult::Interrupted => ffi::GST_PROMISE_RESULT_INTERRUPTED, - PromiseResult::Replied => ffi::GST_PROMISE_RESULT_REPLIED, - PromiseResult::Expired => ffi::GST_PROMISE_RESULT_EXPIRED, - PromiseResult::__Unknown(value) => value, + Self::Pending => ffi::GST_PROMISE_RESULT_PENDING, + Self::Interrupted => ffi::GST_PROMISE_RESULT_INTERRUPTED, + Self::Replied => ffi::GST_PROMISE_RESULT_REPLIED, + Self::Expired => ffi::GST_PROMISE_RESULT_EXPIRED, + Self::__Unknown(value) => value, } } } @@ -2106,11 +2106,11 @@ impl FromGlib for PromiseResult { unsafe fn from_glib(value: ffi::GstPromiseResult) -> Self { skip_assert_initialized!(); match value { - 0 => PromiseResult::Pending, - 1 => PromiseResult::Interrupted, - 2 => PromiseResult::Replied, - 3 => PromiseResult::Expired, - value => PromiseResult::__Unknown(value), + 0 => Self::Pending, + 1 => Self::Interrupted, + 2 => Self::Replied, + 3 => Self::Expired, + value => Self::__Unknown(value), } } } @@ -2144,7 +2144,7 @@ unsafe impl<'a> FromValue<'a> for PromiseResult { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] impl ToValue for PromiseResult { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2176,10 +2176,10 @@ impl IntoGlib for QOSType { fn into_glib(self) -> ffi::GstQOSType { match self { - QOSType::Overflow => ffi::GST_QOS_TYPE_OVERFLOW, - QOSType::Underflow => ffi::GST_QOS_TYPE_UNDERFLOW, - QOSType::Throttle => ffi::GST_QOS_TYPE_THROTTLE, - QOSType::__Unknown(value) => value, + Self::Overflow => ffi::GST_QOS_TYPE_OVERFLOW, + Self::Underflow => ffi::GST_QOS_TYPE_UNDERFLOW, + Self::Throttle => ffi::GST_QOS_TYPE_THROTTLE, + Self::__Unknown(value) => value, } } } @@ -2189,10 +2189,10 @@ impl FromGlib for QOSType { unsafe fn from_glib(value: ffi::GstQOSType) -> Self { skip_assert_initialized!(); match value { - 0 => QOSType::Overflow, - 1 => QOSType::Underflow, - 2 => QOSType::Throttle, - value => QOSType::__Unknown(value), + 0 => Self::Overflow, + 1 => Self::Underflow, + 2 => Self::Throttle, + value => Self::__Unknown(value), } } } @@ -2218,7 +2218,7 @@ unsafe impl<'a> FromValue<'a> for QOSType { impl ToValue for QOSType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2252,11 +2252,11 @@ impl IntoGlib for Rank { fn into_glib(self) -> ffi::GstRank { match self { - Rank::None => ffi::GST_RANK_NONE, - Rank::Marginal => ffi::GST_RANK_MARGINAL, - Rank::Secondary => ffi::GST_RANK_SECONDARY, - Rank::Primary => ffi::GST_RANK_PRIMARY, - Rank::__Unknown(value) => value, + Self::None => ffi::GST_RANK_NONE, + Self::Marginal => ffi::GST_RANK_MARGINAL, + Self::Secondary => ffi::GST_RANK_SECONDARY, + Self::Primary => ffi::GST_RANK_PRIMARY, + Self::__Unknown(value) => value, } } } @@ -2266,11 +2266,11 @@ impl FromGlib for Rank { unsafe fn from_glib(value: ffi::GstRank) -> Self { skip_assert_initialized!(); match value { - 0 => Rank::None, - 64 => Rank::Marginal, - 128 => Rank::Secondary, - 256 => Rank::Primary, - value => Rank::__Unknown(value), + 0 => Self::None, + 64 => Self::Marginal, + 128 => Self::Secondary, + 256 => Self::Primary, + value => Self::__Unknown(value), } } } @@ -2296,7 +2296,7 @@ unsafe impl<'a> FromValue<'a> for Rank { impl ToValue for Rank { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2354,23 +2354,23 @@ impl IntoGlib for ResourceError { fn into_glib(self) -> ffi::GstResourceError { match self { - ResourceError::Failed => ffi::GST_RESOURCE_ERROR_FAILED, - ResourceError::TooLazy => ffi::GST_RESOURCE_ERROR_TOO_LAZY, - ResourceError::NotFound => ffi::GST_RESOURCE_ERROR_NOT_FOUND, - ResourceError::Busy => ffi::GST_RESOURCE_ERROR_BUSY, - ResourceError::OpenRead => ffi::GST_RESOURCE_ERROR_OPEN_READ, - ResourceError::OpenWrite => ffi::GST_RESOURCE_ERROR_OPEN_WRITE, - ResourceError::OpenReadWrite => ffi::GST_RESOURCE_ERROR_OPEN_READ_WRITE, - ResourceError::Close => ffi::GST_RESOURCE_ERROR_CLOSE, - ResourceError::Read => ffi::GST_RESOURCE_ERROR_READ, - ResourceError::Write => ffi::GST_RESOURCE_ERROR_WRITE, - ResourceError::Seek => ffi::GST_RESOURCE_ERROR_SEEK, - ResourceError::Sync => ffi::GST_RESOURCE_ERROR_SYNC, - ResourceError::Settings => ffi::GST_RESOURCE_ERROR_SETTINGS, - ResourceError::NoSpaceLeft => ffi::GST_RESOURCE_ERROR_NO_SPACE_LEFT, - ResourceError::NotAuthorized => ffi::GST_RESOURCE_ERROR_NOT_AUTHORIZED, - ResourceError::NumErrors => ffi::GST_RESOURCE_ERROR_NUM_ERRORS, - ResourceError::__Unknown(value) => value, + Self::Failed => ffi::GST_RESOURCE_ERROR_FAILED, + Self::TooLazy => ffi::GST_RESOURCE_ERROR_TOO_LAZY, + Self::NotFound => ffi::GST_RESOURCE_ERROR_NOT_FOUND, + Self::Busy => ffi::GST_RESOURCE_ERROR_BUSY, + Self::OpenRead => ffi::GST_RESOURCE_ERROR_OPEN_READ, + Self::OpenWrite => ffi::GST_RESOURCE_ERROR_OPEN_WRITE, + Self::OpenReadWrite => ffi::GST_RESOURCE_ERROR_OPEN_READ_WRITE, + Self::Close => ffi::GST_RESOURCE_ERROR_CLOSE, + Self::Read => ffi::GST_RESOURCE_ERROR_READ, + Self::Write => ffi::GST_RESOURCE_ERROR_WRITE, + Self::Seek => ffi::GST_RESOURCE_ERROR_SEEK, + Self::Sync => ffi::GST_RESOURCE_ERROR_SYNC, + Self::Settings => ffi::GST_RESOURCE_ERROR_SETTINGS, + Self::NoSpaceLeft => ffi::GST_RESOURCE_ERROR_NO_SPACE_LEFT, + Self::NotAuthorized => ffi::GST_RESOURCE_ERROR_NOT_AUTHORIZED, + Self::NumErrors => ffi::GST_RESOURCE_ERROR_NUM_ERRORS, + Self::__Unknown(value) => value, } } } @@ -2380,23 +2380,23 @@ impl FromGlib for ResourceError { unsafe fn from_glib(value: ffi::GstResourceError) -> Self { skip_assert_initialized!(); match value { - 1 => ResourceError::Failed, - 2 => ResourceError::TooLazy, - 3 => ResourceError::NotFound, - 4 => ResourceError::Busy, - 5 => ResourceError::OpenRead, - 6 => ResourceError::OpenWrite, - 7 => ResourceError::OpenReadWrite, - 8 => ResourceError::Close, - 9 => ResourceError::Read, - 10 => ResourceError::Write, - 11 => ResourceError::Seek, - 12 => ResourceError::Sync, - 13 => ResourceError::Settings, - 14 => ResourceError::NoSpaceLeft, - 15 => ResourceError::NotAuthorized, - 16 => ResourceError::NumErrors, - value => ResourceError::__Unknown(value), + 1 => Self::Failed, + 2 => Self::TooLazy, + 3 => Self::NotFound, + 4 => Self::Busy, + 5 => Self::OpenRead, + 6 => Self::OpenWrite, + 7 => Self::OpenReadWrite, + 8 => Self::Close, + 9 => Self::Read, + 10 => Self::Write, + 11 => Self::Seek, + 12 => Self::Sync, + 13 => Self::Settings, + 14 => Self::NoSpaceLeft, + 15 => Self::NotAuthorized, + 16 => Self::NumErrors, + value => Self::__Unknown(value), } } } @@ -2415,23 +2415,23 @@ impl ErrorDomain for ResourceError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(ResourceError::Failed), - 2 => Some(ResourceError::TooLazy), - 3 => Some(ResourceError::NotFound), - 4 => Some(ResourceError::Busy), - 5 => Some(ResourceError::OpenRead), - 6 => Some(ResourceError::OpenWrite), - 7 => Some(ResourceError::OpenReadWrite), - 8 => Some(ResourceError::Close), - 9 => Some(ResourceError::Read), - 10 => Some(ResourceError::Write), - 11 => Some(ResourceError::Seek), - 12 => Some(ResourceError::Sync), - 13 => Some(ResourceError::Settings), - 14 => Some(ResourceError::NoSpaceLeft), - 15 => Some(ResourceError::NotAuthorized), - 16 => Some(ResourceError::NumErrors), - _ => Some(ResourceError::Failed), + 1 => Some(Self::Failed), + 2 => Some(Self::TooLazy), + 3 => Some(Self::NotFound), + 4 => Some(Self::Busy), + 5 => Some(Self::OpenRead), + 6 => Some(Self::OpenWrite), + 7 => Some(Self::OpenReadWrite), + 8 => Some(Self::Close), + 9 => Some(Self::Read), + 10 => Some(Self::Write), + 11 => Some(Self::Seek), + 12 => Some(Self::Sync), + 13 => Some(Self::Settings), + 14 => Some(Self::NoSpaceLeft), + 15 => Some(Self::NotAuthorized), + 16 => Some(Self::NumErrors), + _ => Some(Self::Failed), } } } @@ -2457,7 +2457,7 @@ unsafe impl<'a> FromValue<'a> for ResourceError { impl ToValue for ResourceError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2489,10 +2489,10 @@ impl IntoGlib for SeekType { fn into_glib(self) -> ffi::GstSeekType { match self { - SeekType::None => ffi::GST_SEEK_TYPE_NONE, - SeekType::Set => ffi::GST_SEEK_TYPE_SET, - SeekType::End => ffi::GST_SEEK_TYPE_END, - SeekType::__Unknown(value) => value, + Self::None => ffi::GST_SEEK_TYPE_NONE, + Self::Set => ffi::GST_SEEK_TYPE_SET, + Self::End => ffi::GST_SEEK_TYPE_END, + Self::__Unknown(value) => value, } } } @@ -2502,10 +2502,10 @@ impl FromGlib for SeekType { unsafe fn from_glib(value: ffi::GstSeekType) -> Self { skip_assert_initialized!(); match value { - 0 => SeekType::None, - 1 => SeekType::Set, - 2 => SeekType::End, - value => SeekType::__Unknown(value), + 0 => Self::None, + 1 => Self::Set, + 2 => Self::End, + value => Self::__Unknown(value), } } } @@ -2531,7 +2531,7 @@ unsafe impl<'a> FromValue<'a> for SeekType { impl ToValue for SeekType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2567,12 +2567,12 @@ impl IntoGlib for State { fn into_glib(self) -> ffi::GstState { match self { - State::VoidPending => ffi::GST_STATE_VOID_PENDING, - State::Null => ffi::GST_STATE_NULL, - State::Ready => ffi::GST_STATE_READY, - State::Paused => ffi::GST_STATE_PAUSED, - State::Playing => ffi::GST_STATE_PLAYING, - State::__Unknown(value) => value, + Self::VoidPending => ffi::GST_STATE_VOID_PENDING, + Self::Null => ffi::GST_STATE_NULL, + Self::Ready => ffi::GST_STATE_READY, + Self::Paused => ffi::GST_STATE_PAUSED, + Self::Playing => ffi::GST_STATE_PLAYING, + Self::__Unknown(value) => value, } } } @@ -2582,12 +2582,12 @@ impl FromGlib for State { unsafe fn from_glib(value: ffi::GstState) -> Self { skip_assert_initialized!(); match value { - 0 => State::VoidPending, - 1 => State::Null, - 2 => State::Ready, - 3 => State::Paused, - 4 => State::Playing, - value => State::__Unknown(value), + 0 => Self::VoidPending, + 1 => Self::Null, + 2 => Self::Ready, + 3 => Self::Paused, + 4 => Self::Playing, + value => Self::__Unknown(value), } } } @@ -2613,7 +2613,7 @@ unsafe impl<'a> FromValue<'a> for State { impl ToValue for State { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2666,17 +2666,17 @@ impl IntoGlib for StateChange { fn into_glib(self) -> ffi::GstStateChange { match self { - StateChange::NullToReady => ffi::GST_STATE_CHANGE_NULL_TO_READY, - StateChange::ReadyToPaused => ffi::GST_STATE_CHANGE_READY_TO_PAUSED, - StateChange::PausedToPlaying => ffi::GST_STATE_CHANGE_PAUSED_TO_PLAYING, - StateChange::PlayingToPaused => ffi::GST_STATE_CHANGE_PLAYING_TO_PAUSED, - StateChange::PausedToReady => ffi::GST_STATE_CHANGE_PAUSED_TO_READY, - StateChange::ReadyToNull => ffi::GST_STATE_CHANGE_READY_TO_NULL, - StateChange::NullToNull => ffi::GST_STATE_CHANGE_NULL_TO_NULL, - StateChange::ReadyToReady => ffi::GST_STATE_CHANGE_READY_TO_READY, - StateChange::PausedToPaused => ffi::GST_STATE_CHANGE_PAUSED_TO_PAUSED, - StateChange::PlayingToPlaying => ffi::GST_STATE_CHANGE_PLAYING_TO_PLAYING, - StateChange::__Unknown(value) => value, + Self::NullToReady => ffi::GST_STATE_CHANGE_NULL_TO_READY, + Self::ReadyToPaused => ffi::GST_STATE_CHANGE_READY_TO_PAUSED, + Self::PausedToPlaying => ffi::GST_STATE_CHANGE_PAUSED_TO_PLAYING, + Self::PlayingToPaused => ffi::GST_STATE_CHANGE_PLAYING_TO_PAUSED, + Self::PausedToReady => ffi::GST_STATE_CHANGE_PAUSED_TO_READY, + Self::ReadyToNull => ffi::GST_STATE_CHANGE_READY_TO_NULL, + Self::NullToNull => ffi::GST_STATE_CHANGE_NULL_TO_NULL, + Self::ReadyToReady => ffi::GST_STATE_CHANGE_READY_TO_READY, + Self::PausedToPaused => ffi::GST_STATE_CHANGE_PAUSED_TO_PAUSED, + Self::PlayingToPlaying => ffi::GST_STATE_CHANGE_PLAYING_TO_PLAYING, + Self::__Unknown(value) => value, } } } @@ -2686,17 +2686,17 @@ impl FromGlib for StateChange { unsafe fn from_glib(value: ffi::GstStateChange) -> Self { skip_assert_initialized!(); match value { - 10 => StateChange::NullToReady, - 19 => StateChange::ReadyToPaused, - 28 => StateChange::PausedToPlaying, - 35 => StateChange::PlayingToPaused, - 26 => StateChange::PausedToReady, - 17 => StateChange::ReadyToNull, - 9 => StateChange::NullToNull, - 18 => StateChange::ReadyToReady, - 27 => StateChange::PausedToPaused, - 36 => StateChange::PlayingToPlaying, - value => StateChange::__Unknown(value), + 10 => Self::NullToReady, + 19 => Self::ReadyToPaused, + 28 => Self::PausedToPlaying, + 35 => Self::PlayingToPaused, + 26 => Self::PausedToReady, + 17 => Self::ReadyToNull, + 9 => Self::NullToNull, + 18 => Self::ReadyToReady, + 27 => Self::PausedToPaused, + 36 => Self::PlayingToPlaying, + value => Self::__Unknown(value), } } } @@ -2722,7 +2722,7 @@ unsafe impl<'a> FromValue<'a> for StateChange { impl ToValue for StateChange { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2757,11 +2757,11 @@ impl IntoGlib for StateChangeReturn { fn into_glib(self) -> ffi::GstStateChangeReturn { match self { - StateChangeReturn::Failure => ffi::GST_STATE_CHANGE_FAILURE, - StateChangeReturn::Success => ffi::GST_STATE_CHANGE_SUCCESS, - StateChangeReturn::Async => ffi::GST_STATE_CHANGE_ASYNC, - StateChangeReturn::NoPreroll => ffi::GST_STATE_CHANGE_NO_PREROLL, - StateChangeReturn::__Unknown(value) => value, + Self::Failure => ffi::GST_STATE_CHANGE_FAILURE, + Self::Success => ffi::GST_STATE_CHANGE_SUCCESS, + Self::Async => ffi::GST_STATE_CHANGE_ASYNC, + Self::NoPreroll => ffi::GST_STATE_CHANGE_NO_PREROLL, + Self::__Unknown(value) => value, } } } @@ -2771,11 +2771,11 @@ impl FromGlib for StateChangeReturn { unsafe fn from_glib(value: ffi::GstStateChangeReturn) -> Self { skip_assert_initialized!(); match value { - 0 => StateChangeReturn::Failure, - 1 => StateChangeReturn::Success, - 2 => StateChangeReturn::Async, - 3 => StateChangeReturn::NoPreroll, - value => StateChangeReturn::__Unknown(value), + 0 => Self::Failure, + 1 => Self::Success, + 2 => Self::Async, + 3 => Self::NoPreroll, + value => Self::__Unknown(value), } } } @@ -2801,7 +2801,7 @@ unsafe impl<'a> FromValue<'a> for StateChangeReturn { impl ToValue for StateChangeReturn { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2855,21 +2855,21 @@ impl IntoGlib for StreamError { fn into_glib(self) -> ffi::GstStreamError { match self { - StreamError::Failed => ffi::GST_STREAM_ERROR_FAILED, - StreamError::TooLazy => ffi::GST_STREAM_ERROR_TOO_LAZY, - StreamError::NotImplemented => ffi::GST_STREAM_ERROR_NOT_IMPLEMENTED, - StreamError::TypeNotFound => ffi::GST_STREAM_ERROR_TYPE_NOT_FOUND, - StreamError::WrongType => ffi::GST_STREAM_ERROR_WRONG_TYPE, - StreamError::CodecNotFound => ffi::GST_STREAM_ERROR_CODEC_NOT_FOUND, - StreamError::Decode => ffi::GST_STREAM_ERROR_DECODE, - StreamError::Encode => ffi::GST_STREAM_ERROR_ENCODE, - StreamError::Demux => ffi::GST_STREAM_ERROR_DEMUX, - StreamError::Mux => ffi::GST_STREAM_ERROR_MUX, - StreamError::Format => ffi::GST_STREAM_ERROR_FORMAT, - StreamError::Decrypt => ffi::GST_STREAM_ERROR_DECRYPT, - StreamError::DecryptNokey => ffi::GST_STREAM_ERROR_DECRYPT_NOKEY, - StreamError::NumErrors => ffi::GST_STREAM_ERROR_NUM_ERRORS, - StreamError::__Unknown(value) => value, + Self::Failed => ffi::GST_STREAM_ERROR_FAILED, + Self::TooLazy => ffi::GST_STREAM_ERROR_TOO_LAZY, + Self::NotImplemented => ffi::GST_STREAM_ERROR_NOT_IMPLEMENTED, + Self::TypeNotFound => ffi::GST_STREAM_ERROR_TYPE_NOT_FOUND, + Self::WrongType => ffi::GST_STREAM_ERROR_WRONG_TYPE, + Self::CodecNotFound => ffi::GST_STREAM_ERROR_CODEC_NOT_FOUND, + Self::Decode => ffi::GST_STREAM_ERROR_DECODE, + Self::Encode => ffi::GST_STREAM_ERROR_ENCODE, + Self::Demux => ffi::GST_STREAM_ERROR_DEMUX, + Self::Mux => ffi::GST_STREAM_ERROR_MUX, + Self::Format => ffi::GST_STREAM_ERROR_FORMAT, + Self::Decrypt => ffi::GST_STREAM_ERROR_DECRYPT, + Self::DecryptNokey => ffi::GST_STREAM_ERROR_DECRYPT_NOKEY, + Self::NumErrors => ffi::GST_STREAM_ERROR_NUM_ERRORS, + Self::__Unknown(value) => value, } } } @@ -2879,21 +2879,21 @@ impl FromGlib for StreamError { unsafe fn from_glib(value: ffi::GstStreamError) -> Self { skip_assert_initialized!(); match value { - 1 => StreamError::Failed, - 2 => StreamError::TooLazy, - 3 => StreamError::NotImplemented, - 4 => StreamError::TypeNotFound, - 5 => StreamError::WrongType, - 6 => StreamError::CodecNotFound, - 7 => StreamError::Decode, - 8 => StreamError::Encode, - 9 => StreamError::Demux, - 10 => StreamError::Mux, - 11 => StreamError::Format, - 12 => StreamError::Decrypt, - 13 => StreamError::DecryptNokey, - 14 => StreamError::NumErrors, - value => StreamError::__Unknown(value), + 1 => Self::Failed, + 2 => Self::TooLazy, + 3 => Self::NotImplemented, + 4 => Self::TypeNotFound, + 5 => Self::WrongType, + 6 => Self::CodecNotFound, + 7 => Self::Decode, + 8 => Self::Encode, + 9 => Self::Demux, + 10 => Self::Mux, + 11 => Self::Format, + 12 => Self::Decrypt, + 13 => Self::DecryptNokey, + 14 => Self::NumErrors, + value => Self::__Unknown(value), } } } @@ -2912,21 +2912,21 @@ impl ErrorDomain for StreamError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 1 => Some(StreamError::Failed), - 2 => Some(StreamError::TooLazy), - 3 => Some(StreamError::NotImplemented), - 4 => Some(StreamError::TypeNotFound), - 5 => Some(StreamError::WrongType), - 6 => Some(StreamError::CodecNotFound), - 7 => Some(StreamError::Decode), - 8 => Some(StreamError::Encode), - 9 => Some(StreamError::Demux), - 10 => Some(StreamError::Mux), - 11 => Some(StreamError::Format), - 12 => Some(StreamError::Decrypt), - 13 => Some(StreamError::DecryptNokey), - 14 => Some(StreamError::NumErrors), - _ => Some(StreamError::Failed), + 1 => Some(Self::Failed), + 2 => Some(Self::TooLazy), + 3 => Some(Self::NotImplemented), + 4 => Some(Self::TypeNotFound), + 5 => Some(Self::WrongType), + 6 => Some(Self::CodecNotFound), + 7 => Some(Self::Decode), + 8 => Some(Self::Encode), + 9 => Some(Self::Demux), + 10 => Some(Self::Mux), + 11 => Some(Self::Format), + 12 => Some(Self::Decrypt), + 13 => Some(Self::DecryptNokey), + 14 => Some(Self::NumErrors), + _ => Some(Self::Failed), } } } @@ -2952,7 +2952,7 @@ unsafe impl<'a> FromValue<'a> for StreamError { impl ToValue for StreamError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -2992,14 +2992,14 @@ impl IntoGlib for StreamStatusType { fn into_glib(self) -> ffi::GstStreamStatusType { match self { - StreamStatusType::Create => ffi::GST_STREAM_STATUS_TYPE_CREATE, - StreamStatusType::Enter => ffi::GST_STREAM_STATUS_TYPE_ENTER, - StreamStatusType::Leave => ffi::GST_STREAM_STATUS_TYPE_LEAVE, - StreamStatusType::Destroy => ffi::GST_STREAM_STATUS_TYPE_DESTROY, - StreamStatusType::Start => ffi::GST_STREAM_STATUS_TYPE_START, - StreamStatusType::Pause => ffi::GST_STREAM_STATUS_TYPE_PAUSE, - StreamStatusType::Stop => ffi::GST_STREAM_STATUS_TYPE_STOP, - StreamStatusType::__Unknown(value) => value, + Self::Create => ffi::GST_STREAM_STATUS_TYPE_CREATE, + Self::Enter => ffi::GST_STREAM_STATUS_TYPE_ENTER, + Self::Leave => ffi::GST_STREAM_STATUS_TYPE_LEAVE, + Self::Destroy => ffi::GST_STREAM_STATUS_TYPE_DESTROY, + Self::Start => ffi::GST_STREAM_STATUS_TYPE_START, + Self::Pause => ffi::GST_STREAM_STATUS_TYPE_PAUSE, + Self::Stop => ffi::GST_STREAM_STATUS_TYPE_STOP, + Self::__Unknown(value) => value, } } } @@ -3009,14 +3009,14 @@ impl FromGlib for StreamStatusType { unsafe fn from_glib(value: ffi::GstStreamStatusType) -> Self { skip_assert_initialized!(); match value { - 0 => StreamStatusType::Create, - 1 => StreamStatusType::Enter, - 2 => StreamStatusType::Leave, - 3 => StreamStatusType::Destroy, - 8 => StreamStatusType::Start, - 9 => StreamStatusType::Pause, - 10 => StreamStatusType::Stop, - value => StreamStatusType::__Unknown(value), + 0 => Self::Create, + 1 => Self::Enter, + 2 => Self::Leave, + 3 => Self::Destroy, + 8 => Self::Start, + 9 => Self::Pause, + 10 => Self::Stop, + value => Self::__Unknown(value), } } } @@ -3042,7 +3042,7 @@ unsafe impl<'a> FromValue<'a> for StreamStatusType { impl ToValue for StreamStatusType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3072,9 +3072,9 @@ impl IntoGlib for StructureChangeType { fn into_glib(self) -> ffi::GstStructureChangeType { match self { - StructureChangeType::Link => ffi::GST_STRUCTURE_CHANGE_TYPE_PAD_LINK, - StructureChangeType::Unlink => ffi::GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK, - StructureChangeType::__Unknown(value) => value, + Self::Link => ffi::GST_STRUCTURE_CHANGE_TYPE_PAD_LINK, + Self::Unlink => ffi::GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK, + Self::__Unknown(value) => value, } } } @@ -3084,9 +3084,9 @@ impl FromGlib for StructureChangeType { unsafe fn from_glib(value: ffi::GstStructureChangeType) -> Self { skip_assert_initialized!(); match value { - 0 => StructureChangeType::Link, - 1 => StructureChangeType::Unlink, - value => StructureChangeType::__Unknown(value), + 0 => Self::Link, + 1 => Self::Unlink, + value => Self::__Unknown(value), } } } @@ -3112,7 +3112,7 @@ unsafe impl<'a> FromValue<'a> for StructureChangeType { impl ToValue for StructureChangeType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3148,12 +3148,12 @@ impl IntoGlib for TagFlag { fn into_glib(self) -> ffi::GstTagFlag { match self { - TagFlag::Undefined => ffi::GST_TAG_FLAG_UNDEFINED, - TagFlag::Meta => ffi::GST_TAG_FLAG_META, - TagFlag::Encoded => ffi::GST_TAG_FLAG_ENCODED, - TagFlag::Decoded => ffi::GST_TAG_FLAG_DECODED, - TagFlag::Count => ffi::GST_TAG_FLAG_COUNT, - TagFlag::__Unknown(value) => value, + Self::Undefined => ffi::GST_TAG_FLAG_UNDEFINED, + Self::Meta => ffi::GST_TAG_FLAG_META, + Self::Encoded => ffi::GST_TAG_FLAG_ENCODED, + Self::Decoded => ffi::GST_TAG_FLAG_DECODED, + Self::Count => ffi::GST_TAG_FLAG_COUNT, + Self::__Unknown(value) => value, } } } @@ -3163,12 +3163,12 @@ impl FromGlib for TagFlag { unsafe fn from_glib(value: ffi::GstTagFlag) -> Self { skip_assert_initialized!(); match value { - 0 => TagFlag::Undefined, - 1 => TagFlag::Meta, - 2 => TagFlag::Encoded, - 3 => TagFlag::Decoded, - 4 => TagFlag::Count, - value => TagFlag::__Unknown(value), + 0 => Self::Undefined, + 1 => Self::Meta, + 2 => Self::Encoded, + 3 => Self::Decoded, + 4 => Self::Count, + value => Self::__Unknown(value), } } } @@ -3194,7 +3194,7 @@ unsafe impl<'a> FromValue<'a> for TagFlag { impl ToValue for TagFlag { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3236,15 +3236,15 @@ impl IntoGlib for TagMergeMode { fn into_glib(self) -> ffi::GstTagMergeMode { match self { - TagMergeMode::Undefined => ffi::GST_TAG_MERGE_UNDEFINED, - TagMergeMode::ReplaceAll => ffi::GST_TAG_MERGE_REPLACE_ALL, - TagMergeMode::Replace => ffi::GST_TAG_MERGE_REPLACE, - TagMergeMode::Append => ffi::GST_TAG_MERGE_APPEND, - TagMergeMode::Prepend => ffi::GST_TAG_MERGE_PREPEND, - TagMergeMode::Keep => ffi::GST_TAG_MERGE_KEEP, - TagMergeMode::KeepAll => ffi::GST_TAG_MERGE_KEEP_ALL, - TagMergeMode::Count => ffi::GST_TAG_MERGE_COUNT, - TagMergeMode::__Unknown(value) => value, + Self::Undefined => ffi::GST_TAG_MERGE_UNDEFINED, + Self::ReplaceAll => ffi::GST_TAG_MERGE_REPLACE_ALL, + Self::Replace => ffi::GST_TAG_MERGE_REPLACE, + Self::Append => ffi::GST_TAG_MERGE_APPEND, + Self::Prepend => ffi::GST_TAG_MERGE_PREPEND, + Self::Keep => ffi::GST_TAG_MERGE_KEEP, + Self::KeepAll => ffi::GST_TAG_MERGE_KEEP_ALL, + Self::Count => ffi::GST_TAG_MERGE_COUNT, + Self::__Unknown(value) => value, } } } @@ -3254,15 +3254,15 @@ impl FromGlib for TagMergeMode { unsafe fn from_glib(value: ffi::GstTagMergeMode) -> Self { skip_assert_initialized!(); match value { - 0 => TagMergeMode::Undefined, - 1 => TagMergeMode::ReplaceAll, - 2 => TagMergeMode::Replace, - 3 => TagMergeMode::Append, - 4 => TagMergeMode::Prepend, - 5 => TagMergeMode::Keep, - 6 => TagMergeMode::KeepAll, - 7 => TagMergeMode::Count, - value => TagMergeMode::__Unknown(value), + 0 => Self::Undefined, + 1 => Self::ReplaceAll, + 2 => Self::Replace, + 3 => Self::Append, + 4 => Self::Prepend, + 5 => Self::Keep, + 6 => Self::KeepAll, + 7 => Self::Count, + value => Self::__Unknown(value), } } } @@ -3288,7 +3288,7 @@ unsafe impl<'a> FromValue<'a> for TagMergeMode { impl ToValue for TagMergeMode { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3319,9 +3319,9 @@ impl IntoGlib for TagScope { fn into_glib(self) -> ffi::GstTagScope { match self { - TagScope::Stream => ffi::GST_TAG_SCOPE_STREAM, - TagScope::Global => ffi::GST_TAG_SCOPE_GLOBAL, - TagScope::__Unknown(value) => value, + Self::Stream => ffi::GST_TAG_SCOPE_STREAM, + Self::Global => ffi::GST_TAG_SCOPE_GLOBAL, + Self::__Unknown(value) => value, } } } @@ -3331,9 +3331,9 @@ impl FromGlib for TagScope { unsafe fn from_glib(value: ffi::GstTagScope) -> Self { skip_assert_initialized!(); match value { - 0 => TagScope::Stream, - 1 => TagScope::Global, - value => TagScope::__Unknown(value), + 0 => Self::Stream, + 1 => Self::Global, + value => Self::__Unknown(value), } } } @@ -3359,7 +3359,7 @@ unsafe impl<'a> FromValue<'a> for TagScope { impl ToValue for TagScope { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3391,10 +3391,10 @@ impl IntoGlib for TaskState { fn into_glib(self) -> ffi::GstTaskState { match self { - TaskState::Started => ffi::GST_TASK_STARTED, - TaskState::Stopped => ffi::GST_TASK_STOPPED, - TaskState::Paused => ffi::GST_TASK_PAUSED, - TaskState::__Unknown(value) => value, + Self::Started => ffi::GST_TASK_STARTED, + Self::Stopped => ffi::GST_TASK_STOPPED, + Self::Paused => ffi::GST_TASK_PAUSED, + Self::__Unknown(value) => value, } } } @@ -3404,10 +3404,10 @@ impl FromGlib for TaskState { unsafe fn from_glib(value: ffi::GstTaskState) -> Self { skip_assert_initialized!(); match value { - 0 => TaskState::Started, - 1 => TaskState::Stopped, - 2 => TaskState::Paused, - value => TaskState::__Unknown(value), + 0 => Self::Started, + 1 => Self::Stopped, + 2 => Self::Paused, + value => Self::__Unknown(value), } } } @@ -3433,7 +3433,7 @@ unsafe impl<'a> FromValue<'a> for TaskState { impl ToValue for TaskState { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3488,14 +3488,14 @@ impl IntoGlib for TocEntryType { fn into_glib(self) -> ffi::GstTocEntryType { match self { - TocEntryType::Angle => ffi::GST_TOC_ENTRY_TYPE_ANGLE, - TocEntryType::Version => ffi::GST_TOC_ENTRY_TYPE_VERSION, - TocEntryType::Edition => ffi::GST_TOC_ENTRY_TYPE_EDITION, - TocEntryType::Invalid => ffi::GST_TOC_ENTRY_TYPE_INVALID, - TocEntryType::Title => ffi::GST_TOC_ENTRY_TYPE_TITLE, - TocEntryType::Track => ffi::GST_TOC_ENTRY_TYPE_TRACK, - TocEntryType::Chapter => ffi::GST_TOC_ENTRY_TYPE_CHAPTER, - TocEntryType::__Unknown(value) => value, + Self::Angle => ffi::GST_TOC_ENTRY_TYPE_ANGLE, + Self::Version => ffi::GST_TOC_ENTRY_TYPE_VERSION, + Self::Edition => ffi::GST_TOC_ENTRY_TYPE_EDITION, + Self::Invalid => ffi::GST_TOC_ENTRY_TYPE_INVALID, + Self::Title => ffi::GST_TOC_ENTRY_TYPE_TITLE, + Self::Track => ffi::GST_TOC_ENTRY_TYPE_TRACK, + Self::Chapter => ffi::GST_TOC_ENTRY_TYPE_CHAPTER, + Self::__Unknown(value) => value, } } } @@ -3505,14 +3505,14 @@ impl FromGlib for TocEntryType { unsafe fn from_glib(value: ffi::GstTocEntryType) -> Self { skip_assert_initialized!(); match value { - -3 => TocEntryType::Angle, - -2 => TocEntryType::Version, - -1 => TocEntryType::Edition, - 0 => TocEntryType::Invalid, - 1 => TocEntryType::Title, - 2 => TocEntryType::Track, - 3 => TocEntryType::Chapter, - value => TocEntryType::__Unknown(value), + -3 => Self::Angle, + -2 => Self::Version, + -1 => Self::Edition, + 0 => Self::Invalid, + 1 => Self::Title, + 2 => Self::Track, + 3 => Self::Chapter, + value => Self::__Unknown(value), } } } @@ -3538,7 +3538,7 @@ unsafe impl<'a> FromValue<'a> for TocEntryType { impl ToValue for TocEntryType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3573,11 +3573,11 @@ impl IntoGlib for TocLoopType { fn into_glib(self) -> ffi::GstTocLoopType { match self { - TocLoopType::None => ffi::GST_TOC_LOOP_NONE, - TocLoopType::Forward => ffi::GST_TOC_LOOP_FORWARD, - TocLoopType::Reverse => ffi::GST_TOC_LOOP_REVERSE, - TocLoopType::PingPong => ffi::GST_TOC_LOOP_PING_PONG, - TocLoopType::__Unknown(value) => value, + Self::None => ffi::GST_TOC_LOOP_NONE, + Self::Forward => ffi::GST_TOC_LOOP_FORWARD, + Self::Reverse => ffi::GST_TOC_LOOP_REVERSE, + Self::PingPong => ffi::GST_TOC_LOOP_PING_PONG, + Self::__Unknown(value) => value, } } } @@ -3587,11 +3587,11 @@ impl FromGlib for TocLoopType { unsafe fn from_glib(value: ffi::GstTocLoopType) -> Self { skip_assert_initialized!(); match value { - 0 => TocLoopType::None, - 1 => TocLoopType::Forward, - 2 => TocLoopType::Reverse, - 3 => TocLoopType::PingPong, - value => TocLoopType::__Unknown(value), + 0 => Self::None, + 1 => Self::Forward, + 2 => Self::Reverse, + 3 => Self::PingPong, + value => Self::__Unknown(value), } } } @@ -3617,7 +3617,7 @@ unsafe impl<'a> FromValue<'a> for TocLoopType { impl ToValue for TocLoopType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3648,9 +3648,9 @@ impl IntoGlib for TocScope { fn into_glib(self) -> ffi::GstTocScope { match self { - TocScope::Global => ffi::GST_TOC_SCOPE_GLOBAL, - TocScope::Current => ffi::GST_TOC_SCOPE_CURRENT, - TocScope::__Unknown(value) => value, + Self::Global => ffi::GST_TOC_SCOPE_GLOBAL, + Self::Current => ffi::GST_TOC_SCOPE_CURRENT, + Self::__Unknown(value) => value, } } } @@ -3660,9 +3660,9 @@ impl FromGlib for TocScope { unsafe fn from_glib(value: ffi::GstTocScope) -> Self { skip_assert_initialized!(); match value { - 1 => TocScope::Global, - 2 => TocScope::Current, - value => TocScope::__Unknown(value), + 1 => Self::Global, + 2 => Self::Current, + value => Self::__Unknown(value), } } } @@ -3688,7 +3688,7 @@ unsafe impl<'a> FromValue<'a> for TocScope { impl ToValue for TocScope { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3726,13 +3726,13 @@ impl IntoGlib for TypeFindProbability { fn into_glib(self) -> ffi::GstTypeFindProbability { match self { - TypeFindProbability::None => ffi::GST_TYPE_FIND_NONE, - TypeFindProbability::Minimum => ffi::GST_TYPE_FIND_MINIMUM, - TypeFindProbability::Possible => ffi::GST_TYPE_FIND_POSSIBLE, - TypeFindProbability::Likely => ffi::GST_TYPE_FIND_LIKELY, - TypeFindProbability::NearlyCertain => ffi::GST_TYPE_FIND_NEARLY_CERTAIN, - TypeFindProbability::Maximum => ffi::GST_TYPE_FIND_MAXIMUM, - TypeFindProbability::__Unknown(value) => value, + Self::None => ffi::GST_TYPE_FIND_NONE, + Self::Minimum => ffi::GST_TYPE_FIND_MINIMUM, + Self::Possible => ffi::GST_TYPE_FIND_POSSIBLE, + Self::Likely => ffi::GST_TYPE_FIND_LIKELY, + Self::NearlyCertain => ffi::GST_TYPE_FIND_NEARLY_CERTAIN, + Self::Maximum => ffi::GST_TYPE_FIND_MAXIMUM, + Self::__Unknown(value) => value, } } } @@ -3742,13 +3742,13 @@ impl FromGlib for TypeFindProbability { unsafe fn from_glib(value: ffi::GstTypeFindProbability) -> Self { skip_assert_initialized!(); match value { - 0 => TypeFindProbability::None, - 1 => TypeFindProbability::Minimum, - 50 => TypeFindProbability::Possible, - 80 => TypeFindProbability::Likely, - 99 => TypeFindProbability::NearlyCertain, - 100 => TypeFindProbability::Maximum, - value => TypeFindProbability::__Unknown(value), + 0 => Self::None, + 1 => Self::Minimum, + 50 => Self::Possible, + 80 => Self::Likely, + 99 => Self::NearlyCertain, + 100 => Self::Maximum, + value => Self::__Unknown(value), } } } @@ -3774,7 +3774,7 @@ unsafe impl<'a> FromValue<'a> for TypeFindProbability { impl ToValue for TypeFindProbability { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3808,11 +3808,11 @@ impl IntoGlib for URIError { fn into_glib(self) -> ffi::GstURIError { match self { - URIError::UnsupportedProtocol => ffi::GST_URI_ERROR_UNSUPPORTED_PROTOCOL, - URIError::BadUri => ffi::GST_URI_ERROR_BAD_URI, - URIError::BadState => ffi::GST_URI_ERROR_BAD_STATE, - URIError::BadReference => ffi::GST_URI_ERROR_BAD_REFERENCE, - URIError::__Unknown(value) => value, + Self::UnsupportedProtocol => ffi::GST_URI_ERROR_UNSUPPORTED_PROTOCOL, + Self::BadUri => ffi::GST_URI_ERROR_BAD_URI, + Self::BadState => ffi::GST_URI_ERROR_BAD_STATE, + Self::BadReference => ffi::GST_URI_ERROR_BAD_REFERENCE, + Self::__Unknown(value) => value, } } } @@ -3822,11 +3822,11 @@ impl FromGlib for URIError { unsafe fn from_glib(value: ffi::GstURIError) -> Self { skip_assert_initialized!(); match value { - 0 => URIError::UnsupportedProtocol, - 1 => URIError::BadUri, - 2 => URIError::BadState, - 3 => URIError::BadReference, - value => URIError::__Unknown(value), + 0 => Self::UnsupportedProtocol, + 1 => Self::BadUri, + 2 => Self::BadState, + 3 => Self::BadReference, + value => Self::__Unknown(value), } } } @@ -3845,11 +3845,11 @@ impl ErrorDomain for URIError { fn from(code: i32) -> Option { skip_assert_initialized!(); match code { - 0 => Some(URIError::UnsupportedProtocol), - 1 => Some(URIError::BadUri), - 2 => Some(URIError::BadState), - 3 => Some(URIError::BadReference), - value => Some(URIError::__Unknown(value)), + 0 => Some(Self::UnsupportedProtocol), + 1 => Some(Self::BadUri), + 2 => Some(Self::BadState), + 3 => Some(Self::BadReference), + value => Some(Self::__Unknown(value)), } } } @@ -3875,7 +3875,7 @@ unsafe impl<'a> FromValue<'a> for URIError { impl ToValue for URIError { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } @@ -3907,10 +3907,10 @@ impl IntoGlib for URIType { fn into_glib(self) -> ffi::GstURIType { match self { - URIType::Unknown => ffi::GST_URI_UNKNOWN, - URIType::Sink => ffi::GST_URI_SINK, - URIType::Src => ffi::GST_URI_SRC, - URIType::__Unknown(value) => value, + Self::Unknown => ffi::GST_URI_UNKNOWN, + Self::Sink => ffi::GST_URI_SINK, + Self::Src => ffi::GST_URI_SRC, + Self::__Unknown(value) => value, } } } @@ -3920,10 +3920,10 @@ impl FromGlib for URIType { unsafe fn from_glib(value: ffi::GstURIType) -> Self { skip_assert_initialized!(); match value { - 0 => URIType::Unknown, - 1 => URIType::Sink, - 2 => URIType::Src, - value => URIType::__Unknown(value), + 0 => Self::Unknown, + 1 => Self::Sink, + 2 => Self::Src, + value => Self::__Unknown(value), } } } @@ -3949,7 +3949,7 @@ unsafe impl<'a> FromValue<'a> for URIType { impl ToValue for URIType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index 41cdb7250..2c7fbb80b 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -36,9 +36,9 @@ impl IntoGlib for BinFlags { #[doc(hidden)] impl FromGlib for BinFlags { - unsafe fn from_glib(value: ffi::GstBinFlags) -> BinFlags { + unsafe fn from_glib(value: ffi::GstBinFlags) -> Self { skip_assert_initialized!(); - BinFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -63,7 +63,7 @@ unsafe impl<'a> FromValue<'a> for BinFlags { impl ToValue for BinFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -97,9 +97,9 @@ impl IntoGlib for BufferCopyFlags { #[doc(hidden)] impl FromGlib for BufferCopyFlags { - unsafe fn from_glib(value: ffi::GstBufferCopyFlags) -> BufferCopyFlags { + unsafe fn from_glib(value: ffi::GstBufferCopyFlags) -> Self { skip_assert_initialized!(); - BufferCopyFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -124,7 +124,7 @@ unsafe impl<'a> FromValue<'a> for BufferCopyFlags { impl ToValue for BufferCopyFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -168,9 +168,9 @@ impl IntoGlib for BufferFlags { #[doc(hidden)] impl FromGlib for BufferFlags { - unsafe fn from_glib(value: ffi::GstBufferFlags) -> BufferFlags { + unsafe fn from_glib(value: ffi::GstBufferFlags) -> Self { skip_assert_initialized!(); - BufferFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -195,7 +195,7 @@ unsafe impl<'a> FromValue<'a> for BufferFlags { impl ToValue for BufferFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -226,9 +226,9 @@ impl IntoGlib for BufferPoolAcquireFlags { #[doc(hidden)] impl FromGlib for BufferPoolAcquireFlags { - unsafe fn from_glib(value: ffi::GstBufferPoolAcquireFlags) -> BufferPoolAcquireFlags { + unsafe fn from_glib(value: ffi::GstBufferPoolAcquireFlags) -> Self { skip_assert_initialized!(); - BufferPoolAcquireFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -253,7 +253,7 @@ unsafe impl<'a> FromValue<'a> for BufferPoolAcquireFlags { impl ToValue for BufferPoolAcquireFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -288,9 +288,9 @@ impl IntoGlib for ClockFlags { #[doc(hidden)] impl FromGlib for ClockFlags { - unsafe fn from_glib(value: ffi::GstClockFlags) -> ClockFlags { + unsafe fn from_glib(value: ffi::GstClockFlags) -> Self { skip_assert_initialized!(); - ClockFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -315,7 +315,7 @@ unsafe impl<'a> FromValue<'a> for ClockFlags { impl ToValue for ClockFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -361,9 +361,9 @@ impl IntoGlib for DebugColorFlags { #[doc(hidden)] impl FromGlib for DebugColorFlags { - unsafe fn from_glib(value: ffi::GstDebugColorFlags) -> DebugColorFlags { + unsafe fn from_glib(value: ffi::GstDebugColorFlags) -> Self { skip_assert_initialized!(); - DebugColorFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -388,7 +388,7 @@ unsafe impl<'a> FromValue<'a> for DebugColorFlags { impl ToValue for DebugColorFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -423,9 +423,9 @@ impl IntoGlib for DebugGraphDetails { #[doc(hidden)] impl FromGlib for DebugGraphDetails { - unsafe fn from_glib(value: ffi::GstDebugGraphDetails) -> DebugGraphDetails { + unsafe fn from_glib(value: ffi::GstDebugGraphDetails) -> Self { skip_assert_initialized!(); - DebugGraphDetails::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -450,7 +450,7 @@ unsafe impl<'a> FromValue<'a> for DebugGraphDetails { impl ToValue for DebugGraphDetails { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -484,9 +484,9 @@ impl IntoGlib for ElementFlags { #[doc(hidden)] impl FromGlib for ElementFlags { - unsafe fn from_glib(value: ffi::GstElementFlags) -> ElementFlags { + unsafe fn from_glib(value: ffi::GstElementFlags) -> Self { skip_assert_initialized!(); - ElementFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -511,7 +511,7 @@ unsafe impl<'a> FromValue<'a> for ElementFlags { impl ToValue for ElementFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -544,9 +544,9 @@ impl IntoGlib for EventTypeFlags { #[doc(hidden)] impl FromGlib for EventTypeFlags { - unsafe fn from_glib(value: ffi::GstEventTypeFlags) -> EventTypeFlags { + unsafe fn from_glib(value: ffi::GstEventTypeFlags) -> Self { skip_assert_initialized!(); - EventTypeFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -571,7 +571,7 @@ unsafe impl<'a> FromValue<'a> for EventTypeFlags { impl ToValue for EventTypeFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -605,9 +605,9 @@ impl IntoGlib for MemoryFlags { #[doc(hidden)] impl FromGlib for MemoryFlags { - unsafe fn from_glib(value: ffi::GstMemoryFlags) -> MemoryFlags { + unsafe fn from_glib(value: ffi::GstMemoryFlags) -> Self { skip_assert_initialized!(); - MemoryFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -632,7 +632,7 @@ unsafe impl<'a> FromValue<'a> for MemoryFlags { impl ToValue for MemoryFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -663,9 +663,9 @@ impl IntoGlib for ObjectFlags { #[doc(hidden)] impl FromGlib for ObjectFlags { - unsafe fn from_glib(value: ffi::GstObjectFlags) -> ObjectFlags { + unsafe fn from_glib(value: ffi::GstObjectFlags) -> Self { skip_assert_initialized!(); - ObjectFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -690,7 +690,7 @@ unsafe impl<'a> FromValue<'a> for ObjectFlags { impl ToValue for ObjectFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -731,9 +731,9 @@ impl IntoGlib for PadFlags { #[doc(hidden)] impl FromGlib for PadFlags { - unsafe fn from_glib(value: ffi::GstPadFlags) -> PadFlags { + unsafe fn from_glib(value: ffi::GstPadFlags) -> Self { skip_assert_initialized!(); - PadFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -758,7 +758,7 @@ unsafe impl<'a> FromValue<'a> for PadFlags { impl ToValue for PadFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -791,9 +791,9 @@ impl IntoGlib for PadLinkCheck { #[doc(hidden)] impl FromGlib for PadLinkCheck { - unsafe fn from_glib(value: ffi::GstPadLinkCheck) -> PadLinkCheck { + unsafe fn from_glib(value: ffi::GstPadLinkCheck) -> Self { skip_assert_initialized!(); - PadLinkCheck::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -818,7 +818,7 @@ unsafe impl<'a> FromValue<'a> for PadLinkCheck { impl ToValue for PadLinkCheck { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -867,9 +867,9 @@ impl IntoGlib for PadProbeType { #[doc(hidden)] impl FromGlib for PadProbeType { - unsafe fn from_glib(value: ffi::GstPadProbeType) -> PadProbeType { + unsafe fn from_glib(value: ffi::GstPadProbeType) -> Self { skip_assert_initialized!(); - PadProbeType::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -894,7 +894,7 @@ unsafe impl<'a> FromValue<'a> for PadProbeType { impl ToValue for PadProbeType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -927,9 +927,9 @@ impl IntoGlib for ParseFlags { #[doc(hidden)] impl FromGlib for ParseFlags { - unsafe fn from_glib(value: ffi::GstParseFlags) -> ParseFlags { + unsafe fn from_glib(value: ffi::GstParseFlags) -> Self { skip_assert_initialized!(); - ParseFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -954,7 +954,7 @@ unsafe impl<'a> FromValue<'a> for ParseFlags { impl ToValue for ParseFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -983,9 +983,9 @@ impl IntoGlib for PipelineFlags { #[doc(hidden)] impl FromGlib for PipelineFlags { - unsafe fn from_glib(value: ffi::GstPipelineFlags) -> PipelineFlags { + unsafe fn from_glib(value: ffi::GstPipelineFlags) -> Self { skip_assert_initialized!(); - PipelineFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1010,7 +1010,7 @@ unsafe impl<'a> FromValue<'a> for PipelineFlags { impl ToValue for PipelineFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1045,9 +1045,9 @@ impl IntoGlib for PluginAPIFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(hidden)] impl FromGlib for PluginAPIFlags { - unsafe fn from_glib(value: ffi::GstPluginAPIFlags) -> PluginAPIFlags { + unsafe fn from_glib(value: ffi::GstPluginAPIFlags) -> Self { skip_assert_initialized!(); - PluginAPIFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1080,7 +1080,7 @@ unsafe impl<'a> FromValue<'a> for PluginAPIFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] impl ToValue for PluginAPIFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1113,9 +1113,9 @@ impl IntoGlib for PluginDependencyFlags { #[doc(hidden)] impl FromGlib for PluginDependencyFlags { - unsafe fn from_glib(value: ffi::GstPluginDependencyFlags) -> PluginDependencyFlags { + unsafe fn from_glib(value: ffi::GstPluginDependencyFlags) -> Self { skip_assert_initialized!(); - PluginDependencyFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1140,7 +1140,7 @@ unsafe impl<'a> FromValue<'a> for PluginDependencyFlags { impl ToValue for PluginDependencyFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1170,9 +1170,9 @@ impl IntoGlib for PluginFlags { #[doc(hidden)] impl FromGlib for PluginFlags { - unsafe fn from_glib(value: ffi::GstPluginFlags) -> PluginFlags { + unsafe fn from_glib(value: ffi::GstPluginFlags) -> Self { skip_assert_initialized!(); - PluginFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1197,7 +1197,7 @@ unsafe impl<'a> FromValue<'a> for PluginFlags { impl ToValue for PluginFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1228,9 +1228,9 @@ impl IntoGlib for SchedulingFlags { #[doc(hidden)] impl FromGlib for SchedulingFlags { - unsafe fn from_glib(value: ffi::GstSchedulingFlags) -> SchedulingFlags { + unsafe fn from_glib(value: ffi::GstSchedulingFlags) -> Self { skip_assert_initialized!(); - SchedulingFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1255,7 +1255,7 @@ unsafe impl<'a> FromValue<'a> for SchedulingFlags { impl ToValue for SchedulingFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1300,9 +1300,9 @@ impl IntoGlib for SeekFlags { #[doc(hidden)] impl FromGlib for SeekFlags { - unsafe fn from_glib(value: ffi::GstSeekFlags) -> SeekFlags { + unsafe fn from_glib(value: ffi::GstSeekFlags) -> Self { skip_assert_initialized!(); - SeekFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1327,7 +1327,7 @@ unsafe impl<'a> FromValue<'a> for SeekFlags { impl ToValue for SeekFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1365,9 +1365,9 @@ impl IntoGlib for SegmentFlags { #[doc(hidden)] impl FromGlib for SegmentFlags { - unsafe fn from_glib(value: ffi::GstSegmentFlags) -> SegmentFlags { + unsafe fn from_glib(value: ffi::GstSegmentFlags) -> Self { skip_assert_initialized!(); - SegmentFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1392,7 +1392,7 @@ unsafe impl<'a> FromValue<'a> for SegmentFlags { impl ToValue for SegmentFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1427,9 +1427,9 @@ impl IntoGlib for StackTraceFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(hidden)] impl FromGlib for StackTraceFlags { - unsafe fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags { + unsafe fn from_glib(value: ffi::GstStackTraceFlags) -> Self { skip_assert_initialized!(); - StackTraceFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1462,7 +1462,7 @@ unsafe impl<'a> FromValue<'a> for StackTraceFlags { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] impl ToValue for StackTraceFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1493,9 +1493,9 @@ impl IntoGlib for StreamFlags { #[doc(hidden)] impl FromGlib for StreamFlags { - unsafe fn from_glib(value: ffi::GstStreamFlags) -> StreamFlags { + unsafe fn from_glib(value: ffi::GstStreamFlags) -> Self { skip_assert_initialized!(); - StreamFlags::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1520,7 +1520,7 @@ unsafe impl<'a> FromValue<'a> for StreamFlags { impl ToValue for StreamFlags { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } @@ -1584,9 +1584,9 @@ impl IntoGlib for StreamType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[doc(hidden)] impl FromGlib for StreamType { - unsafe fn from_glib(value: ffi::GstStreamType) -> StreamType { + unsafe fn from_glib(value: ffi::GstStreamType) -> Self { skip_assert_initialized!(); - StreamType::from_bits_truncate(value) + Self::from_bits_truncate(value) } } @@ -1619,7 +1619,7 @@ unsafe impl<'a> FromValue<'a> for StreamType { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] impl ToValue for StreamType { fn to_value(&self) -> glib::Value { - let mut value = glib::Value::for_value_type::(); + let mut value = glib::Value::for_value_type::(); unsafe { glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib()); } diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 47c89fa9e..33aa18251 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index 526a151cd..bae1ce3d4 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index 100d49e88..8f1929553 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index f97f38396..9ec9e0ac0 100644 --- a/gstreamer/sys/tests/abi.rs +++ b/gstreamer/sys/tests/abi.rs @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT @@ -21,7 +21,7 @@ struct Compiler { } impl Compiler { - pub fn new() -> Result> { + pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic @@ -31,7 +31,7 @@ impl Compiler { args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); - Ok(Compiler { args }) + Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index 61134db40..0e298f9c0 100644 --- a/gstreamer/sys/tests/constant.c +++ b/gstreamer/sys/tests/constant.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index 6e16eb9b4..47ba4446f 100644 --- a/gstreamer/sys/tests/layout.c +++ b/gstreamer/sys/tests/layout.c @@ -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 gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 208138a) // DO NOT EDIT