mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 02:51:10 +00:00
regen
This commit is contained in:
parent
d2591d0019
commit
7daac635c4
253 changed files with 4413 additions and 4460 deletions
|
@ -7,7 +7,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -20,8 +19,8 @@ glib::glib_wrapper! {
|
|||
}
|
||||
|
||||
impl AppSink {
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn get_buffer_list_support(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_app_sink_get_buffer_list_support(
|
||||
|
@ -68,8 +67,8 @@ impl AppSink {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn set_buffer_list_support(&self, enable_lists: bool) {
|
||||
unsafe {
|
||||
ffi::gst_app_sink_set_buffer_list_support(
|
||||
|
@ -113,8 +112,8 @@ impl AppSink {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_app_sink_try_pull_preroll(
|
||||
|
@ -124,8 +123,8 @@ impl AppSink {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_app_sink_try_pull_sample(
|
||||
|
@ -137,7 +136,7 @@ impl AppSink {
|
|||
|
||||
pub fn get_property_buffer_list(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"buffer-list\0".as_ptr() as *const _,
|
||||
|
@ -155,14 +154,14 @@ impl AppSink {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"buffer-list\0".as_ptr() as *const _,
|
||||
Value::from(&buffer_list).to_glib_none().0,
|
||||
glib::Value::from(&buffer_list).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_eos(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"eos\0".as_ptr() as *const _,
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -29,8 +28,8 @@ impl AppSrc {
|
|||
unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn get_duration(&self) -> gst::ClockTime {
|
||||
unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) }
|
||||
}
|
||||
|
@ -61,8 +60,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn set_duration(&self, duration: gst::ClockTime) {
|
||||
unsafe {
|
||||
ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib());
|
||||
|
@ -95,7 +94,7 @@ impl AppSrc {
|
|||
|
||||
pub fn get_property_block(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"block\0".as_ptr() as *const _,
|
||||
|
@ -113,14 +112,14 @@ impl AppSrc {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"block\0".as_ptr() as *const _,
|
||||
Value::from(&block).to_glib_none().0,
|
||||
glib::Value::from(&block).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_format(&self) -> gst::Format {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::Format as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<gst::Format as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"format\0".as_ptr() as *const _,
|
||||
|
@ -138,16 +137,16 @@ impl AppSrc {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"format\0".as_ptr() as *const _,
|
||||
Value::from(&format).to_glib_none().0,
|
||||
glib::Value::from(&format).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn get_property_handle_segment_change(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"handle-segment-change\0".as_ptr() as *const _,
|
||||
|
@ -160,21 +159,21 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) {
|
||||
unsafe {
|
||||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"handle-segment-change\0".as_ptr() as *const _,
|
||||
Value::from(&handle_segment_change).to_glib_none().0,
|
||||
glib::Value::from(&handle_segment_change).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_is_live(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"is-live\0".as_ptr() as *const _,
|
||||
|
@ -192,14 +191,14 @@ impl AppSrc {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"is-live\0".as_ptr() as *const _,
|
||||
Value::from(&is_live).to_glib_none().0,
|
||||
glib::Value::from(&is_live).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_max_latency(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"max-latency\0".as_ptr() as *const _,
|
||||
|
@ -217,14 +216,14 @@ impl AppSrc {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"max-latency\0".as_ptr() as *const _,
|
||||
Value::from(&max_latency).to_glib_none().0,
|
||||
glib::Value::from(&max_latency).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_min_latency(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"min-latency\0".as_ptr() as *const _,
|
||||
|
@ -242,14 +241,14 @@ impl AppSrc {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"min-latency\0".as_ptr() as *const _,
|
||||
Value::from(&min_latency).to_glib_none().0,
|
||||
glib::Value::from(&min_latency).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_min_percent(&self) -> u32 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u32 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"min-percent\0".as_ptr() as *const _,
|
||||
|
@ -267,7 +266,7 @@ impl AppSrc {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"min-percent\0".as_ptr() as *const _,
|
||||
Value::from(&min_percent).to_glib_none().0,
|
||||
glib::Value::from(&min_percent).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -425,8 +424,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn connect_property_duration_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -504,8 +503,8 @@ impl AppSrc {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn connect_property_handle_segment_change_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -6,7 +6,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
|
@ -54,19 +53,19 @@ impl StaticType for AppStreamType {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AppStreamType {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AppStreamType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AppStreamType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
|
|
|
@ -27,6 +27,7 @@ v1_12 = ["v1_10"]
|
|||
v1_14 = ["v1_12"]
|
||||
v1_16 = ["v1_14"]
|
||||
v1_18 = ["v1_16"]
|
||||
dox = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_app_sys"
|
||||
|
@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|||
version = "0.17.0"
|
||||
edition = "2018"
|
||||
[package.metadata.docs.rs]
|
||||
features = []
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_app_1_0]
|
||||
name = "gstreamer-app-1.0"
|
||||
version = "1.8"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(all(not(doctest), doc))]
|
||||
#[cfg(feature = "dox")]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = eprintln!("{}", s);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
@ -8,7 +8,7 @@
|
|||
clippy::type_complexity,
|
||||
clippy::unreadable_literal
|
||||
)]
|
||||
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
|
||||
use glib_sys as glib;
|
||||
use gstreamer_base_sys as gst_base;
|
||||
|
@ -186,8 +186,8 @@ extern "C" {
|
|||
// GstAppSink
|
||||
//=========================================================================
|
||||
pub fn gst_app_sink_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_app_sink_get_buffer_list_support(appsink: *mut GstAppSink) -> gboolean;
|
||||
pub fn gst_app_sink_get_caps(appsink: *mut GstAppSink) -> *mut gst::GstCaps;
|
||||
pub fn gst_app_sink_get_drop(appsink: *mut GstAppSink) -> gboolean;
|
||||
|
@ -197,8 +197,8 @@ extern "C" {
|
|||
pub fn gst_app_sink_is_eos(appsink: *mut GstAppSink) -> gboolean;
|
||||
pub fn gst_app_sink_pull_preroll(appsink: *mut GstAppSink) -> *mut gst::GstSample;
|
||||
pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_app_sink_set_buffer_list_support(appsink: *mut GstAppSink, enable_lists: gboolean);
|
||||
pub fn gst_app_sink_set_callbacks(
|
||||
appsink: *mut GstAppSink,
|
||||
|
@ -211,14 +211,14 @@ extern "C" {
|
|||
pub fn gst_app_sink_set_emit_signals(appsink: *mut GstAppSink, emit: gboolean);
|
||||
pub fn gst_app_sink_set_max_buffers(appsink: *mut GstAppSink, max: c_uint);
|
||||
pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean);
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_app_sink_try_pull_preroll(
|
||||
appsink: *mut GstAppSink,
|
||||
timeout: gst::GstClockTime,
|
||||
) -> *mut gst::GstSample;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_app_sink_try_pull_sample(
|
||||
appsink: *mut GstAppSink,
|
||||
timeout: gst::GstClockTime,
|
||||
|
@ -231,8 +231,8 @@ extern "C" {
|
|||
pub fn gst_app_src_end_of_stream(appsrc: *mut GstAppSrc) -> gst::GstFlowReturn;
|
||||
pub fn gst_app_src_get_caps(appsrc: *mut GstAppSrc) -> *mut gst::GstCaps;
|
||||
pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_app_src_get_duration(appsrc: *mut GstAppSrc) -> gst::GstClockTime;
|
||||
pub fn gst_app_src_get_emit_signals(appsrc: *mut GstAppSrc) -> gboolean;
|
||||
pub fn gst_app_src_get_latency(appsrc: *mut GstAppSrc, min: *mut u64, max: *mut u64);
|
||||
|
@ -243,8 +243,8 @@ extern "C" {
|
|||
appsrc: *mut GstAppSrc,
|
||||
buffer: *mut gst::GstBuffer,
|
||||
) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_app_src_push_buffer_list(
|
||||
appsrc: *mut GstAppSrc,
|
||||
buffer_list: *mut gst::GstBufferList,
|
||||
|
@ -260,8 +260,8 @@ extern "C" {
|
|||
notify: glib::GDestroyNotify,
|
||||
);
|
||||
pub fn gst_app_src_set_caps(appsrc: *mut GstAppSrc, caps: *const gst::GstCaps);
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_app_src_set_duration(appsrc: *mut GstAppSrc, duration: gst::GstClockTime);
|
||||
pub fn gst_app_src_set_emit_signals(appsrc: *mut GstAppSrc, emit: gboolean);
|
||||
pub fn gst_app_src_set_latency(appsrc: *mut GstAppSrc, min: u64, max: u64);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
use gstreamer_app_sys::*;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -194,7 +193,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
|||
|
||||
fn get_property_buffer_time(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"buffer-time\0".as_ptr() as *const _,
|
||||
|
@ -212,14 +211,14 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"buffer-time\0".as_ptr() as *const _,
|
||||
Value::from(&buffer_time).to_glib_none().0,
|
||||
glib::Value::from(&buffer_time).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_can_activate_pull(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"can-activate-pull\0".as_ptr() as *const _,
|
||||
|
@ -237,14 +236,14 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"can-activate-pull\0".as_ptr() as *const _,
|
||||
Value::from(&can_activate_pull).to_glib_none().0,
|
||||
glib::Value::from(&can_activate_pull).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_latency_time(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"latency-time\0".as_ptr() as *const _,
|
||||
|
@ -262,7 +261,7 @@ impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"latency-time\0".as_ptr() as *const _,
|
||||
Value::from(&latency_time).to_glib_none().0,
|
||||
glib::Value::from(&latency_time).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -111,7 +110,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
|||
|
||||
fn get_property_actual_buffer_time(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"actual-buffer-time\0".as_ptr() as *const _,
|
||||
|
@ -126,7 +125,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
|||
|
||||
fn get_property_actual_latency_time(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"actual-latency-time\0".as_ptr() as *const _,
|
||||
|
@ -141,7 +140,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
|||
|
||||
fn get_property_buffer_time(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"buffer-time\0".as_ptr() as *const _,
|
||||
|
@ -159,14 +158,14 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"buffer-time\0".as_ptr() as *const _,
|
||||
Value::from(&buffer_time).to_glib_none().0,
|
||||
glib::Value::from(&buffer_time).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_latency_time(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"latency-time\0".as_ptr() as *const _,
|
||||
|
@ -184,7 +183,7 @@ impl<O: IsA<AudioBaseSrc>> AudioBaseSrcExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"latency-time\0".as_ptr() as *const _,
|
||||
Value::from(&latency_time).to_glib_none().0,
|
||||
glib::Value::from(&latency_time).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,8 +56,8 @@ pub trait AudioDecoderExt: 'static {
|
|||
|
||||
fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps;
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>);
|
||||
|
||||
fn set_drainable(&self, enabled: bool);
|
||||
|
@ -80,8 +80,8 @@ pub trait AudioDecoderExt: 'static {
|
|||
|
||||
fn set_use_default_pad_acceptcaps(&self, use_: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -228,8 +228,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) {
|
||||
unsafe {
|
||||
ffi::gst_audio_decoder_set_allocation_caps(
|
||||
|
@ -315,8 +315,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -53,8 +53,8 @@ pub trait AudioEncoderExt: 'static {
|
|||
|
||||
fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps;
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>);
|
||||
|
||||
fn set_drainable(&self, enabled: bool);
|
||||
|
@ -205,8 +205,8 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) {
|
||||
unsafe {
|
||||
ffi::gst_audio_encoder_set_allocation_caps(
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
use glib::translate::*;
|
||||
|
||||
glib::glib_wrapper! {
|
||||
|
@ -18,8 +18,8 @@ glib::glib_wrapper! {
|
|||
}
|
||||
|
||||
impl AudioStreamAlign {
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn new(
|
||||
rate: i32,
|
||||
alignment_threshold: gst::ClockTime,
|
||||
|
@ -35,8 +35,8 @@ impl AudioStreamAlign {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn get_alignment_threshold(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_audio_stream_align_get_alignment_threshold(
|
||||
|
@ -45,8 +45,8 @@ impl AudioStreamAlign {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn get_discont_wait(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override(
|
||||
|
@ -55,14 +55,14 @@ impl AudioStreamAlign {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn get_rate(&self) -> i32 {
|
||||
unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn get_samples_since_discont(&self) -> u64 {
|
||||
unsafe {
|
||||
ffi::gst_audio_stream_align_get_samples_since_discont(mut_override(
|
||||
|
@ -71,8 +71,8 @@ impl AudioStreamAlign {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn get_timestamp_at_discont(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont(
|
||||
|
@ -81,16 +81,16 @@ impl AudioStreamAlign {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn mark_discont(&mut self) {
|
||||
unsafe {
|
||||
ffi::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) {
|
||||
unsafe {
|
||||
ffi::gst_audio_stream_align_set_alignment_threshold(
|
||||
|
@ -100,8 +100,8 @@ impl AudioStreamAlign {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) {
|
||||
unsafe {
|
||||
ffi::gst_audio_stream_align_set_discont_wait(
|
||||
|
@ -111,8 +111,8 @@ impl AudioStreamAlign {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn set_rate(&mut self, rate: i32) {
|
||||
unsafe {
|
||||
ffi::gst_audio_stream_align_set_rate(self.to_glib_none_mut().0, rate);
|
||||
|
|
|
@ -6,7 +6,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
|
@ -150,19 +149,19 @@ impl StaticType for AudioChannelPosition {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AudioChannelPosition {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AudioChannelPosition {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioChannelPosition {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -298,19 +297,19 @@ impl StaticType for AudioFormat {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AudioFormat {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AudioFormat {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioFormat {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -356,19 +355,19 @@ impl StaticType for AudioLayout {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AudioLayout {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AudioLayout {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioLayout {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -388,14 +387,14 @@ pub enum AudioRingBufferFormatType {
|
|||
Dts,
|
||||
Mpeg2Aac,
|
||||
Mpeg4Aac,
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
Mpeg2AacRaw,
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
Mpeg4AacRaw,
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
Flac,
|
||||
#[doc(hidden)]
|
||||
__Unknown(i32),
|
||||
|
@ -419,15 +418,15 @@ impl ToGlib for AudioRingBufferFormatType {
|
|||
AudioRingBufferFormatType::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS,
|
||||
AudioRingBufferFormatType::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC,
|
||||
AudioRingBufferFormatType::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC,
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
AudioRingBufferFormatType::Mpeg2AacRaw => {
|
||||
ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW
|
||||
}
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
AudioRingBufferFormatType::Mpeg4AacRaw => {
|
||||
ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW
|
||||
}
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
AudioRingBufferFormatType::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC,
|
||||
AudioRingBufferFormatType::__Unknown(value) => value,
|
||||
}
|
||||
|
@ -451,11 +450,11 @@ impl FromGlib<ffi::GstAudioRingBufferFormatType> for AudioRingBufferFormatType {
|
|||
9 => AudioRingBufferFormatType::Dts,
|
||||
10 => AudioRingBufferFormatType::Mpeg2Aac,
|
||||
11 => AudioRingBufferFormatType::Mpeg4Aac,
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
12 => AudioRingBufferFormatType::Mpeg2AacRaw,
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
13 => AudioRingBufferFormatType::Mpeg4AacRaw,
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
14 => AudioRingBufferFormatType::Flac,
|
||||
value => AudioRingBufferFormatType::__Unknown(value),
|
||||
}
|
||||
|
@ -469,19 +468,19 @@ impl StaticType for AudioRingBufferFormatType {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AudioRingBufferFormatType {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AudioRingBufferFormatType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioRingBufferFormatType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
|
@ -41,19 +40,19 @@ impl StaticType for AudioFlags {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AudioFlags {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AudioFlags {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioFlags {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -92,19 +91,19 @@ impl StaticType for AudioFormatFlags {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AudioFormatFlags {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AudioFormatFlags {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioFormatFlags {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -139,19 +138,19 @@ impl StaticType for AudioPackFlags {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for AudioPackFlags {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for AudioPackFlags {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for AudioPackFlags {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,11 +28,11 @@ mod stream_volume;
|
|||
pub use self::stream_volume::StreamVolumeExt;
|
||||
pub use self::stream_volume::{StreamVolume, NONE_STREAM_VOLUME};
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
mod audio_stream_align;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub use self::audio_stream_align::AudioStreamAlign;
|
||||
|
||||
mod enums;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
|
|
|
@ -30,6 +30,7 @@ v1_12 = ["v1_10"]
|
|||
v1_14 = ["v1_12"]
|
||||
v1_16 = ["v1_14"]
|
||||
v1_18 = ["v1_16"]
|
||||
dox = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_audio_sys"
|
||||
|
@ -49,7 +50,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|||
version = "0.17.0"
|
||||
edition = "2018"
|
||||
[package.metadata.docs.rs]
|
||||
features = []
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_audio_1_0]
|
||||
name = "gstreamer-audio-1.0"
|
||||
version = "1.8"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(all(not(doctest), doc))]
|
||||
#[cfg(feature = "dox")]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = eprintln!("{}", s);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
@ -8,7 +8,7 @@
|
|||
clippy::type_complexity,
|
||||
clippy::unreadable_literal
|
||||
)]
|
||||
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
|
||||
use glib_sys as glib;
|
||||
use gobject_sys as gobject;
|
||||
|
@ -1441,22 +1441,22 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioResamplerFilterInterpolation
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstAudioResamplerFilterMode
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_filter_mode_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstAudioResamplerMethod
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_method_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1502,23 +1502,23 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioResamplerFlags
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_flags_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstAudioBuffer
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_buffer_map(
|
||||
buffer: *mut GstAudioBuffer,
|
||||
info: *const GstAudioInfo,
|
||||
gstbuffer: *mut gst::GstBuffer,
|
||||
flags: gst::GstMapFlags,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer);
|
||||
pub fn gst_audio_buffer_clip(
|
||||
buffer: *mut gst::GstBuffer,
|
||||
|
@ -1533,8 +1533,8 @@ extern "C" {
|
|||
from: *const GstAudioChannelPosition,
|
||||
to: *const GstAudioChannelPosition,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_buffer_truncate(
|
||||
buffer: *mut gst::GstBuffer,
|
||||
bpf: c_int,
|
||||
|
@ -1561,8 +1561,8 @@ extern "C" {
|
|||
out_channels: c_int,
|
||||
out_position: *mut GstAudioChannelPosition,
|
||||
) -> *mut GstAudioChannelMixer;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_channel_mixer_new_with_matrix(
|
||||
flags: GstAudioChannelMixerFlags,
|
||||
format: GstAudioFormat,
|
||||
|
@ -1579,8 +1579,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioConverter
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_converter_get_type() -> GType;
|
||||
pub fn gst_audio_converter_new(
|
||||
flags: GstAudioConverterFlags,
|
||||
|
@ -1588,8 +1588,8 @@ extern "C" {
|
|||
out_info: *mut GstAudioInfo,
|
||||
config: *mut gst::GstStructure,
|
||||
) -> *mut GstAudioConverter;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_converter_convert(
|
||||
convert: *mut GstAudioConverter,
|
||||
flags: GstAudioConverterFlags,
|
||||
|
@ -1613,8 +1613,8 @@ extern "C" {
|
|||
convert: *mut GstAudioConverter,
|
||||
in_frames: size_t,
|
||||
) -> size_t;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean;
|
||||
pub fn gst_audio_converter_reset(convert: *mut GstAudioConverter);
|
||||
pub fn gst_audio_converter_samples(
|
||||
|
@ -1625,8 +1625,8 @@ extern "C" {
|
|||
out: *mut gpointer,
|
||||
out_frames: size_t,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean;
|
||||
pub fn gst_audio_converter_update_config(
|
||||
convert: *mut GstAudioConverter,
|
||||
|
@ -1681,8 +1681,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioMeta
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1708,26 +1708,26 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioResampler
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_free(resampler: *mut GstAudioResampler);
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_get_in_frames(
|
||||
resampler: *mut GstAudioResampler,
|
||||
out_frames: size_t,
|
||||
) -> size_t;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_get_max_latency(resampler: *mut GstAudioResampler) -> size_t;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_get_out_frames(
|
||||
resampler: *mut GstAudioResampler,
|
||||
in_frames: size_t,
|
||||
) -> size_t;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_resample(
|
||||
resampler: *mut GstAudioResampler,
|
||||
in_: *mut gpointer,
|
||||
|
@ -1735,19 +1735,19 @@ extern "C" {
|
|||
out: *mut gpointer,
|
||||
out_frames: size_t,
|
||||
);
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler);
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_update(
|
||||
resampler: *mut GstAudioResampler,
|
||||
in_rate: c_int,
|
||||
out_rate: c_int,
|
||||
options: *mut gst::GstStructure,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_new(
|
||||
method: GstAudioResamplerMethod,
|
||||
flags: GstAudioResamplerFlags,
|
||||
|
@ -1757,8 +1757,8 @@ extern "C" {
|
|||
out_rate: c_int,
|
||||
options: *mut gst::GstStructure,
|
||||
) -> *mut GstAudioResampler;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_resampler_options_set_quality(
|
||||
method: GstAudioResamplerMethod,
|
||||
quality: c_uint,
|
||||
|
@ -1770,51 +1770,51 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioStreamAlign
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_new(
|
||||
rate: c_int,
|
||||
alignment_threshold: gst::GstClockTime,
|
||||
discont_wait: gst::GstClockTime,
|
||||
) -> *mut GstAudioStreamAlign;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_copy(
|
||||
align: *const GstAudioStreamAlign,
|
||||
) -> *mut GstAudioStreamAlign;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_free(align: *mut GstAudioStreamAlign);
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_get_alignment_threshold(
|
||||
align: *mut GstAudioStreamAlign,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_get_discont_wait(
|
||||
align: *mut GstAudioStreamAlign,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign)
|
||||
-> u64;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_get_timestamp_at_discont(
|
||||
align: *mut GstAudioStreamAlign,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_mark_discont(align: *mut GstAudioStreamAlign);
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_process(
|
||||
align: *mut GstAudioStreamAlign,
|
||||
discont: gboolean,
|
||||
|
@ -1824,30 +1824,30 @@ extern "C" {
|
|||
out_duration: *mut gst::GstClockTime,
|
||||
out_sample_position: *mut u64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_set_alignment_threshold(
|
||||
align: *mut GstAudioStreamAlign,
|
||||
alignment_threshold: gst::GstClockTime,
|
||||
);
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_set_discont_wait(
|
||||
align: *mut GstAudioStreamAlign,
|
||||
discont_wait: gst::GstClockTime,
|
||||
);
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_stream_align_set_rate(align: *mut GstAudioStreamAlign, rate: c_int);
|
||||
|
||||
//=========================================================================
|
||||
// GstAudioAggregator
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_aggregator_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_aggregator_set_sink_caps(
|
||||
aagg: *mut GstAudioAggregator,
|
||||
pad: *mut GstAudioAggregatorPad,
|
||||
|
@ -1857,15 +1857,15 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAudioAggregatorConvertPad
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_aggregator_convert_pad_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstAudioAggregatorPad
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_audio_aggregator_pad_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1966,8 +1966,8 @@ extern "C" {
|
|||
buf: *mut gst::GstBuffer,
|
||||
frames: c_int,
|
||||
) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_decoder_finish_subframe(
|
||||
dec: *mut GstAudioDecoder,
|
||||
buf: *mut gst::GstBuffer,
|
||||
|
@ -2008,8 +2008,8 @@ extern "C" {
|
|||
caps: *mut gst::GstCaps,
|
||||
filter: *mut gst::GstCaps,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_decoder_set_allocation_caps(
|
||||
dec: *mut GstAudioDecoder,
|
||||
allocation_caps: *mut gst::GstCaps,
|
||||
|
@ -2024,8 +2024,8 @@ extern "C" {
|
|||
pub fn gst_audio_decoder_set_max_errors(dec: *mut GstAudioDecoder, num: c_int);
|
||||
pub fn gst_audio_decoder_set_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime);
|
||||
pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_decoder_set_output_caps(
|
||||
dec: *mut GstAudioDecoder,
|
||||
caps: *mut gst::GstCaps,
|
||||
|
@ -2087,8 +2087,8 @@ extern "C" {
|
|||
caps: *mut gst::GstCaps,
|
||||
filter: *mut gst::GstCaps,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_encoder_set_allocation_caps(
|
||||
enc: *mut GstAudioEncoder,
|
||||
allocation_caps: *mut gst::GstCaps,
|
||||
|
@ -2184,8 +2184,8 @@ extern "C" {
|
|||
cb: GstAudioRingBufferCallback,
|
||||
user_data: gpointer,
|
||||
);
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_audio_ring_buffer_set_callback_full(
|
||||
buf: *mut GstAudioRingBuffer,
|
||||
cb: GstAudioRingBufferCallback,
|
||||
|
@ -2252,8 +2252,8 @@ extern "C" {
|
|||
force_order: gboolean,
|
||||
channel_mask: *mut u64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_audio_channel_positions_to_string(
|
||||
position: *const GstAudioChannelPosition,
|
||||
channels: c_int,
|
||||
|
@ -2270,8 +2270,8 @@ extern "C" {
|
|||
pub fn gst_audio_clipping_meta_api_get_type() -> GType;
|
||||
pub fn gst_audio_downmix_meta_api_get_type() -> GType;
|
||||
pub fn gst_audio_format_info_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat;
|
||||
pub fn gst_audio_get_channel_reorder_map(
|
||||
channels: c_int,
|
||||
|
@ -2288,15 +2288,15 @@ extern "C" {
|
|||
spec: *const GstAudioRingBufferSpec,
|
||||
endianness: c_int,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_audio_make_raw_caps(
|
||||
formats: *const GstAudioFormat,
|
||||
len: c_uint,
|
||||
layout: GstAudioLayout,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_audio_meta_api_get_type() -> GType;
|
||||
pub fn gst_audio_reorder_channels(
|
||||
data: gpointer,
|
||||
|
@ -2320,8 +2320,8 @@ extern "C" {
|
|||
to_channels: c_int,
|
||||
matrix: *mut *const c_float,
|
||||
) -> *mut GstAudioDownmixMeta;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_buffer_add_audio_meta(
|
||||
buffer: *mut gst::GstBuffer,
|
||||
info: *const GstAudioInfo,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
use gstreamer_audio_sys::*;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -45,14 +45,14 @@ impl Adapter {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn distance_from_discont(&self) -> u64 {
|
||||
unsafe { ffi::gst_adapter_distance_from_discont(self.to_glib_none().0) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn dts_at_discont(&self) -> gst::ClockTime {
|
||||
unsafe { from_glib(ffi::gst_adapter_dts_at_discont(self.to_glib_none().0)) }
|
||||
}
|
||||
|
@ -127,8 +127,8 @@ impl Adapter {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn offset_at_discont(&self) -> u64 {
|
||||
unsafe { ffi::gst_adapter_offset_at_discont(self.to_glib_none().0) }
|
||||
}
|
||||
|
@ -158,8 +158,8 @@ impl Adapter {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn prev_offset(&self) -> (u64, u64) {
|
||||
unsafe {
|
||||
let mut distance = mem::MaybeUninit::uninit();
|
||||
|
@ -194,8 +194,8 @@ impl Adapter {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn pts_at_discont(&self) -> gst::ClockTime {
|
||||
unsafe { from_glib(ffi::gst_adapter_pts_at_discont(self.to_glib_none().0)) }
|
||||
}
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::AggregatorPad;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::AggregatorStartTimeSelection;
|
||||
use glib::object::Cast;
|
||||
use glib::object::IsA;
|
||||
|
@ -14,7 +14,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -32,75 +31,75 @@ unsafe impl Sync for Aggregator {}
|
|||
pub const NONE_AGGREGATOR: Option<&Aggregator> = None;
|
||||
|
||||
pub trait AggregatorExt: 'static {
|
||||
//#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
//#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams);
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn get_latency(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn negotiate(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample>;
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime);
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn set_src_caps(&self, caps: &gst::Caps);
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn simple_get_next_time(&self) -> gst::ClockTime;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn update_segment(&self, segment: /*Ignored*/&gst::Segment);
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_emit_signals(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_property_emit_signals(&self, emit_signals: bool);
|
||||
|
||||
fn get_property_start_time(&self) -> u64;
|
||||
|
||||
fn set_property_start_time(&self, start_time: u64);
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection);
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -111,8 +110,8 @@ pub trait AggregatorExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -120,14 +119,14 @@ pub trait AggregatorExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||
//#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
//#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) {
|
||||
// unsafe { TODO: call ffi:gst_aggregator_get_allocator() }
|
||||
//}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_aggregator_get_buffer_pool(
|
||||
|
@ -136,8 +135,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn get_latency(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_get_latency(
|
||||
|
@ -146,8 +145,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn negotiate(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_negotiate(
|
||||
|
@ -156,8 +155,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_aggregator_peek_next_sample(
|
||||
|
@ -167,8 +166,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime) {
|
||||
unsafe {
|
||||
ffi::gst_aggregator_set_latency(
|
||||
|
@ -179,16 +178,16 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn set_src_caps(&self, caps: &gst::Caps) {
|
||||
unsafe {
|
||||
ffi::gst_aggregator_set_src_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn simple_get_next_time(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_simple_get_next_time(
|
||||
|
@ -197,17 +196,17 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn update_segment(&self, segment: /*Ignored*/&gst::Segment) {
|
||||
// unsafe { TODO: call ffi:gst_aggregator_update_segment() }
|
||||
//}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_emit_signals(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"emit-signals\0".as_ptr() as *const _,
|
||||
|
@ -220,21 +219,21 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_property_emit_signals(&self, emit_signals: bool) {
|
||||
unsafe {
|
||||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"emit-signals\0".as_ptr() as *const _,
|
||||
Value::from(&emit_signals).to_glib_none().0,
|
||||
glib::Value::from(&emit_signals).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_start_time(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"start-time\0".as_ptr() as *const _,
|
||||
|
@ -252,17 +251,17 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"start-time\0".as_ptr() as *const _,
|
||||
Value::from(&start_time).to_glib_none().0,
|
||||
glib::Value::from(&start_time).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection {
|
||||
unsafe {
|
||||
let mut value =
|
||||
Value::from_type(<AggregatorStartTimeSelection as StaticType>::static_type());
|
||||
glib::Value::from_type(<AggregatorStartTimeSelection as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"start-time-selection\0".as_ptr() as *const _,
|
||||
|
@ -275,8 +274,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_property_start_time_selection(
|
||||
&self,
|
||||
start_time_selection: AggregatorStartTimeSelection,
|
||||
|
@ -285,19 +284,19 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"start-time-selection\0".as_ptr() as *const _,
|
||||
Value::from(&start_time_selection).to_glib_none().0,
|
||||
glib::Value::from(&start_time_selection).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
||||
// Ignored segment: Gst.Segment
|
||||
//}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -325,8 +324,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -381,8 +380,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -7,12 +7,9 @@ use glib::object::IsA;
|
|||
use glib::signal::connect_raw;
|
||||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use glib::StaticType;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -30,32 +27,32 @@ unsafe impl Sync for AggregatorPad {}
|
|||
pub const NONE_AGGREGATOR_PAD: Option<&AggregatorPad> = None;
|
||||
|
||||
pub trait AggregatorPadExt: 'static {
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn drop_buffer(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))]
|
||||
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
|
||||
fn has_buffer(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn is_eos(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn peek_buffer(&self) -> Option<gst::Buffer>;
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn pop_buffer(&self) -> Option<gst::Buffer>;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn get_property_emit_signals(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn set_property_emit_signals(&self, emit_signals: bool);
|
||||
|
||||
fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>(
|
||||
|
@ -63,8 +60,8 @@ pub trait AggregatorPadExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -72,8 +69,8 @@ pub trait AggregatorPadExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn drop_buffer(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_pad_drop_buffer(
|
||||
|
@ -82,8 +79,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))]
|
||||
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
|
||||
fn has_buffer(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_pad_has_buffer(
|
||||
|
@ -92,8 +89,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn is_eos(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_aggregator_pad_is_eos(
|
||||
|
@ -102,8 +99,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn peek_buffer(&self) -> Option<gst::Buffer> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_aggregator_pad_peek_buffer(
|
||||
|
@ -112,8 +109,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
fn pop_buffer(&self) -> Option<gst::Buffer> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_aggregator_pad_pop_buffer(
|
||||
|
@ -122,11 +119,11 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn get_property_emit_signals(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"emit-signals\0".as_ptr() as *const _,
|
||||
|
@ -139,14 +136,14 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn set_property_emit_signals(&self, emit_signals: bool) {
|
||||
unsafe {
|
||||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"emit-signals\0".as_ptr() as *const _,
|
||||
Value::from(&emit_signals).to_glib_none().0,
|
||||
glib::Value::from(&emit_signals).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -184,8 +181,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -28,8 +27,8 @@ pub const NONE_BASE_PARSE: Option<&BaseParse> = None;
|
|||
pub trait BaseParseExt: 'static {
|
||||
fn add_index_entry(&self, offset: u64, ts: gst::ClockTime, key: bool, force: bool) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
fn drain(&self);
|
||||
|
||||
fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode);
|
||||
|
@ -75,8 +74,8 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
fn drain(&self) {
|
||||
unsafe {
|
||||
ffi::gst_base_parse_drain(self.as_ref().to_glib_none().0);
|
||||
|
@ -162,7 +161,7 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
|
|||
|
||||
fn get_property_disable_passthrough(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"disable-passthrough\0".as_ptr() as *const _,
|
||||
|
@ -180,7 +179,7 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"disable-passthrough\0".as_ptr() as *const _,
|
||||
Value::from(&disable_passthrough).to_glib_none().0,
|
||||
glib::Value::from(&disable_passthrough).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -30,8 +29,8 @@ pub trait BaseSinkExt: 'static {
|
|||
|
||||
fn get_blocksize(&self) -> u32;
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
fn get_drop_out_of_segment(&self) -> bool;
|
||||
|
||||
fn get_last_sample(&self) -> Option<gst::Sample>;
|
||||
|
@ -42,14 +41,14 @@ pub trait BaseSinkExt: 'static {
|
|||
|
||||
fn get_max_lateness(&self) -> i64;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn get_processing_deadline(&self) -> gst::ClockTime;
|
||||
|
||||
fn get_render_delay(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_stats(&self) -> Option<gst::Structure>;
|
||||
|
||||
fn get_sync(&self) -> bool;
|
||||
|
@ -68,8 +67,8 @@ pub trait BaseSinkExt: 'static {
|
|||
|
||||
fn set_blocksize(&self, blocksize: u32);
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
fn set_drop_out_of_segment(&self, drop_out_of_segment: bool);
|
||||
|
||||
fn set_last_sample_enabled(&self, enabled: bool);
|
||||
|
@ -78,8 +77,8 @@ pub trait BaseSinkExt: 'static {
|
|||
|
||||
fn set_max_lateness(&self, max_lateness: i64);
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime);
|
||||
|
||||
fn set_qos_enabled(&self, enabled: bool);
|
||||
|
@ -134,8 +133,8 @@ pub trait BaseSinkExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -151,8 +150,8 @@ pub trait BaseSinkExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -183,8 +182,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
fn get_drop_out_of_segment(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_base_sink_get_drop_out_of_segment(
|
||||
|
@ -217,8 +216,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn get_processing_deadline(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_base_sink_get_processing_deadline(
|
||||
|
@ -235,8 +234,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_stats(&self) -> Option<gst::Structure> {
|
||||
unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
@ -289,8 +288,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) {
|
||||
unsafe {
|
||||
ffi::gst_base_sink_set_drop_out_of_segment(
|
||||
|
@ -321,8 +320,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) {
|
||||
unsafe {
|
||||
ffi::gst_base_sink_set_processing_deadline(
|
||||
|
@ -364,7 +363,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
|
||||
fn get_property_async(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"async\0".as_ptr() as *const _,
|
||||
|
@ -382,14 +381,14 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"async\0".as_ptr() as *const _,
|
||||
Value::from(&async_).to_glib_none().0,
|
||||
glib::Value::from(&async_).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_enable_last_sample(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"enable-last-sample\0".as_ptr() as *const _,
|
||||
|
@ -407,14 +406,14 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"enable-last-sample\0".as_ptr() as *const _,
|
||||
Value::from(&enable_last_sample).to_glib_none().0,
|
||||
glib::Value::from(&enable_last_sample).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_qos(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"qos\0".as_ptr() as *const _,
|
||||
|
@ -432,7 +431,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"qos\0".as_ptr() as *const _,
|
||||
Value::from(&qos).to_glib_none().0,
|
||||
glib::Value::from(&qos).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -602,8 +601,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -688,8 +687,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -38,8 +37,8 @@ pub trait BaseSrcExt: 'static {
|
|||
|
||||
fn is_live(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn negotiate(&self) -> bool;
|
||||
|
||||
#[cfg_attr(feature = "v1_18", deprecated)]
|
||||
|
@ -123,8 +122,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
unsafe { from_glib(ffi::gst_base_src_is_live(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn negotiate(&self) -> bool {
|
||||
unsafe { from_glib(ffi::gst_base_src_negotiate(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
@ -196,7 +195,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
|
||||
fn get_property_num_buffers(&self) -> i32 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i32 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i32 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"num-buffers\0".as_ptr() as *const _,
|
||||
|
@ -214,14 +213,14 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"num-buffers\0".as_ptr() as *const _,
|
||||
Value::from(&num_buffers).to_glib_none().0,
|
||||
glib::Value::from(&num_buffers).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_typefind(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"typefind\0".as_ptr() as *const _,
|
||||
|
@ -239,7 +238,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"typefind\0".as_ptr() as *const _,
|
||||
Value::from(&typefind).to_glib_none().0,
|
||||
glib::Value::from(&typefind).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -36,8 +35,8 @@ pub trait BaseTransformExt: 'static {
|
|||
|
||||
fn is_qos_enabled(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn reconfigure(&self) -> bool;
|
||||
|
||||
fn reconfigure_sink(&self);
|
||||
|
@ -105,8 +104,8 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn reconfigure(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_base_transform_reconfigure(
|
||||
|
@ -197,7 +196,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
|||
|
||||
fn get_property_qos(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"qos\0".as_ptr() as *const _,
|
||||
|
@ -215,7 +214,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"qos\0".as_ptr() as *const _,
|
||||
Value::from(&qos).to_glib_none().0,
|
||||
glib::Value::from(&qos).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,12 +6,11 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
pub enum AggregatorStartTimeSelection {
|
||||
|
@ -22,8 +21,8 @@ pub enum AggregatorStartTimeSelection {
|
|||
__Unknown(i32),
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(hidden)]
|
||||
impl ToGlib for AggregatorStartTimeSelection {
|
||||
type GlibType = ffi::GstAggregatorStartTimeSelection;
|
||||
|
@ -38,8 +37,8 @@ impl ToGlib for AggregatorStartTimeSelection {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(hidden)]
|
||||
impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection {
|
||||
fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self {
|
||||
|
@ -53,34 +52,34 @@ impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelec
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
impl StaticType for AggregatorStartTimeSelection {
|
||||
fn static_type() -> Type {
|
||||
unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) }
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
impl SetValue for AggregatorStartTimeSelection {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,8 +37,8 @@ pub fn type_find_helper_for_extension<P: IsA<gst::Object>>(
|
|||
// unsafe { TODO: call ffi:gst_type_find_helper_get_range() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_3")))]
|
||||
//#[cfg(any(feature = "v1_14_3", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
|
||||
//pub fn type_find_helper_get_range_full<P: IsA<gst::Object>, Q: IsA<gst::Object>, R: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> gst::FlowReturn>(obj: &P, parent: Option<&Q>, func: R, size: u64, extension: Option<&str>) -> (gst::FlowReturn, gst::Caps, gst::TypeFindProbability) {
|
||||
// unsafe { TODO: call ffi:gst_type_find_helper_get_range_full() }
|
||||
//}
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
mod adapter;
|
||||
pub use self::adapter::Adapter;
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
mod aggregator;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub use self::aggregator::AggregatorExt;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub use self::aggregator::{Aggregator, NONE_AGGREGATOR};
|
||||
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
mod aggregator_pad;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub use self::aggregator_pad::AggregatorPadExt;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub use self::aggregator_pad::{AggregatorPad, NONE_AGGREGATOR_PAD};
|
||||
|
||||
mod base_parse;
|
||||
|
@ -45,8 +45,8 @@ mod push_src;
|
|||
pub use self::push_src::{PushSrc, NONE_PUSH_SRC};
|
||||
|
||||
mod enums;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub use self::enums::AggregatorStartTimeSelection;
|
||||
|
||||
mod flags;
|
||||
|
@ -56,11 +56,11 @@ pub mod functions;
|
|||
|
||||
#[doc(hidden)]
|
||||
pub mod traits {
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub use super::AggregatorExt;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub use super::AggregatorPadExt;
|
||||
pub use super::BaseParseExt;
|
||||
pub use super::BaseSinkExt;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
|
|
|
@ -31,6 +31,7 @@ v1_14_1 = ["v1_14"]
|
|||
v1_14_3 = ["v1_14_1"]
|
||||
v1_16 = ["v1_14_3"]
|
||||
v1_18 = ["v1_16"]
|
||||
dox = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_base_sys"
|
||||
|
@ -50,7 +51,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|||
version = "0.17.0"
|
||||
edition = "2018"
|
||||
[package.metadata.docs.rs]
|
||||
features = []
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_base_1_0]
|
||||
name = "gstreamer-base-1.0"
|
||||
version = "1.8"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(all(not(doctest), doc))]
|
||||
#[cfg(feature = "dox")]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = eprintln!("{}", s);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
@ -8,7 +8,7 @@
|
|||
clippy::type_complexity,
|
||||
clippy::unreadable_literal
|
||||
)]
|
||||
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
|
||||
use glib_sys as glib;
|
||||
use gobject_sys as gobject;
|
||||
|
@ -1216,8 +1216,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAggregatorStartTimeSelection
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_start_time_selection_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1229,8 +1229,8 @@ extern "C" {
|
|||
flags: GstBaseParseFrameFlags,
|
||||
overhead: c_int,
|
||||
) -> *mut GstBaseParseFrame;
|
||||
#[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))]
|
||||
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
|
||||
pub fn gst_base_parse_frame_copy(frame: *mut GstBaseParseFrame) -> *mut GstBaseParseFrame;
|
||||
pub fn gst_base_parse_frame_free(frame: *mut GstBaseParseFrame);
|
||||
pub fn gst_base_parse_frame_init(frame: *mut GstBaseParseFrame);
|
||||
|
@ -1291,101 +1291,101 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstBitWriter
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_init_with_data(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
data: *mut u8,
|
||||
size: c_uint,
|
||||
initialized: gboolean,
|
||||
);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint16(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u16,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint32(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u32,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint64(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u64,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bits_uint8(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
value: u8,
|
||||
nbits: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_put_bytes(
|
||||
bitwriter: *mut GstBitWriter,
|
||||
data: *const u8,
|
||||
nbytes: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter)
|
||||
-> *mut gst::GstBuffer;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_new() -> *mut GstBitWriter;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_new_with_data(
|
||||
data: *mut u8,
|
||||
size: c_uint,
|
||||
initialized: gboolean,
|
||||
) -> *mut GstBitWriter;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1616,13 +1616,13 @@ extern "C" {
|
|||
pub fn gst_flow_combiner_add_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad);
|
||||
pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner);
|
||||
pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner);
|
||||
#[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))]
|
||||
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
|
||||
pub fn gst_flow_combiner_ref(combiner: *mut GstFlowCombiner) -> *mut GstFlowCombiner;
|
||||
pub fn gst_flow_combiner_remove_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad);
|
||||
pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner);
|
||||
#[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))]
|
||||
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
|
||||
pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner);
|
||||
pub fn gst_flow_combiner_update_flow(
|
||||
combiner: *mut GstFlowCombiner,
|
||||
|
@ -1637,8 +1637,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstQueueArray
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_clear(array: *mut GstQueueArray);
|
||||
pub fn gst_queue_array_drop_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
|
||||
pub fn gst_queue_array_drop_struct(
|
||||
|
@ -1656,30 +1656,30 @@ extern "C" {
|
|||
pub fn gst_queue_array_is_empty(array: *mut GstQueueArray) -> gboolean;
|
||||
pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer;
|
||||
pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer;
|
||||
pub fn gst_queue_array_pop_head(array: *mut GstQueueArray) -> gpointer;
|
||||
pub fn gst_queue_array_pop_head_struct(array: *mut GstQueueArray) -> gpointer;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_queue_array_pop_tail(array: *mut GstQueueArray) -> gpointer;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_queue_array_pop_tail_struct(array: *mut GstQueueArray) -> gpointer;
|
||||
pub fn gst_queue_array_push_tail(array: *mut GstQueueArray, data: gpointer);
|
||||
pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_queue_array_set_clear_func(
|
||||
array: *mut GstQueueArray,
|
||||
clear_func: glib::GDestroyNotify,
|
||||
|
@ -1704,11 +1704,11 @@ extern "C" {
|
|||
offset: size_t,
|
||||
size: size_t,
|
||||
) -> *mut glib::GBytes;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_adapter_distance_from_discont(adapter: *mut GstAdapter) -> u64;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_adapter_dts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime;
|
||||
pub fn gst_adapter_flush(adapter: *mut GstAdapter, flush: size_t);
|
||||
pub fn gst_adapter_get_buffer(adapter: *mut GstAdapter, nbytes: size_t) -> *mut gst::GstBuffer;
|
||||
|
@ -1737,8 +1737,8 @@ extern "C" {
|
|||
size: size_t,
|
||||
value: *mut u32,
|
||||
) -> ssize_t;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_adapter_offset_at_discont(adapter: *mut GstAdapter) -> u64;
|
||||
pub fn gst_adapter_prev_dts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
|
||||
pub fn gst_adapter_prev_dts_at_offset(
|
||||
|
@ -1746,8 +1746,8 @@ extern "C" {
|
|||
offset: size_t,
|
||||
distance: *mut u64,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_adapter_prev_offset(adapter: *mut GstAdapter, distance: *mut u64) -> u64;
|
||||
pub fn gst_adapter_prev_pts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
|
||||
pub fn gst_adapter_prev_pts_at_offset(
|
||||
|
@ -1755,8 +1755,8 @@ extern "C" {
|
|||
offset: size_t,
|
||||
distance: *mut u64,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
|
||||
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
||||
pub fn gst_adapter_pts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime;
|
||||
pub fn gst_adapter_push(adapter: *mut GstAdapter, buf: *mut gst::GstBuffer);
|
||||
pub fn gst_adapter_take(adapter: *mut GstAdapter, nbytes: size_t) -> gpointer;
|
||||
|
@ -1776,45 +1776,45 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAggregator
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_finish_buffer(
|
||||
aggregator: *mut GstAggregator,
|
||||
buffer: *mut gst::GstBuffer,
|
||||
) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_finish_buffer_list(
|
||||
aggregator: *mut GstAggregator,
|
||||
bufferlist: *mut gst::GstBufferList,
|
||||
) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_get_allocator(
|
||||
self_: *mut GstAggregator,
|
||||
allocator: *mut *mut gst::GstAllocator,
|
||||
params: *mut gst::GstAllocationParams,
|
||||
);
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_peek_next_sample(
|
||||
self_: *mut GstAggregator,
|
||||
pad: *mut GstAggregatorPad,
|
||||
) -> *mut gst::GstSample;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_selected_samples(
|
||||
self_: *mut GstAggregator,
|
||||
pts: gst::GstClockTime,
|
||||
|
@ -1822,21 +1822,21 @@ extern "C" {
|
|||
duration: gst::GstClockTime,
|
||||
info: *mut gst::GstStructure,
|
||||
);
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_set_latency(
|
||||
self_: *mut GstAggregator,
|
||||
min_latency: gst::GstClockTime,
|
||||
max_latency: gst::GstClockTime,
|
||||
);
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_aggregator_update_segment(
|
||||
self_: *mut GstAggregator,
|
||||
segment: *const gst::GstSegment,
|
||||
|
@ -1845,23 +1845,23 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GstAggregatorPad
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_pad_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean;
|
||||
#[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))]
|
||||
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
|
||||
pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1882,8 +1882,8 @@ extern "C" {
|
|||
dest_format: gst::GstFormat,
|
||||
dest_value: *mut i64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_base_parse_drain(parse: *mut GstBaseParse);
|
||||
pub fn gst_base_parse_finish_frame(
|
||||
parse: *mut GstBaseParse,
|
||||
|
@ -1938,19 +1938,19 @@ extern "C" {
|
|||
obj: *mut gst::GstMiniObject,
|
||||
) -> gst::GstFlowReturn;
|
||||
pub fn gst_base_sink_get_blocksize(sink: *mut GstBaseSink) -> c_uint;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_base_sink_get_drop_out_of_segment(sink: *mut GstBaseSink) -> gboolean;
|
||||
pub fn gst_base_sink_get_last_sample(sink: *mut GstBaseSink) -> *mut gst::GstSample;
|
||||
pub fn gst_base_sink_get_latency(sink: *mut GstBaseSink) -> gst::GstClockTime;
|
||||
pub fn gst_base_sink_get_max_bitrate(sink: *mut GstBaseSink) -> u64;
|
||||
pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime;
|
||||
pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure;
|
||||
pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean;
|
||||
pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64;
|
||||
|
@ -1967,8 +1967,8 @@ extern "C" {
|
|||
) -> gboolean;
|
||||
pub fn gst_base_sink_set_async_enabled(sink: *mut GstBaseSink, enabled: gboolean);
|
||||
pub fn gst_base_sink_set_blocksize(sink: *mut GstBaseSink, blocksize: c_uint);
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_base_sink_set_drop_out_of_segment(
|
||||
sink: *mut GstBaseSink,
|
||||
drop_out_of_segment: gboolean,
|
||||
|
@ -1976,8 +1976,8 @@ extern "C" {
|
|||
pub fn gst_base_sink_set_last_sample_enabled(sink: *mut GstBaseSink, enabled: gboolean);
|
||||
pub fn gst_base_sink_set_max_bitrate(sink: *mut GstBaseSink, max_bitrate: u64);
|
||||
pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_base_sink_set_processing_deadline(
|
||||
sink: *mut GstBaseSink,
|
||||
processing_deadline: gst::GstClockTime,
|
||||
|
@ -2013,8 +2013,8 @@ extern "C" {
|
|||
pub fn gst_base_src_get_do_timestamp(src: *mut GstBaseSrc) -> gboolean;
|
||||
pub fn gst_base_src_is_async(src: *mut GstBaseSrc) -> gboolean;
|
||||
pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean;
|
||||
pub fn gst_base_src_new_seamless_segment(
|
||||
src: *mut GstBaseSrc,
|
||||
|
@ -2022,8 +2022,8 @@ extern "C" {
|
|||
stop: i64,
|
||||
time: i64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_src_new_segment(
|
||||
src: *mut GstBaseSrc,
|
||||
segment: *const gst::GstSegment,
|
||||
|
@ -2044,8 +2044,8 @@ extern "C" {
|
|||
pub fn gst_base_src_set_live(src: *mut GstBaseSrc, live: gboolean);
|
||||
pub fn gst_base_src_start_complete(basesrc: *mut GstBaseSrc, ret: gst::GstFlowReturn);
|
||||
pub fn gst_base_src_start_wait(basesrc: *mut GstBaseSrc) -> gst::GstFlowReturn;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_base_src_submit_buffer_list(
|
||||
src: *mut GstBaseSrc,
|
||||
buffer_list: *mut gst::GstBufferList,
|
||||
|
@ -2067,8 +2067,8 @@ extern "C" {
|
|||
pub fn gst_base_transform_is_in_place(trans: *mut GstBaseTransform) -> gboolean;
|
||||
pub fn gst_base_transform_is_passthrough(trans: *mut GstBaseTransform) -> gboolean;
|
||||
pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean;
|
||||
pub fn gst_base_transform_reconfigure_sink(trans: *mut GstBaseTransform);
|
||||
pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform);
|
||||
|
@ -2244,8 +2244,8 @@ extern "C" {
|
|||
buf: *mut gst::GstBuffer,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_type_find_helper_for_buffer_with_extension(
|
||||
obj: *mut gst::GstObject,
|
||||
buf: *mut gst::GstBuffer,
|
||||
|
@ -2258,8 +2258,8 @@ extern "C" {
|
|||
size: size_t,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_type_find_helper_for_data_with_extension(
|
||||
obj: *mut gst::GstObject,
|
||||
data: *const u8,
|
||||
|
@ -2279,8 +2279,8 @@ extern "C" {
|
|||
extension: *const c_char,
|
||||
prob: *mut gst::GstTypeFindProbability,
|
||||
) -> *mut gst::GstCaps;
|
||||
#[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_3")))]
|
||||
#[cfg(any(feature = "v1_14_3", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
|
||||
pub fn gst_type_find_helper_get_range_full(
|
||||
obj: *mut gst::GstObject,
|
||||
parent: *mut gst::GstObject,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
use gstreamer_base_sys::*;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -66,8 +65,8 @@ impl TestClock {
|
|||
// unsafe { TODO: call ffi:gst_test_clock_peek_next_pending_id() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool {
|
||||
// unsafe { TODO: call ffi:gst_test_clock_process_id() }
|
||||
//}
|
||||
|
@ -86,8 +85,8 @@ impl TestClock {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
//#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
//pub fn timed_wait_for_multiple_pending_ids(&self, count: u32, timeout_ms: u32, pending_list: /*Unimplemented*/Vec<gst::ClockID>) -> bool {
|
||||
// unsafe { TODO: call ffi:gst_test_clock_timed_wait_for_multiple_pending_ids() }
|
||||
//}
|
||||
|
@ -108,7 +107,7 @@ impl TestClock {
|
|||
|
||||
pub fn get_property_clock_type(&self) -> gst::ClockType {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::ClockType as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<gst::ClockType as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"clock-type\0".as_ptr() as *const _,
|
||||
|
@ -126,14 +125,14 @@ impl TestClock {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"clock-type\0".as_ptr() as *const _,
|
||||
Value::from(&clock_type).to_glib_none().0,
|
||||
glib::Value::from(&clock_type).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_start_time(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"start-time\0".as_ptr() as *const _,
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
|
|
|
@ -27,6 +27,7 @@ v1_12 = ["v1_10"]
|
|||
v1_14 = ["v1_12"]
|
||||
v1_16 = ["v1_14"]
|
||||
v1_18 = ["v1_16"]
|
||||
dox = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_check_sys"
|
||||
|
@ -46,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|||
version = "0.17.0"
|
||||
edition = "2018"
|
||||
[package.metadata.docs.rs]
|
||||
features = []
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_check_1_0]
|
||||
name = "gstreamer-check-1.0"
|
||||
version = "1.8"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(all(not(doctest), doc))]
|
||||
#[cfg(feature = "dox")]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = eprintln!("{}", s);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
@ -8,7 +8,7 @@
|
|||
clippy::type_complexity,
|
||||
clippy::unreadable_literal
|
||||
)]
|
||||
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
|
||||
use glib_sys as glib;
|
||||
use gobject_sys as gobject;
|
||||
|
@ -129,8 +129,8 @@ extern "C" {
|
|||
user_data: gpointer,
|
||||
destroy_data: glib::GDestroyNotify,
|
||||
);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_harness_add_propose_allocation_meta(
|
||||
h: *mut GstHarness,
|
||||
api: GType,
|
||||
|
@ -182,8 +182,8 @@ extern "C" {
|
|||
pub fn gst_harness_play(h: *mut GstHarness);
|
||||
pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
|
||||
pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_harness_pull_until_eos(
|
||||
h: *mut GstHarness,
|
||||
buf: *mut *mut gst::GstBuffer,
|
||||
|
@ -296,14 +296,14 @@ extern "C" {
|
|||
h: *mut GstHarness,
|
||||
sleep: c_ulong,
|
||||
) -> *mut GstHarnessThread;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_harness_take_all_data(h: *mut GstHarness, size: *mut size_t) -> *mut u8;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_harness_take_all_data_as_buffer(h: *mut GstHarness) -> *mut gst::GstBuffer;
|
||||
#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
pub fn gst_harness_take_all_data_as_bytes(h: *mut GstHarness) -> *mut glib::GBytes;
|
||||
pub fn gst_harness_teardown(h: *mut GstHarness);
|
||||
pub fn gst_harness_try_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
|
||||
|
@ -363,8 +363,8 @@ extern "C" {
|
|||
test_clock: *mut GstTestClock,
|
||||
pending_id: *mut gst::GstClockID,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_test_clock_process_id(
|
||||
test_clock: *mut GstTestClock,
|
||||
pending_id: gst::GstClockID,
|
||||
|
@ -375,8 +375,8 @@ extern "C" {
|
|||
) -> c_uint;
|
||||
pub fn gst_test_clock_process_next_clock_id(test_clock: *mut GstTestClock) -> gst::GstClockID;
|
||||
pub fn gst_test_clock_set_time(test_clock: *mut GstTestClock, new_time: gst::GstClockTime);
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn gst_test_clock_timed_wait_for_multiple_pending_ids(
|
||||
test_clock: *mut GstTestClock,
|
||||
count: c_uint,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
use gstreamer_check_sys::*;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -108,7 +107,8 @@ pub trait ARGBControlBindingExt: 'static {
|
|||
impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
||||
fn get_property_control_source_a(&self) -> Option<gst::ControlSource> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
let mut value =
|
||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-a\0".as_ptr() as *const _,
|
||||
|
@ -128,14 +128,15 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-a\0".as_ptr() as *const _,
|
||||
Value::from(control_source_a).to_glib_none().0,
|
||||
glib::Value::from(control_source_a).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_control_source_b(&self) -> Option<gst::ControlSource> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
let mut value =
|
||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-b\0".as_ptr() as *const _,
|
||||
|
@ -155,14 +156,15 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-b\0".as_ptr() as *const _,
|
||||
Value::from(control_source_b).to_glib_none().0,
|
||||
glib::Value::from(control_source_b).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_control_source_g(&self) -> Option<gst::ControlSource> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
let mut value =
|
||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-g\0".as_ptr() as *const _,
|
||||
|
@ -182,14 +184,15 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-g\0".as_ptr() as *const _,
|
||||
Value::from(control_source_g).to_glib_none().0,
|
||||
glib::Value::from(control_source_g).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_control_source_r(&self) -> Option<gst::ControlSource> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
let mut value =
|
||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-r\0".as_ptr() as *const _,
|
||||
|
@ -209,7 +212,7 @@ impl<O: IsA<ARGBControlBinding>> ARGBControlBindingExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source-r\0".as_ptr() as *const _,
|
||||
Value::from(control_source_r).to_glib_none().0,
|
||||
glib::Value::from(control_source_r).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -75,7 +74,7 @@ pub trait DirectControlBindingExt: 'static {
|
|||
impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
|
||||
fn get_property_absolute(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"absolute\0".as_ptr() as *const _,
|
||||
|
@ -90,7 +89,8 @@ impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
|
|||
|
||||
fn get_property_control_source(&self) -> Option<gst::ControlSource> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
let mut value =
|
||||
glib::Value::from_type(<gst::ControlSource as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source\0".as_ptr() as *const _,
|
||||
|
@ -107,7 +107,7 @@ impl<O: IsA<DirectControlBinding>> DirectControlBindingExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"control-source\0".as_ptr() as *const _,
|
||||
Value::from(control_source).to_glib_none().0,
|
||||
glib::Value::from(control_source).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
|
@ -57,19 +56,19 @@ impl StaticType for InterpolationMode {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for InterpolationMode {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for InterpolationMode {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for InterpolationMode {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -124,19 +123,19 @@ impl StaticType for LFOWaveform {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for LFOWaveform {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for LFOWaveform {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for LFOWaveform {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -57,7 +56,8 @@ pub trait InterpolationControlSourceExt: 'static {
|
|||
impl<O: IsA<InterpolationControlSource>> InterpolationControlSourceExt for O {
|
||||
fn get_property_mode(&self) -> InterpolationMode {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<InterpolationMode as StaticType>::static_type());
|
||||
let mut value =
|
||||
glib::Value::from_type(<InterpolationMode as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"mode\0".as_ptr() as *const _,
|
||||
|
@ -75,7 +75,7 @@ impl<O: IsA<InterpolationControlSource>> InterpolationControlSourceExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"mode\0".as_ptr() as *const _,
|
||||
Value::from(&mode).to_glib_none().0,
|
||||
glib::Value::from(&mode).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -91,7 +90,7 @@ pub trait LFOControlSourceExt: 'static {
|
|||
impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
||||
fn get_property_amplitude(&self) -> f64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<f64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"amplitude\0".as_ptr() as *const _,
|
||||
|
@ -109,14 +108,14 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"amplitude\0".as_ptr() as *const _,
|
||||
Value::from(&litude).to_glib_none().0,
|
||||
glib::Value::from(&litude).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_frequency(&self) -> f64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<f64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"frequency\0".as_ptr() as *const _,
|
||||
|
@ -134,14 +133,14 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"frequency\0".as_ptr() as *const _,
|
||||
Value::from(&frequency).to_glib_none().0,
|
||||
glib::Value::from(&frequency).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_offset(&self) -> f64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<f64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<f64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"offset\0".as_ptr() as *const _,
|
||||
|
@ -159,14 +158,14 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"offset\0".as_ptr() as *const _,
|
||||
Value::from(&offset).to_glib_none().0,
|
||||
glib::Value::from(&offset).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_timeshift(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"timeshift\0".as_ptr() as *const _,
|
||||
|
@ -184,14 +183,14 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"timeshift\0".as_ptr() as *const _,
|
||||
Value::from(×hift).to_glib_none().0,
|
||||
glib::Value::from(×hift).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_waveform(&self) -> LFOWaveform {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<LFOWaveform as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<LFOWaveform as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"waveform\0".as_ptr() as *const _,
|
||||
|
@ -209,7 +208,7 @@ impl<O: IsA<LFOControlSource>> LFOControlSourceExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"waveform\0".as_ptr() as *const _,
|
||||
Value::from(&waveform).to_glib_none().0,
|
||||
glib::Value::from(&waveform).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,11 +20,11 @@ mod lfo_control_source;
|
|||
pub use self::lfo_control_source::LFOControlSourceExt;
|
||||
pub use self::lfo_control_source::{LFOControlSource, NONE_LFO_CONTROL_SOURCE};
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
mod proxy_control_binding;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub use self::proxy_control_binding::{ProxyControlBinding, NONE_PROXY_CONTROL_BINDING};
|
||||
|
||||
mod timed_value_control_source;
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
use glib::object::Cast;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
use glib::object::IsA;
|
||||
use glib::translate::*;
|
||||
|
||||
|
@ -19,8 +19,8 @@ glib::glib_wrapper! {
|
|||
}
|
||||
|
||||
impl ProxyControlBinding {
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn new<P: IsA<gst::Object>, Q: IsA<gst::Object>>(
|
||||
object: &P,
|
||||
property_name: &str,
|
||||
|
|
|
@ -9,7 +9,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -55,7 +54,7 @@ pub trait TriggerControlSourceExt: 'static {
|
|||
impl<O: IsA<TriggerControlSource>> TriggerControlSourceExt for O {
|
||||
fn get_property_tolerance(&self) -> i64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<i64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<i64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"tolerance\0".as_ptr() as *const _,
|
||||
|
@ -73,7 +72,7 @@ impl<O: IsA<TriggerControlSource>> TriggerControlSourceExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"tolerance\0".as_ptr() as *const _,
|
||||
Value::from(&tolerance).to_glib_none().0,
|
||||
glib::Value::from(&tolerance).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
|
|
|
@ -28,6 +28,7 @@ v1_12 = ["v1_10"]
|
|||
v1_14 = ["v1_12"]
|
||||
v1_16 = ["v1_14"]
|
||||
v1_18 = ["v1_16"]
|
||||
dox = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_controller_sys"
|
||||
|
@ -47,7 +48,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|||
version = "0.17.0"
|
||||
edition = "2018"
|
||||
[package.metadata.docs.rs]
|
||||
features = []
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_controller_1_0]
|
||||
name = "gstreamer-controller-1.0"
|
||||
version = "1.8"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(all(not(doctest), doc))]
|
||||
#[cfg(feature = "dox")]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = eprintln!("{}", s);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
@ -8,7 +8,7 @@
|
|||
clippy::type_complexity,
|
||||
clippy::unreadable_literal
|
||||
)]
|
||||
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
|
||||
use glib_sys as glib;
|
||||
use gobject_sys as gobject;
|
||||
|
@ -504,8 +504,8 @@ extern "C" {
|
|||
// GstProxyControlBinding
|
||||
//=========================================================================
|
||||
pub fn gst_proxy_control_binding_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
|
||||
#[cfg(any(feature = "v1_12", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
|
||||
pub fn gst_proxy_control_binding_new(
|
||||
object: *mut gst::GstObject,
|
||||
property_name: *const c_char,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
use gstreamer_controller_sys::*;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -19,22 +19,22 @@ glib::glib_wrapper! {
|
|||
pub const NONE_BASE_EFFECT: Option<&BaseEffect> = None;
|
||||
|
||||
pub trait BaseEffectExt: 'static {
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_time_effect(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn register_time_property(&self, child_property_name: &str) -> bool;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool;
|
||||
}
|
||||
|
||||
impl<O: IsA<BaseEffect>> BaseEffectExt for O {
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_time_effect(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_base_effect_is_time_effect(
|
||||
|
@ -43,8 +43,8 @@ impl<O: IsA<BaseEffect>> BaseEffectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn register_time_property(&self, child_property_name: &str) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_base_effect_register_time_property(
|
||||
|
@ -54,8 +54,8 @@ impl<O: IsA<BaseEffect>> BaseEffectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
|
||||
// unsafe { TODO: call ffi:ges_base_effect_set_time_translation_funcs() }
|
||||
//}
|
||||
|
|
|
@ -6,8 +6,8 @@ use crate::Asset;
|
|||
use crate::BaseEffect;
|
||||
use crate::Container;
|
||||
use crate::Extractable;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::FrameNumber;
|
||||
use crate::Layer;
|
||||
use crate::TimelineElement;
|
||||
|
@ -21,8 +21,8 @@ use glib::signal::SignalHandlerId;
|
|||
use glib::translate::*;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use std::ptr;
|
||||
|
||||
glib::glib_wrapper! {
|
||||
|
@ -38,16 +38,16 @@ pub const NONE_CLIP: Option<&Clip> = None;
|
|||
pub trait ClipExt: 'static {
|
||||
fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<TrackElement, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>(
|
||||
&self,
|
||||
child: &P,
|
||||
track: &Q,
|
||||
) -> Result<TrackElement, glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_top_effect<P: IsA<BaseEffect>>(&self, effect: &P, index: i32)
|
||||
-> Result<(), glib::Error>;
|
||||
|
||||
|
@ -64,12 +64,12 @@ pub trait ClipExt: 'static {
|
|||
type_: glib::types::Type,
|
||||
) -> Vec<TrackElement>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_duration_limit(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>(
|
||||
&self,
|
||||
child: &P,
|
||||
|
@ -80,16 +80,16 @@ pub trait ClipExt: 'static {
|
|||
|
||||
fn get_supported_formats(&self) -> TrackType;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>(
|
||||
&self,
|
||||
child: &P,
|
||||
internal_time: gst::ClockTime,
|
||||
) -> Result<gst::ClockTime, glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_timeline_time_from_source_frame(
|
||||
&self,
|
||||
frame_number: FrameNumber,
|
||||
|
@ -103,12 +103,12 @@ pub trait ClipExt: 'static {
|
|||
|
||||
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error>;
|
||||
|
||||
fn set_supported_formats(&self, supportedformats: TrackType);
|
||||
|
@ -119,8 +119,8 @@ pub trait ClipExt: 'static {
|
|||
newindex: u32,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_top_effect_index_full<P: IsA<BaseEffect>>(
|
||||
&self,
|
||||
effect: &P,
|
||||
|
@ -135,12 +135,12 @@ pub trait ClipExt: 'static {
|
|||
|
||||
fn split(&self, position: u64) -> Result<Clip, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -165,8 +165,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>(
|
||||
&self,
|
||||
child: &P,
|
||||
|
@ -188,8 +188,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_top_effect<P: IsA<BaseEffect>>(
|
||||
&self,
|
||||
effect: &P,
|
||||
|
@ -241,8 +241,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_duration_limit(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_clip_get_duration_limit(
|
||||
|
@ -251,8 +251,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>(
|
||||
&self,
|
||||
child: &P,
|
||||
|
@ -286,8 +286,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>(
|
||||
&self,
|
||||
child: &P,
|
||||
|
@ -309,8 +309,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_timeline_time_from_source_frame(
|
||||
&self,
|
||||
frame_number: FrameNumber,
|
||||
|
@ -368,8 +368,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -386,8 +386,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -430,8 +430,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_top_effect_index_full<P: IsA<BaseEffect>>(
|
||||
&self,
|
||||
effect: &P,
|
||||
|
@ -480,8 +480,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -495,8 +495,8 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -13,7 +13,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -136,7 +135,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
|
|||
|
||||
fn get_property_height(&self) -> u32 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u32 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"height\0".as_ptr() as *const _,
|
||||
|
|
|
@ -9,7 +9,6 @@ use crate::TrackElement;
|
|||
use glib::object::IsA;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
|
||||
glib::glib_wrapper! {
|
||||
pub struct Effect(Object<ffi::GESEffect, ffi::GESEffectClass>) @extends BaseEffect, TrackElement, TimelineElement, @implements Extractable;
|
||||
|
@ -38,7 +37,7 @@ pub trait EffectExt: 'static {
|
|||
impl<O: IsA<Effect>> EffectExt for O {
|
||||
fn get_property_bin_description(&self) -> Option<glib::GString> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<glib::GString as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"bin-description\0".as_ptr() as *const _,
|
||||
|
|
|
@ -6,7 +6,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
|
@ -54,19 +53,19 @@ impl StaticType for Edge {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for Edge {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for Edge {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for Edge {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -121,19 +120,19 @@ impl StaticType for EditMode {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for EditMode {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for EditMode {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for EditMode {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
|
@ -45,19 +44,19 @@ impl StaticType for PipelineFlags {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for PipelineFlags {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for PipelineFlags {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for PipelineFlags {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -96,19 +95,19 @@ impl StaticType for TrackType {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for TrackType {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for TrackType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for TrackType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -74,7 +73,7 @@ pub trait GroupExt: 'static {
|
|||
impl<O: IsA<Group>> GroupExt for O {
|
||||
fn get_property_duration(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"duration\0".as_ptr() as *const _,
|
||||
|
@ -92,14 +91,14 @@ impl<O: IsA<Group>> GroupExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"duration\0".as_ptr() as *const _,
|
||||
Value::from(&duration).to_glib_none().0,
|
||||
glib::Value::from(&duration).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_in_point(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"in-point\0".as_ptr() as *const _,
|
||||
|
@ -117,14 +116,14 @@ impl<O: IsA<Group>> GroupExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"in-point\0".as_ptr() as *const _,
|
||||
Value::from(&in_point).to_glib_none().0,
|
||||
glib::Value::from(&in_point).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_max_duration(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"max-duration\0".as_ptr() as *const _,
|
||||
|
@ -142,14 +141,14 @@ impl<O: IsA<Group>> GroupExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"max-duration\0".as_ptr() as *const _,
|
||||
Value::from(&max_duration).to_glib_none().0,
|
||||
glib::Value::from(&max_duration).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_priority(&self) -> u32 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u32 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u32 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"priority\0".as_ptr() as *const _,
|
||||
|
@ -167,14 +166,14 @@ impl<O: IsA<Group>> GroupExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"priority\0".as_ptr() as *const _,
|
||||
Value::from(&priority).to_glib_none().0,
|
||||
glib::Value::from(&priority).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_start(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"start\0".as_ptr() as *const _,
|
||||
|
@ -192,7 +191,7 @@ impl<O: IsA<Group>> GroupExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"start\0".as_ptr() as *const _,
|
||||
Value::from(&start).to_glib_none().0,
|
||||
glib::Value::from(&start).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,8 +6,8 @@ use crate::Asset;
|
|||
use crate::Clip;
|
||||
use crate::Extractable;
|
||||
use crate::Timeline;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::Track;
|
||||
use crate::TrackType;
|
||||
use glib::object::Cast;
|
||||
|
@ -17,8 +17,8 @@ use glib::signal::SignalHandlerId;
|
|||
use glib::translate::*;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use std::ptr;
|
||||
|
||||
glib::glib_wrapper! {
|
||||
|
@ -54,8 +54,8 @@ pub trait LayerExt: 'static {
|
|||
track_types: TrackType,
|
||||
) -> Result<Clip, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_asset_full<P: IsA<Asset>>(
|
||||
&self,
|
||||
asset: &P,
|
||||
|
@ -67,12 +67,12 @@ pub trait LayerExt: 'static {
|
|||
|
||||
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
|
||||
|
||||
fn get_auto_transition(&self) -> bool;
|
||||
|
@ -91,8 +91,8 @@ pub trait LayerExt: 'static {
|
|||
|
||||
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool;
|
||||
|
||||
fn set_auto_transition(&self, auto_transition: bool);
|
||||
|
@ -102,8 +102,8 @@ pub trait LayerExt: 'static {
|
|||
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P);
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
@ -141,8 +141,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_asset_full<P: IsA<Asset>>(
|
||||
&self,
|
||||
asset: &P,
|
||||
|
@ -182,8 +182,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -200,8 +200,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_layer_get_active_for_track(
|
||||
|
@ -265,8 +265,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_layer_set_active_for_tracks(
|
||||
|
@ -301,8 +301,8 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
||||
// Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 }
|
||||
//}
|
||||
|
|
|
@ -10,7 +10,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
use std::ptr;
|
||||
|
@ -227,7 +226,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
|
||||
fn get_property_audio_filter(&self) -> Option<gst::Element> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"audio-filter\0".as_ptr() as *const _,
|
||||
|
@ -244,14 +243,14 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"audio-filter\0".as_ptr() as *const _,
|
||||
Value::from(audio_filter).to_glib_none().0,
|
||||
glib::Value::from(audio_filter).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_audio_sink(&self) -> Option<gst::Element> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"audio-sink\0".as_ptr() as *const _,
|
||||
|
@ -268,14 +267,14 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"audio-sink\0".as_ptr() as *const _,
|
||||
Value::from(audio_sink).to_glib_none().0,
|
||||
glib::Value::from(audio_sink).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_timeline(&self) -> Option<Timeline> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<Timeline as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<Timeline as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"timeline\0".as_ptr() as *const _,
|
||||
|
@ -289,7 +288,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
|
||||
fn get_property_video_filter(&self) -> Option<gst::Element> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"video-filter\0".as_ptr() as *const _,
|
||||
|
@ -306,14 +305,14 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"video-filter\0".as_ptr() as *const _,
|
||||
Value::from(video_filter).to_glib_none().0,
|
||||
glib::Value::from(video_filter).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_video_sink(&self) -> Option<gst::Element> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<gst::Element as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"video-sink\0".as_ptr() as *const _,
|
||||
|
@ -330,7 +329,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"video-sink\0".as_ptr() as *const _,
|
||||
Value::from(video_sink).to_glib_none().0,
|
||||
glib::Value::from(video_sink).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,8 +38,8 @@ pub trait ProjectExt: 'static {
|
|||
profile: &P,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn add_formatter(&self, formatter: /*Ignored*/&Formatter);
|
||||
|
||||
fn create_asset(&self, id: Option<&str>, extractable_type: glib::types::Type) -> bool;
|
||||
|
@ -78,8 +78,8 @@ pub trait ProjectExt: 'static {
|
|||
|
||||
fn connect_asset_removed<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -92,8 +92,8 @@ pub trait ProjectExt: 'static {
|
|||
|
||||
fn connect_loaded<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
fn connect_missing_uri<F: Fn(&Self, &glib::Error, &Asset) -> Option<glib::GString> + 'static>(
|
||||
|
@ -127,8 +127,8 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn add_formatter(&self, formatter: /*Ignored*/&Formatter) {
|
||||
// unsafe { TODO: call ffi:ges_project_add_formatter() }
|
||||
//}
|
||||
|
@ -337,8 +337,8 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -440,8 +440,8 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn loading_trampoline<P, F: Fn(&P, &Timeline) + 'static>(
|
||||
this: *mut ffi::GESProject,
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::Asset;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::Clip;
|
||||
use crate::Extractable;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::FrameNumber;
|
||||
use crate::Group;
|
||||
use crate::Layer;
|
||||
|
@ -83,12 +83,12 @@ pub trait TimelineExt: 'static {
|
|||
|
||||
fn get_element(&self, name: &str) -> Option<TimelineElement>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime;
|
||||
|
||||
fn get_groups(&self) -> Vec<Group>;
|
||||
|
@ -109,8 +109,8 @@ pub trait TimelineExt: 'static {
|
|||
|
||||
fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn move_layer<P: IsA<Layer>>(
|
||||
&self,
|
||||
layer: &P,
|
||||
|
@ -149,8 +149,8 @@ pub trait TimelineExt: 'static {
|
|||
|
||||
fn connect_layer_removed<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -255,16 +255,16 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber {
|
||||
unsafe {
|
||||
ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_timeline_get_frame_time(
|
||||
|
@ -353,8 +353,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn move_layer<P: IsA<Layer>>(
|
||||
&self,
|
||||
layer: &P,
|
||||
|
@ -561,8 +561,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::Edge;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::EditMode;
|
||||
use crate::Extractable;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use crate::Layer;
|
||||
use crate::Timeline;
|
||||
use crate::TrackType;
|
||||
|
@ -20,14 +20,13 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use std::mem;
|
||||
use std::mem::transmute;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use std::ptr;
|
||||
|
||||
glib::glib_wrapper! {
|
||||
|
@ -45,8 +44,8 @@ pub trait TimelineElementExt: 'static {
|
|||
|
||||
fn copy(&self, deep: bool) -> Result<TimelineElement, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn edit(
|
||||
&self,
|
||||
layers: &[Layer],
|
||||
|
@ -56,8 +55,8 @@ pub trait TimelineElementExt: 'static {
|
|||
position: u64,
|
||||
) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn edit_full(
|
||||
&self,
|
||||
new_layer_priority: i64,
|
||||
|
@ -78,16 +77,16 @@ pub trait TimelineElementExt: 'static {
|
|||
|
||||
fn get_inpoint(&self) -> gst::ClockTime;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn get_layer_priority(&self) -> u32;
|
||||
|
||||
fn get_max_duration(&self) -> gst::ClockTime;
|
||||
|
||||
fn get_name(&self) -> Option<glib::GString>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_natural_framerate(&self) -> Option<(i32, i32)>;
|
||||
|
||||
fn get_parent(&self) -> Option<TimelineElement>;
|
||||
|
@ -124,8 +123,8 @@ pub trait TimelineElementExt: 'static {
|
|||
|
||||
//fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value);
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error>;
|
||||
|
||||
//fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
|
||||
|
@ -158,12 +157,12 @@ pub trait TimelineElementExt: 'static {
|
|||
|
||||
fn set_property_serialize(&self, serialize: bool);
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
//fn connect_deep_notify<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||
|
@ -204,8 +203,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn edit(
|
||||
&self,
|
||||
layers: &[Layer],
|
||||
|
@ -226,8 +225,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn edit_full(
|
||||
&self,
|
||||
new_layer_priority: i64,
|
||||
|
@ -285,8 +284,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn get_layer_priority(&self) -> u32 {
|
||||
unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) }
|
||||
}
|
||||
|
@ -307,8 +306,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_natural_framerate(&self) -> Option<(i32, i32)> {
|
||||
unsafe {
|
||||
let mut framerate_n = mem::MaybeUninit::uninit();
|
||||
|
@ -445,8 +444,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
// unsafe { TODO: call ffi:ges_timeline_element_set_child_property_by_pspec() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error> {
|
||||
// unsafe { TODO: call ffi:ges_timeline_element_set_child_property_full() }
|
||||
//}
|
||||
|
@ -550,7 +549,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
|
||||
fn get_property_in_point(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"in-point\0".as_ptr() as *const _,
|
||||
|
@ -568,14 +567,14 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"in-point\0".as_ptr() as *const _,
|
||||
Value::from(&in_point).to_glib_none().0,
|
||||
glib::Value::from(&in_point).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_serialize(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"serialize\0".as_ptr() as *const _,
|
||||
|
@ -593,19 +592,19 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"serialize\0".as_ptr() as *const _,
|
||||
Value::from(&serialize).to_glib_none().0,
|
||||
glib::Value::from(&serialize).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
||||
// Ignored prop: GObject.ParamSpec
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
||||
// Ignored prop: GObject.ParamSpec
|
||||
//}
|
||||
|
|
|
@ -11,11 +11,10 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use std::ptr;
|
||||
|
||||
glib::glib_wrapper! {
|
||||
|
@ -38,8 +37,8 @@ pub const NONE_TRACK: Option<&Track> = None;
|
|||
pub trait GESTrackExt: 'static {
|
||||
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>;
|
||||
|
||||
fn commit(&self) -> bool;
|
||||
|
@ -50,8 +49,8 @@ pub trait GESTrackExt: 'static {
|
|||
|
||||
fn get_mixing(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_restriction_caps(&self) -> Option<gst::Caps>;
|
||||
|
||||
fn get_timeline(&self) -> Option<Timeline>;
|
||||
|
@ -61,8 +60,8 @@ pub trait GESTrackExt: 'static {
|
|||
object: &P,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>;
|
||||
|
||||
//fn set_create_element_for_gap_func<P: Fn(&Track) -> gst::Element + 'static>(&self, func: P);
|
||||
|
@ -77,12 +76,12 @@ pub trait GESTrackExt: 'static {
|
|||
|
||||
fn get_property_duration(&self) -> u64;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_id(&self) -> Option<glib::GString>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_property_id(&self, id: Option<&str>);
|
||||
|
||||
fn get_property_restriction_caps(&self) -> Option<gst::Caps>;
|
||||
|
@ -103,8 +102,8 @@ pub trait GESTrackExt: 'static {
|
|||
|
||||
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
fn connect_property_mixing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
@ -128,8 +127,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -166,8 +165,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_restriction_caps(&self) -> Option<gst::Caps> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::ges_track_get_restriction_caps(
|
||||
|
@ -195,8 +194,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -252,7 +251,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
|
||||
fn get_property_duration(&self) -> u64 {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<u64 as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"duration\0".as_ptr() as *const _,
|
||||
|
@ -265,11 +264,11 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_id(&self) -> Option<glib::GString> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<glib::GString as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<glib::GString as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"id\0".as_ptr() as *const _,
|
||||
|
@ -279,21 +278,21 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_property_id(&self, id: Option<&str>) {
|
||||
unsafe {
|
||||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"id\0".as_ptr() as *const _,
|
||||
Value::from(id).to_glib_none().0,
|
||||
glib::Value::from(id).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_property_restriction_caps(&self) -> Option<gst::Caps> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<gst::Caps as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<gst::Caps as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"restriction-caps\0".as_ptr() as *const _,
|
||||
|
@ -307,7 +306,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
|
||||
fn get_property_track_type(&self) -> TrackType {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<TrackType as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<TrackType as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"track-type\0".as_ptr() as *const _,
|
||||
|
@ -430,8 +429,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_id_trampoline<P, F: Fn(&P) + 'static>(
|
||||
this: *mut ffi::GESTrack,
|
||||
|
|
|
@ -15,7 +15,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -38,8 +37,8 @@ pub trait TrackElementExt: 'static {
|
|||
whitelist: &[&str],
|
||||
);
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn clamp_control_source(&self, property_name: &str);
|
||||
|
||||
#[cfg_attr(feature = "v1_18", deprecated)]
|
||||
|
@ -53,8 +52,8 @@ pub trait TrackElementExt: 'static {
|
|||
|
||||
//fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 };
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_auto_clamp_control_sources(&self) -> bool;
|
||||
|
||||
//fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option<gst::ControlBinding>;
|
||||
|
@ -69,14 +68,14 @@ pub trait TrackElementExt: 'static {
|
|||
|
||||
fn get_track_type(&self) -> TrackType;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn has_internal_source(&self) -> bool;
|
||||
|
||||
fn is_active(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_core(&self) -> bool;
|
||||
|
||||
//fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option<gst::Element>;
|
||||
|
@ -85,22 +84,22 @@ pub trait TrackElementExt: 'static {
|
|||
|
||||
fn set_active(&self, active: bool) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_auto_clamp_control_sources(&self, auto_clamp: bool);
|
||||
|
||||
//fn set_control_source(&self, source: /*Ignored*/&gst::ControlSource, property_name: &str, binding_type: &str) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_has_internal_source(&self, has_internal_source: bool) -> bool;
|
||||
|
||||
fn set_track_type(&self, type_: TrackType);
|
||||
|
||||
fn get_property_active(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_has_internal_source(&self) -> bool;
|
||||
|
||||
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
||||
|
@ -109,15 +108,15 @@ pub trait TrackElementExt: 'static {
|
|||
|
||||
fn connect_property_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -147,8 +146,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn clamp_control_source(&self, property_name: &str) {
|
||||
unsafe {
|
||||
ffi::ges_track_element_clamp_control_source(
|
||||
|
@ -183,8 +182,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
// unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() }
|
||||
//}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_auto_clamp_control_sources(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_get_auto_clamp_control_sources(
|
||||
|
@ -237,8 +236,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn has_internal_source(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_has_internal_source(
|
||||
|
@ -255,8 +254,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_core(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_is_core(
|
||||
|
@ -290,8 +289,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_auto_clamp_control_sources(&self, auto_clamp: bool) {
|
||||
unsafe {
|
||||
ffi::ges_track_element_set_auto_clamp_control_sources(
|
||||
|
@ -305,8 +304,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
// unsafe { TODO: call ffi:ges_track_element_set_control_source() }
|
||||
//}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn set_has_internal_source(&self, has_internal_source: bool) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_track_element_set_has_internal_source(
|
||||
|
@ -324,7 +323,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
|
||||
fn get_property_active(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"active\0".as_ptr() as *const _,
|
||||
|
@ -337,11 +336,11 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_has_internal_source(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"has-internal-source\0".as_ptr() as *const _,
|
||||
|
@ -386,8 +385,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -415,8 +414,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -12,7 +12,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -88,7 +87,7 @@ impl<O: IsA<UriClip>> UriClipExt for O {
|
|||
|
||||
fn get_property_is_image(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"is-image\0".as_ptr() as *const _,
|
||||
|
@ -103,7 +102,7 @@ impl<O: IsA<UriClip>> UriClipExt for O {
|
|||
|
||||
fn get_property_mute(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"mute\0".as_ptr() as *const _,
|
||||
|
|
|
@ -9,10 +9,9 @@ use glib::object::IsA;
|
|||
use glib::signal::connect_raw;
|
||||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
use std::ptr;
|
||||
|
@ -26,8 +25,8 @@ glib::glib_wrapper! {
|
|||
}
|
||||
|
||||
impl UriClipAsset {
|
||||
//#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
//#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
//pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result<UriClipAsset, glib::Error> {
|
||||
// unsafe { TODO: call ffi:ges_uri_clip_asset_finish() }
|
||||
//}
|
||||
|
@ -57,26 +56,26 @@ pub trait UriClipAssetExt: 'static {
|
|||
|
||||
fn get_info(&self) -> Option<gst_pbutils::DiscovererInfo>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_max_duration(&self) -> gst::ClockTime;
|
||||
|
||||
fn get_stream_assets(&self) -> Vec<UriSourceAsset>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_image(&self) -> bool;
|
||||
|
||||
fn set_property_duration(&self, duration: u64);
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_is_nested_timeline(&self) -> bool;
|
||||
|
||||
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -100,8 +99,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_max_duration(&self) -> gst::ClockTime {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_uri_clip_asset_get_max_duration(
|
||||
|
@ -118,8 +117,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_image(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_uri_clip_asset_is_image(
|
||||
|
@ -133,16 +132,16 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"duration\0".as_ptr() as *const _,
|
||||
Value::from(&duration).to_glib_none().0,
|
||||
glib::Value::from(&duration).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_property_is_nested_timeline(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"is-nested-timeline\0".as_ptr() as *const _,
|
||||
|
@ -179,8 +178,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -24,8 +24,8 @@ pub trait UriSourceAssetExt: 'static {
|
|||
|
||||
fn get_stream_uri(&self) -> Option<glib::GString>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_image(&self) -> bool;
|
||||
}
|
||||
|
||||
|
@ -54,8 +54,8 @@ impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn is_image(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_uri_source_asset_is_image(
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
|
|
|
@ -33,6 +33,7 @@ v1_16 = ["v1_14"]
|
|||
v1_18 = ["v1_16"]
|
||||
v1_2 = []
|
||||
v1_4 = ["v1_2"]
|
||||
dox = []
|
||||
|
||||
[lib]
|
||||
name = "gstreamer_editing_services_sys"
|
||||
|
@ -52,7 +53,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
|||
version = "0.17.0"
|
||||
edition = "2018"
|
||||
[package.metadata.docs.rs]
|
||||
features = []
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gst_editing_services_1_0]
|
||||
name = "gst-editing-services-1.0"
|
||||
version = "1.8"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::process;
|
||||
|
||||
#[cfg(all(not(doctest), doc))]
|
||||
#[cfg(feature = "dox")]
|
||||
fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(any(not(doc), doctest))]
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = eprintln!("{}", s);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
@ -8,7 +8,7 @@
|
|||
clippy::type_complexity,
|
||||
clippy::unreadable_literal
|
||||
)]
|
||||
#![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
|
||||
#![cfg_attr(feature = "dox", feature(doc_cfg))]
|
||||
|
||||
use gio_sys as gio;
|
||||
use glib_sys as glib;
|
||||
|
@ -2651,16 +2651,16 @@ extern "C" {
|
|||
// GESEdge
|
||||
//=========================================================================
|
||||
pub fn ges_edge_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_edge_name(edge: GESEdge) -> *const c_char;
|
||||
|
||||
//=========================================================================
|
||||
// GESEditMode
|
||||
//=========================================================================
|
||||
pub fn ges_edit_mode_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -2798,17 +2798,17 @@ extern "C" {
|
|||
// GESBaseEffect
|
||||
//=========================================================================
|
||||
pub fn ges_base_effect_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_base_effect_is_time_effect(effect: *mut GESBaseEffect) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_base_effect_register_time_property(
|
||||
effect: *mut GESBaseEffect,
|
||||
child_property_name: *const c_char,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_base_effect_set_time_translation_funcs(
|
||||
effect: *mut GESBaseEffect,
|
||||
source_to_sink_func: GESBaseEffectTimeTranslationFunc,
|
||||
|
@ -2837,16 +2837,16 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn ges_clip_get_type() -> GType;
|
||||
pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_add_child_to_track(
|
||||
clip: *mut GESClip,
|
||||
child: *mut GESTrackElement,
|
||||
track: *mut GESTrack,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> *mut GESTrackElement;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_add_top_effect(
|
||||
clip: *mut GESClip,
|
||||
effect: *mut GESBaseEffect,
|
||||
|
@ -2864,11 +2864,11 @@ extern "C" {
|
|||
track_type: GESTrackType,
|
||||
type_: GType,
|
||||
) -> *mut glib::GList;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_duration_limit(clip: *mut GESClip) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_internal_time_from_timeline_time(
|
||||
clip: *mut GESClip,
|
||||
child: *mut GESTrackElement,
|
||||
|
@ -2877,16 +2877,16 @@ extern "C" {
|
|||
) -> gst::GstClockTime;
|
||||
pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer;
|
||||
pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_timeline_time_from_internal_time(
|
||||
clip: *mut GESClip,
|
||||
child: *mut GESTrackElement,
|
||||
internal_time: gst::GstClockTime,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_get_timeline_time_from_source_frame(
|
||||
clip: *mut GESClip,
|
||||
frame_number: GESFrameNumber,
|
||||
|
@ -2899,15 +2899,15 @@ extern "C" {
|
|||
) -> c_int;
|
||||
pub fn ges_clip_get_top_effects(clip: *mut GESClip) -> *mut glib::GList;
|
||||
pub fn ges_clip_move_to_layer(clip: *mut GESClip, layer: *mut GESLayer) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_move_to_layer_full(
|
||||
clip: *mut GESClip,
|
||||
layer: *mut GESLayer,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_remove_top_effect(
|
||||
clip: *mut GESClip,
|
||||
effect: *mut GESBaseEffect,
|
||||
|
@ -2919,8 +2919,8 @@ extern "C" {
|
|||
effect: *mut GESBaseEffect,
|
||||
newindex: c_uint,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_set_top_effect_index_full(
|
||||
clip: *mut GESClip,
|
||||
effect: *mut GESBaseEffect,
|
||||
|
@ -2933,8 +2933,8 @@ extern "C" {
|
|||
newpriority: c_uint,
|
||||
) -> gboolean;
|
||||
pub fn ges_clip_split(clip: *mut GESClip, position: u64) -> *mut GESClip;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_split_full(
|
||||
clip: *mut GESClip,
|
||||
position: u64,
|
||||
|
@ -2945,14 +2945,14 @@ extern "C" {
|
|||
// GESClipAsset
|
||||
//=========================================================================
|
||||
pub fn ges_clip_asset_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_asset_get_frame_time(
|
||||
self_: *mut GESClipAsset,
|
||||
frame_number: GESFrameNumber,
|
||||
) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_clip_asset_get_natural_framerate(
|
||||
self_: *mut GESClipAsset,
|
||||
framerate_n: *mut c_int,
|
||||
|
@ -3074,8 +3074,8 @@ extern "C" {
|
|||
duration: gst::GstClockTime,
|
||||
track_types: GESTrackType,
|
||||
) -> *mut GESClip;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_add_asset_full(
|
||||
layer: *mut GESLayer,
|
||||
asset: *mut GESAsset,
|
||||
|
@ -3086,15 +3086,15 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
) -> *mut GESClip;
|
||||
pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_add_clip_full(
|
||||
layer: *mut GESLayer,
|
||||
clip: *mut GESClip,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_get_active_for_track(layer: *mut GESLayer, track: *mut GESTrack) -> gboolean;
|
||||
pub fn ges_layer_get_auto_transition(layer: *mut GESLayer) -> gboolean;
|
||||
pub fn ges_layer_get_clips(layer: *mut GESLayer) -> *mut glib::GList;
|
||||
|
@ -3108,8 +3108,8 @@ extern "C" {
|
|||
pub fn ges_layer_get_timeline(layer: *mut GESLayer) -> *mut GESTimeline;
|
||||
pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean;
|
||||
pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_layer_set_active_for_tracks(
|
||||
layer: *mut GESLayer,
|
||||
active: gboolean,
|
||||
|
@ -3122,40 +3122,40 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// GESMarker
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GESMarkerList
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_new() -> *mut GESMarkerList;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_add(
|
||||
list: *mut GESMarkerList,
|
||||
position: gst::GstClockTime,
|
||||
) -> *mut GESMarker;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_move(
|
||||
list: *mut GESMarkerList,
|
||||
marker: *mut GESMarker,
|
||||
position: gst::GstClockTime,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -3233,8 +3233,8 @@ extern "C" {
|
|||
project: *mut GESProject,
|
||||
profile: *mut gst_pbutils::GstEncodingProfile,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter);
|
||||
pub fn ges_project_create_asset(
|
||||
project: *mut GESProject,
|
||||
|
@ -3280,15 +3280,15 @@ extern "C" {
|
|||
// GESSourceClip
|
||||
//=========================================================================
|
||||
pub fn ges_source_clip_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_source_clip_new_time_overlay() -> *mut GESSourceClip;
|
||||
|
||||
//=========================================================================
|
||||
// GESSourceClipAsset
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_source_clip_asset_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -3370,14 +3370,14 @@ extern "C" {
|
|||
timeline: *mut GESTimeline,
|
||||
name: *const c_char,
|
||||
) -> *mut GESTimelineElement;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_get_frame_at(
|
||||
self_: *mut GESTimeline,
|
||||
timestamp: gst::GstClockTime,
|
||||
) -> GESFrameNumber;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_get_frame_time(
|
||||
self_: *mut GESTimeline,
|
||||
frame_number: GESFrameNumber,
|
||||
|
@ -3401,8 +3401,8 @@ extern "C" {
|
|||
uri: *const c_char,
|
||||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_timeline_move_layer(
|
||||
timeline: *mut GESTimeline,
|
||||
layer: *mut GESLayer,
|
||||
|
@ -3442,8 +3442,8 @@ extern "C" {
|
|||
self_: *mut GESTimelineElement,
|
||||
deep: gboolean,
|
||||
) -> *mut GESTimelineElement;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_edit(
|
||||
self_: *mut GESTimelineElement,
|
||||
layers: *mut glib::GList,
|
||||
|
@ -3452,8 +3452,8 @@ extern "C" {
|
|||
edge: GESEdge,
|
||||
position: u64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_edit_full(
|
||||
self_: *mut GESTimelineElement,
|
||||
new_layer_priority: i64,
|
||||
|
@ -3480,15 +3480,15 @@ extern "C" {
|
|||
//pub fn ges_timeline_element_get_child_property_valist(self_: *mut GESTimelineElement, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list);
|
||||
pub fn ges_timeline_element_get_duration(self_: *mut GESTimelineElement) -> gst::GstClockTime;
|
||||
pub fn ges_timeline_element_get_inpoint(self_: *mut GESTimelineElement) -> gst::GstClockTime;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_timeline_element_get_layer_priority(self_: *mut GESTimelineElement) -> u32;
|
||||
pub fn ges_timeline_element_get_max_duration(
|
||||
self_: *mut GESTimelineElement,
|
||||
) -> gst::GstClockTime;
|
||||
pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_get_natural_framerate(
|
||||
self_: *mut GESTimelineElement,
|
||||
framerate_n: *mut c_int,
|
||||
|
@ -3553,8 +3553,8 @@ extern "C" {
|
|||
pspec: *mut gobject::GParamSpec,
|
||||
value: *const gobject::GValue,
|
||||
);
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_timeline_element_set_child_property_full(
|
||||
self_: *mut GESTimelineElement,
|
||||
property_name: *const c_char,
|
||||
|
@ -3648,8 +3648,8 @@ extern "C" {
|
|||
pub fn ges_track_get_type() -> GType;
|
||||
pub fn ges_track_new(type_: GESTrackType, caps: *mut gst::GstCaps) -> *mut GESTrack;
|
||||
pub fn ges_track_add_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_add_element_full(
|
||||
track: *mut GESTrack,
|
||||
object: *mut GESTrackElement,
|
||||
|
@ -3659,14 +3659,14 @@ extern "C" {
|
|||
pub fn ges_track_get_caps(track: *mut GESTrack) -> *const gst::GstCaps;
|
||||
pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList;
|
||||
pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_get_restriction_caps(track: *mut GESTrack) -> *mut gst::GstCaps;
|
||||
pub fn ges_track_get_timeline(track: *mut GESTrack) -> *const GESTimeline;
|
||||
pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement)
|
||||
-> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_remove_element_full(
|
||||
track: *mut GESTrack,
|
||||
object: *mut GESTrackElement,
|
||||
|
@ -3692,8 +3692,8 @@ extern "C" {
|
|||
blacklist: *mut *const c_char,
|
||||
whitelist: *mut *const c_char,
|
||||
);
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_clamp_control_source(
|
||||
object: *mut GESTrackElement,
|
||||
property_name: *const c_char,
|
||||
|
@ -3708,8 +3708,8 @@ extern "C" {
|
|||
pub fn ges_track_element_get_all_control_bindings(
|
||||
trackelement: *mut GESTrackElement,
|
||||
) -> *mut glib::GHashTable;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_get_auto_clamp_control_sources(
|
||||
object: *mut GESTrackElement,
|
||||
) -> gboolean;
|
||||
|
@ -3738,12 +3738,12 @@ extern "C" {
|
|||
pub fn ges_track_element_get_nleobject(object: *mut GESTrackElement) -> *mut gst::GstElement;
|
||||
pub fn ges_track_element_get_track(object: *mut GESTrackElement) -> *mut GESTrack;
|
||||
pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean;
|
||||
pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_is_core(object: *mut GESTrackElement) -> gboolean;
|
||||
pub fn ges_track_element_list_children_properties(
|
||||
object: *mut GESTrackElement,
|
||||
|
@ -3761,8 +3761,8 @@ extern "C" {
|
|||
) -> gboolean;
|
||||
pub fn ges_track_element_set_active(object: *mut GESTrackElement, active: gboolean)
|
||||
-> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_set_auto_clamp_control_sources(
|
||||
object: *mut GESTrackElement,
|
||||
auto_clamp: gboolean,
|
||||
|
@ -3789,8 +3789,8 @@ extern "C" {
|
|||
property_name: *const c_char,
|
||||
binding_type: *const c_char,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_set_has_internal_source(
|
||||
object: *mut GESTrackElement,
|
||||
has_internal_source: gboolean,
|
||||
|
@ -3801,8 +3801,8 @@ extern "C" {
|
|||
// GESTrackElementAsset
|
||||
//=========================================================================
|
||||
pub fn ges_track_element_asset_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_track_element_asset_get_natural_framerate(
|
||||
self_: *mut GESTrackElementAsset,
|
||||
framerate_n: *mut c_int,
|
||||
|
@ -3843,8 +3843,8 @@ extern "C" {
|
|||
// GESUriClipAsset
|
||||
//=========================================================================
|
||||
pub fn ges_uri_clip_asset_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_uri_clip_asset_finish(
|
||||
res: *mut gio::GAsyncResult,
|
||||
error: *mut *mut glib::GError,
|
||||
|
@ -3863,12 +3863,12 @@ extern "C" {
|
|||
pub fn ges_uri_clip_asset_get_info(
|
||||
self_: *const GESUriClipAsset,
|
||||
) -> *mut gst_pbutils::GstDiscovererInfo;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_uri_clip_asset_get_max_duration(self_: *mut GESUriClipAsset) -> gst::GstClockTime;
|
||||
pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -3882,16 +3882,16 @@ extern "C" {
|
|||
asset: *mut GESUriSourceAsset,
|
||||
) -> *mut gst_pbutils::GstDiscovererStreamInfo;
|
||||
pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean;
|
||||
|
||||
//=========================================================================
|
||||
// GESVideoSource
|
||||
//=========================================================================
|
||||
pub fn ges_video_source_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_video_source_get_natural_size(
|
||||
self_: *mut GESVideoSource,
|
||||
width: *mut c_int,
|
||||
|
@ -4005,8 +4005,8 @@ extern "C" {
|
|||
meta_item: *const c_char,
|
||||
dest: *mut i64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_meta_container_get_marker_list(
|
||||
container: *mut GESMetaContainer,
|
||||
key: *const c_char,
|
||||
|
@ -4096,8 +4096,8 @@ extern "C" {
|
|||
meta_item: *const c_char,
|
||||
value: u64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_meta_container_register_static_meta(
|
||||
container: *mut GESMetaContainer,
|
||||
flags: GESMetaFlag,
|
||||
|
@ -4139,8 +4139,8 @@ extern "C" {
|
|||
meta_item: *const c_char,
|
||||
value: i64,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_meta_container_set_marker_list(
|
||||
container: *mut GESMetaContainer,
|
||||
meta_item: *const c_char,
|
||||
|
@ -4172,8 +4172,8 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn ges_add_missing_uri_relocation_uri(uri: *const c_char, recurse: gboolean) -> gboolean;
|
||||
pub fn ges_deinit();
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset;
|
||||
pub fn ges_init() -> gboolean;
|
||||
pub fn ges_init_check(
|
||||
|
@ -4182,8 +4182,8 @@ extern "C" {
|
|||
error: *mut *mut glib::GError,
|
||||
) -> gboolean;
|
||||
pub fn ges_init_get_option_group() -> *mut glib::GOptionGroup;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn ges_is_initialized() -> gboolean;
|
||||
pub fn ges_list_assets(filter: GType) -> *mut glib::GList;
|
||||
pub fn ges_play_sink_convert_frame(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
use gstreamer_editing_services_sys::*;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -7,7 +7,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::Quark;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
@ -90,19 +89,19 @@ impl StaticType for GLContextError {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLContextError {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLContextError {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLContextError {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -199,19 +198,19 @@ impl StaticType for GLFormat {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLFormat {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLFormat {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLFormat {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -260,19 +259,19 @@ impl StaticType for GLQueryType {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLQueryType {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLQueryType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLQueryType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -343,19 +342,19 @@ impl StaticType for GLSLError {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLSLError {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLSLError {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLSLError {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -446,19 +445,19 @@ impl StaticType for GLSLVersion {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLSLVersion {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLSLVersion {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLSLVersion {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -511,19 +510,19 @@ impl StaticType for GLStereoDownmix {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLStereoDownmix {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLStereoDownmix {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLStereoDownmix {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -575,19 +574,19 @@ impl StaticType for GLTextureTarget {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLTextureTarget {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLTextureTarget {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLTextureTarget {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -642,19 +641,19 @@ impl StaticType for GLUploadReturn {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLUploadReturn {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLUploadReturn {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLUploadReturn {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -725,19 +724,19 @@ impl StaticType for GLWindowError {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLWindowError {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLWindowError {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLWindowError {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ use glib::translate::*;
|
|||
use glib::value::FromValue;
|
||||
use glib::value::FromValueOptional;
|
||||
use glib::value::SetValue;
|
||||
use glib::value::Value;
|
||||
use glib::StaticType;
|
||||
use glib::Type;
|
||||
|
||||
|
@ -44,19 +43,19 @@ impl StaticType for GLAPI {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLAPI {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLAPI {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLAPI {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -71,8 +70,8 @@ bitflags! {
|
|||
const EGL = 32;
|
||||
const VIV_FB = 64;
|
||||
const GBM = 128;
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
const EGL_DEVICE = 256;
|
||||
}
|
||||
}
|
||||
|
@ -101,19 +100,19 @@ impl StaticType for GLDisplayType {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLDisplayType {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLDisplayType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLDisplayType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -152,19 +151,19 @@ impl StaticType for GLPlatform {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLPlatform {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLPlatform {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLPlatform {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
@ -201,19 +200,19 @@ impl StaticType for GLSLProfile {
|
|||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for GLSLProfile {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for GLSLProfile {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
unsafe fn from_value(value: &glib::Value) -> Self {
|
||||
from_glib(glib::gobject_ffi::g_value_get_flags(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for GLSLProfile {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
unsafe fn set_value(value: &mut glib::Value, this: &Self) {
|
||||
glib::gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -27,12 +26,12 @@ unsafe impl Sync for GLBaseFilter {}
|
|||
pub const NONE_GL_BASE_FILTER: Option<&GLBaseFilter> = None;
|
||||
|
||||
pub trait GLBaseFilterExt: 'static {
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn find_gl_context(&self) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_gl_context(&self) -> Option<GLContext>;
|
||||
|
||||
fn get_property_context(&self) -> Option<GLContext>;
|
||||
|
@ -44,8 +43,8 @@ pub trait GLBaseFilterExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn find_gl_context(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_base_filter_find_gl_context(
|
||||
|
@ -54,8 +53,8 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn get_gl_context(&self) -> Option<GLContext> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_base_filter_get_gl_context(
|
||||
|
@ -66,7 +65,7 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
|
|||
|
||||
fn get_property_context(&self) -> Option<GLContext> {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<GLContext as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<GLContext as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
|
||||
b"context\0".as_ptr() as *const _,
|
||||
|
|
|
@ -95,12 +95,12 @@ pub trait GLContextExt: 'static {
|
|||
|
||||
fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
|
||||
|
||||
fn swap_buffers(&self);
|
||||
|
@ -301,8 +301,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_context_supports_precision(
|
||||
|
@ -313,8 +313,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_context_supports_precision_highp(
|
||||
|
|
|
@ -59,14 +59,14 @@ pub trait GLDisplayExt: 'static {
|
|||
|
||||
fn get_handle_type(&self) -> GLDisplayType;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn remove_context<P: IsA<GLContext>>(&self, context: &P);
|
||||
|
||||
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn retrieve_window(&self, data: /*Unimplemented*/Option<Fundamental: Pointer>, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>, /*Unimplemented*/Option<Fundamental: Pointer>) -> i32) -> Option<GLWindow>;
|
||||
|
||||
fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
|
||||
|
@ -148,8 +148,8 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn remove_context<P: IsA<GLContext>>(&self, context: &P) {
|
||||
unsafe {
|
||||
ffi::gst_gl_display_remove_context(
|
||||
|
@ -171,8 +171,8 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
//#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
//#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
//fn retrieve_window(&self, data: /*Unimplemented*/Option<Fundamental: Pointer>, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>, /*Unimplemented*/Option<Fundamental: Pointer>) -> i32) -> Option<GLWindow> {
|
||||
// unsafe { TODO: call ffi:gst_gl_display_retrieve_window() }
|
||||
//}
|
||||
|
|
|
@ -4,27 +4,24 @@
|
|||
|
||||
use crate::GLContext;
|
||||
use glib::object::IsA;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use glib::object::ObjectType as ObjectType_;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use glib::signal::connect_raw;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use glib::StaticType;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
use glib::Value;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use std::boxed::Box as Box_;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use std::mem::transmute;
|
||||
|
||||
glib::glib_wrapper! {
|
||||
|
@ -57,11 +54,11 @@ impl GLOverlayCompositor {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn get_property_yinvert(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"yinvert\0".as_ptr() as *const _,
|
||||
|
@ -74,14 +71,14 @@ impl GLOverlayCompositor {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn set_property_yinvert(&self, yinvert: bool) {
|
||||
unsafe {
|
||||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"yinvert\0".as_ptr() as *const _,
|
||||
Value::from(&yinvert).to_glib_none().0,
|
||||
glib::Value::from(&yinvert).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -95,8 +92,8 @@ impl GLOverlayCompositor {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn connect_property_yinvert_notify<F: Fn(&GLOverlayCompositor) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
// DO NOT EDIT
|
||||
|
||||
use crate::GLContext;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use crate::GLSLProfile;
|
||||
use crate::GLSLStage;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
use crate::GLSLVersion;
|
||||
use glib::object::IsA;
|
||||
use glib::object::ObjectType as ObjectType_;
|
||||
|
@ -16,7 +16,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
use std::ptr;
|
||||
|
@ -338,7 +337,7 @@ impl GLShader {
|
|||
|
||||
pub fn get_property_linked(&self) -> bool {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<bool as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"linked\0".as_ptr() as *const _,
|
||||
|
@ -351,8 +350,8 @@ impl GLShader {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn string_fragment_external_oes_get_default<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
version: GLSLVersion,
|
||||
|
@ -368,8 +367,8 @@ impl GLShader {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn string_fragment_get_default<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
version: GLSLVersion,
|
||||
|
@ -385,8 +384,8 @@ impl GLShader {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub fn string_get_highest_precision<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
version: GLSLVersion,
|
||||
|
|
|
@ -10,7 +10,6 @@ use glib::signal::connect_raw;
|
|||
use glib::signal::SignalHandlerId;
|
||||
use glib::translate::*;
|
||||
use glib::StaticType;
|
||||
use glib::Value;
|
||||
use std::boxed::Box as Box_;
|
||||
use std::mem::transmute;
|
||||
|
||||
|
@ -87,7 +86,7 @@ impl GLViewConvert {
|
|||
|
||||
pub fn get_property_downmix_mode(&self) -> GLStereoDownmix {
|
||||
unsafe {
|
||||
let mut value = Value::from_type(<GLStereoDownmix as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(<GLStereoDownmix as StaticType>::static_type());
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"downmix-mode\0".as_ptr() as *const _,
|
||||
|
@ -105,15 +104,16 @@ impl GLViewConvert {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"downmix-mode\0".as_ptr() as *const _,
|
||||
Value::from(&downmix_mode).to_glib_none().0,
|
||||
glib::Value::from(&downmix_mode).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_input_flags_override(&self) -> gst_video::VideoMultiviewFlags {
|
||||
unsafe {
|
||||
let mut value =
|
||||
Value::from_type(<gst_video::VideoMultiviewFlags as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(
|
||||
<gst_video::VideoMultiviewFlags as StaticType>::static_type(),
|
||||
);
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"input-flags-override\0".as_ptr() as *const _,
|
||||
|
@ -134,15 +134,16 @@ impl GLViewConvert {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"input-flags-override\0".as_ptr() as *const _,
|
||||
Value::from(&input_flags_override).to_glib_none().0,
|
||||
glib::Value::from(&input_flags_override).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_input_mode_override(&self) -> gst_video::VideoMultiviewMode {
|
||||
unsafe {
|
||||
let mut value =
|
||||
Value::from_type(<gst_video::VideoMultiviewMode as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(
|
||||
<gst_video::VideoMultiviewMode as StaticType>::static_type(),
|
||||
);
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"input-mode-override\0".as_ptr() as *const _,
|
||||
|
@ -163,15 +164,16 @@ impl GLViewConvert {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"input-mode-override\0".as_ptr() as *const _,
|
||||
Value::from(&input_mode_override).to_glib_none().0,
|
||||
glib::Value::from(&input_mode_override).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_output_flags_override(&self) -> gst_video::VideoMultiviewFlags {
|
||||
unsafe {
|
||||
let mut value =
|
||||
Value::from_type(<gst_video::VideoMultiviewFlags as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(
|
||||
<gst_video::VideoMultiviewFlags as StaticType>::static_type(),
|
||||
);
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"output-flags-override\0".as_ptr() as *const _,
|
||||
|
@ -192,15 +194,16 @@ impl GLViewConvert {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"output-flags-override\0".as_ptr() as *const _,
|
||||
Value::from(&output_flags_override).to_glib_none().0,
|
||||
glib::Value::from(&output_flags_override).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_property_output_mode_override(&self) -> gst_video::VideoMultiviewMode {
|
||||
unsafe {
|
||||
let mut value =
|
||||
Value::from_type(<gst_video::VideoMultiviewMode as StaticType>::static_type());
|
||||
let mut value = glib::Value::from_type(
|
||||
<gst_video::VideoMultiviewMode as StaticType>::static_type(),
|
||||
);
|
||||
glib::gobject_ffi::g_object_get_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"output-mode-override\0".as_ptr() as *const _,
|
||||
|
@ -221,7 +224,7 @@ impl GLViewConvert {
|
|||
glib::gobject_ffi::g_object_set_property(
|
||||
self.as_ptr() as *mut glib::gobject_ffi::GObject,
|
||||
b"output-mode-override\0".as_ptr() as *const _,
|
||||
Value::from(&output_mode_override).to_glib_none().0,
|
||||
glib::Value::from(&output_mode_override).to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@ unsafe impl Sync for GLWindow {}
|
|||
pub const NONE_GL_WINDOW: Option<&GLWindow> = None;
|
||||
|
||||
pub trait GLWindowExt: 'static {
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn controls_viewport(&self) -> bool;
|
||||
|
||||
fn draw(&self);
|
||||
|
@ -46,8 +46,8 @@ pub trait GLWindowExt: 'static {
|
|||
|
||||
fn handle_events(&self, handle_events: bool);
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn has_output_surface(&self) -> bool;
|
||||
|
||||
fn queue_resize(&self);
|
||||
|
@ -62,8 +62,8 @@ pub trait GLWindowExt: 'static {
|
|||
|
||||
fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64);
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64);
|
||||
|
||||
fn set_preferred_size(&self, width: i32, height: i32);
|
||||
|
@ -88,8 +88,8 @@ pub trait GLWindowExt: 'static {
|
|||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
@ -97,8 +97,8 @@ pub trait GLWindowExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<GLWindow>> GLWindowExt for O {
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
fn controls_viewport(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_window_controls_viewport(
|
||||
|
@ -145,8 +145,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn has_output_surface(&self) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_window_has_output_surface(
|
||||
|
@ -201,8 +201,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) {
|
||||
unsafe {
|
||||
ffi::gst_gl_window_send_scroll_event(
|
||||
|
@ -322,8 +322,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
mod gl_base_filter;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub use self::gl_base_filter::GLBaseFilterExt;
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub use self::gl_base_filter::{GLBaseFilter, NONE_GL_BASE_FILTER};
|
||||
|
||||
mod gl_color_convert;
|
||||
|
@ -23,25 +23,25 @@ mod gl_display;
|
|||
pub use self::gl_display::GLDisplayExt;
|
||||
pub use self::gl_display::{GLDisplay, NONE_GL_DISPLAY};
|
||||
|
||||
#[cfg(any(feature = "egl", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
|
||||
#[cfg(any(feature = "egl", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
|
||||
mod gl_display_egl;
|
||||
#[cfg(any(feature = "egl", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
|
||||
#[cfg(any(feature = "egl", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
|
||||
pub use self::gl_display_egl::GLDisplayEGL;
|
||||
|
||||
#[cfg(any(feature = "wayland", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
|
||||
#[cfg(any(feature = "wayland", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
|
||||
mod gl_display_wayland;
|
||||
#[cfg(any(feature = "wayland", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
|
||||
#[cfg(any(feature = "wayland", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
|
||||
pub use self::gl_display_wayland::GLDisplayWayland;
|
||||
|
||||
#[cfg(any(feature = "x11", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
|
||||
#[cfg(any(feature = "x11", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
|
||||
mod gl_display_x11;
|
||||
#[cfg(any(feature = "x11", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
|
||||
#[cfg(any(feature = "x11", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
|
||||
pub use self::gl_display_x11::GLDisplayX11;
|
||||
|
||||
mod gl_framebuffer;
|
||||
|
@ -86,8 +86,8 @@ pub use self::flags::GLAPI;
|
|||
|
||||
#[doc(hidden)]
|
||||
pub mod traits {
|
||||
#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
|
||||
#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
pub use super::GLBaseFilterExt;
|
||||
pub use super::GLContextExt;
|
||||
pub use super::GLDisplayExt;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ e941700)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ d2591d00)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue