diff --git a/examples/src/bin/launch.rs b/examples/src/bin/launch.rs index 78d847cba..54760923e 100644 --- a/examples/src/bin/launch.rs +++ b/examples/src/bin/launch.rs @@ -11,7 +11,7 @@ fn main() { let mut context = gst::ParseContext::new(); let pipeline = - match gst::parse_launch_full(&pipeline_str, Some(&mut context), gst::PARSE_FLAG_NONE) { + match gst::parse_launch_full(&pipeline_str, Some(&mut context), gst::ParseFlags::NONE) { Ok(pipeline) => pipeline, Err(err) => { if let Some(gst::ParseError::NoSuchElement) = err.kind::() { diff --git a/examples/src/bin/pad_probes.rs b/examples/src/bin/pad_probes.rs index 677759681..0ab29546b 100644 --- a/examples/src/bin/pad_probes.rs +++ b/examples/src/bin/pad_probes.rs @@ -23,7 +23,7 @@ fn main() { .get_by_name("src") .unwrap(); let src_pad = src.get_static_pad("src").unwrap(); - src_pad.add_probe(gst::PAD_PROBE_TYPE_BUFFER, |_, probe_info| { + src_pad.add_probe(gst::PadProbeType::BUFFER, |_, probe_info| { if let Some(gst::PadProbeData::Buffer(ref buffer)) = probe_info.data { let map = buffer.map_readable().unwrap(); diff --git a/gstreamer-app/Cargo.toml b/gstreamer-app/Cargo.toml index b6faae5b2..0b7d77595 100644 --- a/gstreamer-app/Cargo.toml +++ b/gstreamer-app/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"] build = "build.rs" [dependencies] -bitflags = "0.9" +bitflags = "1.0" libc = "0.2" glib-sys = { git = "https://github.com/gtk-rs/sys" } gobject-sys = { git = "https://github.com/gtk-rs/sys" } @@ -33,6 +33,7 @@ v1_10 = ["gstreamer-sys/v1_10", "gstreamer-base/v1_10", "gstreamer-app-sys/v1_10 v1_12 = ["gstreamer-sys/v1_12", "gstreamer-base/v1_12", "gstreamer-app-sys/v1_12", "v1_10"] embed-lgpl-docs = ["rustdoc-stripper"] purge-lgpl-docs = ["rustdoc-stripper"] +dox = ["gstreamer-app-sys/dox"] default-features = [] [badges] diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 1addaf508..07a154333 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; @@ -31,7 +31,7 @@ glib_wrapper! { } impl AppSink { - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] pub fn get_buffer_list_support(&self) -> bool { unsafe { from_glib(ffi::gst_app_sink_get_buffer_list_support(self.to_glib_none().0)) @@ -86,7 +86,7 @@ impl AppSink { } } - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] pub fn set_buffer_list_support(&self, enable_lists: bool) { unsafe { ffi::gst_app_sink_set_buffer_list_support(self.to_glib_none().0, enable_lists.to_glib()); @@ -127,14 +127,14 @@ impl AppSink { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_preroll(self.to_glib_none().0, timeout)) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_app_sink_try_pull_sample(self.to_glib_none().0, timeout)) diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 4eba453db..929184c06 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use AppStreamType; @@ -51,7 +51,7 @@ impl AppSrc { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_duration(&self) -> gst::ClockTime { unsafe { ffi::gst_app_src_get_duration(self.to_glib_none().0) @@ -107,7 +107,7 @@ impl AppSrc { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn set_duration(&self, duration: gst::ClockTime) { unsafe { ffi::gst_app_src_set_duration(self.to_glib_none().0, duration); diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index acd29dac0..17f965525 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-app/src/auto/flags.rs b/gstreamer-app/src/auto/flags.rs index bb0dc44cf..67c2b20d2 100644 --- a/gstreamer-app/src/auto/flags.rs +++ b/gstreamer-app/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-app/src/auto/mod.rs b/gstreamer-app/src/auto/mod.rs index cd6bf322b..a7cf86f14 100644 --- a/gstreamer-app/src/auto/mod.rs +++ b/gstreamer-app/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT mod app_sink; diff --git a/gstreamer-audio/Cargo.toml b/gstreamer-audio/Cargo.toml index e747f10e7..ceb2c2a8c 100644 --- a/gstreamer-audio/Cargo.toml +++ b/gstreamer-audio/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"] build = "build.rs" [dependencies] -bitflags = "0.9" +bitflags = "1.0" glib-sys = { git = "https://github.com/gtk-rs/sys" } gobject-sys = { git = "https://github.com/gtk-rs/sys" } gstreamer-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"] } @@ -31,6 +31,7 @@ v1_10 = ["gstreamer-sys/v1_10", "gstreamer-audio-sys/v1_10"] v1_12 = ["gstreamer-sys/v1_12", "gstreamer-audio-sys/v1_12", "v1_10"] embed-lgpl-docs = ["rustdoc-stripper"] purge-lgpl-docs = ["rustdoc-stripper"] +dox = ["gstreamer-audio-sys/dox"] default-features = [] [badges] diff --git a/gstreamer-audio/src/audio_format_info.rs b/gstreamer-audio/src/audio_format_info.rs index cfb5e0844..88386e141 100644 --- a/gstreamer-audio/src/audio_format_info.rs +++ b/gstreamer-audio/src/audio_format_info.rs @@ -183,15 +183,15 @@ impl AudioFormatInfo { } pub fn is_float(&self) -> bool { - self.flags().contains(::AUDIO_FORMAT_FLAG_FLOAT) + self.flags().contains(::AudioFormatFlags::FLOAT) } pub fn is_integer(&self) -> bool { - self.flags().contains(::AUDIO_FORMAT_FLAG_INTEGER) + self.flags().contains(::AudioFormatFlags::INTEGER) } pub fn is_signed(&self) -> bool { - self.flags().contains(::AUDIO_FORMAT_FLAG_SIGNED) + self.flags().contains(::AudioFormatFlags::SIGNED) } diff --git a/gstreamer-audio/src/audio_info.rs b/gstreamer-audio/src/audio_info.rs index 0fb33dde5..817f4909c 100644 --- a/gstreamer-audio/src/audio_info.rs +++ b/gstreamer-audio/src/audio_info.rs @@ -251,7 +251,7 @@ impl AudioInfo { } pub fn is_unpositioned(&self) -> bool { - self.flags().contains(::AUDIO_FLAG_UNPOSITIONED) + self.flags().contains(::AudioFlags::UNPOSITIONED) } } diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index 7e7f6c4ff..344a0d14e 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-audio/src/auto/flags.rs b/gstreamer-audio/src/auto/flags.rs index 91361ad3a..4bf597356 100644 --- a/gstreamer-audio/src/auto/flags.rs +++ b/gstreamer-audio/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; @@ -10,8 +10,8 @@ use glib::translate::*; bitflags! { pub struct AudioFlags: u32 { - const AUDIO_FLAG_NONE = 0; - const AUDIO_FLAG_UNPOSITIONED = 1; + const NONE = 0; + const UNPOSITIONED = 1; } } @@ -58,11 +58,11 @@ impl SetValue for AudioFlags { bitflags! { pub struct AudioFormatFlags: u32 { - const AUDIO_FORMAT_FLAG_INTEGER = 1; - const AUDIO_FORMAT_FLAG_FLOAT = 2; - const AUDIO_FORMAT_FLAG_SIGNED = 4; - const AUDIO_FORMAT_FLAG_COMPLEX = 16; - const AUDIO_FORMAT_FLAG_UNPACK = 32; + const INTEGER = 1; + const FLOAT = 2; + const SIGNED = 4; + const COMPLEX = 16; + const UNPACK = 32; } } @@ -109,8 +109,8 @@ impl SetValue for AudioFormatFlags { bitflags! { pub struct AudioPackFlags: u32 { - const AUDIO_PACK_FLAG_NONE = 0; - const AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1; + const NONE = 0; + const TRUNCATE_RANGE = 1; } } diff --git a/gstreamer-audio/src/auto/mod.rs b/gstreamer-audio/src/auto/mod.rs index 9c68e62ab..96615104a 100644 --- a/gstreamer-audio/src/auto/mod.rs +++ b/gstreamer-audio/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT mod stream_volume; @@ -13,17 +13,8 @@ pub use self::enums::StreamVolumeFormat; mod flags; pub use self::flags::AudioFlags; -pub use self::flags::AUDIO_FLAG_NONE; -pub use self::flags::AUDIO_FLAG_UNPOSITIONED; pub use self::flags::AudioFormatFlags; -pub use self::flags::AUDIO_FORMAT_FLAG_INTEGER; -pub use self::flags::AUDIO_FORMAT_FLAG_FLOAT; -pub use self::flags::AUDIO_FORMAT_FLAG_SIGNED; -pub use self::flags::AUDIO_FORMAT_FLAG_COMPLEX; -pub use self::flags::AUDIO_FORMAT_FLAG_UNPACK; pub use self::flags::AudioPackFlags; -pub use self::flags::AUDIO_PACK_FLAG_NONE; -pub use self::flags::AUDIO_PACK_FLAG_TRUNCATE_RANGE; #[doc(hidden)] pub mod traits { diff --git a/gstreamer-audio/src/auto/stream_volume.rs b/gstreamer-audio/src/auto/stream_volume.rs index 85d0f7632..f3a1aa647 100644 --- a/gstreamer-audio/src/auto/stream_volume.rs +++ b/gstreamer-audio/src/auto/stream_volume.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use StreamVolumeFormat; diff --git a/gstreamer-base/Cargo.toml b/gstreamer-base/Cargo.toml index 7a663a55a..6ec769737 100644 --- a/gstreamer-base/Cargo.toml +++ b/gstreamer-base/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"] build = "build.rs" [dependencies] -bitflags = "0.9" +bitflags = "1.0" glib-sys = { git = "https://github.com/gtk-rs/sys" } gobject-sys = { git = "https://github.com/gtk-rs/sys" } gstreamer-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"] } @@ -30,6 +30,7 @@ v1_10 = ["gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10"] v1_12 = ["gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12", "v1_10"] embed-lgpl-docs = ["rustdoc-stripper"] purge-lgpl-docs = ["rustdoc-stripper"] +dox = ["gstreamer-base-sys/dox"] default-features = [] [badges] diff --git a/gstreamer-base/src/auto/adapter.rs b/gstreamer-base/src/auto/adapter.rs index 7a65f251f..3465d3c4d 100644 --- a/gstreamer-base/src/auto/adapter.rs +++ b/gstreamer-base/src/auto/adapter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; @@ -56,7 +56,7 @@ impl Adapter { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn dts_at_discont(&self) -> gst::ClockTime { unsafe { ffi::gst_adapter_dts_at_discont(self.to_glib_none().0) @@ -107,7 +107,7 @@ impl Adapter { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn offset_at_discont(&self) -> u64 { unsafe { ffi::gst_adapter_offset_at_discont(self.to_glib_none().0) @@ -130,7 +130,7 @@ impl Adapter { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn prev_offset(&self) -> (u64, u64) { unsafe { let mut distance = mem::uninitialized(); @@ -155,7 +155,7 @@ impl Adapter { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn pts_at_discont(&self) -> gst::ClockTime { unsafe { ffi::gst_adapter_pts_at_discont(self.to_glib_none().0) diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 179f6fe76..2338dbe1a 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; @@ -37,7 +37,7 @@ pub trait BaseSinkExt { fn get_blocksize(&self) -> u32; - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] fn get_drop_out_of_segment(&self) -> bool; fn get_last_sample(&self) -> Option; @@ -68,7 +68,7 @@ pub trait BaseSinkExt { fn set_blocksize(&self, blocksize: u32); - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool); fn set_last_sample_enabled(&self, enabled: bool); @@ -139,7 +139,7 @@ impl + IsA> BaseSinkExt for O { } } - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] fn get_drop_out_of_segment(&self) -> bool { unsafe { from_glib(ffi::gst_base_sink_get_drop_out_of_segment(self.to_glib_none().0)) @@ -235,7 +235,7 @@ impl + IsA> BaseSinkExt for O { } } - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) { unsafe { ffi::gst_base_sink_set_drop_out_of_segment(self.to_glib_none().0, drop_out_of_segment.to_glib()); diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 703342827..0c8e88bfa 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 4240d32f6..d28ae8507 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 4f84e3e21..c36834590 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/flags.rs b/gstreamer-base/src/auto/flags.rs index bb0dc44cf..67c2b20d2 100644 --- a/gstreamer-base/src/auto/flags.rs +++ b/gstreamer-base/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/flow_combiner.rs b/gstreamer-base/src/auto/flow_combiner.rs index 15e61d81d..6db0211d5 100644 --- a/gstreamer-base/src/auto/flow_combiner.rs +++ b/gstreamer-base/src/auto/flow_combiner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/mod.rs b/gstreamer-base/src/auto/mod.rs index ed94075c2..82153a8fb 100644 --- a/gstreamer-base/src/auto/mod.rs +++ b/gstreamer-base/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT mod adapter; diff --git a/gstreamer-base/src/auto/push_src.rs b/gstreamer-base/src/auto/push_src.rs index 18d769f54..9bb414196 100644 --- a/gstreamer-base/src/auto/push_src.rs +++ b/gstreamer-base/src/auto/push_src.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use BaseSrc; diff --git a/gstreamer-player/Cargo.toml b/gstreamer-player/Cargo.toml index b12dd4825..8fd263957 100644 --- a/gstreamer-player/Cargo.toml +++ b/gstreamer-player/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"] build = "build.rs" [dependencies] -bitflags = "0.9" +bitflags = "1.0" libc = "0.2" glib-sys = { git = "https://github.com/gtk-rs/sys" } gobject-sys = { git = "https://github.com/gtk-rs/sys" } @@ -28,6 +28,7 @@ optional = true [features] embed-lgpl-docs = ["rustdoc-stripper"] purge-lgpl-docs = ["rustdoc-stripper"] +dox = ["gstreamer-player-sys/dox"] default-features = [] [badges] diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index f49da3bdf..2c320f6bc 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/flags.rs b/gstreamer-player/src/auto/flags.rs index bb0dc44cf..67c2b20d2 100644 --- a/gstreamer-player/src/auto/flags.rs +++ b/gstreamer-player/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/mod.rs b/gstreamer-player/src/auto/mod.rs index 446f61693..fc5db7d5e 100644 --- a/gstreamer-player/src/auto/mod.rs +++ b/gstreamer-player/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT mod player; diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 2942a3a1e..f2dae0803 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Error; diff --git a/gstreamer-player/src/auto/player_audio_info.rs b/gstreamer-player/src/auto/player_audio_info.rs index 73300af0f..ed767334c 100644 --- a/gstreamer-player/src/auto/player_audio_info.rs +++ b/gstreamer-player/src/auto/player_audio_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use PlayerStreamInfo; diff --git a/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs b/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs index 33b9c19a6..ac96e4077 100644 --- a/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use PlayerSignalDispatcher; diff --git a/gstreamer-player/src/auto/player_media_info.rs b/gstreamer-player/src/auto/player_media_info.rs index 9ea4851b0..521f657db 100644 --- a/gstreamer-player/src/auto/player_media_info.rs +++ b/gstreamer-player/src/auto/player_media_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use PlayerAudioInfo; diff --git a/gstreamer-player/src/auto/player_signal_dispatcher.rs b/gstreamer-player/src/auto/player_signal_dispatcher.rs index 68356d91d..7b72fe750 100644 --- a/gstreamer-player/src/auto/player_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_signal_dispatcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/player_stream_info.rs b/gstreamer-player/src/auto/player_stream_info.rs index d13adb019..af61b7acc 100644 --- a/gstreamer-player/src/auto/player_stream_info.rs +++ b/gstreamer-player/src/auto/player_stream_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/player_subtitle_info.rs b/gstreamer-player/src/auto/player_subtitle_info.rs index ed84906da..e308a983b 100644 --- a/gstreamer-player/src/auto/player_subtitle_info.rs +++ b/gstreamer-player/src/auto/player_subtitle_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use PlayerStreamInfo; diff --git a/gstreamer-player/src/auto/player_video_info.rs b/gstreamer-player/src/auto/player_video_info.rs index 8e75e0004..46f0ef1f4 100644 --- a/gstreamer-player/src/auto/player_video_info.rs +++ b/gstreamer-player/src/auto/player_video_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use PlayerStreamInfo; diff --git a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs index 6d6bea19c..34f78e6c9 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use PlayerVideoRenderer; diff --git a/gstreamer-player/src/auto/player_video_renderer.rs b/gstreamer-player/src/auto/player_video_renderer.rs index 74e29d736..b1c0bcf78 100644 --- a/gstreamer-player/src/auto/player_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/player_visualization.rs b/gstreamer-player/src/auto/player_visualization.rs index b1e32253b..05f6bf014 100644 --- a/gstreamer-player/src/auto/player_visualization.rs +++ b/gstreamer-player/src/auto/player_visualization.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-video/Cargo.toml b/gstreamer-video/Cargo.toml index aeb694ad7..c777c4a0a 100644 --- a/gstreamer-video/Cargo.toml +++ b/gstreamer-video/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"] build = "build.rs" [dependencies] -bitflags = "0.9" +bitflags = "1.0" libc = "0.2" glib-sys = { git = "https://github.com/gtk-rs/sys" } gobject-sys = { git = "https://github.com/gtk-rs/sys" } @@ -31,6 +31,7 @@ v1_10 = ["gstreamer-sys/v1_10", "gstreamer-video-sys/v1_10"] v1_12 = ["gstreamer-sys/v1_12", "gstreamer-video-sys/v1_12", "v1_10"] embed-lgpl-docs = ["rustdoc-stripper"] purge-lgpl-docs = ["rustdoc-stripper"] +dox = ["gstreamer-video-sys/dox"] default-features = [] [badges] diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index be9550e6c..bfaf3b6b6 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; @@ -159,7 +159,7 @@ impl SetValue for VideoColorPrimaries { } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum VideoFieldOrder { Unknown, @@ -169,7 +169,7 @@ pub enum VideoFieldOrder { __Unknown(i32), } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] #[doc(hidden)] impl ToGlib for VideoFieldOrder { type GlibType = ffi::GstVideoFieldOrder; @@ -184,7 +184,7 @@ impl ToGlib for VideoFieldOrder { } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] #[doc(hidden)] impl FromGlib for VideoFieldOrder { fn from_glib(value: ffi::GstVideoFieldOrder) -> Self { @@ -198,28 +198,28 @@ impl FromGlib for VideoFieldOrder { } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl StaticType for VideoFieldOrder { fn static_type() -> Type { unsafe { from_glib(ffi::gst_video_field_order_get_type()) } } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl<'a> FromValueOptional<'a> for VideoFieldOrder { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl<'a> FromValue<'a> for VideoFieldOrder { unsafe fn from_value(value: &Value) -> Self { from_glib(std::mem::transmute::(gobject_ffi::g_value_get_enum(value.to_glib_none().0))) } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl SetValue for VideoFieldOrder { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib() as i32) diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 9690dccda..cc87f83a6 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; @@ -10,15 +10,15 @@ use glib::translate::*; bitflags! { pub struct VideoChromaSite: u32 { - const VIDEO_CHROMA_SITE_UNKNOWN = 0; - const VIDEO_CHROMA_SITE_NONE = 1; - const VIDEO_CHROMA_SITE_H_COSITED = 2; - const VIDEO_CHROMA_SITE_V_COSITED = 4; - const VIDEO_CHROMA_SITE_ALT_LINE = 8; - const VIDEO_CHROMA_SITE_COSITED = 6; - const VIDEO_CHROMA_SITE_JPEG = 1; - const VIDEO_CHROMA_SITE_MPEG2 = 2; - const VIDEO_CHROMA_SITE_DV = 14; + const UNKNOWN = 0; + const NONE = 1; + const H_COSITED = 2; + const V_COSITED = 4; + const ALT_LINE = 8; + const COSITED = 6; + const JPEG = 1; + const MPEG2 = 2; + const DV = 14; } } @@ -65,9 +65,9 @@ impl SetValue for VideoChromaSite { bitflags! { pub struct VideoFlags: u32 { - const VIDEO_FLAG_NONE = 0; - const VIDEO_FLAG_VARIABLE_FPS = 1; - const VIDEO_FLAG_PREMULTIPLIED_ALPHA = 2; + const NONE = 0; + const VARIABLE_FPS = 1; + const PREMULTIPLIED_ALPHA = 2; } } @@ -114,15 +114,15 @@ impl SetValue for VideoFlags { bitflags! { pub struct VideoFormatFlags: u32 { - const VIDEO_FORMAT_FLAG_YUV = 1; - const VIDEO_FORMAT_FLAG_RGB = 2; - const VIDEO_FORMAT_FLAG_GRAY = 4; - const VIDEO_FORMAT_FLAG_ALPHA = 8; - const VIDEO_FORMAT_FLAG_LE = 16; - const VIDEO_FORMAT_FLAG_PALETTE = 32; - const VIDEO_FORMAT_FLAG_COMPLEX = 64; - const VIDEO_FORMAT_FLAG_UNPACK = 128; - const VIDEO_FORMAT_FLAG_TILED = 256; + const YUV = 1; + const RGB = 2; + const GRAY = 4; + const ALPHA = 8; + const LE = 16; + const PALETTE = 32; + const COMPLEX = 64; + const UNPACK = 128; + const TILED = 256; } } @@ -169,13 +169,13 @@ impl SetValue for VideoFormatFlags { bitflags! { pub struct VideoFrameFlags: u32 { - const VIDEO_FRAME_FLAG_NONE = 0; - const VIDEO_FRAME_FLAG_INTERLACED = 1; - const VIDEO_FRAME_FLAG_TFF = 2; - const VIDEO_FRAME_FLAG_RFF = 4; - const VIDEO_FRAME_FLAG_ONEFIELD = 8; - const VIDEO_FRAME_FLAG_MULTIPLE_VIEW = 16; - const VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE = 32; + const NONE = 0; + const INTERLACED = 1; + const TFF = 2; + const RFF = 4; + const ONEFIELD = 8; + const MULTIPLE_VIEW = 16; + const FIRST_IN_BUNDLE = 32; } } @@ -222,14 +222,14 @@ impl SetValue for VideoFrameFlags { bitflags! { pub struct VideoMultiviewFlags: u32 { - const VIDEO_MULTIVIEW_FLAGS_NONE = 0; - const VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST = 1; - const VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED = 2; - const VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED = 4; - const VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED = 8; - const VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED = 16; - const VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT = 16384; - const VIDEO_MULTIVIEW_FLAGS_MIXED_MONO = 32768; + const NONE = 0; + const RIGHT_VIEW_FIRST = 1; + const LEFT_FLIPPED = 2; + const LEFT_FLOPPED = 4; + const RIGHT_FLIPPED = 8; + const RIGHT_FLOPPED = 16; + const HALF_ASPECT = 16384; + const MIXED_MONO = 32768; } } diff --git a/gstreamer-video/src/auto/mod.rs b/gstreamer-video/src/auto/mod.rs index 7733b3ffc..bd109635a 100644 --- a/gstreamer-video/src/auto/mod.rs +++ b/gstreamer-video/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT mod video_overlay; @@ -8,7 +8,7 @@ pub use self::video_overlay::VideoOverlayExt; mod enums; pub use self::enums::VideoColorMatrix; pub use self::enums::VideoColorPrimaries; -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] pub use self::enums::VideoFieldOrder; pub use self::enums::VideoFormat; pub use self::enums::VideoInterlaceMode; @@ -18,46 +18,10 @@ pub use self::enums::VideoTransferFunction; mod flags; pub use self::flags::VideoChromaSite; -pub use self::flags::VIDEO_CHROMA_SITE_UNKNOWN; -pub use self::flags::VIDEO_CHROMA_SITE_NONE; -pub use self::flags::VIDEO_CHROMA_SITE_H_COSITED; -pub use self::flags::VIDEO_CHROMA_SITE_V_COSITED; -pub use self::flags::VIDEO_CHROMA_SITE_ALT_LINE; -pub use self::flags::VIDEO_CHROMA_SITE_COSITED; -pub use self::flags::VIDEO_CHROMA_SITE_JPEG; -pub use self::flags::VIDEO_CHROMA_SITE_MPEG2; -pub use self::flags::VIDEO_CHROMA_SITE_DV; pub use self::flags::VideoFlags; -pub use self::flags::VIDEO_FLAG_NONE; -pub use self::flags::VIDEO_FLAG_VARIABLE_FPS; -pub use self::flags::VIDEO_FLAG_PREMULTIPLIED_ALPHA; pub use self::flags::VideoFormatFlags; -pub use self::flags::VIDEO_FORMAT_FLAG_YUV; -pub use self::flags::VIDEO_FORMAT_FLAG_RGB; -pub use self::flags::VIDEO_FORMAT_FLAG_GRAY; -pub use self::flags::VIDEO_FORMAT_FLAG_ALPHA; -pub use self::flags::VIDEO_FORMAT_FLAG_LE; -pub use self::flags::VIDEO_FORMAT_FLAG_PALETTE; -pub use self::flags::VIDEO_FORMAT_FLAG_COMPLEX; -pub use self::flags::VIDEO_FORMAT_FLAG_UNPACK; -pub use self::flags::VIDEO_FORMAT_FLAG_TILED; pub use self::flags::VideoFrameFlags; -pub use self::flags::VIDEO_FRAME_FLAG_NONE; -pub use self::flags::VIDEO_FRAME_FLAG_INTERLACED; -pub use self::flags::VIDEO_FRAME_FLAG_TFF; -pub use self::flags::VIDEO_FRAME_FLAG_RFF; -pub use self::flags::VIDEO_FRAME_FLAG_ONEFIELD; -pub use self::flags::VIDEO_FRAME_FLAG_MULTIPLE_VIEW; -pub use self::flags::VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE; pub use self::flags::VideoMultiviewFlags; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_NONE; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT; -pub use self::flags::VIDEO_MULTIVIEW_FLAGS_MIXED_MONO; #[doc(hidden)] pub mod traits { diff --git a/gstreamer-video/src/auto/video_overlay.rs b/gstreamer-video/src/auto/video_overlay.rs index 5d862a61c..2bc402618 100644 --- a/gstreamer-video/src/auto/video_overlay.rs +++ b/gstreamer-video/src/auto/video_overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-video/src/video_frame.rs b/gstreamer-video/src/video_frame.rs index 3d6f9de88..0191ddb48 100644 --- a/gstreamer-video/src/video_frame.rs +++ b/gstreamer-video/src/video_frame.rs @@ -107,19 +107,19 @@ impl VideoFrame { } pub fn is_interlaced(&self) -> bool { - self.flags().contains(::VIDEO_FRAME_FLAG_INTERLACED) + self.flags().contains(::VideoFrameFlags::INTERLACED) } pub fn is_tff(&self) -> bool { - self.flags().contains(::VIDEO_FRAME_FLAG_TFF) + self.flags().contains(::VideoFrameFlags::TFF) } pub fn is_rff(&self) -> bool { - self.flags().contains(::VIDEO_FRAME_FLAG_RFF) + self.flags().contains(::VideoFrameFlags::RFF) } pub fn is_onefield(&self) -> bool { - self.flags().contains(::VIDEO_FRAME_FLAG_ONEFIELD) + self.flags().contains(::VideoFrameFlags::ONEFIELD) } pub fn n_planes(&self) -> u32 { diff --git a/gstreamer/Cargo.toml b/gstreamer/Cargo.toml index 613d86f64..044f8e071 100644 --- a/gstreamer/Cargo.toml +++ b/gstreamer/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"] build = "build.rs" [dependencies] -bitflags = "0.9" +bitflags = "1.0" libc = "0.2" glib-sys = { git = "https://github.com/gtk-rs/sys" } gobject-sys = { git = "https://github.com/gtk-rs/sys" } @@ -32,6 +32,7 @@ v1_10 = ["gstreamer-sys/v1_10"] v1_12 = ["gstreamer-sys/v1_12", "v1_10"] embed-lgpl-docs = ["rustdoc-stripper"] purge-lgpl-docs = ["rustdoc-stripper"] +dox = ["gstreamer-sys/dox"] default-features = [] [badges] diff --git a/gstreamer/src/auto/alias.rs b/gstreamer/src/auto/alias.rs index 006beb9d2..8c52aa1af 100644 --- a/gstreamer/src/auto/alias.rs +++ b/gstreamer/src/auto/alias.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT #[allow(unused_imports)] diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index 5cb7ef9e4..19608dd33 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -1,9 +1,9 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ChildProxy; use Element; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] use ElementFlags; use Object; use Pad; @@ -58,7 +58,7 @@ pub trait BinExt { fn get_by_name_recurse_up(&self, name: &str) -> Option; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn get_suppressed_flags(&self) -> ElementFlags; //fn iterate_all_by_interface(&self, iface: glib::types::Type) -> /*Ignored*/Option; @@ -79,7 +79,7 @@ pub trait BinExt { //fn remove_many>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn set_suppressed_flags(&self, flags: ElementFlags); fn sync_children_states(&self) -> Result<(), glib::error::BoolError>; @@ -92,10 +92,10 @@ pub trait BinExt { fn set_property_message_forward(&self, message_forward: bool); - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn connect_deep_element_added(&self, f: F) -> SignalHandlerId; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn connect_deep_element_removed(&self, f: F) -> SignalHandlerId; fn connect_do_latency bool + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId; @@ -144,7 +144,7 @@ impl + IsA> BinExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn get_suppressed_flags(&self) -> ElementFlags { unsafe { from_glib(ffi::gst_bin_get_suppressed_flags(self.to_glib_none().0)) @@ -191,7 +191,7 @@ impl + IsA> BinExt for O { // unsafe { TODO: call ffi::gst_bin_remove_many() } //} - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn set_suppressed_flags(&self, flags: ElementFlags) { unsafe { ffi::gst_bin_set_suppressed_flags(self.to_glib_none().0, flags.to_glib()); @@ -232,7 +232,7 @@ impl + IsA> BinExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn connect_deep_element_added(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -241,7 +241,7 @@ impl + IsA> BinExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn connect_deep_element_removed(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -291,7 +291,7 @@ impl + IsA> BinExt for O { } } -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] unsafe extern "C" fn deep_element_added_trampoline

(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); @@ -299,7 +299,7 @@ where P: IsA { f(&Bin::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(sub_bin), &from_glib_borrow(element)) } -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] unsafe extern "C" fn deep_element_removed_trampoline

(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 93b010524..e79e8ebc7 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ClockTime; diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index 310990c76..52cb299b6 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 79294f23a..c488db78a 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ClockTime; diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 94f6ec865..b997cd5d0 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index 01af76562..cf87847f3 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index b9177c8b5..caac849c6 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Bus; diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index f0375c5c4..882021c09 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Bus; diff --git a/gstreamer/src/auto/device_provider_factory.rs b/gstreamer/src/auto/device_provider_factory.rs index 7c7a53b00..2c6dfdeed 100644 --- a/gstreamer/src/auto/device_provider_factory.rs +++ b/gstreamer/src/auto/device_provider_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use DeviceProvider; diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 1861b7f0c..ac59e3973 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Bus; @@ -30,7 +30,7 @@ use glib::signal::connect; use glib::translate::*; use glib_ffi; use gobject_ffi; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] use libc; use std::boxed::Box as Box_; use std::mem; @@ -89,13 +89,13 @@ pub trait ElementExt { fn add_pad>(&self, pad: &P) -> Result<(), glib::error::BoolError>; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn add_property_deep_notify_watch<'a, P: Into>>(&self, property_name: P, include_value: bool) -> libc::c_ulong; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn add_property_notify_watch<'a, P: Into>>(&self, property_name: P, include_value: bool) -> libc::c_ulong; - //#[cfg(feature = "v1_10")] + //#[cfg(any(feature = "v1_10", feature = "dox"))] //fn call_async>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, user_data: P, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify); fn change_state(&self, transition: StateChange) -> StateChangeReturn; @@ -152,7 +152,7 @@ pub trait ElementExt { //fn message_full<'a, 'b, P: Into>, Q: Into>>(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: P, debug: Q, file: &str, function: &str, line: i32); - //#[cfg(feature = "v1_10")] + //#[cfg(any(feature = "v1_10", feature = "dox"))] //fn message_full_with_details<'a, 'b, P: Into>, Q: Into>>(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: P, debug: Q, file: &str, function: &str, line: i32, structure: &mut Structure); fn no_more_pads(&self); @@ -171,7 +171,7 @@ pub trait ElementExt { fn remove_pad>(&self, pad: &P) -> Result<(), glib::error::BoolError>; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn remove_property_notify_watch(&self, watch_id: libc::c_ulong); fn request_pad<'a, 'b, P: Into>, Q: Into>>(&self, templ: &PadTemplate, name: P, caps: Q) -> Option; @@ -222,7 +222,7 @@ impl + IsA> ElementExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn add_property_deep_notify_watch<'a, P: Into>>(&self, property_name: P, include_value: bool) -> libc::c_ulong { let property_name = property_name.into(); let property_name = property_name.to_glib_none(); @@ -231,7 +231,7 @@ impl + IsA> ElementExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn add_property_notify_watch<'a, P: Into>>(&self, property_name: P, include_value: bool) -> libc::c_ulong { let property_name = property_name.into(); let property_name = property_name.to_glib_none(); @@ -240,7 +240,7 @@ impl + IsA> ElementExt for O { } } - //#[cfg(feature = "v1_10")] + //#[cfg(any(feature = "v1_10", feature = "dox"))] //fn call_async>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, user_data: P, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) { // unsafe { TODO: call ffi::gst_element_call_async() } //} @@ -418,7 +418,7 @@ impl + IsA> ElementExt for O { // unsafe { TODO: call ffi::gst_element_message_full() } //} - //#[cfg(feature = "v1_10")] + //#[cfg(any(feature = "v1_10", feature = "dox"))] //fn message_full_with_details<'a, 'b, P: Into>, Q: Into>>(&self, type_: /*Ignored*/MessageType, domain: /*Ignored*/glib::Quark, code: i32, text: P, debug: Q, file: &str, function: &str, line: i32, structure: &mut Structure) { // unsafe { TODO: call ffi::gst_element_message_full_with_details() } //} @@ -477,7 +477,7 @@ impl + IsA> ElementExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn remove_property_notify_watch(&self, watch_id: libc::c_ulong) { unsafe { ffi::gst_element_remove_property_notify_watch(self.to_glib_none().0, watch_id); diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index dec09dc2d..45919bdcb 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index ca68f467e..7983621ed 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index bab2922f4..c44926223 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; @@ -10,19 +10,19 @@ use glib::translate::*; bitflags! { pub struct BufferFlags: u32 { - const BUFFER_FLAG_LIVE = 16; - const BUFFER_FLAG_DECODE_ONLY = 32; - const BUFFER_FLAG_DISCONT = 64; - const BUFFER_FLAG_RESYNC = 128; - const BUFFER_FLAG_CORRUPTED = 256; - const BUFFER_FLAG_MARKER = 512; - const BUFFER_FLAG_HEADER = 1024; - const BUFFER_FLAG_GAP = 2048; - const BUFFER_FLAG_DROPPABLE = 4096; - const BUFFER_FLAG_DELTA_UNIT = 8192; - const BUFFER_FLAG_TAG_MEMORY = 16384; - const BUFFER_FLAG_SYNC_AFTER = 32768; - const BUFFER_FLAG_LAST = 1048576; + const LIVE = 16; + const DECODE_ONLY = 32; + const DISCONT = 64; + const RESYNC = 128; + const CORRUPTED = 256; + const MARKER = 512; + const HEADER = 1024; + const GAP = 2048; + const DROPPABLE = 4096; + const DELTA_UNIT = 8192; + const TAG_MEMORY = 16384; + const SYNC_AFTER = 32768; + const LAST = 1048576; } } @@ -69,24 +69,24 @@ impl SetValue for BufferFlags { bitflags! { pub struct DebugColorFlags: u32 { - const DEBUG_FG_BLACK = 0; - const DEBUG_FG_RED = 1; - const DEBUG_FG_GREEN = 2; - const DEBUG_FG_YELLOW = 3; - const DEBUG_FG_BLUE = 4; - const DEBUG_FG_MAGENTA = 5; - const DEBUG_FG_CYAN = 6; - const DEBUG_FG_WHITE = 7; - const DEBUG_BG_BLACK = 0; - const DEBUG_BG_RED = 16; - const DEBUG_BG_GREEN = 32; - const DEBUG_BG_YELLOW = 48; - const DEBUG_BG_BLUE = 64; - const DEBUG_BG_MAGENTA = 80; - const DEBUG_BG_CYAN = 96; - const DEBUG_BG_WHITE = 112; - const DEBUG_BOLD = 256; - const DEBUG_UNDERLINE = 512; + const FG_BLACK = 0; + const FG_RED = 1; + const FG_GREEN = 2; + const FG_YELLOW = 3; + const FG_BLUE = 4; + const FG_MAGENTA = 5; + const FG_CYAN = 6; + const FG_WHITE = 7; + const BG_BLACK = 0; + const BG_RED = 16; + const BG_GREEN = 32; + const BG_YELLOW = 48; + const BG_BLUE = 64; + const BG_MAGENTA = 80; + const BG_CYAN = 96; + const BG_WHITE = 112; + const BOLD = 256; + const UNDERLINE = 512; } } @@ -133,13 +133,13 @@ impl SetValue for DebugColorFlags { bitflags! { pub struct DebugGraphDetails: u32 { - const DEBUG_GRAPH_SHOW_MEDIA_TYPE = 1; - const DEBUG_GRAPH_SHOW_CAPS_DETAILS = 2; - const DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS = 4; - const DEBUG_GRAPH_SHOW_STATES = 8; - const DEBUG_GRAPH_SHOW_FULL_PARAMS = 16; - const DEBUG_GRAPH_SHOW_ALL = 15; - const DEBUG_GRAPH_SHOW_VERBOSE = 4294967295; + const MEDIA_TYPE = 1; + const CAPS_DETAILS = 2; + const NON_DEFAULT_PARAMS = 4; + const STATES = 8; + const FULL_PARAMS = 16; + const ALL = 15; + const VERBOSE = 4294967295; } } @@ -186,13 +186,13 @@ impl SetValue for DebugGraphDetails { bitflags! { pub struct ElementFlags: u32 { - const ELEMENT_FLAG_LOCKED_STATE = 16; - const ELEMENT_FLAG_SINK = 32; - const ELEMENT_FLAG_SOURCE = 64; - const ELEMENT_FLAG_PROVIDE_CLOCK = 128; - const ELEMENT_FLAG_REQUIRE_CLOCK = 256; - const ELEMENT_FLAG_INDEXABLE = 512; - const ELEMENT_FLAG_LAST = 16384; + const LOCKED_STATE = 16; + const SINK = 32; + const SOURCE = 64; + const PROVIDE_CLOCK = 128; + const REQUIRE_CLOCK = 256; + const INDEXABLE = 512; + const LAST = 16384; } } @@ -239,12 +239,12 @@ impl SetValue for ElementFlags { bitflags! { pub struct PadLinkCheck: u32 { - const PAD_LINK_CHECK_NOTHING = 0; - const PAD_LINK_CHECK_HIERARCHY = 1; - const PAD_LINK_CHECK_TEMPLATE_CAPS = 2; - const PAD_LINK_CHECK_CAPS = 4; - const PAD_LINK_CHECK_NO_RECONFIGURE = 8; - const PAD_LINK_CHECK_DEFAULT = 5; + const NOTHING = 0; + const HIERARCHY = 1; + const TEMPLATE_CAPS = 2; + const CAPS = 4; + const NO_RECONFIGURE = 8; + const DEFAULT = 5; } } @@ -291,28 +291,28 @@ impl SetValue for PadLinkCheck { bitflags! { pub struct PadProbeType: u32 { - const PAD_PROBE_TYPE_INVALID = 0; - const PAD_PROBE_TYPE_IDLE = 1; - const PAD_PROBE_TYPE_BLOCK = 2; - const PAD_PROBE_TYPE_BUFFER = 16; - const PAD_PROBE_TYPE_BUFFER_LIST = 32; - const PAD_PROBE_TYPE_EVENT_DOWNSTREAM = 64; - const PAD_PROBE_TYPE_EVENT_UPSTREAM = 128; - const PAD_PROBE_TYPE_EVENT_FLUSH = 256; - const PAD_PROBE_TYPE_QUERY_DOWNSTREAM = 512; - const PAD_PROBE_TYPE_QUERY_UPSTREAM = 1024; - const PAD_PROBE_TYPE_PUSH = 4096; - const PAD_PROBE_TYPE_PULL = 8192; - const PAD_PROBE_TYPE_BLOCKING = 3; - const PAD_PROBE_TYPE_DATA_DOWNSTREAM = 112; - const PAD_PROBE_TYPE_DATA_UPSTREAM = 128; - const PAD_PROBE_TYPE_DATA_BOTH = 240; - const PAD_PROBE_TYPE_BLOCK_DOWNSTREAM = 114; - const PAD_PROBE_TYPE_BLOCK_UPSTREAM = 130; - const PAD_PROBE_TYPE_EVENT_BOTH = 192; - const PAD_PROBE_TYPE_QUERY_BOTH = 1536; - const PAD_PROBE_TYPE_ALL_BOTH = 1776; - const PAD_PROBE_TYPE_SCHEDULING = 12288; + const INVALID = 0; + const IDLE = 1; + const BLOCK = 2; + const BUFFER = 16; + const BUFFER_LIST = 32; + const EVENT_DOWNSTREAM = 64; + const EVENT_UPSTREAM = 128; + const EVENT_FLUSH = 256; + const QUERY_DOWNSTREAM = 512; + const QUERY_UPSTREAM = 1024; + const PUSH = 4096; + const PULL = 8192; + const BLOCKING = 3; + const DATA_DOWNSTREAM = 112; + const DATA_UPSTREAM = 128; + const DATA_BOTH = 240; + const BLOCK_DOWNSTREAM = 114; + const BLOCK_UPSTREAM = 130; + const EVENT_BOTH = 192; + const QUERY_BOTH = 1536; + const ALL_BOTH = 1776; + const SCHEDULING = 12288; } } @@ -359,10 +359,10 @@ impl SetValue for PadProbeType { bitflags! { pub struct ParseFlags: u32 { - const PARSE_FLAG_NONE = 0; - const PARSE_FLAG_FATAL_ERRORS = 1; - const PARSE_FLAG_NO_SINGLE_ELEMENT_BINS = 2; - const PARSE_FLAG_PLACE_IN_BIN = 4; + const NONE = 0; + const FATAL_ERRORS = 1; + const NO_SINGLE_ELEMENT_BINS = 2; + const PLACE_IN_BIN = 4; } } @@ -409,9 +409,9 @@ impl SetValue for ParseFlags { bitflags! { pub struct SchedulingFlags: u32 { - const SCHEDULING_FLAG_SEEKABLE = 1; - const SCHEDULING_FLAG_SEQUENTIAL = 2; - const SCHEDULING_FLAG_BANDWIDTH_LIMITED = 4; + const SEEKABLE = 1; + const SEQUENTIAL = 2; + const BANDWIDTH_LIMITED = 4; } } @@ -458,18 +458,18 @@ impl SetValue for SchedulingFlags { bitflags! { pub struct SeekFlags: u32 { - const SEEK_FLAG_NONE = 0; - const SEEK_FLAG_FLUSH = 1; - const SEEK_FLAG_ACCURATE = 2; - const SEEK_FLAG_KEY_UNIT = 4; - const SEEK_FLAG_SEGMENT = 8; - const SEEK_FLAG_TRICKMODE = 16; - const SEEK_FLAG_SKIP = 16; - const SEEK_FLAG_SNAP_BEFORE = 32; - const SEEK_FLAG_SNAP_AFTER = 64; - const SEEK_FLAG_SNAP_NEAREST = 96; - const SEEK_FLAG_TRICKMODE_KEY_UNITS = 128; - const SEEK_FLAG_TRICKMODE_NO_AUDIO = 256; + const NONE = 0; + const FLUSH = 1; + const ACCURATE = 2; + const KEY_UNIT = 4; + const SEGMENT = 8; + const TRICKMODE = 16; + const SKIP = 16; + const SNAP_BEFORE = 32; + const SNAP_AFTER = 64; + const SNAP_NEAREST = 96; + const TRICKMODE_KEY_UNITS = 128; + const TRICKMODE_NO_AUDIO = 256; } } @@ -516,13 +516,13 @@ impl SetValue for SeekFlags { bitflags! { pub struct SegmentFlags: u32 { - const SEGMENT_FLAG_NONE = 0; - const SEGMENT_FLAG_RESET = 1; - const SEGMENT_FLAG_TRICKMODE = 16; - const SEGMENT_FLAG_SKIP = 16; - const SEGMENT_FLAG_SEGMENT = 8; - const SEGMENT_FLAG_TRICKMODE_KEY_UNITS = 128; - const SEGMENT_FLAG_TRICKMODE_NO_AUDIO = 256; + const NONE = 0; + const RESET = 1; + const TRICKMODE = 16; + const SKIP = 16; + const SEGMENT = 8; + const TRICKMODE_KEY_UNITS = 128; + const TRICKMODE_NO_AUDIO = 256; } } @@ -567,14 +567,14 @@ impl SetValue for SegmentFlags { } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] bitflags! { pub struct StackTraceFlags: u32 { - const STACK_TRACE_SHOW_FULL = 1; + const FULL = 1; } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] #[doc(hidden)] impl ToGlib for StackTraceFlags { type GlibType = ffi::GstStackTraceFlags; @@ -584,7 +584,7 @@ impl ToGlib for StackTraceFlags { } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] #[doc(hidden)] impl FromGlib for StackTraceFlags { fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags { @@ -593,28 +593,28 @@ impl FromGlib for StackTraceFlags { } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl StaticType for StackTraceFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gst_stack_trace_flags_get_type()) } } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl<'a> FromValueOptional<'a> for StackTraceFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl<'a> FromValue<'a> for StackTraceFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(ffi::GstStackTraceFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] impl SetValue for StackTraceFlags { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) @@ -623,10 +623,10 @@ impl SetValue for StackTraceFlags { bitflags! { pub struct StreamFlags: u32 { - const STREAM_FLAG_NONE = 0; - const STREAM_FLAG_SPARSE = 1; - const STREAM_FLAG_SELECT = 2; - const STREAM_FLAG_UNSELECT = 4; + const NONE = 0; + const SPARSE = 1; + const SELECT = 2; + const UNSELECT = 4; } } @@ -673,11 +673,11 @@ impl SetValue for StreamFlags { bitflags! { pub struct StreamType: u32 { - const STREAM_TYPE_UNKNOWN = 1; - const STREAM_TYPE_AUDIO = 2; - const STREAM_TYPE_VIDEO = 4; - const STREAM_TYPE_CONTAINER = 8; - const STREAM_TYPE_TEXT = 16; + const UNKNOWN = 1; + const AUDIO = 2; + const VIDEO = 4; + const CONTAINER = 8; + const TEXT = 16; } } diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index bb24016fb..aecc6b1e7 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Bin; @@ -7,7 +7,7 @@ use DebugGraphDetails; use DebugLevel; use Element; use Error; -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] use StackTraceFlags; use ffi; use glib; @@ -45,7 +45,7 @@ pub fn debug_get_default_threshold() -> DebugLevel { } } -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Option { assert_initialized_main_thread!(); unsafe { diff --git a/gstreamer/src/auto/ghost_pad.rs b/gstreamer/src/auto/ghost_pad.rs index fdc42cd59..492939cb8 100644 --- a/gstreamer/src/auto/ghost_pad.rs +++ b/gstreamer/src/auto/ghost_pad.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Object; diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index c910e3d98..4c7c3ff11 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT mod bin; @@ -68,14 +68,14 @@ mod proxy_pad; pub use self::proxy_pad::ProxyPad; pub use self::proxy_pad::ProxyPadExt; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] mod stream; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] pub use self::stream::Stream; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] mod stream_collection; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] pub use self::stream_collection::StreamCollection; mod system_clock; @@ -137,129 +137,19 @@ pub use self::enums::URIType; mod flags; pub use self::flags::BufferFlags; -pub use self::flags::BUFFER_FLAG_LIVE; -pub use self::flags::BUFFER_FLAG_DECODE_ONLY; -pub use self::flags::BUFFER_FLAG_DISCONT; -pub use self::flags::BUFFER_FLAG_RESYNC; -pub use self::flags::BUFFER_FLAG_CORRUPTED; -pub use self::flags::BUFFER_FLAG_MARKER; -pub use self::flags::BUFFER_FLAG_HEADER; -pub use self::flags::BUFFER_FLAG_GAP; -pub use self::flags::BUFFER_FLAG_DROPPABLE; -pub use self::flags::BUFFER_FLAG_DELTA_UNIT; -pub use self::flags::BUFFER_FLAG_TAG_MEMORY; -pub use self::flags::BUFFER_FLAG_SYNC_AFTER; -pub use self::flags::BUFFER_FLAG_LAST; pub use self::flags::DebugColorFlags; -pub use self::flags::DEBUG_FG_BLACK; -pub use self::flags::DEBUG_FG_RED; -pub use self::flags::DEBUG_FG_GREEN; -pub use self::flags::DEBUG_FG_YELLOW; -pub use self::flags::DEBUG_FG_BLUE; -pub use self::flags::DEBUG_FG_MAGENTA; -pub use self::flags::DEBUG_FG_CYAN; -pub use self::flags::DEBUG_FG_WHITE; -pub use self::flags::DEBUG_BG_BLACK; -pub use self::flags::DEBUG_BG_RED; -pub use self::flags::DEBUG_BG_GREEN; -pub use self::flags::DEBUG_BG_YELLOW; -pub use self::flags::DEBUG_BG_BLUE; -pub use self::flags::DEBUG_BG_MAGENTA; -pub use self::flags::DEBUG_BG_CYAN; -pub use self::flags::DEBUG_BG_WHITE; -pub use self::flags::DEBUG_BOLD; -pub use self::flags::DEBUG_UNDERLINE; pub use self::flags::DebugGraphDetails; -pub use self::flags::DEBUG_GRAPH_SHOW_MEDIA_TYPE; -pub use self::flags::DEBUG_GRAPH_SHOW_CAPS_DETAILS; -pub use self::flags::DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS; -pub use self::flags::DEBUG_GRAPH_SHOW_STATES; -pub use self::flags::DEBUG_GRAPH_SHOW_FULL_PARAMS; -pub use self::flags::DEBUG_GRAPH_SHOW_ALL; -pub use self::flags::DEBUG_GRAPH_SHOW_VERBOSE; pub use self::flags::ElementFlags; -pub use self::flags::ELEMENT_FLAG_LOCKED_STATE; -pub use self::flags::ELEMENT_FLAG_SINK; -pub use self::flags::ELEMENT_FLAG_SOURCE; -pub use self::flags::ELEMENT_FLAG_PROVIDE_CLOCK; -pub use self::flags::ELEMENT_FLAG_REQUIRE_CLOCK; -pub use self::flags::ELEMENT_FLAG_INDEXABLE; -pub use self::flags::ELEMENT_FLAG_LAST; pub use self::flags::PadLinkCheck; -pub use self::flags::PAD_LINK_CHECK_NOTHING; -pub use self::flags::PAD_LINK_CHECK_HIERARCHY; -pub use self::flags::PAD_LINK_CHECK_TEMPLATE_CAPS; -pub use self::flags::PAD_LINK_CHECK_CAPS; -pub use self::flags::PAD_LINK_CHECK_NO_RECONFIGURE; -pub use self::flags::PAD_LINK_CHECK_DEFAULT; pub use self::flags::PadProbeType; -pub use self::flags::PAD_PROBE_TYPE_INVALID; -pub use self::flags::PAD_PROBE_TYPE_IDLE; -pub use self::flags::PAD_PROBE_TYPE_BLOCK; -pub use self::flags::PAD_PROBE_TYPE_BUFFER; -pub use self::flags::PAD_PROBE_TYPE_BUFFER_LIST; -pub use self::flags::PAD_PROBE_TYPE_EVENT_DOWNSTREAM; -pub use self::flags::PAD_PROBE_TYPE_EVENT_UPSTREAM; -pub use self::flags::PAD_PROBE_TYPE_EVENT_FLUSH; -pub use self::flags::PAD_PROBE_TYPE_QUERY_DOWNSTREAM; -pub use self::flags::PAD_PROBE_TYPE_QUERY_UPSTREAM; -pub use self::flags::PAD_PROBE_TYPE_PUSH; -pub use self::flags::PAD_PROBE_TYPE_PULL; -pub use self::flags::PAD_PROBE_TYPE_BLOCKING; -pub use self::flags::PAD_PROBE_TYPE_DATA_DOWNSTREAM; -pub use self::flags::PAD_PROBE_TYPE_DATA_UPSTREAM; -pub use self::flags::PAD_PROBE_TYPE_DATA_BOTH; -pub use self::flags::PAD_PROBE_TYPE_BLOCK_DOWNSTREAM; -pub use self::flags::PAD_PROBE_TYPE_BLOCK_UPSTREAM; -pub use self::flags::PAD_PROBE_TYPE_EVENT_BOTH; -pub use self::flags::PAD_PROBE_TYPE_QUERY_BOTH; -pub use self::flags::PAD_PROBE_TYPE_ALL_BOTH; -pub use self::flags::PAD_PROBE_TYPE_SCHEDULING; pub use self::flags::ParseFlags; -pub use self::flags::PARSE_FLAG_NONE; -pub use self::flags::PARSE_FLAG_FATAL_ERRORS; -pub use self::flags::PARSE_FLAG_NO_SINGLE_ELEMENT_BINS; -pub use self::flags::PARSE_FLAG_PLACE_IN_BIN; pub use self::flags::SchedulingFlags; -pub use self::flags::SCHEDULING_FLAG_SEEKABLE; -pub use self::flags::SCHEDULING_FLAG_SEQUENTIAL; -pub use self::flags::SCHEDULING_FLAG_BANDWIDTH_LIMITED; pub use self::flags::SeekFlags; -pub use self::flags::SEEK_FLAG_NONE; -pub use self::flags::SEEK_FLAG_FLUSH; -pub use self::flags::SEEK_FLAG_ACCURATE; -pub use self::flags::SEEK_FLAG_KEY_UNIT; -pub use self::flags::SEEK_FLAG_SEGMENT; -pub use self::flags::SEEK_FLAG_TRICKMODE; -pub use self::flags::SEEK_FLAG_SKIP; -pub use self::flags::SEEK_FLAG_SNAP_BEFORE; -pub use self::flags::SEEK_FLAG_SNAP_AFTER; -pub use self::flags::SEEK_FLAG_SNAP_NEAREST; -pub use self::flags::SEEK_FLAG_TRICKMODE_KEY_UNITS; -pub use self::flags::SEEK_FLAG_TRICKMODE_NO_AUDIO; pub use self::flags::SegmentFlags; -pub use self::flags::SEGMENT_FLAG_NONE; -pub use self::flags::SEGMENT_FLAG_RESET; -pub use self::flags::SEGMENT_FLAG_TRICKMODE; -pub use self::flags::SEGMENT_FLAG_SKIP; -pub use self::flags::SEGMENT_FLAG_SEGMENT; -pub use self::flags::SEGMENT_FLAG_TRICKMODE_KEY_UNITS; -pub use self::flags::SEGMENT_FLAG_TRICKMODE_NO_AUDIO; -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] pub use self::flags::StackTraceFlags; -#[cfg(feature = "v1_12")] -pub use self::flags::STACK_TRACE_SHOW_FULL; pub use self::flags::StreamFlags; -pub use self::flags::STREAM_FLAG_NONE; -pub use self::flags::STREAM_FLAG_SPARSE; -pub use self::flags::STREAM_FLAG_SELECT; -pub use self::flags::STREAM_FLAG_UNSELECT; pub use self::flags::StreamType; -pub use self::flags::STREAM_TYPE_UNKNOWN; -pub use self::flags::STREAM_TYPE_AUDIO; -pub use self::flags::STREAM_TYPE_VIDEO; -pub use self::flags::STREAM_TYPE_CONTAINER; -pub use self::flags::STREAM_TYPE_TEXT; mod alias; pub use self::alias::ClockTime; diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index ab8db354e..f49af4081 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ClockTime; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 61dbac98e..0b9c85717 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Caps; @@ -13,9 +13,9 @@ use PadLinkCheck; use PadLinkReturn; use PadMode; use PadTemplate; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] use Stream; -#[cfg(feature = "v1_12")] +#[cfg(any(feature = "v1_12", feature = "dox"))] use TaskState; use ffi; use glib; @@ -113,12 +113,12 @@ pub trait PadExt { fn get_sticky_event(&self, event_type: EventType, idx: u32) -> Option; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn get_stream(&self) -> Option; fn get_stream_id(&self) -> Option; - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] fn get_task_state(&self) -> TaskState; fn has_current_caps(&self) -> bool; @@ -139,10 +139,10 @@ pub trait PadExt { fn link_full>(&self, sinkpad: &P, flags: PadLinkCheck) -> PadLinkReturn; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn link_maybe_ghosting>(&self, sink: &P) -> Result<(), glib::error::BoolError>; - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn link_maybe_ghosting_full>(&self, sink: &P, flags: PadLinkCheck) -> bool; fn mark_reconfigure(&self); @@ -337,7 +337,7 @@ impl + IsA> PadExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn get_stream(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_stream(self.to_glib_none().0)) @@ -350,7 +350,7 @@ impl + IsA> PadExt for O { } } - #[cfg(feature = "v1_12")] + #[cfg(any(feature = "v1_12", feature = "dox"))] fn get_task_state(&self) -> TaskState { unsafe { from_glib(ffi::gst_pad_get_task_state(self.to_glib_none().0)) @@ -407,14 +407,14 @@ impl + IsA> PadExt for O { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn link_maybe_ghosting>(&self, sink: &P) -> Result<(), glib::error::BoolError> { unsafe { glib::error::BoolError::from_glib(ffi::gst_pad_link_maybe_ghosting(self.to_glib_none().0, sink.to_glib_none().0), "Failed to link pad, possibly ghosting") } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] fn link_maybe_ghosting_full>(&self, sink: &P, flags: PadLinkCheck) -> bool { unsafe { from_glib(ffi::gst_pad_link_maybe_ghosting_full(self.to_glib_none().0, sink.to_glib_none().0, flags.to_glib())) diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index f43103012..bc5cc9aab 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index fc495f665..18d2aab34 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Bin; diff --git a/gstreamer/src/auto/plugin.rs b/gstreamer/src/auto/plugin.rs index abeb56fe6..e28fe849d 100644 --- a/gstreamer/src/auto/plugin.rs +++ b/gstreamer/src/auto/plugin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Error; diff --git a/gstreamer/src/auto/preset.rs b/gstreamer/src/auto/preset.rs index 3acc47555..aab354bef 100644 --- a/gstreamer/src/auto/preset.rs +++ b/gstreamer/src/auto/preset.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/proxy_pad.rs b/gstreamer/src/auto/proxy_pad.rs index 51103fb62..32dc50dcf 100644 --- a/gstreamer/src/auto/proxy_pad.rs +++ b/gstreamer/src/auto/proxy_pad.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Object; diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index e18b6b73b..91c716f02 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Caps; @@ -27,7 +27,7 @@ glib_wrapper! { } impl Stream { - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn new<'a, 'b, P: Into>, Q: Into>>(stream_id: P, caps: Q, type_: StreamType, flags: StreamFlags) -> Stream { assert_initialized_main_thread!(); let stream_id = stream_id.into(); @@ -39,42 +39,42 @@ impl Stream { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_caps(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_caps(self.to_glib_none().0)) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_stream_flags(&self) -> StreamFlags { unsafe { from_glib(ffi::gst_stream_get_stream_flags(self.to_glib_none().0)) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0)) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_stream_type(&self) -> StreamType { unsafe { from_glib(ffi::gst_stream_get_stream_type(self.to_glib_none().0)) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_tags(&self) -> Option { unsafe { from_glib_full(ffi::gst_stream_get_tags(self.to_glib_none().0)) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn set_caps<'a, P: Into>>(&self, caps: P) { let caps = caps.into(); let caps = caps.to_glib_none(); @@ -83,21 +83,21 @@ impl Stream { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn set_stream_flags(&self, flags: StreamFlags) { unsafe { ffi::gst_stream_set_stream_flags(self.to_glib_none().0, flags.to_glib()); } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn set_stream_type(&self, stream_type: StreamType) { unsafe { ffi::gst_stream_set_stream_type(self.to_glib_none().0, stream_type.to_glib()); } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn set_tags<'a, P: Into>>(&self, tags: P) { let tags = tags.into(); let tags = tags.to_glib_none(); diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index 3ec5d4c3c..b922b9a38 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -1,8 +1,8 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Object; -#[cfg(feature = "v1_10")] +#[cfg(any(feature = "v1_10", feature = "dox"))] use Stream; use ffi; use glib::Value; @@ -25,7 +25,7 @@ glib_wrapper! { } impl StreamCollection { - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn new<'a, P: Into>>(upstream_id: P) -> StreamCollection { assert_initialized_main_thread!(); let upstream_id = upstream_id.into(); @@ -35,28 +35,28 @@ impl StreamCollection { } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn add_stream(&self, stream: &Stream) -> bool { unsafe { from_glib(ffi::gst_stream_collection_add_stream(self.to_glib_none().0, stream.to_glib_full())) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_size(&self) -> u32 { unsafe { ffi::gst_stream_collection_get_size(self.to_glib_none().0) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_stream(&self, index: u32) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_stream(self.to_glib_none().0, index)) } } - #[cfg(feature = "v1_10")] + #[cfg(any(feature = "v1_10", feature = "dox"))] pub fn get_upstream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_upstream_id(self.to_glib_none().0)) diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index e9fcae207..5d4048557 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Clock; diff --git a/gstreamer/src/auto/tag_setter.rs b/gstreamer/src/auto/tag_setter.rs index d7f9cda21..a1d78a111 100644 --- a/gstreamer/src/auto/tag_setter.rs +++ b/gstreamer/src/auto/tag_setter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Element; diff --git a/gstreamer/src/auto/toc_setter.rs b/gstreamer/src/auto/toc_setter.rs index 82d69dd6c..978f6f497 100644 --- a/gstreamer/src/auto/toc_setter.rs +++ b/gstreamer/src/auto/toc_setter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Element; diff --git a/gstreamer/src/auto/u_r_i_handler.rs b/gstreamer/src/auto/u_r_i_handler.rs index cce62d4a0..16f037042 100644 --- a/gstreamer/src/auto/u_r_i_handler.rs +++ b/gstreamer/src/auto/u_r_i_handler.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (6a48033) from gir-files (???) +// This file was generated by gir (0fe730d) from gir-files (???) // DO NOT EDIT use Error;