diff --git a/gstreamer-allocators/src/auto/versions.txt b/gstreamer-allocators/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-allocators/src/auto/versions.txt +++ b/gstreamer-allocators/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-allocators/sys/src/auto/versions.txt b/gstreamer-allocators/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-allocators/sys/src/auto/versions.txt +++ b/gstreamer-allocators/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 30bda3567..baedbb6cd 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -97,6 +97,16 @@ impl ToValue for AppLeakyType { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: AppLeakyType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAppStreamType")] @@ -170,3 +180,11 @@ impl ToValue for AppStreamType { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: AppStreamType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-app/sys/src/auto/versions.txt b/gstreamer-app/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-app/sys/src/auto/versions.txt +++ b/gstreamer-app/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index c52901121..2bc3ae2d7 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -196,6 +196,14 @@ impl ToValue for AudioChannelPosition { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioChannelPosition) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAudioDitherMethod")] @@ -274,6 +282,14 @@ impl ToValue for AudioDitherMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioDitherMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAudioFormat")] @@ -479,6 +495,14 @@ impl ToValue for AudioFormat { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioFormat) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAudioLayout")] @@ -549,6 +573,14 @@ impl ToValue for AudioLayout { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioLayout) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAudioNoiseShapingMethod")] @@ -631,6 +663,14 @@ impl ToValue for AudioNoiseShapingMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioNoiseShapingMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAudioResamplerMethod")] @@ -713,6 +753,14 @@ impl ToValue for AudioResamplerMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioResamplerMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstAudioRingBufferFormatType")] @@ -835,6 +883,14 @@ impl ToValue for AudioRingBufferFormatType { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioRingBufferFormatType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstStreamVolumeFormat")] diff --git a/gstreamer-audio/src/auto/flags.rs b/gstreamer-audio/src/auto/flags.rs index cae459e8b..c354710e2 100644 --- a/gstreamer-audio/src/auto/flags.rs +++ b/gstreamer-audio/src/auto/flags.rs @@ -68,6 +68,14 @@ impl ToValue for AudioFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstAudioFormatFlags")] pub struct AudioFormatFlags: u32 { @@ -134,6 +142,14 @@ impl ToValue for AudioFormatFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioFormatFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstAudioPackFlags")] pub struct AudioPackFlags: u32 { @@ -191,3 +207,11 @@ impl ToValue for AudioPackFlags { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: AudioPackFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-audio/sys/src/auto/versions.txt b/gstreamer-audio/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-audio/sys/src/auto/versions.txt +++ b/gstreamer-audio/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 111228491..a4dd56239 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -106,3 +106,13 @@ impl ToValue for AggregatorStartTimeSelection { Self::static_type() } } + +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +impl From for glib::Value { + #[inline] + fn from(v: AggregatorStartTimeSelection) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-base/sys/src/auto/versions.txt b/gstreamer-base/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-base/sys/src/auto/versions.txt +++ b/gstreamer-base/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-check/sys/src/auto/versions.txt b/gstreamer-check/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-check/sys/src/auto/versions.txt +++ b/gstreamer-check/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-controller/src/auto/enums.rs b/gstreamer-controller/src/auto/enums.rs index f2b607638..2e3f56e19 100644 --- a/gstreamer-controller/src/auto/enums.rs +++ b/gstreamer-controller/src/auto/enums.rs @@ -87,6 +87,14 @@ impl ToValue for InterpolationMode { } } +impl From for glib::Value { + #[inline] + fn from(v: InterpolationMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstLFOWaveform")] @@ -168,3 +176,11 @@ impl ToValue for LFOWaveform { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: LFOWaveform) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-controller/sys/src/auto/versions.txt b/gstreamer-controller/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-controller/sys/src/auto/versions.txt +++ b/gstreamer-controller/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index 61ab62cce..800d5069b 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -204,6 +204,14 @@ impl ToValue for Edge { } } +impl From for glib::Value { + #[inline] + fn from(v: Edge) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GESEditMode")] @@ -311,6 +319,14 @@ impl ToValue for EditMode { } } +impl From for glib::Value { + #[inline] + fn from(v: EditMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GESError")] @@ -458,6 +474,14 @@ impl ToValue for TextHAlign { } } +impl From for glib::Value { + #[inline] + fn from(v: TextHAlign) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GESTextVAlign")] @@ -544,6 +568,14 @@ impl ToValue for TextVAlign { } } +impl From for glib::Value { + #[inline] + fn from(v: TextVAlign) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GESVideoStandardTransitionType")] @@ -902,6 +934,14 @@ impl ToValue for VideoStandardTransitionType { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoStandardTransitionType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GESVideoTestPattern")] @@ -1035,3 +1075,11 @@ impl ToValue for VideoTestPattern { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: VideoTestPattern) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-editing-services/src/auto/flags.rs b/gstreamer-editing-services/src/auto/flags.rs index b08ade76c..8693586f5 100644 --- a/gstreamer-editing-services/src/auto/flags.rs +++ b/gstreamer-editing-services/src/auto/flags.rs @@ -86,6 +86,16 @@ impl ToValue for MarkerFlags { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: MarkerFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GESMetaFlag")] pub struct MetaFlag: u32 { @@ -148,6 +158,14 @@ impl ToValue for MetaFlag { } } +impl From for glib::Value { + #[inline] + fn from(v: MetaFlag) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GESPipelineFlags")] pub struct PipelineFlags: u32 { @@ -214,6 +232,14 @@ impl ToValue for PipelineFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: PipelineFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GESTrackType")] pub struct TrackType: u32 { @@ -300,3 +326,11 @@ impl ToValue for TrackType { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: TrackType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-editing-services/sys/src/auto/versions.txt b/gstreamer-editing-services/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-editing-services/sys/src/auto/versions.txt +++ b/gstreamer-editing-services/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/egl/sys/src/auto/versions.txt b/gstreamer-gl/egl/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/egl/sys/src/auto/versions.txt +++ b/gstreamer-gl/egl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index b1e961a5f..aba93d7d0 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -114,6 +114,16 @@ impl ToValue for GLConfigCaveat { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: GLConfigCaveat) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLContextError")] @@ -225,6 +235,14 @@ impl ToValue for GLContextError { } } +impl From for glib::Value { + #[inline] + fn from(v: GLContextError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLFormat")] @@ -420,6 +438,14 @@ impl ToValue for GLFormat { } } +impl From for glib::Value { + #[inline] + fn from(v: GLFormat) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLQueryType")] @@ -494,6 +520,14 @@ impl ToValue for GLQueryType { } } +impl From for glib::Value { + #[inline] + fn from(v: GLQueryType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLSLError")] @@ -590,6 +624,14 @@ impl ToValue for GLSLError { } } +impl From for glib::Value { + #[inline] + fn from(v: GLSLError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLSLVersion")] @@ -768,6 +810,14 @@ impl ToValue for GLSLVersion { } } +impl From for glib::Value { + #[inline] + fn from(v: GLSLVersion) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLStereoDownmix")] @@ -842,6 +892,14 @@ impl ToValue for GLStereoDownmix { } } +impl From for glib::Value { + #[inline] + fn from(v: GLStereoDownmix) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLTextureTarget")] @@ -957,6 +1015,14 @@ impl ToValue for GLTextureTarget { } } +impl From for glib::Value { + #[inline] + fn from(v: GLTextureTarget) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLUploadReturn")] @@ -1039,6 +1105,14 @@ impl ToValue for GLUploadReturn { } } +impl From for glib::Value { + #[inline] + fn from(v: GLUploadReturn) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstGLWindowError")] @@ -1134,3 +1208,11 @@ impl ToValue for GLWindowError { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: GLWindowError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index 28af23f2e..abcc51ebc 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -97,6 +97,14 @@ impl ToValue for GLAPI { } } +impl From for glib::Value { + #[inline] + fn from(v: GLAPI) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] @@ -186,6 +194,16 @@ impl ToValue for GLConfigSurfaceType { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: GLConfigSurfaceType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstGLDisplayType")] pub struct GLDisplayType: u32 { @@ -274,6 +292,14 @@ impl ToValue for GLDisplayType { } } +impl From for glib::Value { + #[inline] + fn from(v: GLDisplayType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstGLPlatform")] pub struct GLPlatform: u32 { @@ -366,6 +392,14 @@ impl ToValue for GLPlatform { } } +impl From for glib::Value { + #[inline] + fn from(v: GLPlatform) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstGLSLProfile")] pub struct GLSLProfile: u32 { @@ -442,3 +476,11 @@ impl ToValue for GLSLProfile { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: GLSLProfile) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/sys/src/auto/versions.txt b/gstreamer-gl/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/sys/src/auto/versions.txt +++ b/gstreamer-gl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/wayland/sys/src/auto/versions.txt b/gstreamer-gl/wayland/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/wayland/sys/src/auto/versions.txt +++ b/gstreamer-gl/wayland/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-gl/x11/sys/src/auto/versions.txt b/gstreamer-gl/x11/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-gl/x11/sys/src/auto/versions.txt +++ b/gstreamer-gl/x11/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-mpegts/src/auto/versions.txt b/gstreamer-mpegts/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-mpegts/src/auto/versions.txt +++ b/gstreamer-mpegts/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-mpegts/sys/src/auto/versions.txt b/gstreamer-mpegts/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-mpegts/sys/src/auto/versions.txt +++ b/gstreamer-mpegts/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-net/sys/src/auto/versions.txt b/gstreamer-net/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-net/sys/src/auto/versions.txt +++ b/gstreamer-net/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-pbutils/src/auto/enums.rs b/gstreamer-pbutils/src/auto/enums.rs index c8508dd6c..8e755eea1 100644 --- a/gstreamer-pbutils/src/auto/enums.rs +++ b/gstreamer-pbutils/src/auto/enums.rs @@ -111,6 +111,14 @@ impl ToValue for AudioVisualizerShader { } } +impl From for glib::Value { + #[inline] + fn from(v: AudioVisualizerShader) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstDiscovererResult")] @@ -196,3 +204,11 @@ impl ToValue for DiscovererResult { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: DiscovererResult) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-pbutils/src/auto/flags.rs b/gstreamer-pbutils/src/auto/flags.rs index 2c9ef982c..9e1dc550c 100644 --- a/gstreamer-pbutils/src/auto/flags.rs +++ b/gstreamer-pbutils/src/auto/flags.rs @@ -72,6 +72,14 @@ impl ToValue for DiscovererSerializeFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: DiscovererSerializeFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] @@ -159,3 +167,13 @@ impl ToValue for PbUtilsCapsDescriptionFlags { Self::static_type() } } + +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: PbUtilsCapsDescriptionFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-pbutils/sys/src/auto/versions.txt b/gstreamer-pbutils/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-pbutils/sys/src/auto/versions.txt +++ b/gstreamer-pbutils/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-play/src/auto/enums.rs b/gstreamer-play/src/auto/enums.rs index fe3d655cd..77f011bb7 100644 --- a/gstreamer-play/src/auto/enums.rs +++ b/gstreamer-play/src/auto/enums.rs @@ -115,6 +115,14 @@ impl ToValue for PlayColorBalanceType { } } +impl From for glib::Value { + #[inline] + fn from(v: PlayColorBalanceType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPlayError")] @@ -222,6 +230,14 @@ impl ToValue for PlayError { } } +impl From for glib::Value { + #[inline] + fn from(v: PlayError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPlayMessage")] @@ -483,6 +499,14 @@ impl ToValue for PlayMessage { } } +impl From for glib::Value { + #[inline] + fn from(v: PlayMessage) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPlaySnapshotFormat")] @@ -630,3 +654,11 @@ impl ToValue for PlayState { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: PlayState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-play/src/auto/versions.txt b/gstreamer-play/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-play/src/auto/versions.txt +++ b/gstreamer-play/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-play/sys/src/auto/versions.txt b/gstreamer-play/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-play/sys/src/auto/versions.txt +++ b/gstreamer-play/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index 8da7951be..51171833a 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -112,6 +112,14 @@ impl ToValue for PlayerColorBalanceType { } } +impl From for glib::Value { + #[inline] + fn from(v: PlayerColorBalanceType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPlayerError")] @@ -219,6 +227,14 @@ impl ToValue for PlayerError { } } +impl From for glib::Value { + #[inline] + fn from(v: PlayerError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPlayerSnapshotFormat")] @@ -366,3 +382,11 @@ impl ToValue for PlayerState { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: PlayerState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-player/sys/src/auto/versions.txt b/gstreamer-player/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-player/sys/src/auto/versions.txt +++ b/gstreamer-player/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index c19534348..06fc2ad05 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -107,6 +107,14 @@ impl ToValue for RTCPFBType { } } +impl From for glib::Value { + #[inline] + fn from(v: RTCPFBType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTCPSDESType")] @@ -265,6 +273,14 @@ impl ToValue for RTCPSDESType { } } +impl From for glib::Value { + #[inline] + fn from(v: RTCPSDESType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTCPType")] @@ -363,6 +379,14 @@ impl ToValue for RTCPType { } } +impl From for glib::Value { + #[inline] + fn from(v: RTCPType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -471,6 +495,16 @@ impl ToValue for RTCPXRType { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: RTCPXRType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTPPayload")] @@ -637,6 +671,14 @@ impl ToValue for RTPPayload { } } +impl From for glib::Value { + #[inline] + fn from(v: RTPPayload) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTPProfile")] @@ -718,3 +760,11 @@ impl ToValue for RTPProfile { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: RTPProfile) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-rtp/src/auto/flags.rs b/gstreamer-rtp/src/auto/flags.rs index 93b2b44b3..6f8dfc85e 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -70,6 +70,14 @@ impl ToValue for RTPBufferFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: RTPBufferFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstRTPBufferMapFlags")] pub struct RTPBufferMapFlags: u32 { @@ -128,6 +136,14 @@ impl ToValue for RTPBufferMapFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: RTPBufferMapFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] @@ -208,6 +224,16 @@ impl ToValue for RTPHeaderExtensionDirection { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: RTPHeaderExtensionDirection) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] @@ -281,3 +307,13 @@ impl ToValue for RTPHeaderExtensionFlags { Self::static_type() } } + +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: RTPHeaderExtensionFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-rtp/sys/src/auto/versions.txt b/gstreamer-rtp/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-rtp/sys/src/auto/versions.txt +++ b/gstreamer-rtp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-rtsp-server/src/auto/enums.rs b/gstreamer-rtsp-server/src/auto/enums.rs index 8644f9f12..a014f751e 100644 --- a/gstreamer-rtsp-server/src/auto/enums.rs +++ b/gstreamer-rtsp-server/src/auto/enums.rs @@ -226,6 +226,14 @@ impl ToValue for RTSPPublishClockMode { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPPublishClockMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPSuspendMode")] @@ -300,6 +308,14 @@ impl ToValue for RTSPSuspendMode { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPSuspendMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPThreadType")] diff --git a/gstreamer-rtsp-server/src/auto/flags.rs b/gstreamer-rtsp-server/src/auto/flags.rs index 907d0f655..62946b350 100644 --- a/gstreamer-rtsp-server/src/auto/flags.rs +++ b/gstreamer-rtsp-server/src/auto/flags.rs @@ -102,3 +102,11 @@ impl ToValue for RTSPTransportMode { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: RTSPTransportMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-rtsp-server/sys/src/auto/versions.txt b/gstreamer-rtsp-server/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-rtsp-server/sys/src/auto/versions.txt +++ b/gstreamer-rtsp-server/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-rtsp/src/auto/enums.rs b/gstreamer-rtsp/src/auto/enums.rs index f30429d20..926e1ae6f 100644 --- a/gstreamer-rtsp/src/auto/enums.rs +++ b/gstreamer-rtsp/src/auto/enums.rs @@ -83,6 +83,14 @@ impl ToValue for RTSPAuthMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPAuthMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPFamily")] @@ -157,6 +165,14 @@ impl ToValue for RTSPFamily { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPFamily) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPHeaderField")] @@ -579,6 +595,14 @@ impl ToValue for RTSPHeaderField { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPHeaderField) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPMsgType")] @@ -665,6 +689,14 @@ impl ToValue for RTSPMsgType { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPMsgType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPRangeUnit")] @@ -747,6 +779,14 @@ impl ToValue for RTSPRangeUnit { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPRangeUnit) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPResult")] @@ -881,6 +921,14 @@ impl ToValue for RTSPResult { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPResult) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPState")] @@ -967,6 +1015,14 @@ impl ToValue for RTSPState { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPStatusCode")] @@ -1221,6 +1277,14 @@ impl ToValue for RTSPStatusCode { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPStatusCode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstRTSPTimeType")] @@ -1302,3 +1366,11 @@ impl ToValue for RTSPTimeType { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: RTSPTimeType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-rtsp/src/auto/flags.rs b/gstreamer-rtsp/src/auto/flags.rs index 0c247c144..27071335f 100644 --- a/gstreamer-rtsp/src/auto/flags.rs +++ b/gstreamer-rtsp/src/auto/flags.rs @@ -70,6 +70,14 @@ impl ToValue for RTSPEvent { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPEvent) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstRTSPLowerTrans")] pub struct RTSPLowerTrans: u32 { @@ -136,6 +144,14 @@ impl ToValue for RTSPLowerTrans { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPLowerTrans) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstRTSPMethod")] pub struct RTSPMethod: u32 { @@ -226,6 +242,14 @@ impl ToValue for RTSPMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstRTSPProfile")] pub struct RTSPProfile: u32 { @@ -290,6 +314,14 @@ impl ToValue for RTSPProfile { } } +impl From for glib::Value { + #[inline] + fn from(v: RTSPProfile) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstRTSPTransMode")] pub struct RTSPTransMode: u32 { @@ -349,3 +381,11 @@ impl ToValue for RTSPTransMode { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: RTSPTransMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-rtsp/sys/src/auto/versions.txt b/gstreamer-rtsp/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-rtsp/sys/src/auto/versions.txt +++ b/gstreamer-rtsp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-sdp/sys/src/auto/versions.txt b/gstreamer-sdp/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-sdp/sys/src/auto/versions.txt +++ b/gstreamer-sdp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-tag/sys/src/auto/versions.txt b/gstreamer-tag/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-tag/sys/src/auto/versions.txt +++ b/gstreamer-tag/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-validate/src/auto/enums.rs b/gstreamer-validate/src/auto/enums.rs index 8a947af17..125241cfe 100644 --- a/gstreamer-validate/src/auto/enums.rs +++ b/gstreamer-validate/src/auto/enums.rs @@ -132,6 +132,14 @@ impl ToValue for ReportLevel { } } +impl From for glib::Value { + #[inline] + fn from(v: ReportLevel) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstValidateReportingDetails")] @@ -225,3 +233,11 @@ impl ToValue for ReportingDetails { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: ReportingDetails) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-validate/src/auto/flags.rs b/gstreamer-validate/src/auto/flags.rs index 4f6f66d39..56f56a8b0 100644 --- a/gstreamer-validate/src/auto/flags.rs +++ b/gstreamer-validate/src/auto/flags.rs @@ -73,3 +73,11 @@ impl ToValue for IssueFlags { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: IssueFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-validate/src/auto/versions.txt b/gstreamer-validate/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-validate/src/auto/versions.txt +++ b/gstreamer-validate/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-validate/sys/src/auto/versions.txt b/gstreamer-validate/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-validate/sys/src/auto/versions.txt +++ b/gstreamer-validate/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index 23bd84023..1cb92bb41 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -81,6 +81,14 @@ impl ToValue for ColorBalanceType { } } +impl From for glib::Value { + #[inline] + fn from(v: ColorBalanceType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -204,6 +212,14 @@ impl ToValue for NavigationCommand { } } +impl From for glib::Value { + #[inline] + fn from(v: NavigationCommand) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstNavigationEventType")] @@ -342,6 +358,14 @@ impl ToValue for NavigationEventType { } } +impl From for glib::Value { + #[inline] + fn from(v: NavigationEventType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstNavigationMessageType")] @@ -424,6 +448,14 @@ impl ToValue for NavigationMessageType { } } +impl From for glib::Value { + #[inline] + fn from(v: NavigationMessageType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstNavigationQueryType")] @@ -498,6 +530,14 @@ impl ToValue for NavigationQueryType { } } +impl From for glib::Value { + #[inline] + fn from(v: NavigationQueryType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -586,6 +626,16 @@ impl ToValue for VideoAFDSpec { } } +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +impl From for glib::Value { + #[inline] + fn from(v: VideoAFDSpec) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -706,6 +756,16 @@ impl ToValue for VideoAFDValue { } } +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +impl From for glib::Value { + #[inline] + fn from(v: VideoAFDValue) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoAlphaMode")] @@ -780,6 +840,14 @@ impl ToValue for VideoAlphaMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoAlphaMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -886,6 +954,16 @@ impl ToValue for VideoCaptionType { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: VideoCaptionType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoChromaMode")] @@ -964,6 +1042,14 @@ impl ToValue for VideoChromaMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoChromaMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoColorMatrix")] @@ -1072,6 +1158,14 @@ impl ToValue for VideoColorMatrix { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoColorMatrix) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoColorPrimaries")] @@ -1239,6 +1333,14 @@ impl ToValue for VideoColorPrimaries { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoColorPrimaries) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoDitherMethod")] @@ -1321,6 +1423,14 @@ impl ToValue for VideoDitherMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoDitherMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoFieldOrder")] @@ -1414,6 +1524,14 @@ impl ToValue for VideoFieldOrder { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoFieldOrder) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoFormat")] @@ -2089,6 +2207,14 @@ impl ToValue for VideoFormat { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoFormat) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoGammaMode")] @@ -2159,6 +2285,14 @@ impl ToValue for VideoGammaMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoGammaMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoInterlaceMode")] @@ -2276,6 +2410,14 @@ impl ToValue for VideoInterlaceMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoInterlaceMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoMatrixMode")] @@ -2354,6 +2496,14 @@ impl ToValue for VideoMatrixMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoMatrixMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoMultiviewFramePacking")] @@ -2460,6 +2610,14 @@ impl ToValue for VideoMultiviewFramePacking { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoMultiviewFramePacking) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoMultiviewMode")] @@ -2596,6 +2754,14 @@ impl ToValue for VideoMultiviewMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoMultiviewMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoOrientationMethod")] @@ -2698,6 +2864,14 @@ impl ToValue for VideoOrientationMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoOrientationMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoPrimariesMode")] @@ -2772,6 +2946,14 @@ impl ToValue for VideoPrimariesMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoPrimariesMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoResamplerMethod")] @@ -2854,6 +3036,14 @@ impl ToValue for VideoResamplerMethod { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoResamplerMethod) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoTileMode")] @@ -2932,6 +3122,14 @@ impl ToValue for VideoTileMode { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoTileMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstVideoTransferFunction")] @@ -3126,3 +3324,11 @@ impl ToValue for VideoTransferFunction { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: VideoTransferFunction) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 922a48899..bb2d2892a 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -105,6 +105,16 @@ impl ToValue for NavigationModifierType { } } +#[cfg(any(feature = "v1_22", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_22")))] +impl From for glib::Value { + #[inline] + fn from(v: NavigationModifierType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoBufferFlags")] pub struct VideoBufferFlags: u32 { @@ -185,6 +195,14 @@ impl ToValue for VideoBufferFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoBufferFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoChromaSite")] pub struct VideoChromaSite: u32 { @@ -274,6 +292,14 @@ impl ToValue for VideoChromaSite { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoChromaSite) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoCodecFrameFlags")] pub struct VideoCodecFrameFlags: u32 { @@ -350,6 +376,16 @@ impl ToValue for VideoCodecFrameFlags { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: VideoCodecFrameFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] @@ -424,6 +460,16 @@ impl ToValue for VideoDecoderRequestSyncPointFlags { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: VideoDecoderRequestSyncPointFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoFlags")] pub struct VideoFlags: u32 { @@ -484,6 +530,14 @@ impl ToValue for VideoFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoFormatFlags")] pub struct VideoFormatFlags: u32 { @@ -562,6 +616,14 @@ impl ToValue for VideoFormatFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoFormatFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoFrameFlags")] pub struct VideoFrameFlags: u32 { @@ -638,6 +700,14 @@ impl ToValue for VideoFrameFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoFrameFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoMultiviewFlags")] pub struct VideoMultiviewFlags: u32 { @@ -708,6 +778,14 @@ impl ToValue for VideoMultiviewFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoMultiviewFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoOverlayFormatFlags")] pub struct VideoOverlayFormatFlags: u32 { @@ -776,6 +854,16 @@ impl ToValue for VideoOverlayFormatFlags { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: VideoOverlayFormatFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoPackFlags")] pub struct VideoPackFlags: u32 { @@ -836,6 +924,14 @@ impl ToValue for VideoPackFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: VideoPackFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstVideoTimeCodeFlags")] pub struct VideoTimeCodeFlags: u32 { @@ -903,3 +999,13 @@ impl ToValue for VideoTimeCodeFlags { Self::static_type() } } + +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +impl From for glib::Value { + #[inline] + fn from(v: VideoTimeCodeFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-video/sys/src/auto/versions.txt b/gstreamer-video/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-video/sys/src/auto/versions.txt +++ b/gstreamer-video/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index cf4f6d623..688f8f5b5 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -109,6 +109,16 @@ impl ToValue for WebRTCBundlePolicy { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCBundlePolicy) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCDTLSSetup")] @@ -187,6 +197,14 @@ impl ToValue for WebRTCDTLSSetup { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCDTLSSetup) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCDTLSTransportState")] @@ -269,6 +287,14 @@ impl ToValue for WebRTCDTLSTransportState { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCDTLSTransportState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -361,6 +387,16 @@ impl ToValue for WebRTCDataChannelState { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCDataChannelState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -529,6 +565,16 @@ impl ToValue for WebRTCError { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_14_1", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -613,6 +659,16 @@ impl ToValue for WebRTCFECType { } } +#[cfg(any(feature = "v1_14_1", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCFECType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCICEComponent")] @@ -683,6 +739,14 @@ impl ToValue for WebRTCICEComponent { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCICEComponent) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCICEConnectionState")] @@ -773,6 +837,14 @@ impl ToValue for WebRTCICEConnectionState { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCICEConnectionState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCICEGatheringState")] @@ -847,6 +919,14 @@ impl ToValue for WebRTCICEGatheringState { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCICEGatheringState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCICERole")] @@ -917,6 +997,14 @@ impl ToValue for WebRTCICERole { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCICERole) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -1001,6 +1089,16 @@ impl ToValue for WebRTCICETransportPolicy { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCICETransportPolicy) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -1089,6 +1187,16 @@ impl ToValue for WebRTCKind { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCKind) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCPeerConnectionState")] @@ -1175,6 +1283,14 @@ impl ToValue for WebRTCPeerConnectionState { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCPeerConnectionState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -1267,6 +1383,16 @@ impl ToValue for WebRTCPriorityType { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCPriorityType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCRTPTransceiverDirection")] @@ -1349,6 +1475,14 @@ impl ToValue for WebRTCRTPTransceiverDirection { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCRTPTransceiverDirection) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -1441,6 +1575,16 @@ impl ToValue for WebRTCSCTPTransportState { } } +#[cfg(any(feature = "v1_16", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] +impl From for glib::Value { + #[inline] + fn from(v: WebRTCSCTPTransportState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCSDPType")] @@ -1540,6 +1684,14 @@ impl ToValue for WebRTCSDPType { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCSDPType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCSignalingState")] @@ -1626,6 +1778,14 @@ impl ToValue for WebRTCSignalingState { } } +impl From for glib::Value { + #[inline] + fn from(v: WebRTCSignalingState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstWebRTCStatsType")] @@ -1743,3 +1903,11 @@ impl ToValue for WebRTCStatsType { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: WebRTCStatsType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer-webrtc/sys/src/auto/versions.txt b/gstreamer-webrtc/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer-webrtc/sys/src/auto/versions.txt +++ b/gstreamer-webrtc/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 251f98b07..67fa5899f 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -92,6 +92,14 @@ impl ToValue for BufferingMode { } } +impl From for glib::Value { + #[inline] + fn from(v: BufferingMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstBusSyncReply")] @@ -166,6 +174,14 @@ impl ToValue for BusSyncReply { } } +impl From for glib::Value { + #[inline] + fn from(v: BusSyncReply) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstCapsIntersectMode")] @@ -236,6 +252,14 @@ impl ToValue for CapsIntersectMode { } } +impl From for glib::Value { + #[inline] + fn from(v: CapsIntersectMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstClockEntryType")] @@ -306,6 +330,14 @@ impl ToValue for ClockEntryType { } } +impl From for glib::Value { + #[inline] + fn from(v: ClockEntryType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -401,6 +433,14 @@ impl ToValue for ClockReturn { } } +impl From for glib::Value { + #[inline] + fn from(v: ClockReturn) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstClockType")] @@ -483,6 +523,14 @@ impl ToValue for ClockType { } } +impl From for glib::Value { + #[inline] + fn from(v: ClockType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstCoreError")] @@ -634,6 +682,14 @@ impl ToValue for CoreError { } } +impl From for glib::Value { + #[inline] + fn from(v: CoreError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstDebugLevel")] @@ -753,6 +809,14 @@ impl ToValue for DebugLevel { } } +impl From for glib::Value { + #[inline] + fn from(v: DebugLevel) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstEventType")] @@ -985,6 +1049,14 @@ impl ToValue for EventType { } } +impl From for glib::Value { + #[inline] + fn from(v: EventType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -1100,6 +1172,14 @@ impl ToValue for FlowReturn { } } +impl From for glib::Value { + #[inline] + fn from(v: FlowReturn) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -1220,6 +1300,14 @@ impl ToValue for Format { } } +impl From for glib::Value { + #[inline] + fn from(v: Format) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstLibraryError")] @@ -1331,6 +1419,14 @@ impl ToValue for LibraryError { } } +impl From for glib::Value { + #[inline] + fn from(v: LibraryError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -1406,6 +1502,14 @@ impl ToValue for PadDirection { } } +impl From for glib::Value { + #[inline] + fn from(v: PadDirection) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -1497,6 +1601,14 @@ impl ToValue for PadLinkReturn { } } +impl From for glib::Value { + #[inline] + fn from(v: PadLinkReturn) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPadMode")] @@ -1592,6 +1704,14 @@ impl ToValue for PadMode { } } +impl From for glib::Value { + #[inline] + fn from(v: PadMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -1667,6 +1787,14 @@ impl ToValue for PadPresence { } } +impl From for glib::Value { + #[inline] + fn from(v: PadPresence) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPadProbeReturn")] @@ -1749,6 +1877,14 @@ impl ToValue for PadProbeReturn { } } +impl From for glib::Value { + #[inline] + fn from(v: PadProbeReturn) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstParseError")] @@ -1870,6 +2006,14 @@ impl ToValue for ParseError { } } +impl From for glib::Value { + #[inline] + fn from(v: ParseError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPluginError")] @@ -1966,6 +2110,14 @@ impl ToValue for PluginError { } } +impl From for glib::Value { + #[inline] + fn from(v: PluginError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstProgressType")] @@ -2048,6 +2200,14 @@ impl ToValue for ProgressType { } } +impl From for glib::Value { + #[inline] + fn from(v: ProgressType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstPromiseResult")] @@ -2126,6 +2286,14 @@ impl ToValue for PromiseResult { } } +impl From for glib::Value { + #[inline] + fn from(v: PromiseResult) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstQOSType")] @@ -2200,6 +2368,14 @@ impl ToValue for QOSType { } } +impl From for glib::Value { + #[inline] + fn from(v: QOSType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, Clone, Copy)] #[non_exhaustive] @@ -2279,6 +2455,14 @@ impl ToValue for Rank { } } +impl From for glib::Value { + #[inline] + fn from(v: Rank) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstResourceError")] @@ -2435,6 +2619,14 @@ impl ToValue for ResourceError { } } +impl From for glib::Value { + #[inline] + fn from(v: ResourceError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstSeekType")] @@ -2509,6 +2701,14 @@ impl ToValue for SeekType { } } +impl From for glib::Value { + #[inline] + fn from(v: SeekType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -2592,6 +2792,14 @@ impl ToValue for State { } } +impl From for glib::Value { + #[inline] + fn from(v: State) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstStateChange")] @@ -2715,6 +2923,14 @@ impl ToValue for StateChange { } } +impl From for glib::Value { + #[inline] + fn from(v: StateChange) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[must_use] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -2794,6 +3010,14 @@ impl ToValue for StateChangeReturn { } } +impl From for glib::Value { + #[inline] + fn from(v: StateChangeReturn) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstStreamError")] @@ -2940,6 +3164,14 @@ impl ToValue for StreamError { } } +impl From for glib::Value { + #[inline] + fn from(v: StreamError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstStreamStatusType")] @@ -3030,6 +3262,14 @@ impl ToValue for StreamStatusType { } } +impl From for glib::Value { + #[inline] + fn from(v: StreamStatusType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstStructureChangeType")] @@ -3100,6 +3340,14 @@ impl ToValue for StructureChangeType { } } +impl From for glib::Value { + #[inline] + fn from(v: StructureChangeType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstTagFlag")] @@ -3178,6 +3426,14 @@ impl ToValue for TagFlag { } } +impl From for glib::Value { + #[inline] + fn from(v: TagFlag) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstTagMergeMode")] @@ -3268,6 +3524,14 @@ impl ToValue for TagMergeMode { } } +impl From for glib::Value { + #[inline] + fn from(v: TagMergeMode) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -3339,6 +3603,14 @@ impl ToValue for TagScope { } } +impl From for glib::Value { + #[inline] + fn from(v: TagScope) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstTaskState")] @@ -3413,6 +3685,14 @@ impl ToValue for TaskState { } } +impl From for glib::Value { + #[inline] + fn from(v: TaskState) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -3518,6 +3798,14 @@ impl ToValue for TocEntryType { } } +impl From for glib::Value { + #[inline] + fn from(v: TocEntryType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -3597,6 +3885,14 @@ impl ToValue for TocLoopType { } } +impl From for glib::Value { + #[inline] + fn from(v: TocLoopType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -3668,6 +3964,14 @@ impl ToValue for TocScope { } } +impl From for glib::Value { + #[inline] + fn from(v: TocScope) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstTypeFindProbability")] @@ -3754,6 +4058,14 @@ impl ToValue for TypeFindProbability { } } +impl From for glib::Value { + #[inline] + fn from(v: TypeFindProbability) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] #[doc(alias = "GstURIError")] @@ -3855,6 +4167,14 @@ impl ToValue for URIError { } } +impl From for glib::Value { + #[inline] + fn from(v: URIError) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)] #[non_exhaustive] @@ -3929,3 +4249,11 @@ impl ToValue for URIType { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: URIType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index b21504715..29867ef48 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -72,6 +72,14 @@ impl ToValue for BinFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: BinFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstBufferCopyFlags")] pub struct BufferCopyFlags: u32 { @@ -140,6 +148,14 @@ impl ToValue for BufferCopyFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: BufferCopyFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstBufferFlags")] pub struct BufferFlags: u32 { @@ -222,6 +238,14 @@ impl ToValue for BufferFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: BufferFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstBufferPoolAcquireFlags")] pub struct BufferPoolAcquireFlags: u32 { @@ -284,6 +308,14 @@ impl ToValue for BufferPoolAcquireFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: BufferPoolAcquireFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstClockFlags")] pub struct ClockFlags: u32 { @@ -354,6 +386,14 @@ impl ToValue for ClockFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: ClockFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstDebugColorFlags")] pub struct DebugColorFlags: u32 { @@ -446,6 +486,14 @@ impl ToValue for DebugColorFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: DebugColorFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstDebugGraphDetails")] pub struct DebugGraphDetails: u32 { @@ -516,6 +564,14 @@ impl ToValue for DebugGraphDetails { } } +impl From for glib::Value { + #[inline] + fn from(v: DebugGraphDetails) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstElementFlags")] pub struct ElementFlags: u32 { @@ -584,6 +640,14 @@ impl ToValue for ElementFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: ElementFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstEventTypeFlags")] pub struct EventTypeFlags: u32 { @@ -650,6 +714,14 @@ impl ToValue for EventTypeFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: EventTypeFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] @@ -722,6 +794,16 @@ impl ToValue for GapFlags { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: GapFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstMemoryFlags")] pub struct MemoryFlags: u32 { @@ -790,6 +872,14 @@ impl ToValue for MemoryFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: MemoryFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstMetaFlags")] pub struct MetaFlags: u32 { @@ -852,6 +942,14 @@ impl ToValue for MetaFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: MetaFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstObjectFlags")] pub struct ObjectFlags: u32 { @@ -910,6 +1008,14 @@ impl ToValue for ObjectFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: ObjectFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstPadFlags")] pub struct PadFlags: u32 { @@ -992,6 +1098,14 @@ impl ToValue for PadFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: PadFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstPadLinkCheck")] pub struct PadLinkCheck: u32 { @@ -1058,6 +1172,14 @@ impl ToValue for PadLinkCheck { } } +impl From for glib::Value { + #[inline] + fn from(v: PadLinkCheck) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstPadProbeType")] pub struct PadProbeType: u32 { @@ -1156,6 +1278,14 @@ impl ToValue for PadProbeType { } } +impl From for glib::Value { + #[inline] + fn from(v: PadProbeType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstParseFlags")] pub struct ParseFlags: u32 { @@ -1218,6 +1348,14 @@ impl ToValue for ParseFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: ParseFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstPipelineFlags")] pub struct PipelineFlags: u32 { @@ -1276,6 +1414,14 @@ impl ToValue for PipelineFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: PipelineFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_18", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] @@ -1348,6 +1494,16 @@ impl ToValue for PluginAPIFlags { } } +#[cfg(any(feature = "v1_18", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] +impl From for glib::Value { + #[inline] + fn from(v: PluginAPIFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstPluginDependencyFlags")] pub struct PluginDependencyFlags: u32 { @@ -1414,6 +1570,14 @@ impl ToValue for PluginDependencyFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: PluginDependencyFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstPluginFlags")] pub struct PluginFlags: u32 { @@ -1474,6 +1638,14 @@ impl ToValue for PluginFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: PluginFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstSchedulingFlags")] pub struct SchedulingFlags: u32 { @@ -1536,6 +1708,14 @@ impl ToValue for SchedulingFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: SchedulingFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstSeekFlags")] pub struct SeekFlags: u32 { @@ -1622,6 +1802,14 @@ impl ToValue for SeekFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: SeekFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstSegmentFlags")] pub struct SegmentFlags: u32 { @@ -1694,6 +1882,14 @@ impl ToValue for SegmentFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: SegmentFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + #[cfg(any(feature = "v1_20", feature = "dox"))] bitflags! { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] @@ -1768,6 +1964,16 @@ impl ToValue for SerializeFlags { } } +#[cfg(any(feature = "v1_20", feature = "dox"))] +#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] +impl From for glib::Value { + #[inline] + fn from(v: SerializeFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstStackTraceFlags")] pub struct StackTraceFlags: u32 { @@ -1826,6 +2032,14 @@ impl ToValue for StackTraceFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: StackTraceFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstStreamFlags")] pub struct StreamFlags: u32 { @@ -1888,6 +2102,14 @@ impl ToValue for StreamFlags { } } +impl From for glib::Value { + #[inline] + fn from(v: StreamFlags) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} + bitflags! { #[doc(alias = "GstStreamType")] pub struct StreamType: u32 { @@ -1974,3 +2196,11 @@ impl ToValue for StreamType { Self::static_type() } } + +impl From for glib::Value { + #[inline] + fn from(v: StreamType) -> Self { + skip_assert_initialized!(); + ToValue::to_value(&v) + } +} diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51) diff --git a/gstreamer/sys/src/auto/versions.txt b/gstreamer/sys/src/auto/versions.txt index 2d8b2c71a..06eac5890 100644 --- a/gstreamer/sys/src/auto/versions.txt +++ b/gstreamer/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e94fdc6499e4) +Generated by gir (https://github.com/gtk-rs/gir @ 250c500566c3) from gir-files (https://github.com/gtk-rs/gir-files @ 89a11aa6a362) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 3596e2209a51)