forked from mirrors/gstreamer-rs
Regenerate with latest GIR
This commit is contained in:
parent
d608cff9e9
commit
19c5556239
77 changed files with 326 additions and 475 deletions
|
@ -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::<gst::ParseError>() {
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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<gst::Sample> {
|
||||
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<gst::Sample> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_app_sink_try_pull_sample(self.to_glib_none().0, timeout))
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ impl AudioInfo {
|
|||
}
|
||||
|
||||
pub fn is_unpositioned(&self) -> bool {
|
||||
self.flags().contains(::AUDIO_FLAG_UNPOSITIONED)
|
||||
self.flags().contains(::AudioFlags::UNPOSITIONED)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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<gst::Sample>;
|
||||
|
@ -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<O: IsA<BaseSink> + IsA<glib::object::Object>> 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<O: IsA<BaseSink> + IsA<glib::object::Object>> 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());
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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<ffi::GstVideoFieldOrder> for VideoFieldOrder {
|
||||
fn from_glib(value: ffi::GstVideoFieldOrder) -> Self {
|
||||
|
@ -198,28 +198,28 @@ impl FromGlib<ffi::GstVideoFieldOrder> 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<Self> {
|
||||
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::<i32, ffi::GstVideoFieldOrder>(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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -107,19 +107,19 @@ impl<T> VideoFrame<T> {
|
|||
}
|
||||
|
||||
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 {
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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<Element>;
|
||||
|
||||
#[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<Iterator>;
|
||||
|
@ -79,7 +79,7 @@ pub trait BinExt {
|
|||
|
||||
//fn remove_many<P: IsA<Element>>(&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<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn connect_deep_element_removed<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
fn connect_do_latency<F: Fn(&Self) -> bool + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
@ -144,7 +144,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> 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<O: IsA<Bin> + IsA<glib::object::Object>> 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<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn connect_deep_element_added<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe {
|
||||
let f: Box_<Box_<Fn(&Self, &Bin, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||
|
@ -241,7 +241,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn connect_deep_element_removed<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe {
|
||||
let f: Box_<Box_<Fn(&Self, &Bin, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
||||
|
@ -291,7 +291,7 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
unsafe extern "C" fn deep_element_added_trampoline<P>(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
|
||||
where P: IsA<Bin> {
|
||||
callback_guard!();
|
||||
|
@ -299,7 +299,7 @@ where P: IsA<Bin> {
|
|||
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<P>(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer)
|
||||
where P: IsA<Bin> {
|
||||
callback_guard!();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<P: IsA<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<Option<&'a str>>>(&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<Option<&'a str>>>(&self, property_name: P, include_value: bool) -> libc::c_ulong;
|
||||
|
||||
//#[cfg(feature = "v1_10")]
|
||||
//#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
//fn call_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&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<Option<&'a str>>, Q: Into<Option<&'b str>>>(&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<Option<&'a str>>, Q: Into<Option<&'b str>>>(&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<P: IsA<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<Option<&'a str>>, Q: Into<Option<&'b Caps>>>(&self, templ: &PadTemplate, name: P, caps: Q) -> Option<Pad>;
|
||||
|
@ -222,7 +222,7 @@ impl<O: IsA<Element> + IsA<glib::object::Object>> ElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn add_property_deep_notify_watch<'a, P: Into<Option<&'a str>>>(&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<O: IsA<Element> + IsA<glib::object::Object>> ElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn add_property_notify_watch<'a, P: Into<Option<&'a str>>>(&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<O: IsA<Element> + IsA<glib::object::Object>> ElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(feature = "v1_10")]
|
||||
//#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
//fn call_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&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<O: IsA<Element> + IsA<glib::object::Object>> 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<Option<&'a str>>, Q: Into<Option<&'b str>>>(&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<O: IsA<Element> + IsA<glib::object::Object>> 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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<ffi::GstStackTraceFlags> for StackTraceFlags {
|
||||
fn from_glib(value: ffi::GstStackTraceFlags) -> StackTraceFlags {
|
||||
|
@ -593,28 +593,28 @@ impl FromGlib<ffi::GstStackTraceFlags> 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<Self> {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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<String> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<Event>;
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn get_stream(&self) -> Option<Stream>;
|
||||
|
||||
fn get_stream_id(&self) -> Option<String>;
|
||||
|
||||
#[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<P: IsA<Pad>>(&self, sinkpad: &P, flags: PadLinkCheck) -> PadLinkReturn;
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn link_maybe_ghosting<P: IsA<Pad>>(&self, sink: &P) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn link_maybe_ghosting_full<P: IsA<Pad>>(&self, sink: &P, flags: PadLinkCheck) -> bool;
|
||||
|
||||
fn mark_reconfigure(&self);
|
||||
|
@ -337,7 +337,7 @@ impl<O: IsA<Pad> + IsA<glib::object::Object>> PadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn get_stream(&self) -> Option<Stream> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_pad_get_stream(self.to_glib_none().0))
|
||||
|
@ -350,7 +350,7 @@ impl<O: IsA<Pad> + IsA<glib::object::Object>> 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<O: IsA<Pad> + IsA<glib::object::Object>> PadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1_10")]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
fn link_maybe_ghosting<P: IsA<Pad>>(&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<P: IsA<Pad>>(&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()))
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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<Option<&'a str>>, Q: Into<Option<&'b Caps>>>(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<Caps> {
|
||||
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<String> {
|
||||
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<TagList> {
|
||||
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<Option<&'a Caps>>>(&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<Option<&'a TagList>>>(&self, tags: P) {
|
||||
let tags = tags.into();
|
||||
let tags = tags.to_glib_none();
|
||||
|
|
|
@ -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<Option<&'a str>>>(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<Stream> {
|
||||
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<String> {
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_stream_collection_get_upstream_id(self.to_glib_none().0))
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue