diff --git a/gstreamer-app-sys/src/lib.rs b/gstreamer-app-sys/src/lib.rs index 0cae1fa7a..5a703fbb0 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 (d121f7e+) from gir-files (???) +// This file was generated by gir (a4dcfea) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,6 +19,10 @@ 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 { diff --git a/gstreamer-audio-sys/src/lib.rs b/gstreamer-audio-sys/src/lib.rs index fbccafab6..7cf4a055f 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 (d121f7e+) from gir-files (???) +// This file was generated by gir (a4dcfea) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -20,6 +20,10 @@ 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 { @@ -37,6 +41,10 @@ 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 { @@ -50,6 +58,10 @@ 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 { @@ -63,6 +75,10 @@ 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 { @@ -72,6 +88,10 @@ 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 { @@ -139,6 +159,10 @@ 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 { @@ -152,6 +176,10 @@ 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 { @@ -235,6 +263,10 @@ 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 { @@ -244,6 +276,10 @@ 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 { @@ -259,6 +295,10 @@ 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 { @@ -270,6 +310,10 @@ 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 { @@ -281,6 +325,10 @@ 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 { @@ -296,6 +344,10 @@ 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 { @@ -331,6 +383,10 @@ 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 { @@ -390,6 +446,10 @@ 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 { @@ -401,6 +461,10 @@ bitflags! { } } +extern "C" { + pub fn gst_audio_converter_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstAudioConverterFlags: c_uint { @@ -410,6 +474,10 @@ bitflags! { } } +extern "C" { + pub fn gst_audio_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstAudioFlags: c_uint { @@ -418,6 +486,10 @@ bitflags! { } } +extern "C" { + pub fn gst_audio_format_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstAudioFormatFlags: c_uint { @@ -429,6 +501,10 @@ bitflags! { } } +extern "C" { + pub fn gst_audio_pack_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstAudioPackFlags: c_uint { @@ -437,6 +513,10 @@ bitflags! { } } +extern "C" { + pub fn gst_audio_quantize_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstAudioQuantizeFlags: c_uint { @@ -445,6 +525,10 @@ bitflags! { } } +extern "C" { + pub fn gst_audio_resampler_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstAudioResamplerFlags: c_uint { @@ -897,7 +981,9 @@ extern "C" { pub fn gst_audio_resampler_resample(resampler: *mut GstAudioResampler, in_: gpointer, in_frames: size_t, out: gpointer, out_frames: size_t); pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler); pub fn gst_audio_resampler_update(resampler: *mut GstAudioResampler, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure) -> gboolean; + #[cfg(feature = "v1_6")] pub fn gst_audio_resampler_new(method: GstAudioResamplerMethod, flags: GstAudioResamplerFlags, format: GstAudioFormat, channels: c_int, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure) -> *mut GstAudioResampler; + #[cfg(feature = "v1_6")] pub fn gst_audio_resampler_options_set_quality(method: GstAudioResamplerMethod, quality: c_uint, in_rate: c_int, out_rate: c_int, options: *mut gst::GstStructure); //========================================================================= diff --git a/gstreamer-base-sys/src/lib.rs b/gstreamer-base-sys/src/lib.rs index 02a31334a..f718539b2 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 (531f8d9) from gir-files (???) +// This file was generated by gir (a4dcfea) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -550,11 +550,13 @@ extern "C" { pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner); #[cfg(feature = "v1_4")] pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner); + #[cfg(feature = "v1_4")] pub fn gst_flow_combiner_ref(combiner: *mut GstFlowCombiner) -> *mut GstFlowCombiner; #[cfg(feature = "v1_4")] pub fn gst_flow_combiner_remove_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad); #[cfg(feature = "v1_6")] pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner); + #[cfg(feature = "v1_4")] pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner); #[cfg(feature = "v1_4")] pub fn gst_flow_combiner_update_flow(combiner: *mut GstFlowCombiner, fret: gst::GstFlowReturn) -> gst::GstFlowReturn; diff --git a/gstreamer-pbutils-sys/src/lib.rs b/gstreamer-pbutils-sys/src/lib.rs index 318238bd2..c5dd76e97 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 (531f8d9) from gir-files (???) +// This file was generated by gir (a4dcfea) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -30,6 +30,10 @@ 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 { @@ -55,6 +59,10 @@ 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 { @@ -72,6 +80,10 @@ 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 { @@ -111,6 +123,10 @@ 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 { diff --git a/gstreamer-sys/src/lib.rs b/gstreamer-sys/src/lib.rs index 299cfd8e6..e063f7485 100644 --- a/gstreamer-sys/src/lib.rs +++ b/gstreamer-sys/src/lib.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (531f8d9) from gir-files (???) +// This file was generated by gir (a4dcfea) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -23,6 +23,10 @@ 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 { @@ -36,6 +40,10 @@ 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 { @@ -47,6 +55,10 @@ 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 { @@ -56,6 +68,10 @@ 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 { @@ -65,6 +81,10 @@ 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 { @@ -86,6 +106,10 @@ 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 { @@ -97,6 +121,10 @@ 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 { @@ -132,6 +160,10 @@ 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 { @@ -172,6 +204,10 @@ 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 { @@ -183,6 +219,10 @@ 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 { @@ -208,6 +248,10 @@ 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 { @@ -273,6 +317,10 @@ 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 { @@ -304,6 +352,10 @@ 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 { @@ -321,6 +373,10 @@ 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 { @@ -332,6 +388,10 @@ 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 { @@ -345,6 +405,10 @@ 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 { @@ -364,6 +428,10 @@ 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 { @@ -375,6 +443,10 @@ 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 { @@ -394,6 +466,10 @@ 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 { @@ -405,6 +481,10 @@ 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 { @@ -416,6 +496,10 @@ 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 { @@ -431,6 +515,10 @@ 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 { @@ -452,6 +540,10 @@ 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 { @@ -463,6 +555,10 @@ 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 { @@ -478,6 +574,10 @@ 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 { @@ -489,6 +589,10 @@ 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 { @@ -532,6 +636,10 @@ 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 { @@ -545,6 +653,10 @@ 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 { @@ -582,6 +694,10 @@ 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 { @@ -593,6 +709,10 @@ 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 { @@ -604,6 +724,10 @@ 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 { @@ -619,6 +743,10 @@ 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 { @@ -636,6 +764,10 @@ 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 { @@ -649,6 +781,10 @@ 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 { @@ -682,6 +818,10 @@ 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 { @@ -701,6 +841,10 @@ 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 { @@ -710,6 +854,10 @@ 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 { @@ -725,6 +873,10 @@ 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 { @@ -746,6 +898,10 @@ 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 { @@ -755,6 +911,10 @@ 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 { @@ -766,6 +926,10 @@ 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 { @@ -785,6 +949,10 @@ 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 { @@ -798,6 +966,10 @@ 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 { @@ -807,6 +979,10 @@ 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 { @@ -820,6 +996,10 @@ 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 { @@ -837,6 +1017,10 @@ 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 { @@ -850,6 +1034,10 @@ 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 { @@ -1043,6 +1231,10 @@ 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 { @@ -1051,6 +1243,10 @@ bitflags! { } } +extern "C" { + pub fn gst_bin_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstBinFlags: c_uint { @@ -1060,6 +1256,10 @@ bitflags! { } } +extern "C" { + pub fn gst_buffer_copy_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstBufferCopyFlags: c_uint { @@ -1073,6 +1273,10 @@ bitflags! { } } +extern "C" { + pub fn gst_buffer_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstBufferFlags: c_uint { @@ -1092,6 +1296,10 @@ bitflags! { } } +extern "C" { + pub fn gst_buffer_pool_acquire_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstBufferPoolAcquireFlags: c_uint { @@ -1103,6 +1311,10 @@ bitflags! { } } +extern "C" { + pub fn gst_bus_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstBusFlags: c_uint { @@ -1111,6 +1323,10 @@ bitflags! { } } +extern "C" { + pub fn gst_caps_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstCapsFlags: c_uint { @@ -1118,6 +1334,10 @@ bitflags! { } } +extern "C" { + pub fn gst_clock_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstClockFlags: c_uint { @@ -1132,6 +1352,10 @@ bitflags! { } } +extern "C" { + pub fn gst_debug_graph_details_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstDebugGraphDetails: c_uint { @@ -1145,6 +1369,10 @@ bitflags! { } } +extern "C" { + pub fn gst_element_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstElementFlags: c_uint { @@ -1158,6 +1386,10 @@ bitflags! { } } +extern "C" { + pub fn gst_event_type_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstEventTypeFlags: c_uint { @@ -1169,6 +1401,10 @@ bitflags! { } } +extern "C" { + pub fn gst_lock_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstLockFlags: c_uint { @@ -1179,6 +1415,10 @@ bitflags! { } } +extern "C" { + pub fn gst_map_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstMapFlags: c_uint { @@ -1188,6 +1428,10 @@ bitflags! { } } +extern "C" { + pub fn gst_memory_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstMemoryFlags: c_uint { @@ -1201,6 +1445,10 @@ bitflags! { } } +extern "C" { + pub fn gst_message_type_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstMessageType: c_uint { @@ -1247,6 +1495,10 @@ bitflags! { } } +extern "C" { + pub fn gst_meta_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstMetaFlags: c_uint { @@ -1258,6 +1510,10 @@ bitflags! { } } +extern "C" { + pub fn gst_mini_object_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstMiniObjectFlags: c_uint { @@ -1268,6 +1524,10 @@ bitflags! { } } +extern "C" { + pub fn gst_object_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstObjectFlags: c_uint { @@ -1276,6 +1536,10 @@ bitflags! { } } +extern "C" { + pub fn gst_pad_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstPadFlags: c_uint { @@ -1296,6 +1560,10 @@ bitflags! { } } +extern "C" { + pub fn gst_pad_link_check_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstPadLinkCheck: c_uint { @@ -1308,6 +1576,10 @@ bitflags! { } } +extern "C" { + pub fn gst_pad_probe_type_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstPadProbeType: c_uint { @@ -1336,6 +1608,10 @@ bitflags! { } } +extern "C" { + pub fn gst_pad_template_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstPadTemplateFlags: c_uint { @@ -1343,6 +1619,10 @@ bitflags! { } } +extern "C" { + pub fn gst_parse_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstParseFlags: c_uint { @@ -1353,6 +1633,10 @@ bitflags! { } } +extern "C" { + pub fn gst_pipeline_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstPipelineFlags: c_uint { @@ -1361,6 +1645,10 @@ bitflags! { } } +extern "C" { + pub fn gst_plugin_dependency_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstPluginDependencyFlags: c_uint { @@ -1372,6 +1660,10 @@ bitflags! { } } +extern "C" { + pub fn gst_plugin_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstPluginFlags: c_uint { @@ -1380,6 +1672,10 @@ bitflags! { } } +extern "C" { + pub fn gst_query_type_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstQueryTypeFlags: c_uint { @@ -1389,6 +1685,10 @@ bitflags! { } } +extern "C" { + pub fn gst_scheduling_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstSchedulingFlags: c_uint { @@ -1398,6 +1698,10 @@ bitflags! { } } +extern "C" { + pub fn gst_seek_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstSeekFlags: c_uint { @@ -1416,6 +1720,10 @@ bitflags! { } } +extern "C" { + pub fn gst_segment_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstSegmentFlags: c_uint { @@ -1429,6 +1737,10 @@ bitflags! { } } +extern "C" { + pub fn gst_stack_trace_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstStackTraceFlags: c_uint { @@ -1436,6 +1748,10 @@ bitflags! { } } +extern "C" { + pub fn gst_stream_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstStreamFlags: c_uint { @@ -1446,6 +1762,10 @@ bitflags! { } } +extern "C" { + pub fn gst_stream_type_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstStreamType: c_uint { @@ -1457,6 +1777,10 @@ bitflags! { } } +extern "C" { + pub fn gst_tracer_value_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstTracerValueFlags: c_uint { @@ -3894,6 +4218,7 @@ extern "C" { pub fn gst_device_provider_get_type() -> GType; #[cfg(feature = "v1_4")] pub fn gst_device_provider_register(plugin: *mut GstPlugin, name: *const c_char, rank: c_uint, type_: GType) -> gboolean; + #[cfg(feature = "v1_4")] pub fn gst_device_provider_can_monitor(provider: *mut GstDeviceProvider) -> gboolean; #[cfg(feature = "v1_4")] pub fn gst_device_provider_device_add(provider: *mut GstDeviceProvider, device: *mut GstDevice); diff --git a/gstreamer-tag-sys/src/lib.rs b/gstreamer-tag-sys/src/lib.rs index 038f52a80..9cdc415d2 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 (d121f7e+) from gir-files (???) +// This file was generated by gir (a4dcfea) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,6 +19,10 @@ 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 { @@ -30,6 +34,10 @@ 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 { @@ -113,6 +121,10 @@ 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 { diff --git a/gstreamer-video-sys/src/lib.rs b/gstreamer-video-sys/src/lib.rs index ca5f03042..e49c33013 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 (d121f7e+) from gir-files (???) +// This file was generated by gir (a4dcfea) from gir-files (???) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals)] @@ -19,6 +19,10 @@ 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 { @@ -28,6 +32,10 @@ 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 { @@ -63,6 +71,10 @@ 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 { @@ -82,6 +94,10 @@ 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 { @@ -97,6 +113,10 @@ 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 { @@ -108,6 +128,10 @@ 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 { @@ -119,6 +143,10 @@ 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 { @@ -128,6 +156,10 @@ 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 { @@ -141,6 +173,10 @@ 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 { @@ -160,6 +196,10 @@ 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 { @@ -183,6 +223,10 @@ 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 { @@ -194,6 +238,10 @@ 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 { @@ -209,6 +257,10 @@ 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 { @@ -220,6 +272,10 @@ 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 { @@ -413,6 +469,10 @@ 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 { @@ -422,6 +482,10 @@ 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 { @@ -435,6 +499,10 @@ 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 { @@ -448,6 +516,10 @@ 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 { @@ -473,6 +545,10 @@ 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 { @@ -504,6 +580,10 @@ 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 { @@ -540,6 +620,10 @@ 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 { @@ -551,6 +635,10 @@ 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 { @@ -566,6 +654,10 @@ 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 { @@ -575,10 +667,18 @@ 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 { @@ -683,6 +783,10 @@ 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 { @@ -696,6 +800,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_chroma_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoChromaFlags: c_uint { @@ -704,6 +812,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_chroma_site_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoChromaSite: c_uint { @@ -729,6 +841,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_dither_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoDitherFlags: c_uint { @@ -738,6 +854,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoFlags: c_uint { @@ -747,6 +867,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_format_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoFormatFlags: c_uint { @@ -762,6 +886,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_frame_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoFrameFlags: c_uint { @@ -775,6 +903,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_frame_map_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoFrameMapFlags: c_uint { @@ -783,6 +915,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_multiview_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoMultiviewFlags: c_uint { @@ -797,6 +933,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_pack_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoPackFlags: c_uint { @@ -806,6 +946,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_resampler_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoResamplerFlags: c_uint { @@ -814,6 +958,10 @@ bitflags! { } } +extern "C" { + pub fn gst_video_scaler_flags_get_type() -> GType; +} + bitflags! { #[repr(C)] pub struct GstVideoScalerFlags: c_uint { @@ -1520,6 +1668,7 @@ extern "C" { //========================================================================= #[cfg(feature = "v1_6")] pub fn gst_video_resampler_clear(resampler: *mut GstVideoResampler); + #[cfg(feature = "v1_6")] pub fn gst_video_resampler_init(resampler: *mut GstVideoResampler, method: GstVideoResamplerMethod, flags: GstVideoResamplerFlags, n_phases: c_uint, n_taps: c_uint, shift: c_double, in_size: c_uint, out_size: c_uint, options: *mut gst::GstStructure) -> gboolean; //========================================================================= @@ -1533,6 +1682,7 @@ extern "C" { pub fn gst_video_scaler_get_max_taps(scale: *mut GstVideoScaler) -> c_uint; pub fn gst_video_scaler_horizontal(scale: *mut GstVideoScaler, format: GstVideoFormat, src: gpointer, dest: gpointer, dest_offset: c_uint, width: c_uint); pub fn gst_video_scaler_vertical(scale: *mut GstVideoScaler, format: GstVideoFormat, src_lines: gpointer, dest: gpointer, dest_offset: c_uint, width: c_uint); + #[cfg(feature = "v1_6")] pub fn gst_video_scaler_new(method: GstVideoResamplerMethod, flags: GstVideoScalerFlags, n_taps: c_uint, in_size: c_uint, out_size: c_uint, options: *mut gst::GstStructure) -> *mut GstVideoScaler; //=========================================================================