mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
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 mut context = gst::ParseContext::new();
|
||||||
let pipeline =
|
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,
|
Ok(pipeline) => pipeline,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
if let Some(gst::ParseError::NoSuchElement) = err.kind::<gst::ParseError>() {
|
if let Some(gst::ParseError::NoSuchElement) = err.kind::<gst::ParseError>() {
|
||||||
|
|
|
@ -23,7 +23,7 @@ fn main() {
|
||||||
.get_by_name("src")
|
.get_by_name("src")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let src_pad = src.get_static_pad("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 {
|
if let Some(gst::PadProbeData::Buffer(ref buffer)) = probe_info.data {
|
||||||
let map = buffer.map_readable().unwrap();
|
let map = buffer.map_readable().unwrap();
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.9"
|
bitflags = "1.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gobject-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"]
|
v1_12 = ["gstreamer-sys/v1_12", "gstreamer-base/v1_12", "gstreamer-app-sys/v1_12", "v1_10"]
|
||||||
embed-lgpl-docs = ["rustdoc-stripper"]
|
embed-lgpl-docs = ["rustdoc-stripper"]
|
||||||
purge-lgpl-docs = ["rustdoc-stripper"]
|
purge-lgpl-docs = ["rustdoc-stripper"]
|
||||||
|
dox = ["gstreamer-app-sys/dox"]
|
||||||
default-features = []
|
default-features = []
|
||||||
|
|
||||||
[badges]
|
[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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
@ -31,7 +31,7 @@ glib_wrapper! {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AppSink {
|
impl AppSink {
|
||||||
#[cfg(feature = "v1_12")]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
pub fn get_buffer_list_support(&self) -> bool {
|
pub fn get_buffer_list_support(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_app_sink_get_buffer_list_support(self.to_glib_none().0))
|
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) {
|
pub fn set_buffer_list_support(&self, enable_lists: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_app_sink_set_buffer_list_support(self.to_glib_none().0, enable_lists.to_glib());
|
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> {
|
pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_app_sink_try_pull_preroll(self.to_glib_none().0, timeout))
|
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> {
|
pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_app_sink_try_pull_sample(self.to_glib_none().0, timeout))
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use AppStreamType;
|
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 {
|
pub fn get_duration(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_app_src_get_duration(self.to_glib_none().0)
|
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) {
|
pub fn set_duration(&self, duration: gst::ClockTime) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_app_src_set_duration(self.to_glib_none().0, duration);
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
mod app_sink;
|
mod app_sink;
|
||||||
|
|
|
@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.9"
|
bitflags = "1.0"
|
||||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gobject-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"] }
|
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"]
|
v1_12 = ["gstreamer-sys/v1_12", "gstreamer-audio-sys/v1_12", "v1_10"]
|
||||||
embed-lgpl-docs = ["rustdoc-stripper"]
|
embed-lgpl-docs = ["rustdoc-stripper"]
|
||||||
purge-lgpl-docs = ["rustdoc-stripper"]
|
purge-lgpl-docs = ["rustdoc-stripper"]
|
||||||
|
dox = ["gstreamer-audio-sys/dox"]
|
||||||
default-features = []
|
default-features = []
|
||||||
|
|
||||||
[badges]
|
[badges]
|
||||||
|
|
|
@ -183,15 +183,15 @@ impl AudioFormatInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_float(&self) -> bool {
|
pub fn is_float(&self) -> bool {
|
||||||
self.flags().contains(::AUDIO_FORMAT_FLAG_FLOAT)
|
self.flags().contains(::AudioFormatFlags::FLOAT)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_integer(&self) -> bool {
|
pub fn is_integer(&self) -> bool {
|
||||||
self.flags().contains(::AUDIO_FORMAT_FLAG_INTEGER)
|
self.flags().contains(::AudioFormatFlags::INTEGER)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_signed(&self) -> bool {
|
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 {
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
@ -10,8 +10,8 @@ use glib::translate::*;
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct AudioFlags: u32 {
|
pub struct AudioFlags: u32 {
|
||||||
const AUDIO_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const AUDIO_FLAG_UNPOSITIONED = 1;
|
const UNPOSITIONED = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,11 +58,11 @@ impl SetValue for AudioFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct AudioFormatFlags: u32 {
|
pub struct AudioFormatFlags: u32 {
|
||||||
const AUDIO_FORMAT_FLAG_INTEGER = 1;
|
const INTEGER = 1;
|
||||||
const AUDIO_FORMAT_FLAG_FLOAT = 2;
|
const FLOAT = 2;
|
||||||
const AUDIO_FORMAT_FLAG_SIGNED = 4;
|
const SIGNED = 4;
|
||||||
const AUDIO_FORMAT_FLAG_COMPLEX = 16;
|
const COMPLEX = 16;
|
||||||
const AUDIO_FORMAT_FLAG_UNPACK = 32;
|
const UNPACK = 32;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,8 +109,8 @@ impl SetValue for AudioFormatFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct AudioPackFlags: u32 {
|
pub struct AudioPackFlags: u32 {
|
||||||
const AUDIO_PACK_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const AUDIO_PACK_FLAG_TRUNCATE_RANGE = 1;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
mod stream_volume;
|
mod stream_volume;
|
||||||
|
@ -13,17 +13,8 @@ pub use self::enums::StreamVolumeFormat;
|
||||||
|
|
||||||
mod flags;
|
mod flags;
|
||||||
pub use self::flags::AudioFlags;
|
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::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::AudioPackFlags;
|
||||||
pub use self::flags::AUDIO_PACK_FLAG_NONE;
|
|
||||||
pub use self::flags::AUDIO_PACK_FLAG_TRUNCATE_RANGE;
|
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub mod traits {
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use StreamVolumeFormat;
|
use StreamVolumeFormat;
|
||||||
|
|
|
@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.9"
|
bitflags = "1.0"
|
||||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gobject-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"] }
|
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"]
|
v1_12 = ["gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12", "v1_10"]
|
||||||
embed-lgpl-docs = ["rustdoc-stripper"]
|
embed-lgpl-docs = ["rustdoc-stripper"]
|
||||||
purge-lgpl-docs = ["rustdoc-stripper"]
|
purge-lgpl-docs = ["rustdoc-stripper"]
|
||||||
|
dox = ["gstreamer-base-sys/dox"]
|
||||||
default-features = []
|
default-features = []
|
||||||
|
|
||||||
[badges]
|
[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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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 {
|
pub fn dts_at_discont(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_adapter_dts_at_discont(self.to_glib_none().0)
|
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 {
|
pub fn offset_at_discont(&self) -> u64 {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_adapter_offset_at_discont(self.to_glib_none().0)
|
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) {
|
pub fn prev_offset(&self) -> (u64, u64) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut distance = mem::uninitialized();
|
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 {
|
pub fn pts_at_discont(&self) -> gst::ClockTime {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_adapter_pts_at_discont(self.to_glib_none().0)
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
@ -37,7 +37,7 @@ pub trait BaseSinkExt {
|
||||||
|
|
||||||
fn get_blocksize(&self) -> u32;
|
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_drop_out_of_segment(&self) -> bool;
|
||||||
|
|
||||||
fn get_last_sample(&self) -> Option<gst::Sample>;
|
fn get_last_sample(&self) -> Option<gst::Sample>;
|
||||||
|
@ -68,7 +68,7 @@ pub trait BaseSinkExt {
|
||||||
|
|
||||||
fn set_blocksize(&self, blocksize: u32);
|
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_drop_out_of_segment(&self, drop_out_of_segment: bool);
|
||||||
|
|
||||||
fn set_last_sample_enabled(&self, enabled: 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 {
|
fn get_drop_out_of_segment(&self) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_base_sink_get_drop_out_of_segment(self.to_glib_none().0))
|
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) {
|
fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_base_sink_set_drop_out_of_segment(self.to_glib_none().0, drop_out_of_segment.to_glib());
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
mod adapter;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use BaseSrc;
|
use BaseSrc;
|
||||||
|
|
|
@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.9"
|
bitflags = "1.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
|
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
|
@ -28,6 +28,7 @@ optional = true
|
||||||
[features]
|
[features]
|
||||||
embed-lgpl-docs = ["rustdoc-stripper"]
|
embed-lgpl-docs = ["rustdoc-stripper"]
|
||||||
purge-lgpl-docs = ["rustdoc-stripper"]
|
purge-lgpl-docs = ["rustdoc-stripper"]
|
||||||
|
dox = ["gstreamer-player-sys/dox"]
|
||||||
default-features = []
|
default-features = []
|
||||||
|
|
||||||
[badges]
|
[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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
mod player;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Error;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use PlayerStreamInfo;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use PlayerSignalDispatcher;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use PlayerAudioInfo;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use PlayerStreamInfo;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use PlayerStreamInfo;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use PlayerVideoRenderer;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
|
@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.9"
|
bitflags = "1.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gobject-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"]
|
v1_12 = ["gstreamer-sys/v1_12", "gstreamer-video-sys/v1_12", "v1_10"]
|
||||||
embed-lgpl-docs = ["rustdoc-stripper"]
|
embed-lgpl-docs = ["rustdoc-stripper"]
|
||||||
purge-lgpl-docs = ["rustdoc-stripper"]
|
purge-lgpl-docs = ["rustdoc-stripper"]
|
||||||
|
dox = ["gstreamer-video-sys/dox"]
|
||||||
default-features = []
|
default-features = []
|
||||||
|
|
||||||
[badges]
|
[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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
|
||||||
pub enum VideoFieldOrder {
|
pub enum VideoFieldOrder {
|
||||||
Unknown,
|
Unknown,
|
||||||
|
@ -169,7 +169,7 @@ pub enum VideoFieldOrder {
|
||||||
__Unknown(i32),
|
__Unknown(i32),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "v1_12")]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
impl ToGlib for VideoFieldOrder {
|
impl ToGlib for VideoFieldOrder {
|
||||||
type GlibType = ffi::GstVideoFieldOrder;
|
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)]
|
#[doc(hidden)]
|
||||||
impl FromGlib<ffi::GstVideoFieldOrder> for VideoFieldOrder {
|
impl FromGlib<ffi::GstVideoFieldOrder> for VideoFieldOrder {
|
||||||
fn from_glib(value: ffi::GstVideoFieldOrder) -> Self {
|
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 {
|
impl StaticType for VideoFieldOrder {
|
||||||
fn static_type() -> Type {
|
fn static_type() -> Type {
|
||||||
unsafe { from_glib(ffi::gst_video_field_order_get_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 {
|
impl<'a> FromValueOptional<'a> for VideoFieldOrder {
|
||||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
Some(FromValue::from_value(value))
|
Some(FromValue::from_value(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "v1_12")]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
impl<'a> FromValue<'a> for VideoFieldOrder {
|
impl<'a> FromValue<'a> for VideoFieldOrder {
|
||||||
unsafe fn from_value(value: &Value) -> Self {
|
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)))
|
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 {
|
impl SetValue for VideoFieldOrder {
|
||||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
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)
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
@ -10,15 +10,15 @@ use glib::translate::*;
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct VideoChromaSite: u32 {
|
pub struct VideoChromaSite: u32 {
|
||||||
const VIDEO_CHROMA_SITE_UNKNOWN = 0;
|
const UNKNOWN = 0;
|
||||||
const VIDEO_CHROMA_SITE_NONE = 1;
|
const NONE = 1;
|
||||||
const VIDEO_CHROMA_SITE_H_COSITED = 2;
|
const H_COSITED = 2;
|
||||||
const VIDEO_CHROMA_SITE_V_COSITED = 4;
|
const V_COSITED = 4;
|
||||||
const VIDEO_CHROMA_SITE_ALT_LINE = 8;
|
const ALT_LINE = 8;
|
||||||
const VIDEO_CHROMA_SITE_COSITED = 6;
|
const COSITED = 6;
|
||||||
const VIDEO_CHROMA_SITE_JPEG = 1;
|
const JPEG = 1;
|
||||||
const VIDEO_CHROMA_SITE_MPEG2 = 2;
|
const MPEG2 = 2;
|
||||||
const VIDEO_CHROMA_SITE_DV = 14;
|
const DV = 14;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ impl SetValue for VideoChromaSite {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct VideoFlags: u32 {
|
pub struct VideoFlags: u32 {
|
||||||
const VIDEO_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const VIDEO_FLAG_VARIABLE_FPS = 1;
|
const VARIABLE_FPS = 1;
|
||||||
const VIDEO_FLAG_PREMULTIPLIED_ALPHA = 2;
|
const PREMULTIPLIED_ALPHA = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,15 +114,15 @@ impl SetValue for VideoFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct VideoFormatFlags: u32 {
|
pub struct VideoFormatFlags: u32 {
|
||||||
const VIDEO_FORMAT_FLAG_YUV = 1;
|
const YUV = 1;
|
||||||
const VIDEO_FORMAT_FLAG_RGB = 2;
|
const RGB = 2;
|
||||||
const VIDEO_FORMAT_FLAG_GRAY = 4;
|
const GRAY = 4;
|
||||||
const VIDEO_FORMAT_FLAG_ALPHA = 8;
|
const ALPHA = 8;
|
||||||
const VIDEO_FORMAT_FLAG_LE = 16;
|
const LE = 16;
|
||||||
const VIDEO_FORMAT_FLAG_PALETTE = 32;
|
const PALETTE = 32;
|
||||||
const VIDEO_FORMAT_FLAG_COMPLEX = 64;
|
const COMPLEX = 64;
|
||||||
const VIDEO_FORMAT_FLAG_UNPACK = 128;
|
const UNPACK = 128;
|
||||||
const VIDEO_FORMAT_FLAG_TILED = 256;
|
const TILED = 256;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,13 +169,13 @@ impl SetValue for VideoFormatFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct VideoFrameFlags: u32 {
|
pub struct VideoFrameFlags: u32 {
|
||||||
const VIDEO_FRAME_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const VIDEO_FRAME_FLAG_INTERLACED = 1;
|
const INTERLACED = 1;
|
||||||
const VIDEO_FRAME_FLAG_TFF = 2;
|
const TFF = 2;
|
||||||
const VIDEO_FRAME_FLAG_RFF = 4;
|
const RFF = 4;
|
||||||
const VIDEO_FRAME_FLAG_ONEFIELD = 8;
|
const ONEFIELD = 8;
|
||||||
const VIDEO_FRAME_FLAG_MULTIPLE_VIEW = 16;
|
const MULTIPLE_VIEW = 16;
|
||||||
const VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE = 32;
|
const FIRST_IN_BUNDLE = 32;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,14 +222,14 @@ impl SetValue for VideoFrameFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct VideoMultiviewFlags: u32 {
|
pub struct VideoMultiviewFlags: u32 {
|
||||||
const VIDEO_MULTIVIEW_FLAGS_NONE = 0;
|
const NONE = 0;
|
||||||
const VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST = 1;
|
const RIGHT_VIEW_FIRST = 1;
|
||||||
const VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED = 2;
|
const LEFT_FLIPPED = 2;
|
||||||
const VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED = 4;
|
const LEFT_FLOPPED = 4;
|
||||||
const VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED = 8;
|
const RIGHT_FLIPPED = 8;
|
||||||
const VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED = 16;
|
const RIGHT_FLOPPED = 16;
|
||||||
const VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT = 16384;
|
const HALF_ASPECT = 16384;
|
||||||
const VIDEO_MULTIVIEW_FLAGS_MIXED_MONO = 32768;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
mod video_overlay;
|
mod video_overlay;
|
||||||
|
@ -8,7 +8,7 @@ pub use self::video_overlay::VideoOverlayExt;
|
||||||
mod enums;
|
mod enums;
|
||||||
pub use self::enums::VideoColorMatrix;
|
pub use self::enums::VideoColorMatrix;
|
||||||
pub use self::enums::VideoColorPrimaries;
|
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::VideoFieldOrder;
|
||||||
pub use self::enums::VideoFormat;
|
pub use self::enums::VideoFormat;
|
||||||
pub use self::enums::VideoInterlaceMode;
|
pub use self::enums::VideoInterlaceMode;
|
||||||
|
@ -18,46 +18,10 @@ pub use self::enums::VideoTransferFunction;
|
||||||
|
|
||||||
mod flags;
|
mod flags;
|
||||||
pub use self::flags::VideoChromaSite;
|
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::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::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::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::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)]
|
#[doc(hidden)]
|
||||||
pub mod traits {
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
|
|
@ -107,19 +107,19 @@ impl<T> VideoFrame<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_interlaced(&self) -> bool {
|
pub fn is_interlaced(&self) -> bool {
|
||||||
self.flags().contains(::VIDEO_FRAME_FLAG_INTERLACED)
|
self.flags().contains(::VideoFrameFlags::INTERLACED)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_tff(&self) -> bool {
|
pub fn is_tff(&self) -> bool {
|
||||||
self.flags().contains(::VIDEO_FRAME_FLAG_TFF)
|
self.flags().contains(::VideoFrameFlags::TFF)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_rff(&self) -> bool {
|
pub fn is_rff(&self) -> bool {
|
||||||
self.flags().contains(::VIDEO_FRAME_FLAG_RFF)
|
self.flags().contains(::VideoFrameFlags::RFF)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_onefield(&self) -> bool {
|
pub fn is_onefield(&self) -> bool {
|
||||||
self.flags().contains(::VIDEO_FRAME_FLAG_ONEFIELD)
|
self.flags().contains(::VideoFrameFlags::ONEFIELD)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn n_planes(&self) -> u32 {
|
pub fn n_planes(&self) -> u32 {
|
||||||
|
|
|
@ -13,7 +13,7 @@ keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "0.9"
|
bitflags = "1.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gobject-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"]
|
v1_12 = ["gstreamer-sys/v1_12", "v1_10"]
|
||||||
embed-lgpl-docs = ["rustdoc-stripper"]
|
embed-lgpl-docs = ["rustdoc-stripper"]
|
||||||
purge-lgpl-docs = ["rustdoc-stripper"]
|
purge-lgpl-docs = ["rustdoc-stripper"]
|
||||||
|
dox = ["gstreamer-sys/dox"]
|
||||||
default-features = []
|
default-features = []
|
||||||
|
|
||||||
[badges]
|
[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
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[allow(unused_imports)]
|
#[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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ChildProxy;
|
use ChildProxy;
|
||||||
use Element;
|
use Element;
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
use ElementFlags;
|
use ElementFlags;
|
||||||
use Object;
|
use Object;
|
||||||
use Pad;
|
use Pad;
|
||||||
|
@ -58,7 +58,7 @@ pub trait BinExt {
|
||||||
|
|
||||||
fn get_by_name_recurse_up(&self, name: &str) -> Option<Element>;
|
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 get_suppressed_flags(&self) -> ElementFlags;
|
||||||
|
|
||||||
//fn iterate_all_by_interface(&self, iface: glib::types::Type) -> /*Ignored*/Option<Iterator>;
|
//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);
|
//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 set_suppressed_flags(&self, flags: ElementFlags);
|
||||||
|
|
||||||
fn sync_children_states(&self) -> Result<(), glib::error::BoolError>;
|
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);
|
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;
|
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_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;
|
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 {
|
fn get_suppressed_flags(&self) -> ElementFlags {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_bin_get_suppressed_flags(self.to_glib_none().0))
|
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() }
|
// 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) {
|
fn set_suppressed_flags(&self, flags: ElementFlags) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_bin_set_suppressed_flags(self.to_glib_none().0, flags.to_glib());
|
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 {
|
fn connect_deep_element_added<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Self, &Bin, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
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 {
|
fn connect_deep_element_removed<F: Fn(&Self, &Bin, &Element) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
|
||||||
unsafe {
|
unsafe {
|
||||||
let f: Box_<Box_<Fn(&Self, &Bin, &Element) + Send + Sync + 'static>> = Box_::new(Box_::new(f));
|
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)
|
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> {
|
where P: IsA<Bin> {
|
||||||
callback_guard!();
|
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))
|
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)
|
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> {
|
where P: IsA<Bin> {
|
||||||
callback_guard!();
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ClockTime;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ClockTime;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Caps;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Bus;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Bus;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use DeviceProvider;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Bus;
|
use Bus;
|
||||||
|
@ -30,7 +30,7 @@ use glib::signal::connect;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib_ffi;
|
use glib_ffi;
|
||||||
use gobject_ffi;
|
use gobject_ffi;
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
use libc;
|
use libc;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
@ -89,13 +89,13 @@ pub trait ElementExt {
|
||||||
|
|
||||||
fn add_pad<P: IsA<Pad>>(&self, pad: &P) -> Result<(), glib::error::BoolError>;
|
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;
|
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;
|
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 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;
|
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);
|
//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 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);
|
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>;
|
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 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>;
|
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 {
|
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.into();
|
||||||
let property_name = property_name.to_glib_none();
|
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 {
|
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.into();
|
||||||
let property_name = property_name.to_glib_none();
|
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) {
|
//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() }
|
// 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() }
|
// 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) {
|
//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() }
|
// 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) {
|
fn remove_property_notify_watch(&self, watch_id: libc::c_ulong) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_element_remove_property_notify_watch(self.to_glib_none().0, watch_id);
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Caps;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
use ffi;
|
||||||
|
@ -10,19 +10,19 @@ use glib::translate::*;
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct BufferFlags: u32 {
|
pub struct BufferFlags: u32 {
|
||||||
const BUFFER_FLAG_LIVE = 16;
|
const LIVE = 16;
|
||||||
const BUFFER_FLAG_DECODE_ONLY = 32;
|
const DECODE_ONLY = 32;
|
||||||
const BUFFER_FLAG_DISCONT = 64;
|
const DISCONT = 64;
|
||||||
const BUFFER_FLAG_RESYNC = 128;
|
const RESYNC = 128;
|
||||||
const BUFFER_FLAG_CORRUPTED = 256;
|
const CORRUPTED = 256;
|
||||||
const BUFFER_FLAG_MARKER = 512;
|
const MARKER = 512;
|
||||||
const BUFFER_FLAG_HEADER = 1024;
|
const HEADER = 1024;
|
||||||
const BUFFER_FLAG_GAP = 2048;
|
const GAP = 2048;
|
||||||
const BUFFER_FLAG_DROPPABLE = 4096;
|
const DROPPABLE = 4096;
|
||||||
const BUFFER_FLAG_DELTA_UNIT = 8192;
|
const DELTA_UNIT = 8192;
|
||||||
const BUFFER_FLAG_TAG_MEMORY = 16384;
|
const TAG_MEMORY = 16384;
|
||||||
const BUFFER_FLAG_SYNC_AFTER = 32768;
|
const SYNC_AFTER = 32768;
|
||||||
const BUFFER_FLAG_LAST = 1048576;
|
const LAST = 1048576;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,24 +69,24 @@ impl SetValue for BufferFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct DebugColorFlags: u32 {
|
pub struct DebugColorFlags: u32 {
|
||||||
const DEBUG_FG_BLACK = 0;
|
const FG_BLACK = 0;
|
||||||
const DEBUG_FG_RED = 1;
|
const FG_RED = 1;
|
||||||
const DEBUG_FG_GREEN = 2;
|
const FG_GREEN = 2;
|
||||||
const DEBUG_FG_YELLOW = 3;
|
const FG_YELLOW = 3;
|
||||||
const DEBUG_FG_BLUE = 4;
|
const FG_BLUE = 4;
|
||||||
const DEBUG_FG_MAGENTA = 5;
|
const FG_MAGENTA = 5;
|
||||||
const DEBUG_FG_CYAN = 6;
|
const FG_CYAN = 6;
|
||||||
const DEBUG_FG_WHITE = 7;
|
const FG_WHITE = 7;
|
||||||
const DEBUG_BG_BLACK = 0;
|
const BG_BLACK = 0;
|
||||||
const DEBUG_BG_RED = 16;
|
const BG_RED = 16;
|
||||||
const DEBUG_BG_GREEN = 32;
|
const BG_GREEN = 32;
|
||||||
const DEBUG_BG_YELLOW = 48;
|
const BG_YELLOW = 48;
|
||||||
const DEBUG_BG_BLUE = 64;
|
const BG_BLUE = 64;
|
||||||
const DEBUG_BG_MAGENTA = 80;
|
const BG_MAGENTA = 80;
|
||||||
const DEBUG_BG_CYAN = 96;
|
const BG_CYAN = 96;
|
||||||
const DEBUG_BG_WHITE = 112;
|
const BG_WHITE = 112;
|
||||||
const DEBUG_BOLD = 256;
|
const BOLD = 256;
|
||||||
const DEBUG_UNDERLINE = 512;
|
const UNDERLINE = 512;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,13 +133,13 @@ impl SetValue for DebugColorFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct DebugGraphDetails: u32 {
|
pub struct DebugGraphDetails: u32 {
|
||||||
const DEBUG_GRAPH_SHOW_MEDIA_TYPE = 1;
|
const MEDIA_TYPE = 1;
|
||||||
const DEBUG_GRAPH_SHOW_CAPS_DETAILS = 2;
|
const CAPS_DETAILS = 2;
|
||||||
const DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS = 4;
|
const NON_DEFAULT_PARAMS = 4;
|
||||||
const DEBUG_GRAPH_SHOW_STATES = 8;
|
const STATES = 8;
|
||||||
const DEBUG_GRAPH_SHOW_FULL_PARAMS = 16;
|
const FULL_PARAMS = 16;
|
||||||
const DEBUG_GRAPH_SHOW_ALL = 15;
|
const ALL = 15;
|
||||||
const DEBUG_GRAPH_SHOW_VERBOSE = 4294967295;
|
const VERBOSE = 4294967295;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,13 +186,13 @@ impl SetValue for DebugGraphDetails {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct ElementFlags: u32 {
|
pub struct ElementFlags: u32 {
|
||||||
const ELEMENT_FLAG_LOCKED_STATE = 16;
|
const LOCKED_STATE = 16;
|
||||||
const ELEMENT_FLAG_SINK = 32;
|
const SINK = 32;
|
||||||
const ELEMENT_FLAG_SOURCE = 64;
|
const SOURCE = 64;
|
||||||
const ELEMENT_FLAG_PROVIDE_CLOCK = 128;
|
const PROVIDE_CLOCK = 128;
|
||||||
const ELEMENT_FLAG_REQUIRE_CLOCK = 256;
|
const REQUIRE_CLOCK = 256;
|
||||||
const ELEMENT_FLAG_INDEXABLE = 512;
|
const INDEXABLE = 512;
|
||||||
const ELEMENT_FLAG_LAST = 16384;
|
const LAST = 16384;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,12 +239,12 @@ impl SetValue for ElementFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct PadLinkCheck: u32 {
|
pub struct PadLinkCheck: u32 {
|
||||||
const PAD_LINK_CHECK_NOTHING = 0;
|
const NOTHING = 0;
|
||||||
const PAD_LINK_CHECK_HIERARCHY = 1;
|
const HIERARCHY = 1;
|
||||||
const PAD_LINK_CHECK_TEMPLATE_CAPS = 2;
|
const TEMPLATE_CAPS = 2;
|
||||||
const PAD_LINK_CHECK_CAPS = 4;
|
const CAPS = 4;
|
||||||
const PAD_LINK_CHECK_NO_RECONFIGURE = 8;
|
const NO_RECONFIGURE = 8;
|
||||||
const PAD_LINK_CHECK_DEFAULT = 5;
|
const DEFAULT = 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -291,28 +291,28 @@ impl SetValue for PadLinkCheck {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct PadProbeType: u32 {
|
pub struct PadProbeType: u32 {
|
||||||
const PAD_PROBE_TYPE_INVALID = 0;
|
const INVALID = 0;
|
||||||
const PAD_PROBE_TYPE_IDLE = 1;
|
const IDLE = 1;
|
||||||
const PAD_PROBE_TYPE_BLOCK = 2;
|
const BLOCK = 2;
|
||||||
const PAD_PROBE_TYPE_BUFFER = 16;
|
const BUFFER = 16;
|
||||||
const PAD_PROBE_TYPE_BUFFER_LIST = 32;
|
const BUFFER_LIST = 32;
|
||||||
const PAD_PROBE_TYPE_EVENT_DOWNSTREAM = 64;
|
const EVENT_DOWNSTREAM = 64;
|
||||||
const PAD_PROBE_TYPE_EVENT_UPSTREAM = 128;
|
const EVENT_UPSTREAM = 128;
|
||||||
const PAD_PROBE_TYPE_EVENT_FLUSH = 256;
|
const EVENT_FLUSH = 256;
|
||||||
const PAD_PROBE_TYPE_QUERY_DOWNSTREAM = 512;
|
const QUERY_DOWNSTREAM = 512;
|
||||||
const PAD_PROBE_TYPE_QUERY_UPSTREAM = 1024;
|
const QUERY_UPSTREAM = 1024;
|
||||||
const PAD_PROBE_TYPE_PUSH = 4096;
|
const PUSH = 4096;
|
||||||
const PAD_PROBE_TYPE_PULL = 8192;
|
const PULL = 8192;
|
||||||
const PAD_PROBE_TYPE_BLOCKING = 3;
|
const BLOCKING = 3;
|
||||||
const PAD_PROBE_TYPE_DATA_DOWNSTREAM = 112;
|
const DATA_DOWNSTREAM = 112;
|
||||||
const PAD_PROBE_TYPE_DATA_UPSTREAM = 128;
|
const DATA_UPSTREAM = 128;
|
||||||
const PAD_PROBE_TYPE_DATA_BOTH = 240;
|
const DATA_BOTH = 240;
|
||||||
const PAD_PROBE_TYPE_BLOCK_DOWNSTREAM = 114;
|
const BLOCK_DOWNSTREAM = 114;
|
||||||
const PAD_PROBE_TYPE_BLOCK_UPSTREAM = 130;
|
const BLOCK_UPSTREAM = 130;
|
||||||
const PAD_PROBE_TYPE_EVENT_BOTH = 192;
|
const EVENT_BOTH = 192;
|
||||||
const PAD_PROBE_TYPE_QUERY_BOTH = 1536;
|
const QUERY_BOTH = 1536;
|
||||||
const PAD_PROBE_TYPE_ALL_BOTH = 1776;
|
const ALL_BOTH = 1776;
|
||||||
const PAD_PROBE_TYPE_SCHEDULING = 12288;
|
const SCHEDULING = 12288;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -359,10 +359,10 @@ impl SetValue for PadProbeType {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct ParseFlags: u32 {
|
pub struct ParseFlags: u32 {
|
||||||
const PARSE_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const PARSE_FLAG_FATAL_ERRORS = 1;
|
const FATAL_ERRORS = 1;
|
||||||
const PARSE_FLAG_NO_SINGLE_ELEMENT_BINS = 2;
|
const NO_SINGLE_ELEMENT_BINS = 2;
|
||||||
const PARSE_FLAG_PLACE_IN_BIN = 4;
|
const PLACE_IN_BIN = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -409,9 +409,9 @@ impl SetValue for ParseFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct SchedulingFlags: u32 {
|
pub struct SchedulingFlags: u32 {
|
||||||
const SCHEDULING_FLAG_SEEKABLE = 1;
|
const SEEKABLE = 1;
|
||||||
const SCHEDULING_FLAG_SEQUENTIAL = 2;
|
const SEQUENTIAL = 2;
|
||||||
const SCHEDULING_FLAG_BANDWIDTH_LIMITED = 4;
|
const BANDWIDTH_LIMITED = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -458,18 +458,18 @@ impl SetValue for SchedulingFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct SeekFlags: u32 {
|
pub struct SeekFlags: u32 {
|
||||||
const SEEK_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const SEEK_FLAG_FLUSH = 1;
|
const FLUSH = 1;
|
||||||
const SEEK_FLAG_ACCURATE = 2;
|
const ACCURATE = 2;
|
||||||
const SEEK_FLAG_KEY_UNIT = 4;
|
const KEY_UNIT = 4;
|
||||||
const SEEK_FLAG_SEGMENT = 8;
|
const SEGMENT = 8;
|
||||||
const SEEK_FLAG_TRICKMODE = 16;
|
const TRICKMODE = 16;
|
||||||
const SEEK_FLAG_SKIP = 16;
|
const SKIP = 16;
|
||||||
const SEEK_FLAG_SNAP_BEFORE = 32;
|
const SNAP_BEFORE = 32;
|
||||||
const SEEK_FLAG_SNAP_AFTER = 64;
|
const SNAP_AFTER = 64;
|
||||||
const SEEK_FLAG_SNAP_NEAREST = 96;
|
const SNAP_NEAREST = 96;
|
||||||
const SEEK_FLAG_TRICKMODE_KEY_UNITS = 128;
|
const TRICKMODE_KEY_UNITS = 128;
|
||||||
const SEEK_FLAG_TRICKMODE_NO_AUDIO = 256;
|
const TRICKMODE_NO_AUDIO = 256;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -516,13 +516,13 @@ impl SetValue for SeekFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct SegmentFlags: u32 {
|
pub struct SegmentFlags: u32 {
|
||||||
const SEGMENT_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const SEGMENT_FLAG_RESET = 1;
|
const RESET = 1;
|
||||||
const SEGMENT_FLAG_TRICKMODE = 16;
|
const TRICKMODE = 16;
|
||||||
const SEGMENT_FLAG_SKIP = 16;
|
const SKIP = 16;
|
||||||
const SEGMENT_FLAG_SEGMENT = 8;
|
const SEGMENT = 8;
|
||||||
const SEGMENT_FLAG_TRICKMODE_KEY_UNITS = 128;
|
const TRICKMODE_KEY_UNITS = 128;
|
||||||
const SEGMENT_FLAG_TRICKMODE_NO_AUDIO = 256;
|
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! {
|
bitflags! {
|
||||||
pub struct StackTraceFlags: u32 {
|
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)]
|
#[doc(hidden)]
|
||||||
impl ToGlib for StackTraceFlags {
|
impl ToGlib for StackTraceFlags {
|
||||||
type GlibType = ffi::GstStackTraceFlags;
|
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)]
|
#[doc(hidden)]
|
||||||
impl FromGlib<ffi::GstStackTraceFlags> for StackTraceFlags {
|
impl FromGlib<ffi::GstStackTraceFlags> for StackTraceFlags {
|
||||||
fn from_glib(value: ffi::GstStackTraceFlags) -> 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 {
|
impl StaticType for StackTraceFlags {
|
||||||
fn static_type() -> Type {
|
fn static_type() -> Type {
|
||||||
unsafe { from_glib(ffi::gst_stack_trace_flags_get_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 {
|
impl<'a> FromValueOptional<'a> for StackTraceFlags {
|
||||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||||
Some(FromValue::from_value(value))
|
Some(FromValue::from_value(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "v1_12")]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
impl<'a> FromValue<'a> for StackTraceFlags {
|
impl<'a> FromValue<'a> for StackTraceFlags {
|
||||||
unsafe fn from_value(value: &Value) -> Self {
|
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)))
|
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 {
|
impl SetValue for StackTraceFlags {
|
||||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
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())
|
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! {
|
bitflags! {
|
||||||
pub struct StreamFlags: u32 {
|
pub struct StreamFlags: u32 {
|
||||||
const STREAM_FLAG_NONE = 0;
|
const NONE = 0;
|
||||||
const STREAM_FLAG_SPARSE = 1;
|
const SPARSE = 1;
|
||||||
const STREAM_FLAG_SELECT = 2;
|
const SELECT = 2;
|
||||||
const STREAM_FLAG_UNSELECT = 4;
|
const UNSELECT = 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -673,11 +673,11 @@ impl SetValue for StreamFlags {
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
pub struct StreamType: u32 {
|
pub struct StreamType: u32 {
|
||||||
const STREAM_TYPE_UNKNOWN = 1;
|
const UNKNOWN = 1;
|
||||||
const STREAM_TYPE_AUDIO = 2;
|
const AUDIO = 2;
|
||||||
const STREAM_TYPE_VIDEO = 4;
|
const VIDEO = 4;
|
||||||
const STREAM_TYPE_CONTAINER = 8;
|
const CONTAINER = 8;
|
||||||
const STREAM_TYPE_TEXT = 16;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Bin;
|
use Bin;
|
||||||
|
@ -7,7 +7,7 @@ use DebugGraphDetails;
|
||||||
use DebugLevel;
|
use DebugLevel;
|
||||||
use Element;
|
use Element;
|
||||||
use Error;
|
use Error;
|
||||||
#[cfg(feature = "v1_12")]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
use StackTraceFlags;
|
use StackTraceFlags;
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
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> {
|
pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Option<String> {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
unsafe {
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Object;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
mod bin;
|
mod bin;
|
||||||
|
@ -68,14 +68,14 @@ mod proxy_pad;
|
||||||
pub use self::proxy_pad::ProxyPad;
|
pub use self::proxy_pad::ProxyPad;
|
||||||
pub use self::proxy_pad::ProxyPadExt;
|
pub use self::proxy_pad::ProxyPadExt;
|
||||||
|
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
mod stream;
|
mod stream;
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
pub use self::stream::Stream;
|
pub use self::stream::Stream;
|
||||||
|
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
mod stream_collection;
|
mod stream_collection;
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
pub use self::stream_collection::StreamCollection;
|
pub use self::stream_collection::StreamCollection;
|
||||||
|
|
||||||
mod system_clock;
|
mod system_clock;
|
||||||
|
@ -137,129 +137,19 @@ pub use self::enums::URIType;
|
||||||
|
|
||||||
mod flags;
|
mod flags;
|
||||||
pub use self::flags::BufferFlags;
|
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::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::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::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::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::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::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::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::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::SegmentFlags;
|
||||||
pub use self::flags::SEGMENT_FLAG_NONE;
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
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")]
|
|
||||||
pub use self::flags::StackTraceFlags;
|
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::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::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;
|
mod alias;
|
||||||
pub use self::alias::ClockTime;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ClockTime;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Caps;
|
use Caps;
|
||||||
|
@ -13,9 +13,9 @@ use PadLinkCheck;
|
||||||
use PadLinkReturn;
|
use PadLinkReturn;
|
||||||
use PadMode;
|
use PadMode;
|
||||||
use PadTemplate;
|
use PadTemplate;
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
use Stream;
|
use Stream;
|
||||||
#[cfg(feature = "v1_12")]
|
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||||
use TaskState;
|
use TaskState;
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib;
|
use glib;
|
||||||
|
@ -113,12 +113,12 @@ pub trait PadExt {
|
||||||
|
|
||||||
fn get_sticky_event(&self, event_type: EventType, idx: u32) -> Option<Event>;
|
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(&self) -> Option<Stream>;
|
||||||
|
|
||||||
fn get_stream_id(&self) -> Option<String>;
|
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 get_task_state(&self) -> TaskState;
|
||||||
|
|
||||||
fn has_current_caps(&self) -> bool;
|
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;
|
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>;
|
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 link_maybe_ghosting_full<P: IsA<Pad>>(&self, sink: &P, flags: PadLinkCheck) -> bool;
|
||||||
|
|
||||||
fn mark_reconfigure(&self);
|
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> {
|
fn get_stream(&self) -> Option<Stream> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_pad_get_stream(self.to_glib_none().0))
|
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 {
|
fn get_task_state(&self) -> TaskState {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_pad_get_task_state(self.to_glib_none().0))
|
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> {
|
fn link_maybe_ghosting<P: IsA<Pad>>(&self, sink: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
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")
|
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 {
|
fn link_maybe_ghosting_full<P: IsA<Pad>>(&self, sink: &P, flags: PadLinkCheck) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_pad_link_maybe_ghosting_full(self.to_glib_none().0, sink.to_glib_none().0, flags.to_glib()))
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Caps;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Bin;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Error;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use ffi;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Object;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Caps;
|
use Caps;
|
||||||
|
@ -27,7 +27,7 @@ glib_wrapper! {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Stream {
|
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 {
|
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!();
|
assert_initialized_main_thread!();
|
||||||
let stream_id = stream_id.into();
|
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> {
|
pub fn get_caps(&self) -> Option<Caps> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_stream_get_caps(self.to_glib_none().0))
|
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 {
|
pub fn get_stream_flags(&self) -> StreamFlags {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_stream_get_stream_flags(self.to_glib_none().0))
|
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> {
|
pub fn get_stream_id(&self) -> Option<String> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0))
|
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 {
|
pub fn get_stream_type(&self) -> StreamType {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_stream_get_stream_type(self.to_glib_none().0))
|
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> {
|
pub fn get_tags(&self) -> Option<TagList> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_full(ffi::gst_stream_get_tags(self.to_glib_none().0))
|
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) {
|
pub fn set_caps<'a, P: Into<Option<&'a Caps>>>(&self, caps: P) {
|
||||||
let caps = caps.into();
|
let caps = caps.into();
|
||||||
let caps = caps.to_glib_none();
|
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) {
|
pub fn set_stream_flags(&self, flags: StreamFlags) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_stream_set_stream_flags(self.to_glib_none().0, flags.to_glib());
|
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) {
|
pub fn set_stream_type(&self, stream_type: StreamType) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_stream_set_stream_type(self.to_glib_none().0, stream_type.to_glib());
|
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) {
|
pub fn set_tags<'a, P: Into<Option<&'a TagList>>>(&self, tags: P) {
|
||||||
let tags = tags.into();
|
let tags = tags.into();
|
||||||
let tags = tags.to_glib_none();
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Object;
|
use Object;
|
||||||
#[cfg(feature = "v1_10")]
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||||
use Stream;
|
use Stream;
|
||||||
use ffi;
|
use ffi;
|
||||||
use glib::Value;
|
use glib::Value;
|
||||||
|
@ -25,7 +25,7 @@ glib_wrapper! {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl StreamCollection {
|
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 {
|
pub fn new<'a, P: Into<Option<&'a str>>>(upstream_id: P) -> StreamCollection {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
let upstream_id = upstream_id.into();
|
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 {
|
pub fn add_stream(&self, stream: &Stream) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_stream_collection_add_stream(self.to_glib_none().0, stream.to_glib_full()))
|
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 {
|
pub fn get_size(&self) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_stream_collection_get_size(self.to_glib_none().0)
|
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> {
|
pub fn get_stream(&self, index: u32) -> Option<Stream> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::gst_stream_collection_get_stream(self.to_glib_none().0, index))
|
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> {
|
pub fn get_upstream_id(&self) -> Option<String> {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(ffi::gst_stream_collection_get_upstream_id(self.to_glib_none().0))
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Clock;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Element;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Element;
|
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
|
// DO NOT EDIT
|
||||||
|
|
||||||
use Error;
|
use Error;
|
||||||
|
|
Loading…
Reference in a new issue