Update gir and regenerate with clippy::use_self fixes

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

2
gir

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

View file

@ -29,10 +29,10 @@ impl IntoGlib for AppStreamType {
fn into_glib(self) -> ffi::GstAppStreamType {
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<ffi::GstAppStreamType> 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::<AppStreamType>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GstAudioChannelPosition> 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::<AudioChannelPosition>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioDitherMethod> 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::<AudioDitherMethod>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioFormat> 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::<AudioFormat>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioLayout> 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::<AudioLayout>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioNoiseShapingMethod> 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::<AudioNoiseShapingMethod>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioResamplerMethod> 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::<AudioResamplerMethod>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioRingBufferFormatType> 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::<AudioRingBufferFormatType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstStreamVolumeFormat> 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),
}
}
}

View file

@ -27,9 +27,9 @@ impl IntoGlib for AudioFlags {
#[doc(hidden)]
impl FromGlib<ffi::GstAudioFlags> for AudioFlags {
unsafe fn from_glib(value: ffi::GstAudioFlags) -> AudioFlags {
unsafe fn from_glib(value: ffi::GstAudioFlags) -> Self {
skip_assert_initialized!();
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::<AudioFlags>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioFormatFlags> 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::<AudioFormatFlags>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstAudioPackFlags> 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::<AudioPackFlags>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GstAggregatorStartTimeSelection> 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::<AggregatorStartTimeSelection>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GstInterpolationMode> 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::<InterpolationMode>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstLFOWaveform> 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::<LFOWaveform>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GESEdge> 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::<Edge>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GESEditMode> 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::<EditMode>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GESVideoStandardTransitionType> 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::<VideoStandardTransitionType>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

@ -33,9 +33,9 @@ impl IntoGlib for PipelineFlags {
#[doc(hidden)]
impl FromGlib<ffi::GESPipelineFlags> for PipelineFlags {
unsafe fn from_glib(value: ffi::GESPipelineFlags) -> PipelineFlags {
unsafe fn from_glib(value: ffi::GESPipelineFlags) -> Self {
skip_assert_initialized!();
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::<PipelineFlags>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GESTrackType> 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::<TrackType>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GstGLContextError> 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<Self> {
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::<GLContextError>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLFormat> 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::<GLFormat>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLQueryType> 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::<GLQueryType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLSLError> 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<Self> {
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::<GLSLError>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLSLVersion> 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::<GLSLVersion>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLStereoDownmix> 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::<GLStereoDownmix>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLTextureTarget> 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::<GLTextureTarget>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLUploadReturn> 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::<GLUploadReturn>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLWindowError> 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<Self> {
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::<GLWindowError>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

@ -52,9 +52,9 @@ impl IntoGlib for GLAPI {
#[doc(hidden)]
impl FromGlib<ffi::GstGLAPI> for GLAPI {
unsafe fn from_glib(value: ffi::GstGLAPI) -> GLAPI {
unsafe fn from_glib(value: ffi::GstGLAPI) -> Self {
skip_assert_initialized!();
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::<GLAPI>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLDisplayType> 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::<GLDisplayType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLPlatform> 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::<GLPlatform>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstGLSLProfile> 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::<GLSLProfile>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GstDiscovererResult> 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::<DiscovererResult>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

@ -29,9 +29,9 @@ impl IntoGlib for DiscovererSerializeFlags {
#[doc(hidden)]
impl FromGlib<ffi::GstDiscovererSerializeFlags> for DiscovererSerializeFlags {
unsafe fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> DiscovererSerializeFlags {
unsafe fn from_glib(value: ffi::GstDiscovererSerializeFlags) -> Self {
skip_assert_initialized!();
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::<DiscovererSerializeFlags>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GstPlayerColorBalanceType> 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::<PlayerColorBalanceType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstPlayerError> 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<Self> {
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::<PlayerError>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstPlayerSnapshotFormat> 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<ffi::GstPlayerState> 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::<PlayerState>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
// Generated by gir (https://github.com/gtk-rs/gir @ 1a0921b)
// Generated by gir (https://github.com/gtk-rs/gir @ 0516825)
// from gir-files (https://github.com/gtk-rs/gir-files @ 6088bb6)
// from 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<Compiler, Box<dyn Error>> {
pub fn new() -> Result<Self, Box<dyn Error>> {
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<dyn Error>> {

View file

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

View file

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

View file

@ -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<ffi::GstRTCPFBType> 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::<RTCPFBType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstRTCPSDESType> 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::<RTCPSDESType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstRTCPType> 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::<RTCPType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstRTCPXRType> 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::<RTCPXRType>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstRTPPayload> 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::<RTPPayload>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstRTPProfile> 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::<RTPProfile>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
}

View file

@ -34,9 +34,9 @@ impl IntoGlib for RTPBufferFlags {
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
#[doc(hidden)]
impl FromGlib<ffi::GstRTPBufferFlags> for RTPBufferFlags {
unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> RTPBufferFlags {
unsafe fn from_glib(value: ffi::GstRTPBufferFlags) -> Self {
skip_assert_initialized!();
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::<RTPBufferFlags>();
let mut value = glib::Value::for_value_type::<Self>();
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<ffi::GstRTPBufferMapFlags> 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::<RTPBufferMapFlags>();
let mut value = glib::Value::for_value_type::<Self>();
unsafe {
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, self.into_glib());
}

View file

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

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