From d51c5d24b91cbe967236743345b3773b1e45c6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 21 Jul 2017 15:13:47 +0300 Subject: [PATCH] Regenerate with latest gir --- gstreamer-app-sys/src/lib.rs | 11 +- gstreamer-audio-sys/src/lib.rs | 187 +++++---- gstreamer-base-sys/src/lib.rs | 2 +- gstreamer-pbutils-sys/src/lib.rs | 34 +- gstreamer-sys/src/lib.rs | 671 ++++++++++++++++--------------- gstreamer-tag-sys/src/lib.rs | 29 +- gstreamer-video-sys/src/lib.rs | 307 +++++++------- 7 files changed, 646 insertions(+), 595 deletions(-) diff --git a/gstreamer-app-sys/src/lib.rs b/gstreamer-app-sys/src/lib.rs index 5a703fbb0..be1539e64 100644 --- a/gstreamer-app-sys/src/lib.rs +++ b/gstreamer-app-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (a4dcfea) from gir-files (???) +// This file was generated by gir (5c71144) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,10 +19,6 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -extern "C" { - pub fn gst_app_stream_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAppStreamType { @@ -99,6 +95,11 @@ pub struct GstAppSrc { extern "C" { + //========================================================================= + // GstAppStreamType + //========================================================================= + pub fn gst_app_stream_type_get_type() -> GType; + //========================================================================= // GstAppSink //========================================================================= diff --git a/gstreamer-audio-sys/src/lib.rs b/gstreamer-audio-sys/src/lib.rs index 7cf4a055f..dd2569be5 100644 --- a/gstreamer-audio-sys/src/lib.rs +++ b/gstreamer-audio-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (a4dcfea) from gir-files (???) +// This file was generated by gir (5c71144) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -20,10 +20,6 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -extern "C" { - pub fn gst_audio_base_sink_discont_reason_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioBaseSinkDiscontReason { @@ -41,10 +37,6 @@ pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY: GstAudioBaseSinkDisco pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::Alignment; pub const GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE: GstAudioBaseSinkDiscontReason = GstAudioBaseSinkDiscontReason::DeviceFailure; -extern "C" { - pub fn gst_audio_base_sink_slave_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioBaseSinkSlaveMethod { @@ -58,10 +50,6 @@ pub const GST_AUDIO_BASE_SINK_SLAVE_SKEW: GstAudioBaseSinkSlaveMethod = GstAudio pub const GST_AUDIO_BASE_SINK_SLAVE_NONE: GstAudioBaseSinkSlaveMethod = GstAudioBaseSinkSlaveMethod::None; pub const GST_AUDIO_BASE_SINK_SLAVE_CUSTOM: GstAudioBaseSinkSlaveMethod = GstAudioBaseSinkSlaveMethod::Custom; -extern "C" { - pub fn gst_audio_base_src_slave_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioBaseSrcSlaveMethod { @@ -75,10 +63,6 @@ pub const GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP: GstAudioBaseSrcSlaveMethod = Gs pub const GST_AUDIO_BASE_SRC_SLAVE_SKEW: GstAudioBaseSrcSlaveMethod = GstAudioBaseSrcSlaveMethod::Skew; pub const GST_AUDIO_BASE_SRC_SLAVE_NONE: GstAudioBaseSrcSlaveMethod = GstAudioBaseSrcSlaveMethod::None; -extern "C" { - pub fn gst_audio_cd_src_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioCdSrcMode { @@ -88,10 +72,6 @@ pub enum GstAudioCdSrcMode { pub const GST_AUDIO_CD_SRC_MODE_NORMAL: GstAudioCdSrcMode = GstAudioCdSrcMode::Normal; pub const GST_AUDIO_CD_SRC_MODE_CONTINUOUS: GstAudioCdSrcMode = GstAudioCdSrcMode::Continuous; -extern "C" { - pub fn gst_audio_channel_position_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioChannelPosition { @@ -159,10 +139,6 @@ pub const GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT: GstAudioChannelPosition = GstAu pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT: GstAudioChannelPosition = GstAudioChannelPosition::SurroundLeft; pub const GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT: GstAudioChannelPosition = GstAudioChannelPosition::SurroundRight; -extern "C" { - pub fn gst_audio_dither_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioDitherMethod { @@ -176,10 +152,6 @@ pub const GST_AUDIO_DITHER_RPDF: GstAudioDitherMethod = GstAudioDitherMethod::Rp pub const GST_AUDIO_DITHER_TPDF: GstAudioDitherMethod = GstAudioDitherMethod::Tpdf; pub const GST_AUDIO_DITHER_TPDF_HF: GstAudioDitherMethod = GstAudioDitherMethod::TpdfHf; -extern "C" { - pub fn gst_audio_format_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioFormat { @@ -263,10 +235,6 @@ pub const GST_AUDIO_FORMAT_U18: GstAudioFormat = GstAudioFormat::U18le; pub const GST_AUDIO_FORMAT_F32: GstAudioFormat = GstAudioFormat::F32le; pub const GST_AUDIO_FORMAT_F64: GstAudioFormat = GstAudioFormat::F64le; -extern "C" { - pub fn gst_audio_layout_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioLayout { @@ -276,10 +244,6 @@ pub enum GstAudioLayout { pub const GST_AUDIO_LAYOUT_INTERLEAVED: GstAudioLayout = GstAudioLayout::Interleaved; pub const GST_AUDIO_LAYOUT_NON_INTERLEAVED: GstAudioLayout = GstAudioLayout::NonInterleaved; -extern "C" { - pub fn gst_audio_noise_shaping_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioNoiseShapingMethod { @@ -295,10 +259,6 @@ pub const GST_AUDIO_NOISE_SHAPING_SIMPLE: GstAudioNoiseShapingMethod = GstAudioN pub const GST_AUDIO_NOISE_SHAPING_MEDIUM: GstAudioNoiseShapingMethod = GstAudioNoiseShapingMethod::Medium; pub const GST_AUDIO_NOISE_SHAPING_HIGH: GstAudioNoiseShapingMethod = GstAudioNoiseShapingMethod::High; -extern "C" { - pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioResamplerFilterInterpolation { @@ -310,10 +270,6 @@ pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_NONE: GstAudioResamplerFilter pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR: GstAudioResamplerFilterInterpolation = GstAudioResamplerFilterInterpolation::Linear; pub const GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC: GstAudioResamplerFilterInterpolation = GstAudioResamplerFilterInterpolation::Cubic; -extern "C" { - pub fn gst_audio_resampler_filter_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioResamplerFilterMode { @@ -325,10 +281,6 @@ pub const GST_AUDIO_RESAMPLER_FILTER_MODE_INTERPOLATED: GstAudioResamplerFilterM pub const GST_AUDIO_RESAMPLER_FILTER_MODE_FULL: GstAudioResamplerFilterMode = GstAudioResamplerFilterMode::Full; pub const GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO: GstAudioResamplerFilterMode = GstAudioResamplerFilterMode::Auto; -extern "C" { - pub fn gst_audio_resampler_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioResamplerMethod { @@ -344,10 +296,6 @@ pub const GST_AUDIO_RESAMPLER_METHOD_CUBIC: GstAudioResamplerMethod = GstAudioRe pub const GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL: GstAudioResamplerMethod = GstAudioResamplerMethod::BlackmanNuttall; pub const GST_AUDIO_RESAMPLER_METHOD_KAISER: GstAudioResamplerMethod = GstAudioResamplerMethod::Kaiser; -extern "C" { - pub fn gst_audio_ring_buffer_format_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioRingBufferFormatType { @@ -383,10 +331,6 @@ pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW: GstAudioRingBufferFor pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Mpeg4AacRaw; pub const GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC: GstAudioRingBufferFormatType = GstAudioRingBufferFormatType::Flac; -extern "C" { - pub fn gst_audio_ring_buffer_state_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioRingBufferState { @@ -446,10 +390,6 @@ pub const GST_META_TAG_AUDIO_RATE_STR: *const c_char = b"rate\0" as *const u8 as pub const GST_META_TAG_AUDIO_STR: *const c_char = b"audio\0" as *const u8 as *const c_char; // Flags -extern "C" { - pub fn gst_audio_channel_mixer_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAudioChannelMixerFlags: c_uint { @@ -461,10 +401,6 @@ bitflags! { } } -extern "C" { - pub fn gst_audio_converter_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAudioConverterFlags: c_uint { @@ -474,10 +410,6 @@ bitflags! { } } -extern "C" { - pub fn gst_audio_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAudioFlags: c_uint { @@ -486,10 +418,6 @@ bitflags! { } } -extern "C" { - pub fn gst_audio_format_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAudioFormatFlags: c_uint { @@ -501,10 +429,6 @@ bitflags! { } } -extern "C" { - pub fn gst_audio_pack_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAudioPackFlags: c_uint { @@ -513,10 +437,6 @@ bitflags! { } } -extern "C" { - pub fn gst_audio_quantize_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAudioQuantizeFlags: c_uint { @@ -525,10 +445,6 @@ bitflags! { } } -extern "C" { - pub fn gst_audio_resampler_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAudioResamplerFlags: c_uint { @@ -901,15 +817,116 @@ pub struct GstStreamVolume(c_void); extern "C" { + //========================================================================= + // GstAudioBaseSinkDiscontReason + //========================================================================= + pub fn gst_audio_base_sink_discont_reason_get_type() -> GType; + + //========================================================================= + // GstAudioBaseSinkSlaveMethod + //========================================================================= + pub fn gst_audio_base_sink_slave_method_get_type() -> GType; + + //========================================================================= + // GstAudioBaseSrcSlaveMethod + //========================================================================= + pub fn gst_audio_base_src_slave_method_get_type() -> GType; + + //========================================================================= + // GstAudioCdSrcMode + //========================================================================= + pub fn gst_audio_cd_src_mode_get_type() -> GType; + + //========================================================================= + // GstAudioChannelPosition + //========================================================================= + pub fn gst_audio_channel_position_get_type() -> GType; + + //========================================================================= + // GstAudioDitherMethod + //========================================================================= + pub fn gst_audio_dither_method_get_type() -> GType; + //========================================================================= // GstAudioFormat //========================================================================= + pub fn gst_audio_format_get_type() -> GType; pub fn gst_audio_format_build_integer(sign: gboolean, endianness: c_int, width: c_int, depth: c_int) -> GstAudioFormat; pub fn gst_audio_format_fill_silence(info: *const GstAudioFormatInfo, dest: gpointer, length: size_t); pub fn gst_audio_format_from_string(format: *const c_char) -> GstAudioFormat; pub fn gst_audio_format_get_info(format: GstAudioFormat) -> *const GstAudioFormatInfo; pub fn gst_audio_format_to_string(format: GstAudioFormat) -> *const c_char; + //========================================================================= + // GstAudioLayout + //========================================================================= + pub fn gst_audio_layout_get_type() -> GType; + + //========================================================================= + // GstAudioNoiseShapingMethod + //========================================================================= + pub fn gst_audio_noise_shaping_method_get_type() -> GType; + + //========================================================================= + // GstAudioResamplerFilterInterpolation + //========================================================================= + pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType; + + //========================================================================= + // GstAudioResamplerFilterMode + //========================================================================= + pub fn gst_audio_resampler_filter_mode_get_type() -> GType; + + //========================================================================= + // GstAudioResamplerMethod + //========================================================================= + pub fn gst_audio_resampler_method_get_type() -> GType; + + //========================================================================= + // GstAudioRingBufferFormatType + //========================================================================= + pub fn gst_audio_ring_buffer_format_type_get_type() -> GType; + + //========================================================================= + // GstAudioRingBufferState + //========================================================================= + pub fn gst_audio_ring_buffer_state_get_type() -> GType; + + //========================================================================= + // GstAudioChannelMixerFlags + //========================================================================= + pub fn gst_audio_channel_mixer_flags_get_type() -> GType; + + //========================================================================= + // GstAudioConverterFlags + //========================================================================= + pub fn gst_audio_converter_flags_get_type() -> GType; + + //========================================================================= + // GstAudioFlags + //========================================================================= + pub fn gst_audio_flags_get_type() -> GType; + + //========================================================================= + // GstAudioFormatFlags + //========================================================================= + pub fn gst_audio_format_flags_get_type() -> GType; + + //========================================================================= + // GstAudioPackFlags + //========================================================================= + pub fn gst_audio_pack_flags_get_type() -> GType; + + //========================================================================= + // GstAudioQuantizeFlags + //========================================================================= + pub fn gst_audio_quantize_flags_get_type() -> GType; + + //========================================================================= + // GstAudioResamplerFlags + //========================================================================= + pub fn gst_audio_resampler_flags_get_type() -> GType; + //========================================================================= // GstAudioChannelMixer //========================================================================= diff --git a/gstreamer-base-sys/src/lib.rs b/gstreamer-base-sys/src/lib.rs index f718539b2..57d0e0d73 100644 --- a/gstreamer-base-sys/src/lib.rs +++ b/gstreamer-base-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (a4dcfea) from gir-files (???) +// This file was generated by gir (5c71144) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] diff --git a/gstreamer-pbutils-sys/src/lib.rs b/gstreamer-pbutils-sys/src/lib.rs index c5dd76e97..cc6ae2e03 100644 --- a/gstreamer-pbutils-sys/src/lib.rs +++ b/gstreamer-pbutils-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (a4dcfea) from gir-files (???) +// This file was generated by gir (5c71144) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -30,10 +30,6 @@ pub type GstDiscovererVideoInfoClass = gobject::GObjectClass; pub type GstEncodingTargetClass = gobject::GObjectClass; // Enums -extern "C" { - pub fn gst_audio_visualizer_shader_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstAudioVisualizerShader { @@ -59,10 +55,6 @@ pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN: GstAudioVisualizer pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveVertOut; pub const GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN: GstAudioVisualizerShader = GstAudioVisualizerShader::FadeAndMoveVertIn; -extern "C" { - pub fn gst_discoverer_result_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstDiscovererResult { @@ -80,10 +72,6 @@ pub const GST_DISCOVERER_TIMEOUT: GstDiscovererResult = GstDiscovererResult::Tim pub const GST_DISCOVERER_BUSY: GstDiscovererResult = GstDiscovererResult::Busy; pub const GST_DISCOVERER_MISSING_PLUGINS: GstDiscovererResult = GstDiscovererResult::MissingPlugins; -extern "C" { - pub fn gst_install_plugins_return_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstInstallPluginsReturn { @@ -123,10 +111,6 @@ pub const GST_PLUGINS_BASE_VERSION_MINOR: c_int = 12; pub const GST_PLUGINS_BASE_VERSION_NANO: c_int = 0; // Flags -extern "C" { - pub fn gst_discoverer_serialize_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstDiscovererSerializeFlags: c_uint { @@ -234,11 +218,27 @@ pub struct GstEncodingVideoProfile(c_void); extern "C" { + //========================================================================= + // GstAudioVisualizerShader + //========================================================================= + pub fn gst_audio_visualizer_shader_get_type() -> GType; + + //========================================================================= + // GstDiscovererResult + //========================================================================= + pub fn gst_discoverer_result_get_type() -> GType; + //========================================================================= // GstInstallPluginsReturn //========================================================================= + pub fn gst_install_plugins_return_get_type() -> GType; pub fn gst_install_plugins_return_get_name(ret: GstInstallPluginsReturn) -> *const c_char; + //========================================================================= + // GstDiscovererSerializeFlags + //========================================================================= + pub fn gst_discoverer_serialize_flags_get_type() -> GType; + //========================================================================= // GstInstallPluginsContext //========================================================================= diff --git a/gstreamer-sys/src/lib.rs b/gstreamer-sys/src/lib.rs index e063f7485..1a9c1eede 100644 --- a/gstreamer-sys/src/lib.rs +++ b/gstreamer-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (a4dcfea) from gir-files (???) +// This file was generated by gir (5c71144) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -23,10 +23,6 @@ pub type GstClockTimeDiff = i64; pub type GstElementFactoryListType = u64; // Enums -extern "C" { - pub fn gst_buffering_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstBufferingMode { @@ -40,10 +36,6 @@ pub const GST_BUFFERING_DOWNLOAD: GstBufferingMode = GstBufferingMode::Download; pub const GST_BUFFERING_TIMESHIFT: GstBufferingMode = GstBufferingMode::Timeshift; pub const GST_BUFFERING_LIVE: GstBufferingMode = GstBufferingMode::Live; -extern "C" { - pub fn gst_bus_sync_reply_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstBusSyncReply { @@ -55,10 +47,6 @@ pub const GST_BUS_DROP: GstBusSyncReply = GstBusSyncReply::Drop; pub const GST_BUS_PASS: GstBusSyncReply = GstBusSyncReply::Pass; pub const GST_BUS_ASYNC: GstBusSyncReply = GstBusSyncReply::Async; -extern "C" { - pub fn gst_caps_intersect_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstCapsIntersectMode { @@ -68,10 +56,6 @@ pub enum GstCapsIntersectMode { pub const GST_CAPS_INTERSECT_ZIG_ZAG: GstCapsIntersectMode = GstCapsIntersectMode::ZigZag; pub const GST_CAPS_INTERSECT_FIRST: GstCapsIntersectMode = GstCapsIntersectMode::First; -extern "C" { - pub fn gst_clock_entry_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstClockEntryType { @@ -81,10 +65,6 @@ pub enum GstClockEntryType { pub const GST_CLOCK_ENTRY_SINGLE: GstClockEntryType = GstClockEntryType::Single; pub const GST_CLOCK_ENTRY_PERIODIC: GstClockEntryType = GstClockEntryType::Periodic; -extern "C" { - pub fn gst_clock_return_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstClockReturn { @@ -106,10 +86,6 @@ pub const GST_CLOCK_ERROR: GstClockReturn = GstClockReturn::Error; pub const GST_CLOCK_UNSUPPORTED: GstClockReturn = GstClockReturn::Unsupported; pub const GST_CLOCK_DONE: GstClockReturn = GstClockReturn::Done; -extern "C" { - pub fn gst_clock_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstClockType { @@ -121,10 +97,6 @@ pub const GST_CLOCK_TYPE_REALTIME: GstClockType = GstClockType::Realtime; pub const GST_CLOCK_TYPE_MONOTONIC: GstClockType = GstClockType::Monotonic; pub const GST_CLOCK_TYPE_OTHER: GstClockType = GstClockType::Other; -extern "C" { - pub fn gst_core_error_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstCoreError { @@ -160,10 +132,6 @@ pub const GST_CORE_ERROR_CLOCK: GstCoreError = GstCoreError::Clock; pub const GST_CORE_ERROR_DISABLED: GstCoreError = GstCoreError::Disabled; pub const GST_CORE_ERROR_NUM_ERRORS: GstCoreError = GstCoreError::NumErrors; -extern "C" { - pub fn gst_debug_color_flags_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstDebugColorFlags { @@ -204,10 +172,6 @@ pub const GST_DEBUG_BG_WHITE: GstDebugColorFlags = GstDebugColorFlags::BgWhite; pub const GST_DEBUG_BOLD: GstDebugColorFlags = GstDebugColorFlags::Bold; pub const GST_DEBUG_UNDERLINE: GstDebugColorFlags = GstDebugColorFlags::Underline; -extern "C" { - pub fn gst_debug_color_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstDebugColorMode { @@ -219,10 +183,6 @@ pub const GST_DEBUG_COLOR_MODE_OFF: GstDebugColorMode = GstDebugColorMode::Off; pub const GST_DEBUG_COLOR_MODE_ON: GstDebugColorMode = GstDebugColorMode::On; pub const GST_DEBUG_COLOR_MODE_UNIX: GstDebugColorMode = GstDebugColorMode::Unix; -extern "C" { - pub fn gst_debug_level_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstDebugLevel { @@ -248,10 +208,6 @@ pub const GST_LEVEL_TRACE: GstDebugLevel = GstDebugLevel::Trace; pub const GST_LEVEL_MEMDUMP: GstDebugLevel = GstDebugLevel::Memdump; pub const GST_LEVEL_COUNT: GstDebugLevel = GstDebugLevel::Count; -extern "C" { - pub fn gst_event_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstEventType { @@ -317,10 +273,6 @@ pub const GST_EVENT_CUSTOM_DOWNSTREAM_STICKY: GstEventType = GstEventType::Custo pub const GST_EVENT_CUSTOM_BOTH: GstEventType = GstEventType::CustomBoth; pub const GST_EVENT_CUSTOM_BOTH_OOB: GstEventType = GstEventType::CustomBothOob; -extern "C" { - pub fn gst_flow_return_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstFlowReturn { @@ -352,10 +304,6 @@ pub const GST_FLOW_CUSTOM_ERROR: GstFlowReturn = GstFlowReturn::CustomError; pub const GST_FLOW_CUSTOM_ERROR_1: GstFlowReturn = GstFlowReturn::CustomError1; pub const GST_FLOW_CUSTOM_ERROR_2: GstFlowReturn = GstFlowReturn::CustomError2; -extern "C" { - pub fn gst_format_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstFormat { @@ -373,10 +321,6 @@ pub const GST_FORMAT_TIME: GstFormat = GstFormat::Time; pub const GST_FORMAT_BUFFERS: GstFormat = GstFormat::Buffers; pub const GST_FORMAT_PERCENT: GstFormat = GstFormat::Percent; -extern "C" { - pub fn gst_iterator_item_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstIteratorItem { @@ -388,10 +332,6 @@ pub const GST_ITERATOR_ITEM_SKIP: GstIteratorItem = GstIteratorItem::Skip; pub const GST_ITERATOR_ITEM_PASS: GstIteratorItem = GstIteratorItem::Pass; pub const GST_ITERATOR_ITEM_END: GstIteratorItem = GstIteratorItem::End; -extern "C" { - pub fn gst_iterator_result_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstIteratorResult { @@ -405,10 +345,6 @@ pub const GST_ITERATOR_OK: GstIteratorResult = GstIteratorResult::Ok; pub const GST_ITERATOR_RESYNC: GstIteratorResult = GstIteratorResult::Resync; pub const GST_ITERATOR_ERROR: GstIteratorResult = GstIteratorResult::Error; -extern "C" { - pub fn gst_library_error_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstLibraryError { @@ -428,10 +364,6 @@ pub const GST_LIBRARY_ERROR_SETTINGS: GstLibraryError = GstLibraryError::Setting pub const GST_LIBRARY_ERROR_ENCODE: GstLibraryError = GstLibraryError::Encode; pub const GST_LIBRARY_ERROR_NUM_ERRORS: GstLibraryError = GstLibraryError::NumErrors; -extern "C" { - pub fn gst_pad_direction_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstPadDirection { @@ -443,10 +375,6 @@ pub const GST_PAD_UNKNOWN: GstPadDirection = GstPadDirection::Unknown; pub const GST_PAD_SRC: GstPadDirection = GstPadDirection::Src; pub const GST_PAD_SINK: GstPadDirection = GstPadDirection::Sink; -extern "C" { - pub fn gst_pad_link_return_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstPadLinkReturn { @@ -466,10 +394,6 @@ pub const GST_PAD_LINK_NOFORMAT: GstPadLinkReturn = GstPadLinkReturn::Noformat; pub const GST_PAD_LINK_NOSCHED: GstPadLinkReturn = GstPadLinkReturn::Nosched; pub const GST_PAD_LINK_REFUSED: GstPadLinkReturn = GstPadLinkReturn::Refused; -extern "C" { - pub fn gst_pad_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstPadMode { @@ -481,10 +405,6 @@ pub const GST_PAD_MODE_NONE: GstPadMode = GstPadMode::None; pub const GST_PAD_MODE_PUSH: GstPadMode = GstPadMode::Push; pub const GST_PAD_MODE_PULL: GstPadMode = GstPadMode::Pull; -extern "C" { - pub fn gst_pad_presence_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstPadPresence { @@ -496,10 +416,6 @@ pub const GST_PAD_ALWAYS: GstPadPresence = GstPadPresence::Always; pub const GST_PAD_SOMETIMES: GstPadPresence = GstPadPresence::Sometimes; pub const GST_PAD_REQUEST: GstPadPresence = GstPadPresence::Request; -extern "C" { - pub fn gst_pad_probe_return_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstPadProbeReturn { @@ -515,10 +431,6 @@ pub const GST_PAD_PROBE_REMOVE: GstPadProbeReturn = GstPadProbeReturn::Remove; pub const GST_PAD_PROBE_PASS: GstPadProbeReturn = GstPadProbeReturn::Pass; pub const GST_PAD_PROBE_HANDLED: GstPadProbeReturn = GstPadProbeReturn::Handled; -extern "C" { - pub fn gst_parse_error_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstParseError { @@ -540,10 +452,6 @@ pub const GST_PARSE_ERROR_EMPTY_BIN: GstParseError = GstParseError::EmptyBin; pub const GST_PARSE_ERROR_EMPTY: GstParseError = GstParseError::Empty; pub const GST_PARSE_ERROR_DELAYED_LINK: GstParseError = GstParseError::DelayedLink; -extern "C" { - pub fn gst_plugin_error_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstPluginError { @@ -555,10 +463,6 @@ pub const GST_PLUGIN_ERROR_MODULE: GstPluginError = GstPluginError::Module; pub const GST_PLUGIN_ERROR_DEPENDENCIES: GstPluginError = GstPluginError::Dependencies; pub const GST_PLUGIN_ERROR_NAME_MISMATCH: GstPluginError = GstPluginError::NameMismatch; -extern "C" { - pub fn gst_progress_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstProgressType { @@ -574,10 +478,6 @@ pub const GST_PROGRESS_TYPE_COMPLETE: GstProgressType = GstProgressType::Complet pub const GST_PROGRESS_TYPE_CANCELED: GstProgressType = GstProgressType::Canceled; pub const GST_PROGRESS_TYPE_ERROR: GstProgressType = GstProgressType::Error; -extern "C" { - pub fn gst_qos_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstQOSType { @@ -589,10 +489,6 @@ pub const GST_QOS_TYPE_OVERFLOW: GstQOSType = GstQOSType::Overflow; pub const GST_QOS_TYPE_UNDERFLOW: GstQOSType = GstQOSType::Underflow; pub const GST_QOS_TYPE_THROTTLE: GstQOSType = GstQOSType::Throttle; -extern "C" { - pub fn gst_query_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstQueryType { @@ -636,10 +532,6 @@ pub const GST_QUERY_CAPS: GstQueryType = GstQueryType::Caps; pub const GST_QUERY_DRAIN: GstQueryType = GstQueryType::Drain; pub const GST_QUERY_CONTEXT: GstQueryType = GstQueryType::Context; -extern "C" { - pub fn gst_rank_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstRank { @@ -653,10 +545,6 @@ pub const GST_RANK_MARGINAL: GstRank = GstRank::Marginal; pub const GST_RANK_SECONDARY: GstRank = GstRank::Secondary; pub const GST_RANK_PRIMARY: GstRank = GstRank::Primary; -extern "C" { - pub fn gst_resource_error_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstResourceError { @@ -694,10 +582,6 @@ pub const GST_RESOURCE_ERROR_NO_SPACE_LEFT: GstResourceError = GstResourceError: pub const GST_RESOURCE_ERROR_NOT_AUTHORIZED: GstResourceError = GstResourceError::NotAuthorized; pub const GST_RESOURCE_ERROR_NUM_ERRORS: GstResourceError = GstResourceError::NumErrors; -extern "C" { - pub fn gst_search_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstSearchMode { @@ -709,10 +593,6 @@ pub const GST_SEARCH_MODE_EXACT: GstSearchMode = GstSearchMode::Exact; pub const GST_SEARCH_MODE_BEFORE: GstSearchMode = GstSearchMode::Before; pub const GST_SEARCH_MODE_AFTER: GstSearchMode = GstSearchMode::After; -extern "C" { - pub fn gst_seek_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstSeekType { @@ -724,10 +604,6 @@ pub const GST_SEEK_TYPE_NONE: GstSeekType = GstSeekType::None; pub const GST_SEEK_TYPE_SET: GstSeekType = GstSeekType::Set; pub const GST_SEEK_TYPE_END: GstSeekType = GstSeekType::End; -extern "C" { - pub fn gst_state_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstState { @@ -743,10 +619,6 @@ pub const GST_STATE_READY: GstState = GstState::Ready; pub const GST_STATE_PAUSED: GstState = GstState::Paused; pub const GST_STATE_PLAYING: GstState = GstState::Playing; -extern "C" { - pub fn gst_state_change_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstStateChange { @@ -764,10 +636,6 @@ pub const GST_STATE_CHANGE_PLAYING_TO_PAUSED: GstStateChange = GstStateChange::P pub const GST_STATE_CHANGE_PAUSED_TO_READY: GstStateChange = GstStateChange::PausedToReady; pub const GST_STATE_CHANGE_READY_TO_NULL: GstStateChange = GstStateChange::ReadyToNull; -extern "C" { - pub fn gst_state_change_return_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstStateChangeReturn { @@ -781,10 +649,6 @@ pub const GST_STATE_CHANGE_SUCCESS: GstStateChangeReturn = GstStateChangeReturn: pub const GST_STATE_CHANGE_ASYNC: GstStateChangeReturn = GstStateChangeReturn::Async; pub const GST_STATE_CHANGE_NO_PREROLL: GstStateChangeReturn = GstStateChangeReturn::NoPreroll; -extern "C" { - pub fn gst_stream_error_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstStreamError { @@ -818,10 +682,6 @@ pub const GST_STREAM_ERROR_DECRYPT: GstStreamError = GstStreamError::Decrypt; pub const GST_STREAM_ERROR_DECRYPT_NOKEY: GstStreamError = GstStreamError::DecryptNokey; pub const GST_STREAM_ERROR_NUM_ERRORS: GstStreamError = GstStreamError::NumErrors; -extern "C" { - pub fn gst_stream_status_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstStreamStatusType { @@ -841,10 +701,6 @@ pub const GST_STREAM_STATUS_TYPE_START: GstStreamStatusType = GstStreamStatusTyp pub const GST_STREAM_STATUS_TYPE_PAUSE: GstStreamStatusType = GstStreamStatusType::Pause; pub const GST_STREAM_STATUS_TYPE_STOP: GstStreamStatusType = GstStreamStatusType::Stop; -extern "C" { - pub fn gst_structure_change_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstStructureChangeType { @@ -854,10 +710,6 @@ pub enum GstStructureChangeType { pub const GST_STRUCTURE_CHANGE_TYPE_PAD_LINK: GstStructureChangeType = GstStructureChangeType::Link; pub const GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK: GstStructureChangeType = GstStructureChangeType::Unlink; -extern "C" { - pub fn gst_tag_flag_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTagFlag { @@ -873,10 +725,6 @@ pub const GST_TAG_FLAG_ENCODED: GstTagFlag = GstTagFlag::Encoded; pub const GST_TAG_FLAG_DECODED: GstTagFlag = GstTagFlag::Decoded; pub const GST_TAG_FLAG_COUNT: GstTagFlag = GstTagFlag::Count; -extern "C" { - pub fn gst_tag_merge_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTagMergeMode { @@ -898,10 +746,6 @@ pub const GST_TAG_MERGE_KEEP: GstTagMergeMode = GstTagMergeMode::Keep; pub const GST_TAG_MERGE_KEEP_ALL: GstTagMergeMode = GstTagMergeMode::KeepAll; pub const GST_TAG_MERGE_COUNT: GstTagMergeMode = GstTagMergeMode::Count; -extern "C" { - pub fn gst_tag_scope_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTagScope { @@ -911,10 +755,6 @@ pub enum GstTagScope { pub const GST_TAG_SCOPE_STREAM: GstTagScope = GstTagScope::Stream; pub const GST_TAG_SCOPE_GLOBAL: GstTagScope = GstTagScope::Global; -extern "C" { - pub fn gst_task_state_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTaskState { @@ -926,10 +766,6 @@ pub const GST_TASK_STARTED: GstTaskState = GstTaskState::Started; pub const GST_TASK_STOPPED: GstTaskState = GstTaskState::Stopped; pub const GST_TASK_PAUSED: GstTaskState = GstTaskState::Paused; -extern "C" { - pub fn gst_toc_entry_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTocEntryType { @@ -949,10 +785,6 @@ pub const GST_TOC_ENTRY_TYPE_TITLE: GstTocEntryType = GstTocEntryType::Title; pub const GST_TOC_ENTRY_TYPE_TRACK: GstTocEntryType = GstTocEntryType::Track; pub const GST_TOC_ENTRY_TYPE_CHAPTER: GstTocEntryType = GstTocEntryType::Chapter; -extern "C" { - pub fn gst_toc_loop_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTocLoopType { @@ -966,10 +798,6 @@ pub const GST_TOC_LOOP_FORWARD: GstTocLoopType = GstTocLoopType::Forward; pub const GST_TOC_LOOP_REVERSE: GstTocLoopType = GstTocLoopType::Reverse; pub const GST_TOC_LOOP_PING_PONG: GstTocLoopType = GstTocLoopType::PingPong; -extern "C" { - pub fn gst_toc_scope_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTocScope { @@ -979,10 +807,6 @@ pub enum GstTocScope { pub const GST_TOC_SCOPE_GLOBAL: GstTocScope = GstTocScope::Global; pub const GST_TOC_SCOPE_CURRENT: GstTocScope = GstTocScope::Current; -extern "C" { - pub fn gst_tracer_value_scope_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTracerValueScope { @@ -996,10 +820,6 @@ pub const GST_TRACER_VALUE_SCOPE_THREAD: GstTracerValueScope = GstTracerValueSco pub const GST_TRACER_VALUE_SCOPE_ELEMENT: GstTracerValueScope = GstTracerValueScope::Element; pub const GST_TRACER_VALUE_SCOPE_PAD: GstTracerValueScope = GstTracerValueScope::Pad; -extern "C" { - pub fn gst_type_find_probability_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTypeFindProbability { @@ -1017,10 +837,6 @@ pub const GST_TYPE_FIND_LIKELY: GstTypeFindProbability = GstTypeFindProbability: pub const GST_TYPE_FIND_NEARLY_CERTAIN: GstTypeFindProbability = GstTypeFindProbability::NearlyCertain; pub const GST_TYPE_FIND_MAXIMUM: GstTypeFindProbability = GstTypeFindProbability::Maximum; -extern "C" { - pub fn gst_uri_error_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstURIError { @@ -1034,10 +850,6 @@ pub const GST_URI_ERROR_BAD_URI: GstURIError = GstURIError::BadUri; pub const GST_URI_ERROR_BAD_STATE: GstURIError = GstURIError::BadState; pub const GST_URI_ERROR_BAD_REFERENCE: GstURIError = GstURIError::BadReference; -extern "C" { - pub fn gst_uri_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstURIType { @@ -1231,10 +1043,6 @@ pub const GST_VERSION_MINOR: c_int = 12; pub const GST_VERSION_NANO: c_int = 0; // Flags -extern "C" { - pub fn gst_allocator_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstAllocatorFlags: c_uint { @@ -1243,10 +1051,6 @@ bitflags! { } } -extern "C" { - pub fn gst_bin_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstBinFlags: c_uint { @@ -1256,10 +1060,6 @@ bitflags! { } } -extern "C" { - pub fn gst_buffer_copy_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstBufferCopyFlags: c_uint { @@ -1273,10 +1073,6 @@ bitflags! { } } -extern "C" { - pub fn gst_buffer_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstBufferFlags: c_uint { @@ -1296,10 +1092,6 @@ bitflags! { } } -extern "C" { - pub fn gst_buffer_pool_acquire_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstBufferPoolAcquireFlags: c_uint { @@ -1311,10 +1103,6 @@ bitflags! { } } -extern "C" { - pub fn gst_bus_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstBusFlags: c_uint { @@ -1323,10 +1111,6 @@ bitflags! { } } -extern "C" { - pub fn gst_caps_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstCapsFlags: c_uint { @@ -1334,10 +1118,6 @@ bitflags! { } } -extern "C" { - pub fn gst_clock_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstClockFlags: c_uint { @@ -1352,10 +1132,6 @@ bitflags! { } } -extern "C" { - pub fn gst_debug_graph_details_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstDebugGraphDetails: c_uint { @@ -1369,10 +1145,6 @@ bitflags! { } } -extern "C" { - pub fn gst_element_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstElementFlags: c_uint { @@ -1386,10 +1158,6 @@ bitflags! { } } -extern "C" { - pub fn gst_event_type_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstEventTypeFlags: c_uint { @@ -1401,10 +1169,6 @@ bitflags! { } } -extern "C" { - pub fn gst_lock_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstLockFlags: c_uint { @@ -1415,10 +1179,6 @@ bitflags! { } } -extern "C" { - pub fn gst_map_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstMapFlags: c_uint { @@ -1428,10 +1188,6 @@ bitflags! { } } -extern "C" { - pub fn gst_memory_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstMemoryFlags: c_uint { @@ -1445,10 +1201,6 @@ bitflags! { } } -extern "C" { - pub fn gst_message_type_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstMessageType: c_uint { @@ -1495,10 +1247,6 @@ bitflags! { } } -extern "C" { - pub fn gst_meta_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstMetaFlags: c_uint { @@ -1510,10 +1258,6 @@ bitflags! { } } -extern "C" { - pub fn gst_mini_object_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstMiniObjectFlags: c_uint { @@ -1524,10 +1268,6 @@ bitflags! { } } -extern "C" { - pub fn gst_object_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstObjectFlags: c_uint { @@ -1536,10 +1276,6 @@ bitflags! { } } -extern "C" { - pub fn gst_pad_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstPadFlags: c_uint { @@ -1560,10 +1296,6 @@ bitflags! { } } -extern "C" { - pub fn gst_pad_link_check_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstPadLinkCheck: c_uint { @@ -1576,10 +1308,6 @@ bitflags! { } } -extern "C" { - pub fn gst_pad_probe_type_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstPadProbeType: c_uint { @@ -1608,10 +1336,6 @@ bitflags! { } } -extern "C" { - pub fn gst_pad_template_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstPadTemplateFlags: c_uint { @@ -1619,10 +1343,6 @@ bitflags! { } } -extern "C" { - pub fn gst_parse_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstParseFlags: c_uint { @@ -1633,10 +1353,6 @@ bitflags! { } } -extern "C" { - pub fn gst_pipeline_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstPipelineFlags: c_uint { @@ -1645,10 +1361,6 @@ bitflags! { } } -extern "C" { - pub fn gst_plugin_dependency_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstPluginDependencyFlags: c_uint { @@ -1660,10 +1372,6 @@ bitflags! { } } -extern "C" { - pub fn gst_plugin_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstPluginFlags: c_uint { @@ -1672,10 +1380,6 @@ bitflags! { } } -extern "C" { - pub fn gst_query_type_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstQueryTypeFlags: c_uint { @@ -1685,10 +1389,6 @@ bitflags! { } } -extern "C" { - pub fn gst_scheduling_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstSchedulingFlags: c_uint { @@ -1698,10 +1398,6 @@ bitflags! { } } -extern "C" { - pub fn gst_seek_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstSeekFlags: c_uint { @@ -1720,10 +1416,6 @@ bitflags! { } } -extern "C" { - pub fn gst_segment_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstSegmentFlags: c_uint { @@ -1737,10 +1429,6 @@ bitflags! { } } -extern "C" { - pub fn gst_stack_trace_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstStackTraceFlags: c_uint { @@ -1748,10 +1436,6 @@ bitflags! { } } -extern "C" { - pub fn gst_stream_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstStreamFlags: c_uint { @@ -1762,10 +1446,6 @@ bitflags! { } } -extern "C" { - pub fn gst_stream_type_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstStreamType: c_uint { @@ -1777,10 +1457,6 @@ bitflags! { } } -extern "C" { - pub fn gst_tracer_value_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstTracerValueFlags: c_uint { @@ -2871,26 +2547,75 @@ pub struct GstURIHandler(c_void); extern "C" { + //========================================================================= + // GstBufferingMode + //========================================================================= + pub fn gst_buffering_mode_get_type() -> GType; + + //========================================================================= + // GstBusSyncReply + //========================================================================= + pub fn gst_bus_sync_reply_get_type() -> GType; + + //========================================================================= + // GstCapsIntersectMode + //========================================================================= + pub fn gst_caps_intersect_mode_get_type() -> GType; + + //========================================================================= + // GstClockEntryType + //========================================================================= + pub fn gst_clock_entry_type_get_type() -> GType; + + //========================================================================= + // GstClockReturn + //========================================================================= + pub fn gst_clock_return_get_type() -> GType; + + //========================================================================= + // GstClockType + //========================================================================= + pub fn gst_clock_type_get_type() -> GType; + //========================================================================= // GstCoreError //========================================================================= + pub fn gst_core_error_get_type() -> GType; pub fn gst_core_error_quark() -> glib::GQuark; + //========================================================================= + // GstDebugColorFlags + //========================================================================= + pub fn gst_debug_color_flags_get_type() -> GType; + + //========================================================================= + // GstDebugColorMode + //========================================================================= + pub fn gst_debug_color_mode_get_type() -> GType; + //========================================================================= // GstDebugLevel //========================================================================= + pub fn gst_debug_level_get_type() -> GType; pub fn gst_debug_level_get_name(level: GstDebugLevel) -> *const c_char; //========================================================================= // GstEventType //========================================================================= + pub fn gst_event_type_get_type() -> GType; pub fn gst_event_type_get_flags(type_: GstEventType) -> GstEventTypeFlags; pub fn gst_event_type_get_name(type_: GstEventType) -> *const c_char; pub fn gst_event_type_to_quark(type_: GstEventType) -> glib::GQuark; + //========================================================================= + // GstFlowReturn + //========================================================================= + pub fn gst_flow_return_get_type() -> GType; + //========================================================================= // GstFormat //========================================================================= + pub fn gst_format_get_type() -> GType; pub fn gst_format_get_by_nick(nick: *const c_char) -> GstFormat; pub fn gst_format_get_details(format: GstFormat) -> *const GstFormatDefinition; pub fn gst_format_get_name(format: GstFormat) -> *const c_char; @@ -2898,65 +2623,361 @@ extern "C" { pub fn gst_format_register(nick: *const c_char, description: *const c_char) -> GstFormat; pub fn gst_format_to_quark(format: GstFormat) -> glib::GQuark; + //========================================================================= + // GstIteratorItem + //========================================================================= + pub fn gst_iterator_item_get_type() -> GType; + + //========================================================================= + // GstIteratorResult + //========================================================================= + pub fn gst_iterator_result_get_type() -> GType; + //========================================================================= // GstLibraryError //========================================================================= + pub fn gst_library_error_get_type() -> GType; pub fn gst_library_error_quark() -> glib::GQuark; + //========================================================================= + // GstPadDirection + //========================================================================= + pub fn gst_pad_direction_get_type() -> GType; + + //========================================================================= + // GstPadLinkReturn + //========================================================================= + pub fn gst_pad_link_return_get_type() -> GType; + //========================================================================= // GstPadMode //========================================================================= + pub fn gst_pad_mode_get_type() -> GType; pub fn gst_pad_mode_get_name(mode: GstPadMode) -> *const c_char; + //========================================================================= + // GstPadPresence + //========================================================================= + pub fn gst_pad_presence_get_type() -> GType; + + //========================================================================= + // GstPadProbeReturn + //========================================================================= + pub fn gst_pad_probe_return_get_type() -> GType; + //========================================================================= // GstParseError //========================================================================= + pub fn gst_parse_error_get_type() -> GType; pub fn gst_parse_error_quark() -> glib::GQuark; //========================================================================= // GstPluginError //========================================================================= + pub fn gst_plugin_error_get_type() -> GType; pub fn gst_plugin_error_quark() -> glib::GQuark; + //========================================================================= + // GstProgressType + //========================================================================= + pub fn gst_progress_type_get_type() -> GType; + + //========================================================================= + // GstQOSType + //========================================================================= + pub fn gst_qos_type_get_type() -> GType; + //========================================================================= // GstQueryType //========================================================================= + pub fn gst_query_type_get_type() -> GType; pub fn gst_query_type_get_flags(type_: GstQueryType) -> GstQueryTypeFlags; pub fn gst_query_type_get_name(type_: GstQueryType) -> *const c_char; pub fn gst_query_type_to_quark(type_: GstQueryType) -> glib::GQuark; + //========================================================================= + // GstRank + //========================================================================= + pub fn gst_rank_get_type() -> GType; + //========================================================================= // GstResourceError //========================================================================= + pub fn gst_resource_error_get_type() -> GType; pub fn gst_resource_error_quark() -> glib::GQuark; + //========================================================================= + // GstSearchMode + //========================================================================= + pub fn gst_search_mode_get_type() -> GType; + + //========================================================================= + // GstSeekType + //========================================================================= + pub fn gst_seek_type_get_type() -> GType; + + //========================================================================= + // GstState + //========================================================================= + pub fn gst_state_get_type() -> GType; + + //========================================================================= + // GstStateChange + //========================================================================= + pub fn gst_state_change_get_type() -> GType; + + //========================================================================= + // GstStateChangeReturn + //========================================================================= + pub fn gst_state_change_return_get_type() -> GType; + //========================================================================= // GstStreamError //========================================================================= + pub fn gst_stream_error_get_type() -> GType; pub fn gst_stream_error_quark() -> glib::GQuark; + //========================================================================= + // GstStreamStatusType + //========================================================================= + pub fn gst_stream_status_type_get_type() -> GType; + + //========================================================================= + // GstStructureChangeType + //========================================================================= + pub fn gst_structure_change_type_get_type() -> GType; + + //========================================================================= + // GstTagFlag + //========================================================================= + pub fn gst_tag_flag_get_type() -> GType; + + //========================================================================= + // GstTagMergeMode + //========================================================================= + pub fn gst_tag_merge_mode_get_type() -> GType; + + //========================================================================= + // GstTagScope + //========================================================================= + pub fn gst_tag_scope_get_type() -> GType; + + //========================================================================= + // GstTaskState + //========================================================================= + pub fn gst_task_state_get_type() -> GType; + //========================================================================= // GstTocEntryType //========================================================================= + pub fn gst_toc_entry_type_get_type() -> GType; pub fn gst_toc_entry_type_get_nick(type_: GstTocEntryType) -> *const c_char; + //========================================================================= + // GstTocLoopType + //========================================================================= + pub fn gst_toc_loop_type_get_type() -> GType; + + //========================================================================= + // GstTocScope + //========================================================================= + pub fn gst_toc_scope_get_type() -> GType; + + //========================================================================= + // GstTracerValueScope + //========================================================================= + pub fn gst_tracer_value_scope_get_type() -> GType; + + //========================================================================= + // GstTypeFindProbability + //========================================================================= + pub fn gst_type_find_probability_get_type() -> GType; + //========================================================================= // GstURIError //========================================================================= + pub fn gst_uri_error_get_type() -> GType; pub fn gst_uri_error_quark() -> glib::GQuark; + //========================================================================= + // GstURIType + //========================================================================= + pub fn gst_uri_type_get_type() -> GType; + + //========================================================================= + // GstAllocatorFlags + //========================================================================= + pub fn gst_allocator_flags_get_type() -> GType; + + //========================================================================= + // GstBinFlags + //========================================================================= + pub fn gst_bin_flags_get_type() -> GType; + + //========================================================================= + // GstBufferCopyFlags + //========================================================================= + pub fn gst_buffer_copy_flags_get_type() -> GType; + + //========================================================================= + // GstBufferFlags + //========================================================================= + pub fn gst_buffer_flags_get_type() -> GType; + + //========================================================================= + // GstBufferPoolAcquireFlags + //========================================================================= + pub fn gst_buffer_pool_acquire_flags_get_type() -> GType; + + //========================================================================= + // GstBusFlags + //========================================================================= + pub fn gst_bus_flags_get_type() -> GType; + + //========================================================================= + // GstCapsFlags + //========================================================================= + pub fn gst_caps_flags_get_type() -> GType; + + //========================================================================= + // GstClockFlags + //========================================================================= + pub fn gst_clock_flags_get_type() -> GType; + + //========================================================================= + // GstDebugGraphDetails + //========================================================================= + pub fn gst_debug_graph_details_get_type() -> GType; + + //========================================================================= + // GstElementFlags + //========================================================================= + pub fn gst_element_flags_get_type() -> GType; + + //========================================================================= + // GstEventTypeFlags + //========================================================================= + pub fn gst_event_type_flags_get_type() -> GType; + + //========================================================================= + // GstLockFlags + //========================================================================= + pub fn gst_lock_flags_get_type() -> GType; + + //========================================================================= + // GstMapFlags + //========================================================================= + pub fn gst_map_flags_get_type() -> GType; + + //========================================================================= + // GstMemoryFlags + //========================================================================= + pub fn gst_memory_flags_get_type() -> GType; + //========================================================================= // GstMessageType //========================================================================= + pub fn gst_message_type_get_type() -> GType; pub fn gst_message_type_get_name(type_: GstMessageType) -> *const c_char; pub fn gst_message_type_to_quark(type_: GstMessageType) -> glib::GQuark; + //========================================================================= + // GstMetaFlags + //========================================================================= + pub fn gst_meta_flags_get_type() -> GType; + + //========================================================================= + // GstMiniObjectFlags + //========================================================================= + pub fn gst_mini_object_flags_get_type() -> GType; + + //========================================================================= + // GstObjectFlags + //========================================================================= + pub fn gst_object_flags_get_type() -> GType; + + //========================================================================= + // GstPadFlags + //========================================================================= + pub fn gst_pad_flags_get_type() -> GType; + + //========================================================================= + // GstPadLinkCheck + //========================================================================= + pub fn gst_pad_link_check_get_type() -> GType; + + //========================================================================= + // GstPadProbeType + //========================================================================= + pub fn gst_pad_probe_type_get_type() -> GType; + + //========================================================================= + // GstPadTemplateFlags + //========================================================================= + pub fn gst_pad_template_flags_get_type() -> GType; + + //========================================================================= + // GstParseFlags + //========================================================================= + pub fn gst_parse_flags_get_type() -> GType; + + //========================================================================= + // GstPipelineFlags + //========================================================================= + pub fn gst_pipeline_flags_get_type() -> GType; + + //========================================================================= + // GstPluginDependencyFlags + //========================================================================= + pub fn gst_plugin_dependency_flags_get_type() -> GType; + + //========================================================================= + // GstPluginFlags + //========================================================================= + pub fn gst_plugin_flags_get_type() -> GType; + + //========================================================================= + // GstQueryTypeFlags + //========================================================================= + pub fn gst_query_type_flags_get_type() -> GType; + + //========================================================================= + // GstSchedulingFlags + //========================================================================= + pub fn gst_scheduling_flags_get_type() -> GType; + + //========================================================================= + // GstSeekFlags + //========================================================================= + pub fn gst_seek_flags_get_type() -> GType; + + //========================================================================= + // GstSegmentFlags + //========================================================================= + pub fn gst_segment_flags_get_type() -> GType; + + //========================================================================= + // GstStackTraceFlags + //========================================================================= + pub fn gst_stack_trace_flags_get_type() -> GType; + + //========================================================================= + // GstStreamFlags + //========================================================================= + pub fn gst_stream_flags_get_type() -> GType; + //========================================================================= // GstStreamType //========================================================================= + pub fn gst_stream_type_get_type() -> GType; #[cfg(feature = "v1_10")] pub fn gst_stream_type_get_name(stype: GstStreamType) -> *const c_char; + //========================================================================= + // GstTracerValueFlags + //========================================================================= + pub fn gst_tracer_value_flags_get_type() -> GType; + //========================================================================= // GstAllocationParams //========================================================================= diff --git a/gstreamer-tag-sys/src/lib.rs b/gstreamer-tag-sys/src/lib.rs index 9cdc415d2..a72b1c672 100644 --- a/gstreamer-tag-sys/src/lib.rs +++ b/gstreamer-tag-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (a4dcfea) from gir-files (???) +// This file was generated by gir (5c71144) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,10 +19,6 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -extern "C" { - pub fn gst_tag_demux_result_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTagDemuxResult { @@ -34,10 +30,6 @@ pub const GST_TAG_DEMUX_RESULT_BROKEN_TAG: GstTagDemuxResult = GstTagDemuxResult pub const GST_TAG_DEMUX_RESULT_AGAIN: GstTagDemuxResult = GstTagDemuxResult::Again; pub const GST_TAG_DEMUX_RESULT_OK: GstTagDemuxResult = GstTagDemuxResult::Ok; -extern "C" { - pub fn gst_tag_image_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstTagImageType { @@ -121,10 +113,6 @@ pub const GST_TAG_MUSICBRAINZ_TRACKID: *const c_char = b"musicbrainz-trackid\0" pub const GST_TAG_MUSICBRAINZ_TRMID: *const c_char = b"musicbrainz-trmid\0" as *const u8 as *const c_char; // Flags -extern "C" { - pub fn gst_tag_license_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstTagLicenseFlags: c_uint { @@ -197,6 +185,21 @@ pub struct GstTagXmpWriter(c_void); extern "C" { + //========================================================================= + // GstTagDemuxResult + //========================================================================= + pub fn gst_tag_demux_result_get_type() -> GType; + + //========================================================================= + // GstTagImageType + //========================================================================= + pub fn gst_tag_image_type_get_type() -> GType; + + //========================================================================= + // GstTagLicenseFlags + //========================================================================= + pub fn gst_tag_license_flags_get_type() -> GType; + //========================================================================= // GstTagDemux //========================================================================= diff --git a/gstreamer-video-sys/src/lib.rs b/gstreamer-video-sys/src/lib.rs index e49c33013..4b5b3547e 100644 --- a/gstreamer-video-sys/src/lib.rs +++ b/gstreamer-video-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (a4dcfea) from gir-files (???) +// This file was generated by gir (5c71144) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,10 +19,6 @@ use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double, use glib::{gboolean, gconstpointer, gpointer, GType, Volatile}; // Enums -extern "C" { - pub fn gst_color_balance_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstColorBalanceType { @@ -32,10 +28,6 @@ pub enum GstColorBalanceType { pub const GST_COLOR_BALANCE_HARDWARE: GstColorBalanceType = GstColorBalanceType::Hardware; pub const GST_COLOR_BALANCE_SOFTWARE: GstColorBalanceType = GstColorBalanceType::Software; -extern "C" { - pub fn gst_navigation_command_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstNavigationCommand { @@ -71,10 +63,6 @@ pub const GST_NAVIGATION_COMMAND_ACTIVATE: GstNavigationCommand = GstNavigationC pub const GST_NAVIGATION_COMMAND_PREV_ANGLE: GstNavigationCommand = GstNavigationCommand::PrevAngle; pub const GST_NAVIGATION_COMMAND_NEXT_ANGLE: GstNavigationCommand = GstNavigationCommand::NextAngle; -extern "C" { - pub fn gst_navigation_event_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstNavigationEventType { @@ -94,10 +82,6 @@ pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE: GstNavigationEventType = Gs pub const GST_NAVIGATION_EVENT_MOUSE_MOVE: GstNavigationEventType = GstNavigationEventType::MouseMove; pub const GST_NAVIGATION_EVENT_COMMAND: GstNavigationEventType = GstNavigationEventType::Command; -extern "C" { - pub fn gst_navigation_message_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstNavigationMessageType { @@ -113,10 +97,6 @@ pub const GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED: GstNavigationMessageType = Gs pub const GST_NAVIGATION_MESSAGE_ANGLES_CHANGED: GstNavigationMessageType = GstNavigationMessageType::AnglesChanged; pub const GST_NAVIGATION_MESSAGE_EVENT: GstNavigationMessageType = GstNavigationMessageType::Event; -extern "C" { - pub fn gst_navigation_query_type_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstNavigationQueryType { @@ -128,10 +108,6 @@ pub const GST_NAVIGATION_QUERY_INVALID: GstNavigationQueryType = GstNavigationQu pub const GST_NAVIGATION_QUERY_COMMANDS: GstNavigationQueryType = GstNavigationQueryType::Commands; pub const GST_NAVIGATION_QUERY_ANGLES: GstNavigationQueryType = GstNavigationQueryType::Angles; -extern "C" { - pub fn gst_video_alpha_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoAlphaMode { @@ -143,10 +119,6 @@ pub const GST_VIDEO_ALPHA_MODE_COPY: GstVideoAlphaMode = GstVideoAlphaMode::Copy pub const GST_VIDEO_ALPHA_MODE_SET: GstVideoAlphaMode = GstVideoAlphaMode::Set; pub const GST_VIDEO_ALPHA_MODE_MULT: GstVideoAlphaMode = GstVideoAlphaMode::Mult; -extern "C" { - pub fn gst_video_chroma_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoChromaMethod { @@ -156,10 +128,6 @@ pub enum GstVideoChromaMethod { pub const GST_VIDEO_CHROMA_METHOD_NEAREST: GstVideoChromaMethod = GstVideoChromaMethod::Nearest; pub const GST_VIDEO_CHROMA_METHOD_LINEAR: GstVideoChromaMethod = GstVideoChromaMethod::Linear; -extern "C" { - pub fn gst_video_chroma_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoChromaMode { @@ -173,10 +141,6 @@ pub const GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY: GstVideoChromaMode = GstVideoChro pub const GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY: GstVideoChromaMode = GstVideoChromaMode::DownsampleOnly; pub const GST_VIDEO_CHROMA_MODE_NONE: GstVideoChromaMode = GstVideoChromaMode::None; -extern "C" { - pub fn gst_video_color_matrix_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoColorMatrix { @@ -196,10 +160,6 @@ pub const GST_VIDEO_COLOR_MATRIX_BT601: GstVideoColorMatrix = GstVideoColorMatri pub const GST_VIDEO_COLOR_MATRIX_SMPTE240M: GstVideoColorMatrix = GstVideoColorMatrix::Smpte240m; pub const GST_VIDEO_COLOR_MATRIX_BT2020: GstVideoColorMatrix = GstVideoColorMatrix::Bt2020; -extern "C" { - pub fn gst_video_color_primaries_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoColorPrimaries { @@ -223,10 +183,6 @@ pub const GST_VIDEO_COLOR_PRIMARIES_FILM: GstVideoColorPrimaries = GstVideoColor pub const GST_VIDEO_COLOR_PRIMARIES_BT2020: GstVideoColorPrimaries = GstVideoColorPrimaries::Bt2020; pub const GST_VIDEO_COLOR_PRIMARIES_ADOBERGB: GstVideoColorPrimaries = GstVideoColorPrimaries::Adobergb; -extern "C" { - pub fn gst_video_color_range_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoColorRange { @@ -238,10 +194,6 @@ pub const GST_VIDEO_COLOR_RANGE_UNKNOWN: GstVideoColorRange = GstVideoColorRange pub const GST_VIDEO_COLOR_RANGE_0_255: GstVideoColorRange = GstVideoColorRange::_0255; pub const GST_VIDEO_COLOR_RANGE_16_235: GstVideoColorRange = GstVideoColorRange::_16235; -extern "C" { - pub fn gst_video_dither_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoDitherMethod { @@ -257,10 +209,6 @@ pub const GST_VIDEO_DITHER_FLOYD_STEINBERG: GstVideoDitherMethod = GstVideoDithe pub const GST_VIDEO_DITHER_SIERRA_LITE: GstVideoDitherMethod = GstVideoDitherMethod::SierraLite; pub const GST_VIDEO_DITHER_BAYER: GstVideoDitherMethod = GstVideoDitherMethod::Bayer; -extern "C" { - pub fn gst_video_field_order_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoFieldOrder { @@ -272,10 +220,6 @@ pub const GST_VIDEO_FIELD_ORDER_UNKNOWN: GstVideoFieldOrder = GstVideoFieldOrder pub const GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST: GstVideoFieldOrder = GstVideoFieldOrder::TopFieldFirst; pub const GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST: GstVideoFieldOrder = GstVideoFieldOrder::BottomFieldFirst; -extern "C" { - pub fn gst_video_format_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoFormat { @@ -469,10 +413,6 @@ pub const GST_VIDEO_GL_TEXTURE_TYPE_RGBA: GstVideoGLTextureType = GstVideoGLText pub const GST_VIDEO_GL_TEXTURE_TYPE_R: GstVideoGLTextureType = GstVideoGLTextureType::R; pub const GST_VIDEO_GL_TEXTURE_TYPE_RG: GstVideoGLTextureType = GstVideoGLTextureType::Rg; -extern "C" { - pub fn gst_video_gamma_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoGammaMode { @@ -482,10 +422,6 @@ pub enum GstVideoGammaMode { pub const GST_VIDEO_GAMMA_MODE_NONE: GstVideoGammaMode = GstVideoGammaMode::None; pub const GST_VIDEO_GAMMA_MODE_REMAP: GstVideoGammaMode = GstVideoGammaMode::Remap; -extern "C" { - pub fn gst_video_interlace_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoInterlaceMode { @@ -499,10 +435,6 @@ pub const GST_VIDEO_INTERLACE_MODE_INTERLEAVED: GstVideoInterlaceMode = GstVideo pub const GST_VIDEO_INTERLACE_MODE_MIXED: GstVideoInterlaceMode = GstVideoInterlaceMode::Mixed; pub const GST_VIDEO_INTERLACE_MODE_FIELDS: GstVideoInterlaceMode = GstVideoInterlaceMode::Fields; -extern "C" { - pub fn gst_video_matrix_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoMatrixMode { @@ -516,10 +448,6 @@ pub const GST_VIDEO_MATRIX_MODE_INPUT_ONLY: GstVideoMatrixMode = GstVideoMatrixM pub const GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY: GstVideoMatrixMode = GstVideoMatrixMode::OutputOnly; pub const GST_VIDEO_MATRIX_MODE_NONE: GstVideoMatrixMode = GstVideoMatrixMode::None; -extern "C" { - pub fn gst_video_multiview_frame_packing_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoMultiviewFramePacking { @@ -545,10 +473,6 @@ pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED: GstVideoMultiviewFr pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::TopBottom; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD: GstVideoMultiviewFramePacking = GstVideoMultiviewFramePacking::Checkerboard; -extern "C" { - pub fn gst_video_multiview_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoMultiviewMode { @@ -580,10 +504,6 @@ pub const GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME: GstVideoMultiviewMode = GstVi pub const GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME: GstVideoMultiviewMode = GstVideoMultiviewMode::MultiviewFrameByFrame; pub const GST_VIDEO_MULTIVIEW_MODE_SEPARATED: GstVideoMultiviewMode = GstVideoMultiviewMode::Separated; -extern "C" { - pub fn gst_video_orientation_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoOrientationMethod { @@ -620,10 +540,6 @@ pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE: GstVideoOverlayFormatFlags = GstVi pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA: GstVideoOverlayFormatFlags = GstVideoOverlayFormatFlags::PremultipliedAlpha; pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA: GstVideoOverlayFormatFlags = GstVideoOverlayFormatFlags::GlobalAlpha; -extern "C" { - pub fn gst_video_primaries_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoPrimariesMode { @@ -635,10 +551,6 @@ pub const GST_VIDEO_PRIMARIES_MODE_NONE: GstVideoPrimariesMode = GstVideoPrimari pub const GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY: GstVideoPrimariesMode = GstVideoPrimariesMode::MergeOnly; pub const GST_VIDEO_PRIMARIES_MODE_FAST: GstVideoPrimariesMode = GstVideoPrimariesMode::Fast; -extern "C" { - pub fn gst_video_resampler_method_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoResamplerMethod { @@ -654,10 +566,6 @@ pub const GST_VIDEO_RESAMPLER_METHOD_CUBIC: GstVideoResamplerMethod = GstVideoRe pub const GST_VIDEO_RESAMPLER_METHOD_SINC: GstVideoResamplerMethod = GstVideoResamplerMethod::Sinc; pub const GST_VIDEO_RESAMPLER_METHOD_LANCZOS: GstVideoResamplerMethod = GstVideoResamplerMethod::Lanczos; -extern "C" { - pub fn gst_video_tile_mode_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoTileMode { @@ -667,18 +575,10 @@ pub enum GstVideoTileMode { pub const GST_VIDEO_TILE_MODE_UNKNOWN: GstVideoTileMode = GstVideoTileMode::Unknown; pub const GST_VIDEO_TILE_MODE_ZFLIPZ_2X2: GstVideoTileMode = GstVideoTileMode::Zflipz2x2; -extern "C" { - pub fn gst_video_tile_type_get_type() -> GType; -} - pub type VideoTileType = c_int; pub const GST_VIDEO_TILE_TYPE_INDEXED: VideoTileType = 0; pub type GstVideoTileType = VideoTileType; -extern "C" { - pub fn gst_video_transfer_function_get_type() -> GType; -} - #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(C)] pub enum GstVideoTransferFunction { @@ -783,10 +683,6 @@ pub const GST_VIDEO_TILE_X_TILES_MASK: c_int = 0; pub const GST_VIDEO_TILE_Y_TILES_SHIFT: c_int = 16; // Flags -extern "C" { - pub fn gst_video_buffer_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoBufferFlags: c_uint { @@ -800,10 +696,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_chroma_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoChromaFlags: c_uint { @@ -812,10 +704,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_chroma_site_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoChromaSite: c_uint { @@ -841,10 +729,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_dither_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoDitherFlags: c_uint { @@ -854,10 +738,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoFlags: c_uint { @@ -867,10 +747,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_format_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoFormatFlags: c_uint { @@ -886,10 +762,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_frame_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoFrameFlags: c_uint { @@ -903,10 +775,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_frame_map_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoFrameMapFlags: c_uint { @@ -915,10 +783,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_multiview_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoMultiviewFlags: c_uint { @@ -933,10 +797,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_pack_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoPackFlags: c_uint { @@ -946,10 +806,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_resampler_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoResamplerFlags: c_uint { @@ -958,10 +814,6 @@ bitflags! { } } -extern "C" { - pub fn gst_video_scaler_flags_get_type() -> GType; -} - bitflags! { #[repr(C)] pub struct GstVideoScalerFlags: c_uint { @@ -1454,26 +1306,75 @@ pub struct GstVideoOverlay(c_void); extern "C" { + //========================================================================= + // GstColorBalanceType + //========================================================================= + pub fn gst_color_balance_type_get_type() -> GType; + + //========================================================================= + // GstNavigationCommand + //========================================================================= + pub fn gst_navigation_command_get_type() -> GType; + + //========================================================================= + // GstNavigationEventType + //========================================================================= + pub fn gst_navigation_event_type_get_type() -> GType; + + //========================================================================= + // GstNavigationMessageType + //========================================================================= + pub fn gst_navigation_message_type_get_type() -> GType; + + //========================================================================= + // GstNavigationQueryType + //========================================================================= + pub fn gst_navigation_query_type_get_type() -> GType; + + //========================================================================= + // GstVideoAlphaMode + //========================================================================= + pub fn gst_video_alpha_mode_get_type() -> GType; + + //========================================================================= + // GstVideoChromaMethod + //========================================================================= + pub fn gst_video_chroma_method_get_type() -> GType; + + //========================================================================= + // GstVideoChromaMode + //========================================================================= + pub fn gst_video_chroma_mode_get_type() -> GType; + //========================================================================= // GstVideoColorMatrix //========================================================================= + pub fn gst_video_color_matrix_get_type() -> GType; #[cfg(feature = "v1_6")] pub fn gst_video_color_matrix_get_Kr_Kb(matrix: GstVideoColorMatrix, Kr: *mut c_double, Kb: *mut c_double) -> gboolean; //========================================================================= // GstVideoColorPrimaries //========================================================================= + pub fn gst_video_color_primaries_get_type() -> GType; #[cfg(feature = "v1_6")] pub fn gst_video_color_primaries_get_info(primaries: GstVideoColorPrimaries) -> *const GstVideoColorPrimariesInfo; //========================================================================= // GstVideoColorRange //========================================================================= + pub fn gst_video_color_range_get_type() -> GType; pub fn gst_video_color_range_offsets(range: GstVideoColorRange, info: *const GstVideoFormatInfo, offset: c_int, scale: c_int); + //========================================================================= + // GstVideoDitherMethod + //========================================================================= + pub fn gst_video_dither_method_get_type() -> GType; + //========================================================================= // GstVideoFieldOrder //========================================================================= + pub fn gst_video_field_order_get_type() -> GType; #[cfg(feature = "v1_12")] pub fn gst_video_field_order_from_string(order: *const c_char) -> GstVideoFieldOrder; #[cfg(feature = "v1_12")] @@ -1482,6 +1383,7 @@ extern "C" { //========================================================================= // GstVideoFormat //========================================================================= + pub fn gst_video_format_get_type() -> GType; pub fn gst_video_format_from_fourcc(fourcc: u32) -> GstVideoFormat; pub fn gst_video_format_from_masks(depth: c_int, bpp: c_int, endianness: c_int, red_mask: c_uint, green_mask: c_uint, blue_mask: c_uint, alpha_mask: c_uint) -> GstVideoFormat; pub fn gst_video_format_from_string(format: *const c_char) -> GstVideoFormat; @@ -1491,22 +1393,129 @@ extern "C" { pub fn gst_video_format_to_fourcc(format: GstVideoFormat) -> u32; pub fn gst_video_format_to_string(format: GstVideoFormat) -> *const c_char; + //========================================================================= + // GstVideoGammaMode + //========================================================================= + pub fn gst_video_gamma_mode_get_type() -> GType; + //========================================================================= // GstVideoInterlaceMode //========================================================================= + pub fn gst_video_interlace_mode_get_type() -> GType; #[cfg(feature = "v1_6")] pub fn gst_video_interlace_mode_from_string(mode: *const c_char) -> GstVideoInterlaceMode; #[cfg(feature = "v1_6")] pub fn gst_video_interlace_mode_to_string(mode: GstVideoInterlaceMode) -> *const c_char; + //========================================================================= + // GstVideoMatrixMode + //========================================================================= + pub fn gst_video_matrix_mode_get_type() -> GType; + + //========================================================================= + // GstVideoMultiviewFramePacking + //========================================================================= + pub fn gst_video_multiview_frame_packing_get_type() -> GType; + //========================================================================= // GstVideoMultiviewMode //========================================================================= + pub fn gst_video_multiview_mode_get_type() -> GType; #[cfg(feature = "v1_6")] pub fn gst_video_multiview_mode_from_caps_string(caps_mview_mode: *const c_char) -> GstVideoMultiviewMode; #[cfg(feature = "v1_6")] pub fn gst_video_multiview_mode_to_caps_string(mview_mode: GstVideoMultiviewMode) -> *const c_char; + //========================================================================= + // GstVideoOrientationMethod + //========================================================================= + pub fn gst_video_orientation_method_get_type() -> GType; + + //========================================================================= + // GstVideoPrimariesMode + //========================================================================= + pub fn gst_video_primaries_mode_get_type() -> GType; + + //========================================================================= + // GstVideoResamplerMethod + //========================================================================= + pub fn gst_video_resampler_method_get_type() -> GType; + + //========================================================================= + // GstVideoTileMode + //========================================================================= + pub fn gst_video_tile_mode_get_type() -> GType; + + //========================================================================= + // GstVideoTileType + //========================================================================= + pub fn gst_video_tile_type_get_type() -> GType; + + //========================================================================= + // GstVideoTransferFunction + //========================================================================= + pub fn gst_video_transfer_function_get_type() -> GType; + + //========================================================================= + // GstVideoBufferFlags + //========================================================================= + pub fn gst_video_buffer_flags_get_type() -> GType; + + //========================================================================= + // GstVideoChromaFlags + //========================================================================= + pub fn gst_video_chroma_flags_get_type() -> GType; + + //========================================================================= + // GstVideoChromaSite + //========================================================================= + pub fn gst_video_chroma_site_get_type() -> GType; + + //========================================================================= + // GstVideoDitherFlags + //========================================================================= + pub fn gst_video_dither_flags_get_type() -> GType; + + //========================================================================= + // GstVideoFlags + //========================================================================= + pub fn gst_video_flags_get_type() -> GType; + + //========================================================================= + // GstVideoFormatFlags + //========================================================================= + pub fn gst_video_format_flags_get_type() -> GType; + + //========================================================================= + // GstVideoFrameFlags + //========================================================================= + pub fn gst_video_frame_flags_get_type() -> GType; + + //========================================================================= + // GstVideoFrameMapFlags + //========================================================================= + pub fn gst_video_frame_map_flags_get_type() -> GType; + + //========================================================================= + // GstVideoMultiviewFlags + //========================================================================= + pub fn gst_video_multiview_flags_get_type() -> GType; + + //========================================================================= + // GstVideoPackFlags + //========================================================================= + pub fn gst_video_pack_flags_get_type() -> GType; + + //========================================================================= + // GstVideoResamplerFlags + //========================================================================= + pub fn gst_video_resampler_flags_get_type() -> GType; + + //========================================================================= + // GstVideoScalerFlags + //========================================================================= + pub fn gst_video_scaler_flags_get_type() -> GType; + //========================================================================= // GstVideoAffineTransformationMeta //=========================================================================