This commit is contained in:
Guillaume Gomez 2020-11-25 15:53:45 +01:00
parent 2bd095f2f7
commit 28438d245a
214 changed files with 3621 additions and 3621 deletions

View file

@ -20,8 +20,8 @@ glib::glib_wrapper! {
} }
impl AppSink { impl AppSink {
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn get_buffer_list_support(&self) -> bool { pub fn get_buffer_list_support(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_app_sink_get_buffer_list_support( from_glib(ffi::gst_app_sink_get_buffer_list_support(
@ -68,8 +68,8 @@ impl AppSink {
} }
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn set_buffer_list_support(&self, enable_lists: bool) { pub fn set_buffer_list_support(&self, enable_lists: bool) {
unsafe { unsafe {
ffi::gst_app_sink_set_buffer_list_support( ffi::gst_app_sink_set_buffer_list_support(
@ -113,8 +113,8 @@ impl AppSink {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option<gst::Sample> { pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
unsafe { unsafe {
from_glib_full(ffi::gst_app_sink_try_pull_preroll( from_glib_full(ffi::gst_app_sink_try_pull_preroll(
@ -124,8 +124,8 @@ impl AppSink {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option<gst::Sample> { pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
unsafe { unsafe {
from_glib_full(ffi::gst_app_sink_try_pull_sample( from_glib_full(ffi::gst_app_sink_try_pull_sample(

View file

@ -29,8 +29,8 @@ impl AppSrc {
unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) } unsafe { ffi::gst_app_src_get_current_level_bytes(self.to_glib_none().0) }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn get_duration(&self) -> gst::ClockTime { pub fn get_duration(&self) -> gst::ClockTime {
unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) } unsafe { from_glib(ffi::gst_app_src_get_duration(self.to_glib_none().0)) }
} }
@ -61,8 +61,8 @@ impl AppSrc {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn set_duration(&self, duration: gst::ClockTime) { pub fn set_duration(&self, duration: gst::ClockTime) {
unsafe { unsafe {
ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib()); ffi::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib());
@ -143,8 +143,8 @@ impl AppSrc {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn get_property_handle_segment_change(&self) -> bool { pub fn get_property_handle_segment_change(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -160,8 +160,8 @@ impl AppSrc {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) { pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) {
unsafe { unsafe {
glib::gobject_ffi::g_object_set_property( glib::gobject_ffi::g_object_set_property(
@ -425,8 +425,8 @@ impl AppSrc {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn connect_property_duration_notify<F: Fn(&AppSrc) + Send + Sync + 'static>( pub fn connect_property_duration_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -504,8 +504,8 @@ impl AppSrc {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn connect_property_handle_segment_change_notify<F: Fn(&AppSrc) + Send + Sync + 'static>( pub fn connect_property_handle_segment_change_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -47,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_app_1_0] [package.metadata.system-deps.gstreamer_app_1_0]
name = "gstreamer-app-1.0" name = "gstreamer-app-1.0"
version = "1.8" version = "1.8"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use glib_sys as glib; use glib_sys as glib;
use gstreamer_base_sys as gst_base; use gstreamer_base_sys as gst_base;
@ -186,8 +186,8 @@ extern "C" {
// GstAppSink // GstAppSink
//========================================================================= //=========================================================================
pub fn gst_app_sink_get_type() -> GType; pub fn gst_app_sink_get_type() -> GType;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn gst_app_sink_get_buffer_list_support(appsink: *mut GstAppSink) -> gboolean; 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_caps(appsink: *mut GstAppSink) -> *mut gst::GstCaps;
pub fn gst_app_sink_get_drop(appsink: *mut GstAppSink) -> gboolean; 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_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_preroll(appsink: *mut GstAppSink) -> *mut gst::GstSample;
pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample; pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), 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_buffer_list_support(appsink: *mut GstAppSink, enable_lists: gboolean);
pub fn gst_app_sink_set_callbacks( pub fn gst_app_sink_set_callbacks(
appsink: *mut GstAppSink, 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_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_max_buffers(appsink: *mut GstAppSink, max: c_uint);
pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean); pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean);
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_app_sink_try_pull_preroll( pub fn gst_app_sink_try_pull_preroll(
appsink: *mut GstAppSink, appsink: *mut GstAppSink,
timeout: gst::GstClockTime, timeout: gst::GstClockTime,
) -> *mut gst::GstSample; ) -> *mut gst::GstSample;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_app_sink_try_pull_sample( pub fn gst_app_sink_try_pull_sample(
appsink: *mut GstAppSink, appsink: *mut GstAppSink,
timeout: gst::GstClockTime, 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_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_caps(appsrc: *mut GstAppSrc) -> *mut gst::GstCaps;
pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64; pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_app_src_get_duration(appsrc: *mut GstAppSrc) -> gst::GstClockTime; 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_emit_signals(appsrc: *mut GstAppSrc) -> gboolean;
pub fn gst_app_src_get_latency(appsrc: *mut GstAppSrc, min: *mut u64, max: *mut u64); 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, appsrc: *mut GstAppSrc,
buffer: *mut gst::GstBuffer, buffer: *mut gst::GstBuffer,
) -> gst::GstFlowReturn; ) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_app_src_push_buffer_list( pub fn gst_app_src_push_buffer_list(
appsrc: *mut GstAppSrc, appsrc: *mut GstAppSrc,
buffer_list: *mut gst::GstBufferList, buffer_list: *mut gst::GstBufferList,
@ -260,8 +260,8 @@ extern "C" {
notify: glib::GDestroyNotify, notify: glib::GDestroyNotify,
); );
pub fn gst_app_src_set_caps(appsrc: *mut GstAppSrc, caps: *const gst::GstCaps); pub fn gst_app_src_set_caps(appsrc: *mut GstAppSrc, caps: *const gst::GstCaps);
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_app_src_set_duration(appsrc: *mut GstAppSrc, duration: gst::GstClockTime); 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_emit_signals(appsrc: *mut GstAppSrc, emit: gboolean);
pub fn gst_app_src_set_latency(appsrc: *mut GstAppSrc, min: u64, max: u64); pub fn gst_app_src_set_latency(appsrc: *mut GstAppSrc, min: u64, max: u64);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_app_sys::*; use gstreamer_app_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -56,8 +56,8 @@ pub trait AudioDecoderExt: 'static {
fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>);
fn set_drainable(&self, enabled: bool); fn set_drainable(&self, enabled: bool);
@ -80,8 +80,8 @@ pub trait AudioDecoderExt: 'static {
fn set_use_default_pad_acceptcaps(&self, use_: bool); fn set_use_default_pad_acceptcaps(&self, use_: bool);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -228,8 +228,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) {
unsafe { unsafe {
ffi::gst_audio_decoder_set_allocation_caps( ffi::gst_audio_decoder_set_allocation_caps(
@ -315,8 +315,8 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -53,8 +53,8 @@ pub trait AudioEncoderExt: 'static {
fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps; fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>); fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>);
fn set_drainable(&self, enabled: bool); fn set_drainable(&self, enabled: bool);
@ -205,8 +205,8 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) { fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) {
unsafe { unsafe {
ffi::gst_audio_encoder_set_allocation_caps( ffi::gst_audio_encoder_set_allocation_caps(

View file

@ -2,8 +2,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files) // from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT // DO NOT EDIT
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
use glib::translate::*; use glib::translate::*;
glib::glib_wrapper! { glib::glib_wrapper! {
@ -18,8 +18,8 @@ glib::glib_wrapper! {
} }
impl AudioStreamAlign { impl AudioStreamAlign {
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn new( pub fn new(
rate: i32, rate: i32,
alignment_threshold: gst::ClockTime, alignment_threshold: gst::ClockTime,
@ -35,8 +35,8 @@ impl AudioStreamAlign {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn get_alignment_threshold(&self) -> gst::ClockTime { pub fn get_alignment_threshold(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::gst_audio_stream_align_get_alignment_threshold( from_glib(ffi::gst_audio_stream_align_get_alignment_threshold(
@ -45,8 +45,8 @@ impl AudioStreamAlign {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn get_discont_wait(&self) -> gst::ClockTime { pub fn get_discont_wait(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override( from_glib(ffi::gst_audio_stream_align_get_discont_wait(mut_override(
@ -55,14 +55,14 @@ impl AudioStreamAlign {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn get_rate(&self) -> i32 { pub fn get_rate(&self) -> i32 {
unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) } unsafe { ffi::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0)) }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn get_samples_since_discont(&self) -> u64 { pub fn get_samples_since_discont(&self) -> u64 {
unsafe { unsafe {
ffi::gst_audio_stream_align_get_samples_since_discont(mut_override( ffi::gst_audio_stream_align_get_samples_since_discont(mut_override(
@ -71,8 +71,8 @@ impl AudioStreamAlign {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn get_timestamp_at_discont(&self) -> gst::ClockTime { pub fn get_timestamp_at_discont(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont( from_glib(ffi::gst_audio_stream_align_get_timestamp_at_discont(
@ -81,16 +81,16 @@ impl AudioStreamAlign {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn mark_discont(&mut self) { pub fn mark_discont(&mut self) {
unsafe { unsafe {
ffi::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0); ffi::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0);
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) { pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) {
unsafe { unsafe {
ffi::gst_audio_stream_align_set_alignment_threshold( ffi::gst_audio_stream_align_set_alignment_threshold(
@ -100,8 +100,8 @@ impl AudioStreamAlign {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) { pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) {
unsafe { unsafe {
ffi::gst_audio_stream_align_set_discont_wait( ffi::gst_audio_stream_align_set_discont_wait(
@ -111,8 +111,8 @@ impl AudioStreamAlign {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn set_rate(&mut self, rate: i32) { pub fn set_rate(&mut self, rate: i32) {
unsafe { unsafe {
ffi::gst_audio_stream_align_set_rate(self.to_glib_none_mut().0, rate); ffi::gst_audio_stream_align_set_rate(self.to_glib_none_mut().0, rate);

View file

@ -388,14 +388,14 @@ pub enum AudioRingBufferFormatType {
Dts, Dts,
Mpeg2Aac, Mpeg2Aac,
Mpeg4Aac, Mpeg4Aac,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
Mpeg2AacRaw, Mpeg2AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
Mpeg4AacRaw, Mpeg4AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
Flac, Flac,
#[doc(hidden)] #[doc(hidden)]
__Unknown(i32), __Unknown(i32),
@ -419,15 +419,15 @@ impl ToGlib for AudioRingBufferFormatType {
AudioRingBufferFormatType::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS, AudioRingBufferFormatType::Dts => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS,
AudioRingBufferFormatType::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC, AudioRingBufferFormatType::Mpeg2Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC,
AudioRingBufferFormatType::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC, AudioRingBufferFormatType::Mpeg4Aac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
AudioRingBufferFormatType::Mpeg2AacRaw => { AudioRingBufferFormatType::Mpeg2AacRaw => {
ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
AudioRingBufferFormatType::Mpeg4AacRaw => { AudioRingBufferFormatType::Mpeg4AacRaw => {
ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
AudioRingBufferFormatType::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC, AudioRingBufferFormatType::Flac => ffi::GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC,
AudioRingBufferFormatType::__Unknown(value) => value, AudioRingBufferFormatType::__Unknown(value) => value,
} }
@ -451,11 +451,11 @@ impl FromGlib<ffi::GstAudioRingBufferFormatType> for AudioRingBufferFormatType {
9 => AudioRingBufferFormatType::Dts, 9 => AudioRingBufferFormatType::Dts,
10 => AudioRingBufferFormatType::Mpeg2Aac, 10 => AudioRingBufferFormatType::Mpeg2Aac,
11 => AudioRingBufferFormatType::Mpeg4Aac, 11 => AudioRingBufferFormatType::Mpeg4Aac,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
12 => AudioRingBufferFormatType::Mpeg2AacRaw, 12 => AudioRingBufferFormatType::Mpeg2AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
13 => AudioRingBufferFormatType::Mpeg4AacRaw, 13 => AudioRingBufferFormatType::Mpeg4AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
14 => AudioRingBufferFormatType::Flac, 14 => AudioRingBufferFormatType::Flac,
value => AudioRingBufferFormatType::__Unknown(value), value => AudioRingBufferFormatType::__Unknown(value),
} }

View file

@ -28,11 +28,11 @@ mod stream_volume;
pub use self::stream_volume::StreamVolumeExt; pub use self::stream_volume::StreamVolumeExt;
pub use self::stream_volume::{StreamVolume, NONE_STREAM_VOLUME}; pub use self::stream_volume::{StreamVolume, NONE_STREAM_VOLUME};
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
mod audio_stream_align; mod audio_stream_align;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub use self::audio_stream_align::AudioStreamAlign; pub use self::audio_stream_align::AudioStreamAlign;
mod enums; mod enums;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -50,7 +50,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_audio_1_0] [package.metadata.system-deps.gstreamer_audio_1_0]
name = "gstreamer-audio-1.0" name = "gstreamer-audio-1.0"
version = "1.8" version = "1.8"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use glib_sys as glib; use glib_sys as glib;
use gobject_sys as gobject; use gobject_sys as gobject;
@ -1441,22 +1441,22 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioResamplerFilterInterpolation // GstAudioResamplerFilterInterpolation
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType; pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType;
//========================================================================= //=========================================================================
// GstAudioResamplerFilterMode // GstAudioResamplerFilterMode
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_filter_mode_get_type() -> GType; pub fn gst_audio_resampler_filter_mode_get_type() -> GType;
//========================================================================= //=========================================================================
// GstAudioResamplerMethod // GstAudioResamplerMethod
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_method_get_type() -> GType; pub fn gst_audio_resampler_method_get_type() -> GType;
//========================================================================= //=========================================================================
@ -1502,23 +1502,23 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioResamplerFlags // GstAudioResamplerFlags
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_flags_get_type() -> GType; pub fn gst_audio_resampler_flags_get_type() -> GType;
//========================================================================= //=========================================================================
// GstAudioBuffer // GstAudioBuffer
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_map( pub fn gst_audio_buffer_map(
buffer: *mut GstAudioBuffer, buffer: *mut GstAudioBuffer,
info: *const GstAudioInfo, info: *const GstAudioInfo,
gstbuffer: *mut gst::GstBuffer, gstbuffer: *mut gst::GstBuffer,
flags: gst::GstMapFlags, flags: gst::GstMapFlags,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer); pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer);
pub fn gst_audio_buffer_clip( pub fn gst_audio_buffer_clip(
buffer: *mut gst::GstBuffer, buffer: *mut gst::GstBuffer,
@ -1533,8 +1533,8 @@ extern "C" {
from: *const GstAudioChannelPosition, from: *const GstAudioChannelPosition,
to: *const GstAudioChannelPosition, to: *const GstAudioChannelPosition,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_truncate( pub fn gst_audio_buffer_truncate(
buffer: *mut gst::GstBuffer, buffer: *mut gst::GstBuffer,
bpf: c_int, bpf: c_int,
@ -1561,8 +1561,8 @@ extern "C" {
out_channels: c_int, out_channels: c_int,
out_position: *mut GstAudioChannelPosition, out_position: *mut GstAudioChannelPosition,
) -> *mut GstAudioChannelMixer; ) -> *mut GstAudioChannelMixer;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_channel_mixer_new_with_matrix( pub fn gst_audio_channel_mixer_new_with_matrix(
flags: GstAudioChannelMixerFlags, flags: GstAudioChannelMixerFlags,
format: GstAudioFormat, format: GstAudioFormat,
@ -1579,8 +1579,8 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioConverter // GstAudioConverter
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_converter_get_type() -> GType; pub fn gst_audio_converter_get_type() -> GType;
pub fn gst_audio_converter_new( pub fn gst_audio_converter_new(
flags: GstAudioConverterFlags, flags: GstAudioConverterFlags,
@ -1588,8 +1588,8 @@ extern "C" {
out_info: *mut GstAudioInfo, out_info: *mut GstAudioInfo,
config: *mut gst::GstStructure, config: *mut gst::GstStructure,
) -> *mut GstAudioConverter; ) -> *mut GstAudioConverter;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_converter_convert( pub fn gst_audio_converter_convert(
convert: *mut GstAudioConverter, convert: *mut GstAudioConverter,
flags: GstAudioConverterFlags, flags: GstAudioConverterFlags,
@ -1613,8 +1613,8 @@ extern "C" {
convert: *mut GstAudioConverter, convert: *mut GstAudioConverter,
in_frames: size_t, in_frames: size_t,
) -> size_t; ) -> size_t;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean; 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_reset(convert: *mut GstAudioConverter);
pub fn gst_audio_converter_samples( pub fn gst_audio_converter_samples(
@ -1625,8 +1625,8 @@ extern "C" {
out: *mut gpointer, out: *mut gpointer,
out_frames: size_t, out_frames: size_t,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean; pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean;
pub fn gst_audio_converter_update_config( pub fn gst_audio_converter_update_config(
convert: *mut GstAudioConverter, convert: *mut GstAudioConverter,
@ -1681,8 +1681,8 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioMeta // GstAudioMeta
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo; pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo;
//========================================================================= //=========================================================================
@ -1708,26 +1708,26 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioResampler // GstAudioResampler
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_free(resampler: *mut GstAudioResampler); pub fn gst_audio_resampler_free(resampler: *mut GstAudioResampler);
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_get_in_frames( pub fn gst_audio_resampler_get_in_frames(
resampler: *mut GstAudioResampler, resampler: *mut GstAudioResampler,
out_frames: size_t, out_frames: size_t,
) -> size_t; ) -> size_t;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_get_max_latency(resampler: *mut GstAudioResampler) -> size_t; pub fn gst_audio_resampler_get_max_latency(resampler: *mut GstAudioResampler) -> size_t;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_get_out_frames( pub fn gst_audio_resampler_get_out_frames(
resampler: *mut GstAudioResampler, resampler: *mut GstAudioResampler,
in_frames: size_t, in_frames: size_t,
) -> size_t; ) -> size_t;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_resample( pub fn gst_audio_resampler_resample(
resampler: *mut GstAudioResampler, resampler: *mut GstAudioResampler,
in_: *mut gpointer, in_: *mut gpointer,
@ -1735,19 +1735,19 @@ extern "C" {
out: *mut gpointer, out: *mut gpointer,
out_frames: size_t, out_frames: size_t,
); );
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler); pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler);
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_update( pub fn gst_audio_resampler_update(
resampler: *mut GstAudioResampler, resampler: *mut GstAudioResampler,
in_rate: c_int, in_rate: c_int,
out_rate: c_int, out_rate: c_int,
options: *mut gst::GstStructure, options: *mut gst::GstStructure,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_new( pub fn gst_audio_resampler_new(
method: GstAudioResamplerMethod, method: GstAudioResamplerMethod,
flags: GstAudioResamplerFlags, flags: GstAudioResamplerFlags,
@ -1757,8 +1757,8 @@ extern "C" {
out_rate: c_int, out_rate: c_int,
options: *mut gst::GstStructure, options: *mut gst::GstStructure,
) -> *mut GstAudioResampler; ) -> *mut GstAudioResampler;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_options_set_quality( pub fn gst_audio_resampler_options_set_quality(
method: GstAudioResamplerMethod, method: GstAudioResamplerMethod,
quality: c_uint, quality: c_uint,
@ -1770,51 +1770,51 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioStreamAlign // GstAudioStreamAlign
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_type() -> GType; pub fn gst_audio_stream_align_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_new( pub fn gst_audio_stream_align_new(
rate: c_int, rate: c_int,
alignment_threshold: gst::GstClockTime, alignment_threshold: gst::GstClockTime,
discont_wait: gst::GstClockTime, discont_wait: gst::GstClockTime,
) -> *mut GstAudioStreamAlign; ) -> *mut GstAudioStreamAlign;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_copy( pub fn gst_audio_stream_align_copy(
align: *const GstAudioStreamAlign, align: *const GstAudioStreamAlign,
) -> *mut GstAudioStreamAlign; ) -> *mut GstAudioStreamAlign;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_free(align: *mut GstAudioStreamAlign); pub fn gst_audio_stream_align_free(align: *mut GstAudioStreamAlign);
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_alignment_threshold( pub fn gst_audio_stream_align_get_alignment_threshold(
align: *mut GstAudioStreamAlign, align: *mut GstAudioStreamAlign,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_discont_wait( pub fn gst_audio_stream_align_get_discont_wait(
align: *mut GstAudioStreamAlign, align: *mut GstAudioStreamAlign,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int; pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign) pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign)
-> u64; -> u64;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_timestamp_at_discont( pub fn gst_audio_stream_align_get_timestamp_at_discont(
align: *mut GstAudioStreamAlign, align: *mut GstAudioStreamAlign,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_mark_discont(align: *mut GstAudioStreamAlign); pub fn gst_audio_stream_align_mark_discont(align: *mut GstAudioStreamAlign);
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_process( pub fn gst_audio_stream_align_process(
align: *mut GstAudioStreamAlign, align: *mut GstAudioStreamAlign,
discont: gboolean, discont: gboolean,
@ -1824,30 +1824,30 @@ extern "C" {
out_duration: *mut gst::GstClockTime, out_duration: *mut gst::GstClockTime,
out_sample_position: *mut u64, out_sample_position: *mut u64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_set_alignment_threshold( pub fn gst_audio_stream_align_set_alignment_threshold(
align: *mut GstAudioStreamAlign, align: *mut GstAudioStreamAlign,
alignment_threshold: gst::GstClockTime, alignment_threshold: gst::GstClockTime,
); );
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_set_discont_wait( pub fn gst_audio_stream_align_set_discont_wait(
align: *mut GstAudioStreamAlign, align: *mut GstAudioStreamAlign,
discont_wait: gst::GstClockTime, discont_wait: gst::GstClockTime,
); );
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_set_rate(align: *mut GstAudioStreamAlign, rate: c_int); pub fn gst_audio_stream_align_set_rate(align: *mut GstAudioStreamAlign, rate: c_int);
//========================================================================= //=========================================================================
// GstAudioAggregator // GstAudioAggregator
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_get_type() -> GType; pub fn gst_audio_aggregator_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_set_sink_caps( pub fn gst_audio_aggregator_set_sink_caps(
aagg: *mut GstAudioAggregator, aagg: *mut GstAudioAggregator,
pad: *mut GstAudioAggregatorPad, pad: *mut GstAudioAggregatorPad,
@ -1857,15 +1857,15 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAudioAggregatorConvertPad // GstAudioAggregatorConvertPad
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_convert_pad_get_type() -> GType; pub fn gst_audio_aggregator_convert_pad_get_type() -> GType;
//========================================================================= //=========================================================================
// GstAudioAggregatorPad // GstAudioAggregatorPad
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_pad_get_type() -> GType; pub fn gst_audio_aggregator_pad_get_type() -> GType;
//========================================================================= //=========================================================================
@ -1966,8 +1966,8 @@ extern "C" {
buf: *mut gst::GstBuffer, buf: *mut gst::GstBuffer,
frames: c_int, frames: c_int,
) -> gst::GstFlowReturn; ) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_decoder_finish_subframe( pub fn gst_audio_decoder_finish_subframe(
dec: *mut GstAudioDecoder, dec: *mut GstAudioDecoder,
buf: *mut gst::GstBuffer, buf: *mut gst::GstBuffer,
@ -2008,8 +2008,8 @@ extern "C" {
caps: *mut gst::GstCaps, caps: *mut gst::GstCaps,
filter: *mut gst::GstCaps, filter: *mut gst::GstCaps,
) -> *mut gst::GstCaps; ) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_decoder_set_allocation_caps( pub fn gst_audio_decoder_set_allocation_caps(
dec: *mut GstAudioDecoder, dec: *mut GstAudioDecoder,
allocation_caps: *mut gst::GstCaps, 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_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_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime);
pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean); pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_decoder_set_output_caps( pub fn gst_audio_decoder_set_output_caps(
dec: *mut GstAudioDecoder, dec: *mut GstAudioDecoder,
caps: *mut gst::GstCaps, caps: *mut gst::GstCaps,
@ -2087,8 +2087,8 @@ extern "C" {
caps: *mut gst::GstCaps, caps: *mut gst::GstCaps,
filter: *mut gst::GstCaps, filter: *mut gst::GstCaps,
) -> *mut gst::GstCaps; ) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_encoder_set_allocation_caps( pub fn gst_audio_encoder_set_allocation_caps(
enc: *mut GstAudioEncoder, enc: *mut GstAudioEncoder,
allocation_caps: *mut gst::GstCaps, allocation_caps: *mut gst::GstCaps,
@ -2184,8 +2184,8 @@ extern "C" {
cb: GstAudioRingBufferCallback, cb: GstAudioRingBufferCallback,
user_data: gpointer, user_data: gpointer,
); );
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn gst_audio_ring_buffer_set_callback_full( pub fn gst_audio_ring_buffer_set_callback_full(
buf: *mut GstAudioRingBuffer, buf: *mut GstAudioRingBuffer,
cb: GstAudioRingBufferCallback, cb: GstAudioRingBufferCallback,
@ -2252,8 +2252,8 @@ extern "C" {
force_order: gboolean, force_order: gboolean,
channel_mask: *mut u64, channel_mask: *mut u64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_audio_channel_positions_to_string( pub fn gst_audio_channel_positions_to_string(
position: *const GstAudioChannelPosition, position: *const GstAudioChannelPosition,
channels: c_int, channels: c_int,
@ -2270,8 +2270,8 @@ extern "C" {
pub fn gst_audio_clipping_meta_api_get_type() -> GType; pub fn gst_audio_clipping_meta_api_get_type() -> GType;
pub fn gst_audio_downmix_meta_api_get_type() -> GType; pub fn gst_audio_downmix_meta_api_get_type() -> GType;
pub fn gst_audio_format_info_get_type() -> GType; pub fn gst_audio_format_info_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat; pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat;
pub fn gst_audio_get_channel_reorder_map( pub fn gst_audio_get_channel_reorder_map(
channels: c_int, channels: c_int,
@ -2288,15 +2288,15 @@ extern "C" {
spec: *const GstAudioRingBufferSpec, spec: *const GstAudioRingBufferSpec,
endianness: c_int, endianness: c_int,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_audio_make_raw_caps( pub fn gst_audio_make_raw_caps(
formats: *const GstAudioFormat, formats: *const GstAudioFormat,
len: c_uint, len: c_uint,
layout: GstAudioLayout, layout: GstAudioLayout,
) -> *mut gst::GstCaps; ) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_audio_meta_api_get_type() -> GType; pub fn gst_audio_meta_api_get_type() -> GType;
pub fn gst_audio_reorder_channels( pub fn gst_audio_reorder_channels(
data: gpointer, data: gpointer,
@ -2320,8 +2320,8 @@ extern "C" {
to_channels: c_int, to_channels: c_int,
matrix: *mut *const c_float, matrix: *mut *const c_float,
) -> *mut GstAudioDownmixMeta; ) -> *mut GstAudioDownmixMeta;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_buffer_add_audio_meta( pub fn gst_buffer_add_audio_meta(
buffer: *mut gst::GstBuffer, buffer: *mut gst::GstBuffer,
info: *const GstAudioInfo, info: *const GstAudioInfo,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_audio_sys::*; use gstreamer_audio_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -45,14 +45,14 @@ impl Adapter {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn distance_from_discont(&self) -> u64 { pub fn distance_from_discont(&self) -> u64 {
unsafe { ffi::gst_adapter_distance_from_discont(self.to_glib_none().0) } unsafe { ffi::gst_adapter_distance_from_discont(self.to_glib_none().0) }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn dts_at_discont(&self) -> gst::ClockTime { pub fn dts_at_discont(&self) -> gst::ClockTime {
unsafe { from_glib(ffi::gst_adapter_dts_at_discont(self.to_glib_none().0)) } 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", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn offset_at_discont(&self) -> u64 { pub fn offset_at_discont(&self) -> u64 {
unsafe { ffi::gst_adapter_offset_at_discont(self.to_glib_none().0) } unsafe { ffi::gst_adapter_offset_at_discont(self.to_glib_none().0) }
} }
@ -158,8 +158,8 @@ impl Adapter {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn prev_offset(&self) -> (u64, u64) { pub fn prev_offset(&self) -> (u64, u64) {
unsafe { unsafe {
let mut distance = mem::MaybeUninit::uninit(); let mut distance = mem::MaybeUninit::uninit();
@ -194,8 +194,8 @@ impl Adapter {
} }
} }
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn pts_at_discont(&self) -> gst::ClockTime { pub fn pts_at_discont(&self) -> gst::ClockTime {
unsafe { from_glib(ffi::gst_adapter_pts_at_discont(self.to_glib_none().0)) } unsafe { from_glib(ffi::gst_adapter_pts_at_discont(self.to_glib_none().0)) }
} }

View file

@ -2,11 +2,11 @@
// from gir-files (https://github.com/gtk-rs/gir-files) // from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT // DO NOT EDIT
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::AggregatorPad; use crate::AggregatorPad;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::AggregatorStartTimeSelection; use crate::AggregatorStartTimeSelection;
use glib::object::Cast; use glib::object::Cast;
use glib::object::IsA; use glib::object::IsA;
@ -32,75 +32,75 @@ unsafe impl Sync for Aggregator {}
pub const NONE_AGGREGATOR: Option<&Aggregator> = None; pub const NONE_AGGREGATOR: Option<&Aggregator> = None;
pub trait AggregatorExt: 'static { pub trait AggregatorExt: 'static {
//#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams); //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams);
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn get_buffer_pool(&self) -> Option<gst::BufferPool>; fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn get_latency(&self) -> gst::ClockTime; fn get_latency(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool; fn negotiate(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample>; fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample>;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime); fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime);
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn set_src_caps(&self, caps: &gst::Caps); fn set_src_caps(&self, caps: &gst::Caps);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn simple_get_next_time(&self) -> gst::ClockTime; fn simple_get_next_time(&self) -> gst::ClockTime;
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn update_segment(&self, segment: /*Ignored*/&gst::Segment); //fn update_segment(&self, segment: /*Ignored*/&gst::Segment);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_emit_signals(&self) -> bool; fn get_property_emit_signals(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_property_emit_signals(&self, emit_signals: bool); fn set_property_emit_signals(&self, emit_signals: bool);
fn get_property_start_time(&self) -> u64; fn get_property_start_time(&self) -> u64;
fn set_property_start_time(&self, start_time: u64); fn set_property_start_time(&self, start_time: u64);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection; fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection); fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection);
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId; //fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -111,8 +111,8 @@ pub trait AggregatorExt: 'static {
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -120,14 +120,14 @@ pub trait AggregatorExt: 'static {
} }
impl<O: IsA<Aggregator>> AggregatorExt for O { impl<O: IsA<Aggregator>> AggregatorExt for O {
//#[cfg(any(feature = "v1_14", feature = "dox"))] //#[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) { //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) {
// unsafe { TODO: call ffi:gst_aggregator_get_allocator() } // unsafe { TODO: call ffi:gst_aggregator_get_allocator() }
//} //}
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn get_buffer_pool(&self) -> Option<gst::BufferPool> { fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
unsafe { unsafe {
from_glib_full(ffi::gst_aggregator_get_buffer_pool( from_glib_full(ffi::gst_aggregator_get_buffer_pool(
@ -136,8 +136,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn get_latency(&self) -> gst::ClockTime { fn get_latency(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::gst_aggregator_get_latency( from_glib(ffi::gst_aggregator_get_latency(
@ -146,8 +146,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool { fn negotiate(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_aggregator_negotiate( from_glib(ffi::gst_aggregator_negotiate(
@ -156,8 +156,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample> { fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample> {
unsafe { unsafe {
from_glib_full(ffi::gst_aggregator_peek_next_sample( from_glib_full(ffi::gst_aggregator_peek_next_sample(
@ -167,8 +167,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime) { fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime) {
unsafe { unsafe {
ffi::gst_aggregator_set_latency( ffi::gst_aggregator_set_latency(
@ -179,16 +179,16 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn set_src_caps(&self, caps: &gst::Caps) { fn set_src_caps(&self, caps: &gst::Caps) {
unsafe { unsafe {
ffi::gst_aggregator_set_src_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0); ffi::gst_aggregator_set_src_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0);
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn simple_get_next_time(&self) -> gst::ClockTime { fn simple_get_next_time(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::gst_aggregator_simple_get_next_time( from_glib(ffi::gst_aggregator_simple_get_next_time(
@ -197,14 +197,14 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn update_segment(&self, segment: /*Ignored*/&gst::Segment) { //fn update_segment(&self, segment: /*Ignored*/&gst::Segment) {
// unsafe { TODO: call ffi:gst_aggregator_update_segment() } // unsafe { TODO: call ffi:gst_aggregator_update_segment() }
//} //}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_emit_signals(&self) -> bool { fn get_property_emit_signals(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -220,8 +220,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_property_emit_signals(&self, emit_signals: bool) { fn set_property_emit_signals(&self, emit_signals: bool) {
unsafe { unsafe {
glib::gobject_ffi::g_object_set_property( glib::gobject_ffi::g_object_set_property(
@ -257,8 +257,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection { fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection {
unsafe { unsafe {
let mut value = let mut value =
@ -275,8 +275,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_property_start_time_selection( fn set_property_start_time_selection(
&self, &self,
start_time_selection: AggregatorStartTimeSelection, start_time_selection: AggregatorStartTimeSelection,
@ -290,14 +290,14 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId { //fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored segment: Gst.Segment // Ignored segment: Gst.Segment
//} //}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -325,8 +325,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -381,8 +381,8 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -7,11 +7,11 @@ use glib::object::IsA;
use glib::signal::connect_raw; use glib::signal::connect_raw;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::translate::*; use glib::translate::*;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use glib::StaticType; use glib::StaticType;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use glib::Value; use glib::Value;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
use std::mem::transmute; use std::mem::transmute;
@ -30,32 +30,32 @@ unsafe impl Sync for AggregatorPad {}
pub const NONE_AGGREGATOR_PAD: Option<&AggregatorPad> = None; pub const NONE_AGGREGATOR_PAD: Option<&AggregatorPad> = None;
pub trait AggregatorPadExt: 'static { pub trait AggregatorPadExt: 'static {
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn drop_buffer(&self) -> bool; fn drop_buffer(&self) -> bool;
#[cfg(any(feature = "v1_14_1", feature = "dox"))] #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))]
fn has_buffer(&self) -> bool; fn has_buffer(&self) -> bool;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn is_eos(&self) -> bool; fn is_eos(&self) -> bool;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn peek_buffer(&self) -> Option<gst::Buffer>; fn peek_buffer(&self) -> Option<gst::Buffer>;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn pop_buffer(&self) -> Option<gst::Buffer>; fn pop_buffer(&self) -> Option<gst::Buffer>;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn get_property_emit_signals(&self) -> bool; fn get_property_emit_signals(&self) -> bool;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn set_property_emit_signals(&self, emit_signals: bool); fn set_property_emit_signals(&self, emit_signals: bool);
fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>( fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>(
@ -63,8 +63,8 @@ pub trait AggregatorPadExt: 'static {
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -72,8 +72,8 @@ pub trait AggregatorPadExt: 'static {
} }
impl<O: IsA<AggregatorPad>> AggregatorPadExt for O { impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn drop_buffer(&self) -> bool { fn drop_buffer(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_aggregator_pad_drop_buffer( from_glib(ffi::gst_aggregator_pad_drop_buffer(
@ -82,8 +82,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
} }
} }
#[cfg(any(feature = "v1_14_1", feature = "dox"))] #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))]
fn has_buffer(&self) -> bool { fn has_buffer(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_aggregator_pad_has_buffer( from_glib(ffi::gst_aggregator_pad_has_buffer(
@ -92,8 +92,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn is_eos(&self) -> bool { fn is_eos(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_aggregator_pad_is_eos( from_glib(ffi::gst_aggregator_pad_is_eos(
@ -102,8 +102,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn peek_buffer(&self) -> Option<gst::Buffer> { fn peek_buffer(&self) -> Option<gst::Buffer> {
unsafe { unsafe {
from_glib_full(ffi::gst_aggregator_pad_peek_buffer( from_glib_full(ffi::gst_aggregator_pad_peek_buffer(
@ -112,8 +112,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
} }
} }
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
fn pop_buffer(&self) -> Option<gst::Buffer> { fn pop_buffer(&self) -> Option<gst::Buffer> {
unsafe { unsafe {
from_glib_full(ffi::gst_aggregator_pad_pop_buffer( from_glib_full(ffi::gst_aggregator_pad_pop_buffer(
@ -122,8 +122,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn get_property_emit_signals(&self) -> bool { fn get_property_emit_signals(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -139,8 +139,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn set_property_emit_signals(&self, emit_signals: bool) { fn set_property_emit_signals(&self, emit_signals: bool) {
unsafe { unsafe {
glib::gobject_ffi::g_object_set_property( glib::gobject_ffi::g_object_set_property(
@ -184,8 +184,8 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -28,8 +28,8 @@ pub const NONE_BASE_PARSE: Option<&BaseParse> = None;
pub trait BaseParseExt: 'static { pub trait BaseParseExt: 'static {
fn add_index_entry(&self, offset: u64, ts: gst::ClockTime, key: bool, force: bool) -> bool; fn add_index_entry(&self, offset: u64, ts: gst::ClockTime, key: bool, force: bool) -> bool;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
fn drain(&self); fn drain(&self);
fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode); fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode);
@ -75,8 +75,8 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
} }
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
fn drain(&self) { fn drain(&self) {
unsafe { unsafe {
ffi::gst_base_parse_drain(self.as_ref().to_glib_none().0); ffi::gst_base_parse_drain(self.as_ref().to_glib_none().0);

View file

@ -30,8 +30,8 @@ pub trait BaseSinkExt: 'static {
fn get_blocksize(&self) -> u32; fn get_blocksize(&self) -> u32;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
fn get_drop_out_of_segment(&self) -> bool; fn get_drop_out_of_segment(&self) -> bool;
fn get_last_sample(&self) -> Option<gst::Sample>; fn get_last_sample(&self) -> Option<gst::Sample>;
@ -42,14 +42,14 @@ pub trait BaseSinkExt: 'static {
fn get_max_lateness(&self) -> i64; fn get_max_lateness(&self) -> i64;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn get_processing_deadline(&self) -> gst::ClockTime; fn get_processing_deadline(&self) -> gst::ClockTime;
fn get_render_delay(&self) -> gst::ClockTime; fn get_render_delay(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_stats(&self) -> Option<gst::Structure>; fn get_stats(&self) -> Option<gst::Structure>;
fn get_sync(&self) -> bool; fn get_sync(&self) -> bool;
@ -68,8 +68,8 @@ pub trait BaseSinkExt: 'static {
fn set_blocksize(&self, blocksize: u32); fn set_blocksize(&self, blocksize: u32);
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
fn set_drop_out_of_segment(&self, drop_out_of_segment: bool); fn set_drop_out_of_segment(&self, drop_out_of_segment: bool);
fn set_last_sample_enabled(&self, enabled: bool); fn set_last_sample_enabled(&self, enabled: bool);
@ -78,8 +78,8 @@ pub trait BaseSinkExt: 'static {
fn set_max_lateness(&self, max_lateness: i64); fn set_max_lateness(&self, max_lateness: i64);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime); fn set_processing_deadline(&self, processing_deadline: gst::ClockTime);
fn set_qos_enabled(&self, enabled: bool); fn set_qos_enabled(&self, enabled: bool);
@ -134,8 +134,8 @@ pub trait BaseSinkExt: 'static {
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -151,8 +151,8 @@ pub trait BaseSinkExt: 'static {
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -183,8 +183,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) } unsafe { ffi::gst_base_sink_get_blocksize(self.as_ref().to_glib_none().0) }
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
fn get_drop_out_of_segment(&self) -> bool { fn get_drop_out_of_segment(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_base_sink_get_drop_out_of_segment( from_glib(ffi::gst_base_sink_get_drop_out_of_segment(
@ -217,8 +217,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) } unsafe { ffi::gst_base_sink_get_max_lateness(self.as_ref().to_glib_none().0) }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn get_processing_deadline(&self) -> gst::ClockTime { fn get_processing_deadline(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::gst_base_sink_get_processing_deadline( from_glib(ffi::gst_base_sink_get_processing_deadline(
@ -235,8 +235,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_stats(&self) -> Option<gst::Structure> { fn get_stats(&self) -> Option<gst::Structure> {
unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) } unsafe { from_glib_full(ffi::gst_base_sink_get_stats(self.as_ref().to_glib_none().0)) }
} }
@ -289,8 +289,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
} }
} }
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) { fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) {
unsafe { unsafe {
ffi::gst_base_sink_set_drop_out_of_segment( ffi::gst_base_sink_set_drop_out_of_segment(
@ -321,8 +321,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) { fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) {
unsafe { unsafe {
ffi::gst_base_sink_set_processing_deadline( ffi::gst_base_sink_set_processing_deadline(
@ -602,8 +602,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -688,8 +688,8 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>( fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -38,8 +38,8 @@ pub trait BaseSrcExt: 'static {
fn is_live(&self) -> bool; fn is_live(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool; fn negotiate(&self) -> bool;
#[cfg_attr(feature = "v1_18", deprecated)] #[cfg_attr(feature = "v1_18", deprecated)]
@ -123,8 +123,8 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
unsafe { from_glib(ffi::gst_base_src_is_live(self.as_ref().to_glib_none().0)) } unsafe { from_glib(ffi::gst_base_src_is_live(self.as_ref().to_glib_none().0)) }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool { fn negotiate(&self) -> bool {
unsafe { from_glib(ffi::gst_base_src_negotiate(self.as_ref().to_glib_none().0)) } unsafe { from_glib(ffi::gst_base_src_negotiate(self.as_ref().to_glib_none().0)) }
} }

View file

@ -36,8 +36,8 @@ pub trait BaseTransformExt: 'static {
fn is_qos_enabled(&self) -> bool; fn is_qos_enabled(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn reconfigure(&self) -> bool; fn reconfigure(&self) -> bool;
fn reconfigure_sink(&self); fn reconfigure_sink(&self);
@ -105,8 +105,8 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn reconfigure(&self) -> bool { fn reconfigure(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_base_transform_reconfigure( from_glib(ffi::gst_base_transform_reconfigure(

View file

@ -10,8 +10,8 @@ use glib::value::Value;
use glib::StaticType; use glib::StaticType;
use glib::Type; use glib::Type;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
pub enum AggregatorStartTimeSelection { pub enum AggregatorStartTimeSelection {
@ -22,8 +22,8 @@ pub enum AggregatorStartTimeSelection {
__Unknown(i32), __Unknown(i32),
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
#[doc(hidden)] #[doc(hidden)]
impl ToGlib for AggregatorStartTimeSelection { impl ToGlib for AggregatorStartTimeSelection {
type GlibType = ffi::GstAggregatorStartTimeSelection; type GlibType = ffi::GstAggregatorStartTimeSelection;
@ -38,8 +38,8 @@ impl ToGlib for AggregatorStartTimeSelection {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
#[doc(hidden)] #[doc(hidden)]
impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection { impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection {
fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self { fn from_glib(value: ffi::GstAggregatorStartTimeSelection) -> Self {
@ -53,32 +53,32 @@ impl FromGlib<ffi::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelec
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
impl StaticType for AggregatorStartTimeSelection { impl StaticType for AggregatorStartTimeSelection {
fn static_type() -> Type { fn static_type() -> Type {
unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) } unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) }
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection { impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection {
unsafe fn from_value_optional(value: &Value) -> Option<Self> { unsafe fn from_value_optional(value: &Value) -> Option<Self> {
Some(FromValue::from_value(value)) Some(FromValue::from_value(value))
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
impl<'a> FromValue<'a> for AggregatorStartTimeSelection { impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
unsafe fn from_value(value: &Value) -> Self { unsafe fn from_value(value: &Value) -> Self {
from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0)) from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
impl SetValue for AggregatorStartTimeSelection { impl SetValue for AggregatorStartTimeSelection {
unsafe fn set_value(value: &mut Value, this: &Self) { unsafe fn set_value(value: &mut Value, this: &Self) {
glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())

View file

@ -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() } // unsafe { TODO: call ffi:gst_type_find_helper_get_range() }
//} //}
//#[cfg(any(feature = "v1_14_3", feature = "dox"))] //#[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] //#[cfg_attr(all(not(doctest), doc), 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) { //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() } // unsafe { TODO: call ffi:gst_type_find_helper_get_range_full() }
//} //}

View file

@ -5,24 +5,24 @@
mod adapter; mod adapter;
pub use self::adapter::Adapter; pub use self::adapter::Adapter;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
mod aggregator; mod aggregator;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub use self::aggregator::AggregatorExt; pub use self::aggregator::AggregatorExt;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub use self::aggregator::{Aggregator, NONE_AGGREGATOR}; pub use self::aggregator::{Aggregator, NONE_AGGREGATOR};
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
mod aggregator_pad; mod aggregator_pad;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub use self::aggregator_pad::AggregatorPadExt; pub use self::aggregator_pad::AggregatorPadExt;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub use self::aggregator_pad::{AggregatorPad, NONE_AGGREGATOR_PAD}; pub use self::aggregator_pad::{AggregatorPad, NONE_AGGREGATOR_PAD};
mod base_parse; mod base_parse;
@ -45,8 +45,8 @@ mod push_src;
pub use self::push_src::{PushSrc, NONE_PUSH_SRC}; pub use self::push_src::{PushSrc, NONE_PUSH_SRC};
mod enums; mod enums;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub use self::enums::AggregatorStartTimeSelection; pub use self::enums::AggregatorStartTimeSelection;
mod flags; mod flags;
@ -56,11 +56,11 @@ pub mod functions;
#[doc(hidden)] #[doc(hidden)]
pub mod traits { pub mod traits {
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub use super::AggregatorExt; pub use super::AggregatorExt;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub use super::AggregatorPadExt; pub use super::AggregatorPadExt;
pub use super::BaseParseExt; pub use super::BaseParseExt;
pub use super::BaseSinkExt; pub use super::BaseSinkExt;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -51,7 +51,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_base_1_0] [package.metadata.system-deps.gstreamer_base_1_0]
name = "gstreamer-base-1.0" name = "gstreamer-base-1.0"
version = "1.8" version = "1.8"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use glib_sys as glib; use glib_sys as glib;
use gobject_sys as gobject; use gobject_sys as gobject;
@ -1216,8 +1216,8 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAggregatorStartTimeSelection // GstAggregatorStartTimeSelection
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_start_time_selection_get_type() -> GType; pub fn gst_aggregator_start_time_selection_get_type() -> GType;
//========================================================================= //=========================================================================
@ -1229,8 +1229,8 @@ extern "C" {
flags: GstBaseParseFrameFlags, flags: GstBaseParseFrameFlags,
overhead: c_int, overhead: c_int,
) -> *mut GstBaseParseFrame; ) -> *mut GstBaseParseFrame;
#[cfg(any(feature = "v1_12_1", feature = "dox"))] #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))]
pub fn gst_base_parse_frame_copy(frame: *mut GstBaseParseFrame) -> *mut GstBaseParseFrame; 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_free(frame: *mut GstBaseParseFrame);
pub fn gst_base_parse_frame_init(frame: *mut GstBaseParseFrame); pub fn gst_base_parse_frame_init(frame: *mut GstBaseParseFrame);
@ -1291,101 +1291,101 @@ extern "C" {
//========================================================================= //=========================================================================
// GstBitWriter // GstBitWriter
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean; pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter); pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer; pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8; pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8; pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint; pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint; pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter); pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init_with_data( pub fn gst_bit_writer_init_with_data(
bitwriter: *mut GstBitWriter, bitwriter: *mut GstBitWriter,
data: *mut u8, data: *mut u8,
size: c_uint, size: c_uint,
initialized: gboolean, initialized: gboolean,
); );
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean); pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint16( pub fn gst_bit_writer_put_bits_uint16(
bitwriter: *mut GstBitWriter, bitwriter: *mut GstBitWriter,
value: u16, value: u16,
nbits: c_uint, nbits: c_uint,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint32( pub fn gst_bit_writer_put_bits_uint32(
bitwriter: *mut GstBitWriter, bitwriter: *mut GstBitWriter,
value: u32, value: u32,
nbits: c_uint, nbits: c_uint,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint64( pub fn gst_bit_writer_put_bits_uint64(
bitwriter: *mut GstBitWriter, bitwriter: *mut GstBitWriter,
value: u64, value: u64,
nbits: c_uint, nbits: c_uint,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint8( pub fn gst_bit_writer_put_bits_uint8(
bitwriter: *mut GstBitWriter, bitwriter: *mut GstBitWriter,
value: u8, value: u8,
nbits: c_uint, nbits: c_uint,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bytes( pub fn gst_bit_writer_put_bytes(
bitwriter: *mut GstBitWriter, bitwriter: *mut GstBitWriter,
data: *const u8, data: *const u8,
nbytes: c_uint, nbytes: c_uint,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter); pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter) pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter)
-> *mut gst::GstBuffer; -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8; pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean; pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new() -> *mut GstBitWriter; pub fn gst_bit_writer_new() -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new_with_data( pub fn gst_bit_writer_new_with_data(
data: *mut u8, data: *mut u8,
size: c_uint, size: c_uint,
initialized: gboolean, initialized: gboolean,
) -> *mut GstBitWriter; ) -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter; 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_add_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad);
pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner);
pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner);
#[cfg(any(feature = "v1_12_1", feature = "dox"))] #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))]
pub fn gst_flow_combiner_ref(combiner: *mut GstFlowCombiner) -> *mut GstFlowCombiner; 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_remove_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad);
pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner);
#[cfg(any(feature = "v1_12_1", feature = "dox"))] #[cfg(any(feature = "v1_12_1", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12_1")))]
pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner); pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner);
pub fn gst_flow_combiner_update_flow( pub fn gst_flow_combiner_update_flow(
combiner: *mut GstFlowCombiner, combiner: *mut GstFlowCombiner,
@ -1637,8 +1637,8 @@ extern "C" {
//========================================================================= //=========================================================================
// GstQueueArray // GstQueueArray
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_clear(array: *mut GstQueueArray); 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_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
pub fn gst_queue_array_drop_struct( 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_is_empty(array: *mut GstQueueArray) -> gboolean;
pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer; pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer; pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer; 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(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_pop_head_struct(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_pop_head_struct(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_pop_tail(array: *mut GstQueueArray) -> gpointer; pub fn gst_queue_array_pop_tail(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_pop_tail_struct(array: *mut GstQueueArray) -> gpointer; 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(array: *mut GstQueueArray, data: gpointer);
pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer); pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_set_clear_func( pub fn gst_queue_array_set_clear_func(
array: *mut GstQueueArray, array: *mut GstQueueArray,
clear_func: glib::GDestroyNotify, clear_func: glib::GDestroyNotify,
@ -1704,11 +1704,11 @@ extern "C" {
offset: size_t, offset: size_t,
size: size_t, size: size_t,
) -> *mut glib::GBytes; ) -> *mut glib::GBytes;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_distance_from_discont(adapter: *mut GstAdapter) -> u64; pub fn gst_adapter_distance_from_discont(adapter: *mut GstAdapter) -> u64;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_dts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime; 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_flush(adapter: *mut GstAdapter, flush: size_t);
pub fn gst_adapter_get_buffer(adapter: *mut GstAdapter, nbytes: size_t) -> *mut gst::GstBuffer; pub fn gst_adapter_get_buffer(adapter: *mut GstAdapter, nbytes: size_t) -> *mut gst::GstBuffer;
@ -1737,8 +1737,8 @@ extern "C" {
size: size_t, size: size_t,
value: *mut u32, value: *mut u32,
) -> ssize_t; ) -> ssize_t;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_offset_at_discont(adapter: *mut GstAdapter) -> u64; 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(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
pub fn gst_adapter_prev_dts_at_offset( pub fn gst_adapter_prev_dts_at_offset(
@ -1746,8 +1746,8 @@ extern "C" {
offset: size_t, offset: size_t,
distance: *mut u64, distance: *mut u64,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_prev_offset(adapter: *mut GstAdapter, distance: *mut u64) -> u64; 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(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
pub fn gst_adapter_prev_pts_at_offset( pub fn gst_adapter_prev_pts_at_offset(
@ -1755,8 +1755,8 @@ extern "C" {
offset: size_t, offset: size_t,
distance: *mut u64, distance: *mut u64,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_pts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime; 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_push(adapter: *mut GstAdapter, buf: *mut gst::GstBuffer);
pub fn gst_adapter_take(adapter: *mut GstAdapter, nbytes: size_t) -> gpointer; pub fn gst_adapter_take(adapter: *mut GstAdapter, nbytes: size_t) -> gpointer;
@ -1776,45 +1776,45 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAggregator // GstAggregator
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_type() -> GType; pub fn gst_aggregator_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_finish_buffer( pub fn gst_aggregator_finish_buffer(
aggregator: *mut GstAggregator, aggregator: *mut GstAggregator,
buffer: *mut gst::GstBuffer, buffer: *mut gst::GstBuffer,
) -> gst::GstFlowReturn; ) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_finish_buffer_list( pub fn gst_aggregator_finish_buffer_list(
aggregator: *mut GstAggregator, aggregator: *mut GstAggregator,
bufferlist: *mut gst::GstBufferList, bufferlist: *mut gst::GstBufferList,
) -> gst::GstFlowReturn; ) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_allocator( pub fn gst_aggregator_get_allocator(
self_: *mut GstAggregator, self_: *mut GstAggregator,
allocator: *mut *mut gst::GstAllocator, allocator: *mut *mut gst::GstAllocator,
params: *mut gst::GstAllocationParams, params: *mut gst::GstAllocationParams,
); );
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool; pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime; pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean; pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_peek_next_sample( pub fn gst_aggregator_peek_next_sample(
self_: *mut GstAggregator, self_: *mut GstAggregator,
pad: *mut GstAggregatorPad, pad: *mut GstAggregatorPad,
) -> *mut gst::GstSample; ) -> *mut gst::GstSample;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_selected_samples( pub fn gst_aggregator_selected_samples(
self_: *mut GstAggregator, self_: *mut GstAggregator,
pts: gst::GstClockTime, pts: gst::GstClockTime,
@ -1822,21 +1822,21 @@ extern "C" {
duration: gst::GstClockTime, duration: gst::GstClockTime,
info: *mut gst::GstStructure, info: *mut gst::GstStructure,
); );
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_set_latency( pub fn gst_aggregator_set_latency(
self_: *mut GstAggregator, self_: *mut GstAggregator,
min_latency: gst::GstClockTime, min_latency: gst::GstClockTime,
max_latency: gst::GstClockTime, max_latency: gst::GstClockTime,
); );
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps); pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime; pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_update_segment( pub fn gst_aggregator_update_segment(
self_: *mut GstAggregator, self_: *mut GstAggregator,
segment: *const gst::GstSegment, segment: *const gst::GstSegment,
@ -1845,23 +1845,23 @@ extern "C" {
//========================================================================= //=========================================================================
// GstAggregatorPad // GstAggregatorPad
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_get_type() -> GType; pub fn gst_aggregator_pad_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean; pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14_1", feature = "dox"))] #[cfg(any(feature = "v1_14_1", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_1")))]
pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean; pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean; pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer; pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
//========================================================================= //=========================================================================
@ -1882,8 +1882,8 @@ extern "C" {
dest_format: gst::GstFormat, dest_format: gst::GstFormat,
dest_value: *mut i64, dest_value: *mut i64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn gst_base_parse_drain(parse: *mut GstBaseParse); pub fn gst_base_parse_drain(parse: *mut GstBaseParse);
pub fn gst_base_parse_finish_frame( pub fn gst_base_parse_finish_frame(
parse: *mut GstBaseParse, parse: *mut GstBaseParse,
@ -1938,19 +1938,19 @@ extern "C" {
obj: *mut gst::GstMiniObject, obj: *mut gst::GstMiniObject,
) -> gst::GstFlowReturn; ) -> gst::GstFlowReturn;
pub fn gst_base_sink_get_blocksize(sink: *mut GstBaseSink) -> c_uint; pub fn gst_base_sink_get_blocksize(sink: *mut GstBaseSink) -> c_uint;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), 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_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_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_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_bitrate(sink: *mut GstBaseSink) -> u64;
pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64; pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime; 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; pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure; 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_sync(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64; pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64;
@ -1967,8 +1967,8 @@ extern "C" {
) -> gboolean; ) -> gboolean;
pub fn gst_base_sink_set_async_enabled(sink: *mut GstBaseSink, enabled: 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); pub fn gst_base_sink_set_blocksize(sink: *mut GstBaseSink, blocksize: c_uint);
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn gst_base_sink_set_drop_out_of_segment( pub fn gst_base_sink_set_drop_out_of_segment(
sink: *mut GstBaseSink, sink: *mut GstBaseSink,
drop_out_of_segment: gboolean, 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_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_bitrate(sink: *mut GstBaseSink, max_bitrate: u64);
pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64); pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_base_sink_set_processing_deadline( pub fn gst_base_sink_set_processing_deadline(
sink: *mut GstBaseSink, sink: *mut GstBaseSink,
processing_deadline: gst::GstClockTime, 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_get_do_timestamp(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_is_async(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; pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean; pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_new_seamless_segment( pub fn gst_base_src_new_seamless_segment(
src: *mut GstBaseSrc, src: *mut GstBaseSrc,
@ -2022,8 +2022,8 @@ extern "C" {
stop: i64, stop: i64,
time: i64, time: i64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_base_src_new_segment( pub fn gst_base_src_new_segment(
src: *mut GstBaseSrc, src: *mut GstBaseSrc,
segment: *const gst::GstSegment, 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_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_complete(basesrc: *mut GstBaseSrc, ret: gst::GstFlowReturn);
pub fn gst_base_src_start_wait(basesrc: *mut GstBaseSrc) -> gst::GstFlowReturn; pub fn gst_base_src_start_wait(basesrc: *mut GstBaseSrc) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_base_src_submit_buffer_list( pub fn gst_base_src_submit_buffer_list(
src: *mut GstBaseSrc, src: *mut GstBaseSrc,
buffer_list: *mut gst::GstBufferList, 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_in_place(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_is_passthrough(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; pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean; 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_sink(trans: *mut GstBaseTransform);
pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform); pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform);
@ -2244,8 +2244,8 @@ extern "C" {
buf: *mut gst::GstBuffer, buf: *mut gst::GstBuffer,
prob: *mut gst::GstTypeFindProbability, prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps; ) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_type_find_helper_for_buffer_with_extension( pub fn gst_type_find_helper_for_buffer_with_extension(
obj: *mut gst::GstObject, obj: *mut gst::GstObject,
buf: *mut gst::GstBuffer, buf: *mut gst::GstBuffer,
@ -2258,8 +2258,8 @@ extern "C" {
size: size_t, size: size_t,
prob: *mut gst::GstTypeFindProbability, prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps; ) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_type_find_helper_for_data_with_extension( pub fn gst_type_find_helper_for_data_with_extension(
obj: *mut gst::GstObject, obj: *mut gst::GstObject,
data: *const u8, data: *const u8,
@ -2279,8 +2279,8 @@ extern "C" {
extension: *const c_char, extension: *const c_char,
prob: *mut gst::GstTypeFindProbability, prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps; ) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_14_3", feature = "dox"))] #[cfg(any(feature = "v1_14_3", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14_3")))]
pub fn gst_type_find_helper_get_range_full( pub fn gst_type_find_helper_get_range_full(
obj: *mut gst::GstObject, obj: *mut gst::GstObject,
parent: *mut gst::GstObject, parent: *mut gst::GstObject,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_base_sys::*; use gstreamer_base_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -66,8 +66,8 @@ impl TestClock {
// unsafe { TODO: call ffi:gst_test_clock_peek_next_pending_id() } // unsafe { TODO: call ffi:gst_test_clock_peek_next_pending_id() }
//} //}
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool { //pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool {
// unsafe { TODO: call ffi:gst_test_clock_process_id() } // unsafe { TODO: call ffi:gst_test_clock_process_id() }
//} //}
@ -86,8 +86,8 @@ impl TestClock {
} }
} }
//#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //#[cfg_attr(all(not(doctest), doc), 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 { //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() } // unsafe { TODO: call ffi:gst_test_clock_timed_wait_for_multiple_pending_ids() }
//} //}

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ 7a318d65) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -47,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_check_1_0] [package.metadata.system-deps.gstreamer_check_1_0]
name = "gstreamer-check-1.0" name = "gstreamer-check-1.0"
version = "1.8" version = "1.8"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use glib_sys as glib; use glib_sys as glib;
use gobject_sys as gobject; use gobject_sys as gobject;
@ -129,8 +129,8 @@ extern "C" {
user_data: gpointer, user_data: gpointer,
destroy_data: glib::GDestroyNotify, destroy_data: glib::GDestroyNotify,
); );
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_harness_add_propose_allocation_meta( pub fn gst_harness_add_propose_allocation_meta(
h: *mut GstHarness, h: *mut GstHarness,
api: GType, api: GType,
@ -182,8 +182,8 @@ extern "C" {
pub fn gst_harness_play(h: *mut GstHarness); pub fn gst_harness_play(h: *mut GstHarness);
pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer; pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent; pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_harness_pull_until_eos( pub fn gst_harness_pull_until_eos(
h: *mut GstHarness, h: *mut GstHarness,
buf: *mut *mut gst::GstBuffer, buf: *mut *mut gst::GstBuffer,
@ -296,14 +296,14 @@ extern "C" {
h: *mut GstHarness, h: *mut GstHarness,
sleep: c_ulong, sleep: c_ulong,
) -> *mut GstHarnessThread; ) -> *mut GstHarnessThread;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_harness_take_all_data(h: *mut GstHarness, size: *mut size_t) -> *mut u8; pub fn gst_harness_take_all_data(h: *mut GstHarness, size: *mut size_t) -> *mut u8;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_harness_take_all_data_as_buffer(h: *mut GstHarness) -> *mut gst::GstBuffer; pub fn gst_harness_take_all_data_as_buffer(h: *mut GstHarness) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg(any(feature = "v1_14", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_14")))]
pub fn gst_harness_take_all_data_as_bytes(h: *mut GstHarness) -> *mut glib::GBytes; 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_teardown(h: *mut GstHarness);
pub fn gst_harness_try_pull(h: *mut GstHarness) -> *mut gst::GstBuffer; pub fn gst_harness_try_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
@ -363,8 +363,8 @@ extern "C" {
test_clock: *mut GstTestClock, test_clock: *mut GstTestClock,
pending_id: *mut gst::GstClockID, pending_id: *mut gst::GstClockID,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_test_clock_process_id( pub fn gst_test_clock_process_id(
test_clock: *mut GstTestClock, test_clock: *mut GstTestClock,
pending_id: gst::GstClockID, pending_id: gst::GstClockID,
@ -375,8 +375,8 @@ extern "C" {
) -> c_uint; ) -> c_uint;
pub fn gst_test_clock_process_next_clock_id(test_clock: *mut GstTestClock) -> gst::GstClockID; 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); pub fn gst_test_clock_set_time(test_clock: *mut GstTestClock, new_time: gst::GstClockTime);
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_test_clock_timed_wait_for_multiple_pending_ids( pub fn gst_test_clock_timed_wait_for_multiple_pending_ids(
test_clock: *mut GstTestClock, test_clock: *mut GstTestClock,
count: c_uint, count: c_uint,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_check_sys::*; use gstreamer_check_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -20,11 +20,11 @@ mod lfo_control_source;
pub use self::lfo_control_source::LFOControlSourceExt; pub use self::lfo_control_source::LFOControlSourceExt;
pub use self::lfo_control_source::{LFOControlSource, NONE_LFO_CONTROL_SOURCE}; pub use self::lfo_control_source::{LFOControlSource, NONE_LFO_CONTROL_SOURCE};
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
mod proxy_control_binding; mod proxy_control_binding;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub use self::proxy_control_binding::{ProxyControlBinding, NONE_PROXY_CONTROL_BINDING}; pub use self::proxy_control_binding::{ProxyControlBinding, NONE_PROXY_CONTROL_BINDING};
mod timed_value_control_source; mod timed_value_control_source;

View file

@ -2,11 +2,11 @@
// from gir-files (https://github.com/gtk-rs/gir-files) // from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT // DO NOT EDIT
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
use glib::object::Cast; use glib::object::Cast;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
use glib::object::IsA; use glib::object::IsA;
use glib::translate::*; use glib::translate::*;
@ -19,8 +19,8 @@ glib::glib_wrapper! {
} }
impl ProxyControlBinding { impl ProxyControlBinding {
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn new<P: IsA<gst::Object>, Q: IsA<gst::Object>>( pub fn new<P: IsA<gst::Object>, Q: IsA<gst::Object>>(
object: &P, object: &P,
property_name: &str, property_name: &str,

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ eb37d44c) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -48,7 +48,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_controller_1_0] [package.metadata.system-deps.gstreamer_controller_1_0]
name = "gstreamer-controller-1.0" name = "gstreamer-controller-1.0"
version = "1.8" version = "1.8"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use glib_sys as glib; use glib_sys as glib;
use gobject_sys as gobject; use gobject_sys as gobject;
@ -504,8 +504,8 @@ extern "C" {
// GstProxyControlBinding // GstProxyControlBinding
//========================================================================= //=========================================================================
pub fn gst_proxy_control_binding_get_type() -> GType; pub fn gst_proxy_control_binding_get_type() -> GType;
#[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg(any(feature = "v1_12", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_12")))]
pub fn gst_proxy_control_binding_new( pub fn gst_proxy_control_binding_new(
object: *mut gst::GstObject, object: *mut gst::GstObject,
property_name: *const c_char, property_name: *const c_char,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_controller_sys::*; use gstreamer_controller_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -19,22 +19,22 @@ glib::glib_wrapper! {
pub const NONE_BASE_EFFECT: Option<&BaseEffect> = None; pub const NONE_BASE_EFFECT: Option<&BaseEffect> = None;
pub trait BaseEffectExt: 'static { pub trait BaseEffectExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_time_effect(&self) -> bool; fn is_time_effect(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn register_time_property(&self, child_property_name: &str) -> bool; fn register_time_property(&self, child_property_name: &str) -> bool;
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), 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; //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 { impl<O: IsA<BaseEffect>> BaseEffectExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_time_effect(&self) -> bool { fn is_time_effect(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_base_effect_is_time_effect( 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", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn register_time_property(&self, child_property_name: &str) -> bool { fn register_time_property(&self, child_property_name: &str) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_base_effect_register_time_property( 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", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), 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 { //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() } // unsafe { TODO: call ffi:ges_base_effect_set_time_translation_funcs() }
//} //}

View file

@ -6,8 +6,8 @@ use crate::Asset;
use crate::BaseEffect; use crate::BaseEffect;
use crate::Container; use crate::Container;
use crate::Extractable; use crate::Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::FrameNumber; use crate::FrameNumber;
use crate::Layer; use crate::Layer;
use crate::TimelineElement; use crate::TimelineElement;
@ -21,8 +21,8 @@ use glib::signal::SignalHandlerId;
use glib::translate::*; use glib::translate::*;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
use std::mem::transmute; use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use std::ptr; use std::ptr;
glib::glib_wrapper! { glib::glib_wrapper! {
@ -38,16 +38,16 @@ pub const NONE_CLIP: Option<&Clip> = None;
pub trait ClipExt: 'static { pub trait ClipExt: 'static {
fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<TrackElement, glib::BoolError>; fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<TrackElement, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>( fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>(
&self, &self,
child: &P, child: &P,
track: &Q, track: &Q,
) -> Result<TrackElement, glib::Error>; ) -> Result<TrackElement, glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_top_effect<P: IsA<BaseEffect>>(&self, effect: &P, index: i32) fn add_top_effect<P: IsA<BaseEffect>>(&self, effect: &P, index: i32)
-> Result<(), glib::Error>; -> Result<(), glib::Error>;
@ -64,12 +64,12 @@ pub trait ClipExt: 'static {
type_: glib::types::Type, type_: glib::types::Type,
) -> Vec<TrackElement>; ) -> Vec<TrackElement>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_duration_limit(&self) -> gst::ClockTime; fn get_duration_limit(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>( fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>(
&self, &self,
child: &P, child: &P,
@ -80,16 +80,16 @@ pub trait ClipExt: 'static {
fn get_supported_formats(&self) -> TrackType; fn get_supported_formats(&self) -> TrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>( fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>(
&self, &self,
child: &P, child: &P,
internal_time: gst::ClockTime, internal_time: gst::ClockTime,
) -> Result<gst::ClockTime, glib::Error>; ) -> Result<gst::ClockTime, glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_source_frame( fn get_timeline_time_from_source_frame(
&self, &self,
frame_number: FrameNumber, 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>; fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error>; fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error>; fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error>;
fn set_supported_formats(&self, supportedformats: TrackType); fn set_supported_formats(&self, supportedformats: TrackType);
@ -119,8 +119,8 @@ pub trait ClipExt: 'static {
newindex: u32, newindex: u32,
) -> Result<(), glib::error::BoolError>; ) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_top_effect_index_full<P: IsA<BaseEffect>>( fn set_top_effect_index_full<P: IsA<BaseEffect>>(
&self, &self,
effect: &P, effect: &P,
@ -135,12 +135,12 @@ pub trait ClipExt: 'static {
fn split(&self, position: u64) -> Result<Clip, glib::BoolError>; fn split(&self, position: u64) -> Result<Clip, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error>; fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>( fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,
@ -165,8 +165,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>( fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>(
&self, &self,
child: &P, child: &P,
@ -188,8 +188,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_top_effect<P: IsA<BaseEffect>>( fn add_top_effect<P: IsA<BaseEffect>>(
&self, &self,
effect: &P, effect: &P,
@ -241,8 +241,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_duration_limit(&self) -> gst::ClockTime { fn get_duration_limit(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::ges_clip_get_duration_limit( from_glib(ffi::ges_clip_get_duration_limit(
@ -251,8 +251,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>( fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>(
&self, &self,
child: &P, child: &P,
@ -286,8 +286,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>( fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>(
&self, &self,
child: &P, child: &P,
@ -309,8 +309,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_source_frame( fn get_timeline_time_from_source_frame(
&self, &self,
frame_number: FrameNumber, frame_number: FrameNumber,
@ -368,8 +368,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error> { fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error> {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
@ -386,8 +386,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error> { fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error> {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
@ -430,8 +430,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_top_effect_index_full<P: IsA<BaseEffect>>( fn set_top_effect_index_full<P: IsA<BaseEffect>>(
&self, &self,
effect: &P, effect: &P,
@ -480,8 +480,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error> { fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error> {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
@ -495,8 +495,8 @@ impl<O: IsA<Clip>> ClipExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>( fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,

View file

@ -6,8 +6,8 @@ use crate::Asset;
use crate::Clip; use crate::Clip;
use crate::Extractable; use crate::Extractable;
use crate::Timeline; use crate::Timeline;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::Track; use crate::Track;
use crate::TrackType; use crate::TrackType;
use glib::object::Cast; use glib::object::Cast;
@ -17,8 +17,8 @@ use glib::signal::SignalHandlerId;
use glib::translate::*; use glib::translate::*;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
use std::mem::transmute; use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use std::ptr; use std::ptr;
glib::glib_wrapper! { glib::glib_wrapper! {
@ -54,8 +54,8 @@ pub trait LayerExt: 'static {
track_types: TrackType, track_types: TrackType,
) -> Result<Clip, glib::BoolError>; ) -> Result<Clip, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_asset_full<P: IsA<Asset>>( fn add_asset_full<P: IsA<Asset>>(
&self, &self,
asset: &P, asset: &P,
@ -67,12 +67,12 @@ pub trait LayerExt: 'static {
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>; fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error>; fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool; fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
fn get_auto_transition(&self) -> 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>; fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool; fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool;
fn set_auto_transition(&self, auto_transition: 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); fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P);
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId; //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; 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", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_asset_full<P: IsA<Asset>>( fn add_asset_full<P: IsA<Asset>>(
&self, &self,
asset: &P, asset: &P,
@ -182,8 +182,8 @@ impl<O: IsA<Layer>> LayerExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error> { fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error> {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
@ -200,8 +200,8 @@ impl<O: IsA<Layer>> LayerExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool { fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_layer_get_active_for_track( 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", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool { fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_layer_set_active_for_tracks( 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", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId { //fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 } // Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 }
//} //}

View file

@ -38,8 +38,8 @@ pub trait ProjectExt: 'static {
profile: &P, profile: &P,
) -> Result<(), glib::error::BoolError>; ) -> Result<(), glib::error::BoolError>;
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn add_formatter(&self, formatter: /*Ignored*/&Formatter); //fn add_formatter(&self, formatter: /*Ignored*/&Formatter);
fn create_asset(&self, id: Option<&str>, extractable_type: glib::types::Type) -> bool; 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; fn connect_asset_removed<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>( fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
&self, &self,
f: F, f: F,
@ -92,8 +92,8 @@ pub trait ProjectExt: 'static {
fn connect_loaded<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_loaded<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId; 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>( 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", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn add_formatter(&self, formatter: /*Ignored*/&Formatter) { //fn add_formatter(&self, formatter: /*Ignored*/&Formatter) {
// unsafe { TODO: call ffi:ges_project_add_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", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>( fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
&self, &self,
f: F, f: F,
@ -440,8 +440,8 @@ impl<O: IsA<Project>> ProjectExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId { fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn loading_trampoline<P, F: Fn(&P, &Timeline) + 'static>( unsafe extern "C" fn loading_trampoline<P, F: Fn(&P, &Timeline) + 'static>(
this: *mut ffi::GESProject, this: *mut ffi::GESProject,

View file

@ -3,12 +3,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::Asset; use crate::Asset;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::Clip; use crate::Clip;
use crate::Extractable; use crate::Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::FrameNumber; use crate::FrameNumber;
use crate::Group; use crate::Group;
use crate::Layer; use crate::Layer;
@ -83,12 +83,12 @@ pub trait TimelineExt: 'static {
fn get_element(&self, name: &str) -> Option<TimelineElement>; fn get_element(&self, name: &str) -> Option<TimelineElement>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber; fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime; fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime;
fn get_groups(&self) -> Vec<Group>; fn get_groups(&self) -> Vec<Group>;
@ -109,8 +109,8 @@ pub trait TimelineExt: 'static {
fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>; fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn move_layer<P: IsA<Layer>>( fn move_layer<P: IsA<Layer>>(
&self, &self,
layer: &P, layer: &P,
@ -149,8 +149,8 @@ pub trait TimelineExt: 'static {
fn connect_layer_removed<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_layer_removed<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>( fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
&self, &self,
f: F, f: F,
@ -255,16 +255,16 @@ impl<O: IsA<Timeline>> TimelineExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber { fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber {
unsafe { unsafe {
ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib()) ffi::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib())
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime { fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::ges_timeline_get_frame_time( from_glib(ffi::ges_timeline_get_frame_time(
@ -353,8 +353,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn move_layer<P: IsA<Layer>>( fn move_layer<P: IsA<Layer>>(
&self, &self,
layer: &P, layer: &P,
@ -561,8 +561,8 @@ impl<O: IsA<Timeline>> TimelineExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>( fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
&self, &self,
f: F, f: F,

View file

@ -2,15 +2,15 @@
// from gir-files (https://github.com/gtk-rs/gir-files) // from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT // DO NOT EDIT
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::Edge; use crate::Edge;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::EditMode; use crate::EditMode;
use crate::Extractable; use crate::Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use crate::Layer; use crate::Layer;
use crate::Timeline; use crate::Timeline;
use crate::TrackType; use crate::TrackType;
@ -22,12 +22,12 @@ use glib::translate::*;
use glib::StaticType; use glib::StaticType;
use glib::Value; use glib::Value;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use std::mem; use std::mem;
use std::mem::transmute; use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use std::ptr; use std::ptr;
glib::glib_wrapper! { glib::glib_wrapper! {
@ -45,8 +45,8 @@ pub trait TimelineElementExt: 'static {
fn copy(&self, deep: bool) -> Result<TimelineElement, glib::BoolError>; fn copy(&self, deep: bool) -> Result<TimelineElement, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn edit( fn edit(
&self, &self,
layers: &[Layer], layers: &[Layer],
@ -56,8 +56,8 @@ pub trait TimelineElementExt: 'static {
position: u64, position: u64,
) -> bool; ) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn edit_full( fn edit_full(
&self, &self,
new_layer_priority: i64, new_layer_priority: i64,
@ -78,16 +78,16 @@ pub trait TimelineElementExt: 'static {
fn get_inpoint(&self) -> gst::ClockTime; fn get_inpoint(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn get_layer_priority(&self) -> u32; fn get_layer_priority(&self) -> u32;
fn get_max_duration(&self) -> gst::ClockTime; fn get_max_duration(&self) -> gst::ClockTime;
fn get_name(&self) -> Option<glib::GString>; fn get_name(&self) -> Option<glib::GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_natural_framerate(&self) -> Option<(i32, i32)>; fn get_natural_framerate(&self) -> Option<(i32, i32)>;
fn get_parent(&self) -> Option<TimelineElement>; fn get_parent(&self) -> Option<TimelineElement>;
@ -124,8 +124,8 @@ pub trait TimelineElementExt: 'static {
//fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value); //fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value);
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), 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_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); //fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
@ -158,12 +158,12 @@ pub trait TimelineElementExt: 'static {
fn set_property_serialize(&self, serialize: bool); fn set_property_serialize(&self, serialize: bool);
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId; //fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId; //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; //fn connect_deep_notify<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
@ -204,8 +204,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn edit( fn edit(
&self, &self,
layers: &[Layer], layers: &[Layer],
@ -226,8 +226,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn edit_full( fn edit_full(
&self, &self,
new_layer_priority: i64, new_layer_priority: i64,
@ -285,8 +285,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn get_layer_priority(&self) -> u32 { fn get_layer_priority(&self) -> u32 {
unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) } unsafe { ffi::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) }
} }
@ -307,8 +307,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_natural_framerate(&self) -> Option<(i32, i32)> { fn get_natural_framerate(&self) -> Option<(i32, i32)> {
unsafe { unsafe {
let mut framerate_n = mem::MaybeUninit::uninit(); let mut framerate_n = mem::MaybeUninit::uninit();
@ -445,8 +445,8 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
// unsafe { TODO: call ffi:ges_timeline_element_set_child_property_by_pspec() } // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_by_pspec() }
//} //}
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), 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_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error> {
// unsafe { TODO: call ffi:ges_timeline_element_set_child_property_full() } // unsafe { TODO: call ffi:ges_timeline_element_set_child_property_full() }
//} //}
@ -598,14 +598,14 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
} }
} }
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId { //fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored prop: GObject.ParamSpec // Ignored prop: GObject.ParamSpec
//} //}
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId { //fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored prop: GObject.ParamSpec // Ignored prop: GObject.ParamSpec
//} //}

View file

@ -14,8 +14,8 @@ use glib::StaticType;
use glib::Value; use glib::Value;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
use std::mem::transmute; use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use std::ptr; use std::ptr;
glib::glib_wrapper! { glib::glib_wrapper! {
@ -38,8 +38,8 @@ pub const NONE_TRACK: Option<&Track> = None;
pub trait GESTrackExt: 'static { pub trait GESTrackExt: 'static {
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError>; fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>; fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>;
fn commit(&self) -> bool; fn commit(&self) -> bool;
@ -50,8 +50,8 @@ pub trait GESTrackExt: 'static {
fn get_mixing(&self) -> bool; fn get_mixing(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_restriction_caps(&self) -> Option<gst::Caps>; fn get_restriction_caps(&self) -> Option<gst::Caps>;
fn get_timeline(&self) -> Option<Timeline>; fn get_timeline(&self) -> Option<Timeline>;
@ -61,8 +61,8 @@ pub trait GESTrackExt: 'static {
object: &P, object: &P,
) -> Result<(), glib::error::BoolError>; ) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>; 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); //fn set_create_element_for_gap_func<P: Fn(&Track) -> gst::Element + 'static>(&self, func: P);
@ -77,12 +77,12 @@ pub trait GESTrackExt: 'static {
fn get_property_duration(&self) -> u64; fn get_property_duration(&self) -> u64;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_id(&self) -> Option<glib::GString>; fn get_property_id(&self) -> Option<glib::GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_property_id(&self, id: Option<&str>); fn set_property_id(&self, id: Option<&str>);
fn get_property_restriction_caps(&self) -> Option<gst::Caps>; fn get_property_restriction_caps(&self) -> Option<gst::Caps>;
@ -103,8 +103,8 @@ pub trait GESTrackExt: 'static {
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; 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; fn connect_property_mixing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
@ -128,8 +128,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> { fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
@ -166,8 +166,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) } unsafe { from_glib(ffi::ges_track_get_mixing(self.as_ref().to_glib_none().0)) }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_restriction_caps(&self) -> Option<gst::Caps> { fn get_restriction_caps(&self) -> Option<gst::Caps> {
unsafe { unsafe {
from_glib_full(ffi::ges_track_get_restriction_caps( from_glib_full(ffi::ges_track_get_restriction_caps(
@ -195,8 +195,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> { fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> {
unsafe { unsafe {
let mut error = ptr::null_mut(); let mut error = ptr::null_mut();
@ -265,8 +265,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_id(&self) -> Option<glib::GString> { fn get_property_id(&self) -> Option<glib::GString> {
unsafe { unsafe {
let mut value = Value::from_type(<glib::GString as StaticType>::static_type()); let mut value = Value::from_type(<glib::GString as StaticType>::static_type());
@ -279,8 +279,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_property_id(&self, id: Option<&str>) { fn set_property_id(&self, id: Option<&str>) {
unsafe { unsafe {
glib::gobject_ffi::g_object_set_property( glib::gobject_ffi::g_object_set_property(
@ -430,8 +430,8 @@ impl<O: IsA<Track>> GESTrackExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { 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>( unsafe extern "C" fn notify_id_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ffi::GESTrack, this: *mut ffi::GESTrack,

View file

@ -38,8 +38,8 @@ pub trait TrackElementExt: 'static {
whitelist: &[&str], whitelist: &[&str],
); );
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn clamp_control_source(&self, property_name: &str); fn clamp_control_source(&self, property_name: &str);
#[cfg_attr(feature = "v1_18", deprecated)] #[cfg_attr(feature = "v1_18", deprecated)]
@ -53,8 +53,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 }; //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", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_auto_clamp_control_sources(&self) -> bool; fn get_auto_clamp_control_sources(&self) -> bool;
//fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option<gst::ControlBinding>; //fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option<gst::ControlBinding>;
@ -69,14 +69,14 @@ pub trait TrackElementExt: 'static {
fn get_track_type(&self) -> TrackType; fn get_track_type(&self) -> TrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn has_internal_source(&self) -> bool; fn has_internal_source(&self) -> bool;
fn is_active(&self) -> bool; fn is_active(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_core(&self) -> bool; fn is_core(&self) -> bool;
//fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option<gst::Element>; //fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option<gst::Element>;
@ -85,22 +85,22 @@ pub trait TrackElementExt: 'static {
fn set_active(&self, active: bool) -> bool; fn set_active(&self, active: bool) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_auto_clamp_control_sources(&self, auto_clamp: bool); 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; //fn set_control_source(&self, source: /*Ignored*/&gst::ControlSource, property_name: &str, binding_type: &str) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_has_internal_source(&self, has_internal_source: bool) -> bool; fn set_has_internal_source(&self, has_internal_source: bool) -> bool;
fn set_track_type(&self, type_: TrackType); fn set_track_type(&self, type_: TrackType);
fn get_property_active(&self) -> bool; fn get_property_active(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_has_internal_source(&self) -> bool; fn get_property_has_internal_source(&self) -> bool;
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId; //fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
@ -109,15 +109,15 @@ pub trait TrackElementExt: 'static {
fn connect_property_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>( fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>( fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,
@ -147,8 +147,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn clamp_control_source(&self, property_name: &str) { fn clamp_control_source(&self, property_name: &str) {
unsafe { unsafe {
ffi::ges_track_element_clamp_control_source( ffi::ges_track_element_clamp_control_source(
@ -183,8 +183,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
// unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() } // unsafe { TODO: call ffi:ges_track_element_get_all_control_bindings() }
//} //}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_auto_clamp_control_sources(&self) -> bool { fn get_auto_clamp_control_sources(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_track_element_get_auto_clamp_control_sources( from_glib(ffi::ges_track_element_get_auto_clamp_control_sources(
@ -237,8 +237,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn has_internal_source(&self) -> bool { fn has_internal_source(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_track_element_has_internal_source( from_glib(ffi::ges_track_element_has_internal_source(
@ -255,8 +255,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_core(&self) -> bool { fn is_core(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_track_element_is_core( from_glib(ffi::ges_track_element_is_core(
@ -290,8 +290,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_auto_clamp_control_sources(&self, auto_clamp: bool) { fn set_auto_clamp_control_sources(&self, auto_clamp: bool) {
unsafe { unsafe {
ffi::ges_track_element_set_auto_clamp_control_sources( ffi::ges_track_element_set_auto_clamp_control_sources(
@ -305,8 +305,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
// unsafe { TODO: call ffi:ges_track_element_set_control_source() } // unsafe { TODO: call ffi:ges_track_element_set_control_source() }
//} //}
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn set_has_internal_source(&self, has_internal_source: bool) -> bool { fn set_has_internal_source(&self, has_internal_source: bool) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_track_element_set_has_internal_source( from_glib(ffi::ges_track_element_set_has_internal_source(
@ -337,8 +337,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_has_internal_source(&self) -> bool { fn get_property_has_internal_source(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -386,8 +386,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>( fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,
@ -415,8 +415,8 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>( fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,

View file

@ -9,8 +9,8 @@ use glib::object::IsA;
use glib::signal::connect_raw; use glib::signal::connect_raw;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::translate::*; use glib::translate::*;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
use glib::StaticType; use glib::StaticType;
use glib::Value; use glib::Value;
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
@ -26,8 +26,8 @@ glib::glib_wrapper! {
} }
impl UriClipAsset { impl UriClipAsset {
//#[cfg(any(feature = "v1_16", feature = "dox"))] //#[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] //#[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
//pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result<UriClipAsset, glib::Error> { //pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result<UriClipAsset, glib::Error> {
// unsafe { TODO: call ffi:ges_uri_clip_asset_finish() } // unsafe { TODO: call ffi:ges_uri_clip_asset_finish() }
//} //}
@ -57,26 +57,26 @@ pub trait UriClipAssetExt: 'static {
fn get_info(&self) -> Option<gst_pbutils::DiscovererInfo>; fn get_info(&self) -> Option<gst_pbutils::DiscovererInfo>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_max_duration(&self) -> gst::ClockTime; fn get_max_duration(&self) -> gst::ClockTime;
fn get_stream_assets(&self) -> Vec<UriSourceAsset>; fn get_stream_assets(&self) -> Vec<UriSourceAsset>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool; fn is_image(&self) -> bool;
fn set_property_duration(&self, duration: u64); fn set_property_duration(&self, duration: u64);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_is_nested_timeline(&self) -> bool; fn get_property_is_nested_timeline(&self) -> bool;
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>( fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,
@ -100,8 +100,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_max_duration(&self) -> gst::ClockTime { fn get_max_duration(&self) -> gst::ClockTime {
unsafe { unsafe {
from_glib(ffi::ges_uri_clip_asset_get_max_duration( from_glib(ffi::ges_uri_clip_asset_get_max_duration(
@ -118,8 +118,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool { fn is_image(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_uri_clip_asset_is_image( from_glib(ffi::ges_uri_clip_asset_is_image(
@ -138,8 +138,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_property_is_nested_timeline(&self) -> bool { fn get_property_is_nested_timeline(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -179,8 +179,8 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>( fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
&self, &self,
f: F, f: F,

View file

@ -24,8 +24,8 @@ pub trait UriSourceAssetExt: 'static {
fn get_stream_uri(&self) -> Option<glib::GString>; fn get_stream_uri(&self) -> Option<glib::GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool; fn is_image(&self) -> bool;
} }
@ -54,8 +54,8 @@ impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool { fn is_image(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::ges_uri_source_asset_is_image( from_glib(ffi::ges_uri_source_asset_is_image(

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ 42578da2) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -53,7 +53,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gst_editing_services_1_0] [package.metadata.system-deps.gst_editing_services_1_0]
name = "gst-editing-services-1.0" name = "gst-editing-services-1.0"
version = "1.8" version = "1.8"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use gio_sys as gio; use gio_sys as gio;
use glib_sys as glib; use glib_sys as glib;
@ -2651,16 +2651,16 @@ extern "C" {
// GESEdge // GESEdge
//========================================================================= //=========================================================================
pub fn ges_edge_get_type() -> GType; pub fn ges_edge_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn ges_edge_name(edge: GESEdge) -> *const c_char; pub fn ges_edge_name(edge: GESEdge) -> *const c_char;
//========================================================================= //=========================================================================
// GESEditMode // GESEditMode
//========================================================================= //=========================================================================
pub fn ges_edit_mode_get_type() -> GType; pub fn ges_edit_mode_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char; pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char;
//========================================================================= //=========================================================================
@ -2798,17 +2798,17 @@ extern "C" {
// GESBaseEffect // GESBaseEffect
//========================================================================= //=========================================================================
pub fn ges_base_effect_get_type() -> GType; pub fn ges_base_effect_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_base_effect_is_time_effect(effect: *mut GESBaseEffect) -> gboolean; pub fn ges_base_effect_is_time_effect(effect: *mut GESBaseEffect) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_base_effect_register_time_property( pub fn ges_base_effect_register_time_property(
effect: *mut GESBaseEffect, effect: *mut GESBaseEffect,
child_property_name: *const c_char, child_property_name: *const c_char,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_base_effect_set_time_translation_funcs( pub fn ges_base_effect_set_time_translation_funcs(
effect: *mut GESBaseEffect, effect: *mut GESBaseEffect,
source_to_sink_func: GESBaseEffectTimeTranslationFunc, source_to_sink_func: GESBaseEffectTimeTranslationFunc,
@ -2837,16 +2837,16 @@ extern "C" {
//========================================================================= //=========================================================================
pub fn ges_clip_get_type() -> GType; pub fn ges_clip_get_type() -> GType;
pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement; pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_add_child_to_track( pub fn ges_clip_add_child_to_track(
clip: *mut GESClip, clip: *mut GESClip,
child: *mut GESTrackElement, child: *mut GESTrackElement,
track: *mut GESTrack, track: *mut GESTrack,
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> *mut GESTrackElement; ) -> *mut GESTrackElement;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_add_top_effect( pub fn ges_clip_add_top_effect(
clip: *mut GESClip, clip: *mut GESClip,
effect: *mut GESBaseEffect, effect: *mut GESBaseEffect,
@ -2864,11 +2864,11 @@ extern "C" {
track_type: GESTrackType, track_type: GESTrackType,
type_: GType, type_: GType,
) -> *mut glib::GList; ) -> *mut glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_duration_limit(clip: *mut GESClip) -> gst::GstClockTime; pub fn ges_clip_get_duration_limit(clip: *mut GESClip) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_internal_time_from_timeline_time( pub fn ges_clip_get_internal_time_from_timeline_time(
clip: *mut GESClip, clip: *mut GESClip,
child: *mut GESTrackElement, child: *mut GESTrackElement,
@ -2877,16 +2877,16 @@ extern "C" {
) -> gst::GstClockTime; ) -> gst::GstClockTime;
pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer; pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer;
pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType; pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_timeline_time_from_internal_time( pub fn ges_clip_get_timeline_time_from_internal_time(
clip: *mut GESClip, clip: *mut GESClip,
child: *mut GESTrackElement, child: *mut GESTrackElement,
internal_time: gst::GstClockTime, internal_time: gst::GstClockTime,
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_timeline_time_from_source_frame( pub fn ges_clip_get_timeline_time_from_source_frame(
clip: *mut GESClip, clip: *mut GESClip,
frame_number: GESFrameNumber, frame_number: GESFrameNumber,
@ -2899,15 +2899,15 @@ extern "C" {
) -> c_int; ) -> c_int;
pub fn ges_clip_get_top_effects(clip: *mut GESClip) -> *mut glib::GList; 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; pub fn ges_clip_move_to_layer(clip: *mut GESClip, layer: *mut GESLayer) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_move_to_layer_full( pub fn ges_clip_move_to_layer_full(
clip: *mut GESClip, clip: *mut GESClip,
layer: *mut GESLayer, layer: *mut GESLayer,
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_remove_top_effect( pub fn ges_clip_remove_top_effect(
clip: *mut GESClip, clip: *mut GESClip,
effect: *mut GESBaseEffect, effect: *mut GESBaseEffect,
@ -2919,8 +2919,8 @@ extern "C" {
effect: *mut GESBaseEffect, effect: *mut GESBaseEffect,
newindex: c_uint, newindex: c_uint,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_set_top_effect_index_full( pub fn ges_clip_set_top_effect_index_full(
clip: *mut GESClip, clip: *mut GESClip,
effect: *mut GESBaseEffect, effect: *mut GESBaseEffect,
@ -2933,8 +2933,8 @@ extern "C" {
newpriority: c_uint, newpriority: c_uint,
) -> gboolean; ) -> gboolean;
pub fn ges_clip_split(clip: *mut GESClip, position: u64) -> *mut GESClip; pub fn ges_clip_split(clip: *mut GESClip, position: u64) -> *mut GESClip;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_split_full( pub fn ges_clip_split_full(
clip: *mut GESClip, clip: *mut GESClip,
position: u64, position: u64,
@ -2945,14 +2945,14 @@ extern "C" {
// GESClipAsset // GESClipAsset
//========================================================================= //=========================================================================
pub fn ges_clip_asset_get_type() -> GType; pub fn ges_clip_asset_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_asset_get_frame_time( pub fn ges_clip_asset_get_frame_time(
self_: *mut GESClipAsset, self_: *mut GESClipAsset,
frame_number: GESFrameNumber, frame_number: GESFrameNumber,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_clip_asset_get_natural_framerate( pub fn ges_clip_asset_get_natural_framerate(
self_: *mut GESClipAsset, self_: *mut GESClipAsset,
framerate_n: *mut c_int, framerate_n: *mut c_int,
@ -3074,8 +3074,8 @@ extern "C" {
duration: gst::GstClockTime, duration: gst::GstClockTime,
track_types: GESTrackType, track_types: GESTrackType,
) -> *mut GESClip; ) -> *mut GESClip;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_layer_add_asset_full( pub fn ges_layer_add_asset_full(
layer: *mut GESLayer, layer: *mut GESLayer,
asset: *mut GESAsset, asset: *mut GESAsset,
@ -3086,15 +3086,15 @@ extern "C" {
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> *mut GESClip; ) -> *mut GESClip;
pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean; pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_layer_add_clip_full( pub fn ges_layer_add_clip_full(
layer: *mut GESLayer, layer: *mut GESLayer,
clip: *mut GESClip, clip: *mut GESClip,
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), 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_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_auto_transition(layer: *mut GESLayer) -> gboolean;
pub fn ges_layer_get_clips(layer: *mut GESLayer) -> *mut glib::GList; 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_get_timeline(layer: *mut GESLayer) -> *mut GESTimeline;
pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean; pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean;
pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean; pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_layer_set_active_for_tracks( pub fn ges_layer_set_active_for_tracks(
layer: *mut GESLayer, layer: *mut GESLayer,
active: gboolean, active: gboolean,
@ -3122,40 +3122,40 @@ extern "C" {
//========================================================================= //=========================================================================
// GESMarker // GESMarker
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_get_type() -> GType; pub fn ges_marker_get_type() -> GType;
//========================================================================= //=========================================================================
// GESMarkerList // GESMarkerList
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_get_type() -> GType; pub fn ges_marker_list_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_new() -> *mut GESMarkerList; pub fn ges_marker_list_new() -> *mut GESMarkerList;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_add( pub fn ges_marker_list_add(
list: *mut GESMarkerList, list: *mut GESMarkerList,
position: gst::GstClockTime, position: gst::GstClockTime,
) -> *mut GESMarker; ) -> *mut GESMarker;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList; pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_move( pub fn ges_marker_list_move(
list: *mut GESMarkerList, list: *mut GESMarkerList,
marker: *mut GESMarker, marker: *mut GESMarker,
position: gst::GstClockTime, position: gst::GstClockTime,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean; pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint; pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint;
//========================================================================= //=========================================================================
@ -3233,8 +3233,8 @@ extern "C" {
project: *mut GESProject, project: *mut GESProject,
profile: *mut gst_pbutils::GstEncodingProfile, profile: *mut gst_pbutils::GstEncodingProfile,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter); pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter);
pub fn ges_project_create_asset( pub fn ges_project_create_asset(
project: *mut GESProject, project: *mut GESProject,
@ -3280,15 +3280,15 @@ extern "C" {
// GESSourceClip // GESSourceClip
//========================================================================= //=========================================================================
pub fn ges_source_clip_get_type() -> GType; pub fn ges_source_clip_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_source_clip_new_time_overlay() -> *mut GESSourceClip; pub fn ges_source_clip_new_time_overlay() -> *mut GESSourceClip;
//========================================================================= //=========================================================================
// GESSourceClipAsset // GESSourceClipAsset
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_source_clip_asset_get_type() -> GType; pub fn ges_source_clip_asset_get_type() -> GType;
//========================================================================= //=========================================================================
@ -3370,14 +3370,14 @@ extern "C" {
timeline: *mut GESTimeline, timeline: *mut GESTimeline,
name: *const c_char, name: *const c_char,
) -> *mut GESTimelineElement; ) -> *mut GESTimelineElement;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_get_frame_at( pub fn ges_timeline_get_frame_at(
self_: *mut GESTimeline, self_: *mut GESTimeline,
timestamp: gst::GstClockTime, timestamp: gst::GstClockTime,
) -> GESFrameNumber; ) -> GESFrameNumber;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_get_frame_time( pub fn ges_timeline_get_frame_time(
self_: *mut GESTimeline, self_: *mut GESTimeline,
frame_number: GESFrameNumber, frame_number: GESFrameNumber,
@ -3401,8 +3401,8 @@ extern "C" {
uri: *const c_char, uri: *const c_char,
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn ges_timeline_move_layer( pub fn ges_timeline_move_layer(
timeline: *mut GESTimeline, timeline: *mut GESTimeline,
layer: *mut GESLayer, layer: *mut GESLayer,
@ -3442,8 +3442,8 @@ extern "C" {
self_: *mut GESTimelineElement, self_: *mut GESTimelineElement,
deep: gboolean, deep: gboolean,
) -> *mut GESTimelineElement; ) -> *mut GESTimelineElement;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_edit( pub fn ges_timeline_element_edit(
self_: *mut GESTimelineElement, self_: *mut GESTimelineElement,
layers: *mut glib::GList, layers: *mut glib::GList,
@ -3452,8 +3452,8 @@ extern "C" {
edge: GESEdge, edge: GESEdge,
position: u64, position: u64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_edit_full( pub fn ges_timeline_element_edit_full(
self_: *mut GESTimelineElement, self_: *mut GESTimelineElement,
new_layer_priority: i64, 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_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_duration(self_: *mut GESTimelineElement) -> gst::GstClockTime;
pub fn ges_timeline_element_get_inpoint(self_: *mut GESTimelineElement) -> gst::GstClockTime; pub fn ges_timeline_element_get_inpoint(self_: *mut GESTimelineElement) -> gst::GstClockTime;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn ges_timeline_element_get_layer_priority(self_: *mut GESTimelineElement) -> u32; pub fn ges_timeline_element_get_layer_priority(self_: *mut GESTimelineElement) -> u32;
pub fn ges_timeline_element_get_max_duration( pub fn ges_timeline_element_get_max_duration(
self_: *mut GESTimelineElement, self_: *mut GESTimelineElement,
) -> gst::GstClockTime; ) -> gst::GstClockTime;
pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char; pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_get_natural_framerate( pub fn ges_timeline_element_get_natural_framerate(
self_: *mut GESTimelineElement, self_: *mut GESTimelineElement,
framerate_n: *mut c_int, framerate_n: *mut c_int,
@ -3553,8 +3553,8 @@ extern "C" {
pspec: *mut gobject::GParamSpec, pspec: *mut gobject::GParamSpec,
value: *const gobject::GValue, value: *const gobject::GValue,
); );
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_set_child_property_full( pub fn ges_timeline_element_set_child_property_full(
self_: *mut GESTimelineElement, self_: *mut GESTimelineElement,
property_name: *const c_char, property_name: *const c_char,
@ -3648,8 +3648,8 @@ extern "C" {
pub fn ges_track_get_type() -> GType; pub fn ges_track_get_type() -> GType;
pub fn ges_track_new(type_: GESTrackType, caps: *mut gst::GstCaps) -> *mut GESTrack; 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; pub fn ges_track_add_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_add_element_full( pub fn ges_track_add_element_full(
track: *mut GESTrack, track: *mut GESTrack,
object: *mut GESTrackElement, 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_caps(track: *mut GESTrack) -> *const gst::GstCaps;
pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList; pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList;
pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean; pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_get_restriction_caps(track: *mut GESTrack) -> *mut gst::GstCaps; 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_get_timeline(track: *mut GESTrack) -> *const GESTimeline;
pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement) pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement)
-> gboolean; -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_remove_element_full( pub fn ges_track_remove_element_full(
track: *mut GESTrack, track: *mut GESTrack,
object: *mut GESTrackElement, object: *mut GESTrackElement,
@ -3692,8 +3692,8 @@ extern "C" {
blacklist: *mut *const c_char, blacklist: *mut *const c_char,
whitelist: *mut *const c_char, whitelist: *mut *const c_char,
); );
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_clamp_control_source( pub fn ges_track_element_clamp_control_source(
object: *mut GESTrackElement, object: *mut GESTrackElement,
property_name: *const c_char, property_name: *const c_char,
@ -3708,8 +3708,8 @@ extern "C" {
pub fn ges_track_element_get_all_control_bindings( pub fn ges_track_element_get_all_control_bindings(
trackelement: *mut GESTrackElement, trackelement: *mut GESTrackElement,
) -> *mut glib::GHashTable; ) -> *mut glib::GHashTable;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_get_auto_clamp_control_sources( pub fn ges_track_element_get_auto_clamp_control_sources(
object: *mut GESTrackElement, object: *mut GESTrackElement,
) -> gboolean; ) -> 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_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(object: *mut GESTrackElement) -> *mut GESTrack;
pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType; pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean; pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean;
pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean; pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_is_core(object: *mut GESTrackElement) -> gboolean; pub fn ges_track_element_is_core(object: *mut GESTrackElement) -> gboolean;
pub fn ges_track_element_list_children_properties( pub fn ges_track_element_list_children_properties(
object: *mut GESTrackElement, object: *mut GESTrackElement,
@ -3761,8 +3761,8 @@ extern "C" {
) -> gboolean; ) -> gboolean;
pub fn ges_track_element_set_active(object: *mut GESTrackElement, active: gboolean) pub fn ges_track_element_set_active(object: *mut GESTrackElement, active: gboolean)
-> gboolean; -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_set_auto_clamp_control_sources( pub fn ges_track_element_set_auto_clamp_control_sources(
object: *mut GESTrackElement, object: *mut GESTrackElement,
auto_clamp: gboolean, auto_clamp: gboolean,
@ -3789,8 +3789,8 @@ extern "C" {
property_name: *const c_char, property_name: *const c_char,
binding_type: *const c_char, binding_type: *const c_char,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_set_has_internal_source( pub fn ges_track_element_set_has_internal_source(
object: *mut GESTrackElement, object: *mut GESTrackElement,
has_internal_source: gboolean, has_internal_source: gboolean,
@ -3801,8 +3801,8 @@ extern "C" {
// GESTrackElementAsset // GESTrackElementAsset
//========================================================================= //=========================================================================
pub fn ges_track_element_asset_get_type() -> GType; pub fn ges_track_element_asset_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_asset_get_natural_framerate( pub fn ges_track_element_asset_get_natural_framerate(
self_: *mut GESTrackElementAsset, self_: *mut GESTrackElementAsset,
framerate_n: *mut c_int, framerate_n: *mut c_int,
@ -3843,8 +3843,8 @@ extern "C" {
// GESUriClipAsset // GESUriClipAsset
//========================================================================= //=========================================================================
pub fn ges_uri_clip_asset_get_type() -> GType; pub fn ges_uri_clip_asset_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn ges_uri_clip_asset_finish( pub fn ges_uri_clip_asset_finish(
res: *mut gio::GAsyncResult, res: *mut gio::GAsyncResult,
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
@ -3863,12 +3863,12 @@ extern "C" {
pub fn ges_uri_clip_asset_get_info( pub fn ges_uri_clip_asset_get_info(
self_: *const GESUriClipAsset, self_: *const GESUriClipAsset,
) -> *mut gst_pbutils::GstDiscovererInfo; ) -> *mut gst_pbutils::GstDiscovererInfo;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), 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_max_duration(self_: *mut GESUriClipAsset) -> gst::GstClockTime;
pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList; pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean; pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean;
//========================================================================= //=========================================================================
@ -3882,16 +3882,16 @@ extern "C" {
asset: *mut GESUriSourceAsset, asset: *mut GESUriSourceAsset,
) -> *mut gst_pbutils::GstDiscovererStreamInfo; ) -> *mut gst_pbutils::GstDiscovererStreamInfo;
pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char; pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean; pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean;
//========================================================================= //=========================================================================
// GESVideoSource // GESVideoSource
//========================================================================= //=========================================================================
pub fn ges_video_source_get_type() -> GType; pub fn ges_video_source_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_video_source_get_natural_size( pub fn ges_video_source_get_natural_size(
self_: *mut GESVideoSource, self_: *mut GESVideoSource,
width: *mut c_int, width: *mut c_int,
@ -4005,8 +4005,8 @@ extern "C" {
meta_item: *const c_char, meta_item: *const c_char,
dest: *mut i64, dest: *mut i64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_meta_container_get_marker_list( pub fn ges_meta_container_get_marker_list(
container: *mut GESMetaContainer, container: *mut GESMetaContainer,
key: *const c_char, key: *const c_char,
@ -4096,8 +4096,8 @@ extern "C" {
meta_item: *const c_char, meta_item: *const c_char,
value: u64, value: u64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_meta_container_register_static_meta( pub fn ges_meta_container_register_static_meta(
container: *mut GESMetaContainer, container: *mut GESMetaContainer,
flags: GESMetaFlag, flags: GESMetaFlag,
@ -4139,8 +4139,8 @@ extern "C" {
meta_item: *const c_char, meta_item: *const c_char,
value: i64, value: i64,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_meta_container_set_marker_list( pub fn ges_meta_container_set_marker_list(
container: *mut GESMetaContainer, container: *mut GESMetaContainer,
meta_item: *const c_char, 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_add_missing_uri_relocation_uri(uri: *const c_char, recurse: gboolean) -> gboolean;
pub fn ges_deinit(); pub fn ges_deinit();
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset; pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset;
pub fn ges_init() -> gboolean; pub fn ges_init() -> gboolean;
pub fn ges_init_check( pub fn ges_init_check(
@ -4182,8 +4182,8 @@ extern "C" {
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
) -> gboolean; ) -> gboolean;
pub fn ges_init_get_option_group() -> *mut glib::GOptionGroup; pub fn ges_init_get_option_group() -> *mut glib::GOptionGroup;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn ges_is_initialized() -> gboolean; pub fn ges_is_initialized() -> gboolean;
pub fn ges_list_assets(filter: GType) -> *mut glib::GList; pub fn ges_list_assets(filter: GType) -> *mut glib::GList;
pub fn ges_play_sink_convert_frame( pub fn ges_play_sink_convert_frame(

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_editing_services_sys::*; use gstreamer_editing_services_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -71,8 +71,8 @@ bitflags! {
const EGL = 32; const EGL = 32;
const VIV_FB = 64; const VIV_FB = 64;
const GBM = 128; const GBM = 128;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
const EGL_DEVICE = 256; const EGL_DEVICE = 256;
} }
} }

View file

@ -27,12 +27,12 @@ unsafe impl Sync for GLBaseFilter {}
pub const NONE_GL_BASE_FILTER: Option<&GLBaseFilter> = None; pub const NONE_GL_BASE_FILTER: Option<&GLBaseFilter> = None;
pub trait GLBaseFilterExt: 'static { pub trait GLBaseFilterExt: 'static {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn find_gl_context(&self) -> bool; fn find_gl_context(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_gl_context(&self) -> Option<GLContext>; fn get_gl_context(&self) -> Option<GLContext>;
fn get_property_context(&self) -> Option<GLContext>; fn get_property_context(&self) -> Option<GLContext>;
@ -44,8 +44,8 @@ pub trait GLBaseFilterExt: 'static {
} }
impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O { impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn find_gl_context(&self) -> bool { fn find_gl_context(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_gl_base_filter_find_gl_context( from_glib(ffi::gst_gl_base_filter_find_gl_context(
@ -54,8 +54,8 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn get_gl_context(&self) -> Option<GLContext> { fn get_gl_context(&self) -> Option<GLContext> {
unsafe { unsafe {
from_glib_full(ffi::gst_gl_base_filter_get_gl_context( from_glib_full(ffi::gst_gl_base_filter_get_gl_context(

View file

@ -95,12 +95,12 @@ pub trait GLContextExt: 'static {
fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool; fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
fn swap_buffers(&self); fn swap_buffers(&self);
@ -301,8 +301,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_gl_context_supports_precision( from_glib(ffi::gst_gl_context_supports_precision(
@ -313,8 +313,8 @@ impl<O: IsA<GLContext>> GLContextExt for O {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool { fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_gl_context_supports_precision_highp( from_glib(ffi::gst_gl_context_supports_precision_highp(

View file

@ -59,14 +59,14 @@ pub trait GLDisplayExt: 'static {
fn get_handle_type(&self) -> GLDisplayType; fn get_handle_type(&self) -> GLDisplayType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn remove_context<P: IsA<GLContext>>(&self, context: &P); fn remove_context<P: IsA<GLContext>>(&self, context: &P);
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError>; fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError>;
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), 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 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>( 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", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn remove_context<P: IsA<GLContext>>(&self, context: &P) { fn remove_context<P: IsA<GLContext>>(&self, context: &P) {
unsafe { unsafe {
ffi::gst_gl_display_remove_context( ffi::gst_gl_display_remove_context(
@ -171,8 +171,8 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
} }
} }
//#[cfg(any(feature = "v1_18", feature = "dox"))] //#[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] //#[cfg_attr(all(not(doctest), doc), 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 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() } // unsafe { TODO: call ffi:gst_gl_display_retrieve_window() }
//} //}

View file

@ -4,27 +4,27 @@
use crate::GLContext; use crate::GLContext;
use glib::object::IsA; use glib::object::IsA;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use glib::object::ObjectType as ObjectType_; use glib::object::ObjectType as ObjectType_;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use glib::signal::connect_raw; use glib::signal::connect_raw;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::translate::*; use glib::translate::*;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use glib::StaticType; use glib::StaticType;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use glib::Value; use glib::Value;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use std::boxed::Box as Box_; use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use std::mem::transmute; use std::mem::transmute;
glib::glib_wrapper! { glib::glib_wrapper! {
@ -57,8 +57,8 @@ impl GLOverlayCompositor {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn get_property_yinvert(&self) -> bool { pub fn get_property_yinvert(&self) -> bool {
unsafe { unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type()); let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -74,8 +74,8 @@ impl GLOverlayCompositor {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn set_property_yinvert(&self, yinvert: bool) { pub fn set_property_yinvert(&self, yinvert: bool) {
unsafe { unsafe {
glib::gobject_ffi::g_object_set_property( glib::gobject_ffi::g_object_set_property(
@ -95,8 +95,8 @@ impl GLOverlayCompositor {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn connect_property_yinvert_notify<F: Fn(&GLOverlayCompositor) + Send + Sync + 'static>( pub fn connect_property_yinvert_notify<F: Fn(&GLOverlayCompositor) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -3,12 +3,12 @@
// DO NOT EDIT // DO NOT EDIT
use crate::GLContext; use crate::GLContext;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use crate::GLSLProfile; use crate::GLSLProfile;
use crate::GLSLStage; use crate::GLSLStage;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
use crate::GLSLVersion; use crate::GLSLVersion;
use glib::object::IsA; use glib::object::IsA;
use glib::object::ObjectType as ObjectType_; use glib::object::ObjectType as ObjectType_;
@ -351,8 +351,8 @@ impl GLShader {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn string_fragment_external_oes_get_default<P: IsA<GLContext>>( pub fn string_fragment_external_oes_get_default<P: IsA<GLContext>>(
context: &P, context: &P,
version: GLSLVersion, version: GLSLVersion,
@ -368,8 +368,8 @@ impl GLShader {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn string_fragment_get_default<P: IsA<GLContext>>( pub fn string_fragment_get_default<P: IsA<GLContext>>(
context: &P, context: &P,
version: GLSLVersion, version: GLSLVersion,
@ -385,8 +385,8 @@ impl GLShader {
} }
} }
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn string_get_highest_precision<P: IsA<GLContext>>( pub fn string_get_highest_precision<P: IsA<GLContext>>(
context: &P, context: &P,
version: GLSLVersion, version: GLSLVersion,

View file

@ -34,8 +34,8 @@ unsafe impl Sync for GLWindow {}
pub const NONE_GL_WINDOW: Option<&GLWindow> = None; pub const NONE_GL_WINDOW: Option<&GLWindow> = None;
pub trait GLWindowExt: 'static { pub trait GLWindowExt: 'static {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn controls_viewport(&self) -> bool; fn controls_viewport(&self) -> bool;
fn draw(&self); fn draw(&self);
@ -46,8 +46,8 @@ pub trait GLWindowExt: 'static {
fn handle_events(&self, handle_events: bool); fn handle_events(&self, handle_events: bool);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn has_output_surface(&self) -> bool; fn has_output_surface(&self) -> bool;
fn queue_resize(&self); 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); fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64); fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64);
fn set_preferred_size(&self, width: i32, height: i32); fn set_preferred_size(&self, width: i32, height: i32);
@ -88,8 +88,8 @@ pub trait GLWindowExt: 'static {
f: F, f: F,
) -> SignalHandlerId; ) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>( fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,
@ -97,8 +97,8 @@ pub trait GLWindowExt: 'static {
} }
impl<O: IsA<GLWindow>> GLWindowExt for O { impl<O: IsA<GLWindow>> GLWindowExt for O {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
fn controls_viewport(&self) -> bool { fn controls_viewport(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_gl_window_controls_viewport( from_glib(ffi::gst_gl_window_controls_viewport(
@ -145,8 +145,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn has_output_surface(&self) -> bool { fn has_output_surface(&self) -> bool {
unsafe { unsafe {
from_glib(ffi::gst_gl_window_has_output_surface( 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", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) { fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) {
unsafe { unsafe {
ffi::gst_gl_window_send_scroll_event( ffi::gst_gl_window_send_scroll_event(
@ -322,8 +322,8 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
} }
} }
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>( fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
&self, &self,
f: F, f: F,

View file

@ -2,14 +2,14 @@
// from gir-files (https://github.com/gtk-rs/gir-files) // from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT // DO NOT EDIT
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
mod gl_base_filter; mod gl_base_filter;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub use self::gl_base_filter::GLBaseFilterExt; pub use self::gl_base_filter::GLBaseFilterExt;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub use self::gl_base_filter::{GLBaseFilter, NONE_GL_BASE_FILTER}; pub use self::gl_base_filter::{GLBaseFilter, NONE_GL_BASE_FILTER};
mod gl_color_convert; mod gl_color_convert;
@ -23,25 +23,25 @@ mod gl_display;
pub use self::gl_display::GLDisplayExt; pub use self::gl_display::GLDisplayExt;
pub use self::gl_display::{GLDisplay, NONE_GL_DISPLAY}; pub use self::gl_display::{GLDisplay, NONE_GL_DISPLAY};
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
mod gl_display_egl; mod gl_display_egl;
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
pub use self::gl_display_egl::GLDisplayEGL; pub use self::gl_display_egl::GLDisplayEGL;
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
mod gl_display_wayland; mod gl_display_wayland;
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
pub use self::gl_display_wayland::GLDisplayWayland; pub use self::gl_display_wayland::GLDisplayWayland;
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
mod gl_display_x11; mod gl_display_x11;
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
pub use self::gl_display_x11::GLDisplayX11; pub use self::gl_display_x11::GLDisplayX11;
mod gl_framebuffer; mod gl_framebuffer;
@ -86,8 +86,8 @@ pub use self::flags::GLAPI;
#[doc(hidden)] #[doc(hidden)]
pub mod traits { pub mod traits {
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub use super::GLBaseFilterExt; pub use super::GLBaseFilterExt;
pub use super::GLContextExt; pub use super::GLContextExt;
pub use super::GLDisplayExt; pub use super::GLDisplayExt;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ 135fd08b) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -52,7 +52,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_gl_1_0] [package.metadata.system-deps.gstreamer_gl_1_0]
name = "gstreamer-gl-1.0" name = "gstreamer-gl-1.0"
version = "1.14" version = "1.14"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use glib_sys as glib; use glib_sys as glib;
use gobject_sys as gobject; use gobject_sys as gobject;
@ -599,8 +599,8 @@ impl ::std::fmt::Debug for GstGLDisplayClass {
} }
} }
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct GstGLDisplayEGLClass { pub struct GstGLDisplayEGLClass {
@ -608,8 +608,8 @@ pub struct GstGLDisplayEGLClass {
pub _padding: [gpointer; 4], pub _padding: [gpointer; 4],
} }
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
impl ::std::fmt::Debug for GstGLDisplayEGLClass { impl ::std::fmt::Debug for GstGLDisplayEGLClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayEGLClass @ {:?}", self as *const _)) f.debug_struct(&format!("GstGLDisplayEGLClass @ {:?}", self as *const _))
@ -624,8 +624,8 @@ pub struct _GstGLDisplayPrivate(c_void);
pub type GstGLDisplayPrivate = *mut _GstGLDisplayPrivate; pub type GstGLDisplayPrivate = *mut _GstGLDisplayPrivate;
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct GstGLDisplayWaylandClass { pub struct GstGLDisplayWaylandClass {
@ -633,8 +633,8 @@ pub struct GstGLDisplayWaylandClass {
pub _padding: [gpointer; 4], pub _padding: [gpointer; 4],
} }
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
impl ::std::fmt::Debug for GstGLDisplayWaylandClass { impl ::std::fmt::Debug for GstGLDisplayWaylandClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!( f.debug_struct(&format!(
@ -647,8 +647,8 @@ impl ::std::fmt::Debug for GstGLDisplayWaylandClass {
} }
} }
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct GstGLDisplayX11Class { pub struct GstGLDisplayX11Class {
@ -656,8 +656,8 @@ pub struct GstGLDisplayX11Class {
pub _padding: [gpointer; 4], pub _padding: [gpointer; 4],
} }
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
impl ::std::fmt::Debug for GstGLDisplayX11Class { impl ::std::fmt::Debug for GstGLDisplayX11Class {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayX11Class @ {:?}", self as *const _)) f.debug_struct(&format!("GstGLDisplayX11Class @ {:?}", self as *const _))
@ -1294,8 +1294,8 @@ impl ::std::fmt::Debug for GstGLDisplay {
} }
} }
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct GstGLDisplayEGL { pub struct GstGLDisplayEGL {
@ -1305,8 +1305,8 @@ pub struct GstGLDisplayEGL {
pub _padding: [gpointer; 4], pub _padding: [gpointer; 4],
} }
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
impl ::std::fmt::Debug for GstGLDisplayEGL { impl ::std::fmt::Debug for GstGLDisplayEGL {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayEGL @ {:?}", self as *const _)) f.debug_struct(&format!("GstGLDisplayEGL @ {:?}", self as *const _))
@ -1315,8 +1315,8 @@ impl ::std::fmt::Debug for GstGLDisplayEGL {
} }
} }
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct GstGLDisplayWayland { pub struct GstGLDisplayWayland {
@ -1330,8 +1330,8 @@ pub struct GstGLDisplayWayland {
pub _padding: [gpointer; 4], pub _padding: [gpointer; 4],
} }
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
impl ::std::fmt::Debug for GstGLDisplayWayland { impl ::std::fmt::Debug for GstGLDisplayWayland {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayWayland @ {:?}", self as *const _)) f.debug_struct(&format!("GstGLDisplayWayland @ {:?}", self as *const _))
@ -1345,8 +1345,8 @@ impl ::std::fmt::Debug for GstGLDisplayWayland {
} }
} }
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct GstGLDisplayX11 { pub struct GstGLDisplayX11 {
@ -1358,8 +1358,8 @@ pub struct GstGLDisplayX11 {
pub _padding: [gpointer; 4], pub _padding: [gpointer; 4],
} }
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
impl ::std::fmt::Debug for GstGLDisplayX11 { impl ::std::fmt::Debug for GstGLDisplayX11 {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayX11 @ {:?}", self as *const _)) f.debug_struct(&format!("GstGLDisplayX11 @ {:?}", self as *const _))
@ -1642,11 +1642,11 @@ extern "C" {
vinfo: *mut gst_video::GstVideoInfo, vinfo: *mut gst_video::GstVideoInfo,
plane: c_uint, plane: c_uint,
) -> GstGLFormat; ) -> GstGLFormat;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_format_is_supported(context: *mut GstGLContext, format: GstGLFormat) -> gboolean; pub fn gst_gl_format_is_supported(context: *mut GstGLContext, format: GstGLFormat) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_format_type_from_sized_gl_format( pub fn gst_gl_format_type_from_sized_gl_format(
format: GstGLFormat, format: GstGLFormat,
unsized_format: *mut GstGLFormat, unsized_format: *mut GstGLFormat,
@ -2044,11 +2044,11 @@ extern "C" {
// GstGLBaseFilter // GstGLBaseFilter
//========================================================================= //=========================================================================
pub fn gst_gl_base_filter_get_type() -> GType; pub fn gst_gl_base_filter_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_base_filter_find_gl_context(filter: *mut GstGLBaseFilter) -> gboolean; pub fn gst_gl_base_filter_find_gl_context(filter: *mut GstGLBaseFilter) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext; pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext;
//========================================================================= //=========================================================================
@ -2059,8 +2059,8 @@ extern "C" {
//========================================================================= //=========================================================================
// GstGLBaseSrc // GstGLBaseSrc
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_gl_base_src_get_type() -> GType; pub fn gst_gl_base_src_get_type() -> GType;
//========================================================================= //=========================================================================
@ -2194,15 +2194,15 @@ extern "C" {
version: GstGLSLVersion, version: GstGLSLVersion,
profile: GstGLSLProfile, profile: GstGLSLProfile,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_context_supports_precision( pub fn gst_gl_context_supports_precision(
context: *mut GstGLContext, context: *mut GstGLContext,
version: GstGLSLVersion, version: GstGLSLVersion,
profile: GstGLSLProfile, profile: GstGLSLProfile,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_context_supports_precision_highp( pub fn gst_gl_context_supports_precision_highp(
context: *mut GstGLContext, context: *mut GstGLContext,
version: GstGLSLVersion, version: GstGLSLVersion,
@ -2245,15 +2245,15 @@ extern "C" {
) -> *mut GstGLContext; ) -> *mut GstGLContext;
pub fn gst_gl_display_get_handle(display: *mut GstGLDisplay) -> uintptr_t; pub fn gst_gl_display_get_handle(display: *mut GstGLDisplay) -> uintptr_t;
pub fn gst_gl_display_get_handle_type(display: *mut GstGLDisplay) -> GstGLDisplayType; pub fn gst_gl_display_get_handle_type(display: *mut GstGLDisplay) -> GstGLDisplayType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_gl_display_remove_context(display: *mut GstGLDisplay, context: *mut GstGLContext); pub fn gst_gl_display_remove_context(display: *mut GstGLDisplay, context: *mut GstGLContext);
pub fn gst_gl_display_remove_window( pub fn gst_gl_display_remove_window(
display: *mut GstGLDisplay, display: *mut GstGLDisplay,
window: *mut GstGLWindow, window: *mut GstGLWindow,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_gl_display_retrieve_window( pub fn gst_gl_display_retrieve_window(
display: *mut GstGLDisplay, display: *mut GstGLDisplay,
data: gpointer, data: gpointer,
@ -2263,20 +2263,20 @@ extern "C" {
//========================================================================= //=========================================================================
// GstGLDisplayEGL // GstGLDisplayEGL
//========================================================================= //=========================================================================
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_get_type() -> GType; pub fn gst_gl_display_egl_get_type() -> GType;
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_new() -> *mut GstGLDisplayEGL; pub fn gst_gl_display_egl_new() -> *mut GstGLDisplayEGL;
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_new_with_egl_display(display: gpointer) -> *mut GstGLDisplayEGL; pub fn gst_gl_display_egl_new_with_egl_display(display: gpointer) -> *mut GstGLDisplayEGL;
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_from_gl_display(display: *mut GstGLDisplay) -> *mut GstGLDisplayEGL; pub fn gst_gl_display_egl_from_gl_display(display: *mut GstGLDisplay) -> *mut GstGLDisplayEGL;
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_get_from_native( pub fn gst_gl_display_egl_get_from_native(
type_: GstGLDisplayType, type_: GstGLDisplayType,
display: uintptr_t, display: uintptr_t,
@ -2285,27 +2285,27 @@ extern "C" {
//========================================================================= //=========================================================================
// GstGLDisplayWayland // GstGLDisplayWayland
//========================================================================= //=========================================================================
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
pub fn gst_gl_display_wayland_get_type() -> GType; pub fn gst_gl_display_wayland_get_type() -> GType;
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
pub fn gst_gl_display_wayland_new(name: *const c_char) -> *mut GstGLDisplayWayland; pub fn gst_gl_display_wayland_new(name: *const c_char) -> *mut GstGLDisplayWayland;
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
pub fn gst_gl_display_wayland_new_with_display(display: gpointer) -> *mut GstGLDisplayWayland; pub fn gst_gl_display_wayland_new_with_display(display: gpointer) -> *mut GstGLDisplayWayland;
//========================================================================= //=========================================================================
// GstGLDisplayX11 // GstGLDisplayX11
//========================================================================= //=========================================================================
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
pub fn gst_gl_display_x11_get_type() -> GType; pub fn gst_gl_display_x11_get_type() -> GType;
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
pub fn gst_gl_display_x11_new(name: *const c_char) -> *mut GstGLDisplayX11; pub fn gst_gl_display_x11_new(name: *const c_char) -> *mut GstGLDisplayX11;
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
pub fn gst_gl_display_x11_new_with_display(display: gpointer) -> *mut GstGLDisplayX11; pub fn gst_gl_display_x11_new_with_display(display: gpointer) -> *mut GstGLDisplayX11;
//========================================================================= //=========================================================================
@ -2451,22 +2451,22 @@ extern "C" {
error: *mut *mut glib::GError, error: *mut *mut glib::GError,
... ...
) -> *mut GstGLShader; ) -> *mut GstGLShader;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_shader_string_fragment_external_oes_get_default( pub fn gst_gl_shader_string_fragment_external_oes_get_default(
context: *mut GstGLContext, context: *mut GstGLContext,
version: GstGLSLVersion, version: GstGLSLVersion,
profile: GstGLSLProfile, profile: GstGLSLProfile,
) -> *mut c_char; ) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_shader_string_fragment_get_default( pub fn gst_gl_shader_string_fragment_get_default(
context: *mut GstGLContext, context: *mut GstGLContext,
version: GstGLSLVersion, version: GstGLSLVersion,
profile: GstGLSLProfile, profile: GstGLSLProfile,
) -> *mut c_char; ) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_shader_string_get_highest_precision( pub fn gst_gl_shader_string_get_highest_precision(
context: *mut GstGLContext, context: *mut GstGLContext,
version: GstGLSLVersion, version: GstGLSLVersion,
@ -2749,8 +2749,8 @@ extern "C" {
//========================================================================= //=========================================================================
pub fn gst_gl_window_get_type() -> GType; pub fn gst_gl_window_get_type() -> GType;
pub fn gst_gl_window_new(display: *mut GstGLDisplay) -> *mut GstGLWindow; pub fn gst_gl_window_new(display: *mut GstGLDisplay) -> *mut GstGLWindow;
#[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg(any(feature = "v1_16", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_16")))]
pub fn gst_gl_window_controls_viewport(window: *mut GstGLWindow) -> gboolean; pub fn gst_gl_window_controls_viewport(window: *mut GstGLWindow) -> gboolean;
pub fn gst_gl_window_draw(window: *mut GstGLWindow); pub fn gst_gl_window_draw(window: *mut GstGLWindow);
pub fn gst_gl_window_get_context(window: *mut GstGLWindow) -> *mut GstGLContext; pub fn gst_gl_window_get_context(window: *mut GstGLWindow) -> *mut GstGLContext;
@ -2762,8 +2762,8 @@ extern "C" {
); );
pub fn gst_gl_window_get_window_handle(window: *mut GstGLWindow) -> uintptr_t; pub fn gst_gl_window_get_window_handle(window: *mut GstGLWindow) -> uintptr_t;
pub fn gst_gl_window_handle_events(window: *mut GstGLWindow, handle_events: gboolean); pub fn gst_gl_window_handle_events(window: *mut GstGLWindow, handle_events: gboolean);
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_gl_window_has_output_surface(window: *mut GstGLWindow) -> gboolean; pub fn gst_gl_window_has_output_surface(window: *mut GstGLWindow) -> gboolean;
pub fn gst_gl_window_queue_resize(window: *mut GstGLWindow); pub fn gst_gl_window_queue_resize(window: *mut GstGLWindow);
pub fn gst_gl_window_quit(window: *mut GstGLWindow); pub fn gst_gl_window_quit(window: *mut GstGLWindow);
@ -2792,8 +2792,8 @@ extern "C" {
posx: c_double, posx: c_double,
posy: c_double, posy: c_double,
); );
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_gl_window_send_scroll_event( pub fn gst_gl_window_send_scroll_event(
window: *mut GstGLWindow, window: *mut GstGLWindow,
posx: c_double, posx: c_double,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_gl_sys::*; use gstreamer_gl_sys::*;
@ -424,8 +424,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLDisplayClass>(), alignment: align_of::<GstGLDisplayClass>(),
}, },
), ),
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
( (
"GstGLDisplayEGL", "GstGLDisplayEGL",
Layout { Layout {
@ -433,8 +433,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLDisplayEGL>(), alignment: align_of::<GstGLDisplayEGL>(),
}, },
), ),
#[cfg(any(feature = "egl", feature = "dox"))] #[cfg(any(feature = "egl", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "egl")))]
( (
"GstGLDisplayEGLClass", "GstGLDisplayEGLClass",
Layout { Layout {
@ -449,8 +449,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLDisplayType>(), alignment: align_of::<GstGLDisplayType>(),
}, },
), ),
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
( (
"GstGLDisplayWayland", "GstGLDisplayWayland",
Layout { Layout {
@ -458,8 +458,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLDisplayWayland>(), alignment: align_of::<GstGLDisplayWayland>(),
}, },
), ),
#[cfg(any(feature = "wayland", feature = "dox"))] #[cfg(any(feature = "wayland", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "wayland")))]
( (
"GstGLDisplayWaylandClass", "GstGLDisplayWaylandClass",
Layout { Layout {
@ -467,8 +467,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLDisplayWaylandClass>(), alignment: align_of::<GstGLDisplayWaylandClass>(),
}, },
), ),
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
( (
"GstGLDisplayX11", "GstGLDisplayX11",
Layout { Layout {
@ -476,8 +476,8 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
alignment: align_of::<GstGLDisplayX11>(), alignment: align_of::<GstGLDisplayX11>(),
}, },
), ),
#[cfg(any(feature = "x11", feature = "dox"))] #[cfg(any(feature = "x11", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "x11")))]
( (
"GstGLDisplayX11Class", "GstGLDisplayX11Class",
Layout { Layout {

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -50,7 +50,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_mpegts_1_0] [package.metadata.system-deps.gstreamer_mpegts_1_0]
name = "gstreamer-mpegts-1.0" name = "gstreamer-mpegts-1.0"
version = "1.12" version = "1.12"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use glib_sys as glib; use glib_sys as glib;
use gobject_sys as gobject; use gobject_sys as gobject;
@ -1900,11 +1900,11 @@ extern "C" {
//========================================================================= //=========================================================================
// GstMpegtsAtscRRT // GstMpegtsAtscRRT
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_get_type() -> GType; pub fn gst_mpegts_atsc_rrt_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT; pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT;
//========================================================================= //=========================================================================
@ -1916,11 +1916,11 @@ extern "C" {
//========================================================================= //=========================================================================
// GstMpegtsAtscRRTDimensionValue // GstMpegtsAtscRRTDimensionValue
//========================================================================= //=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_dimension_value_get_type() -> GType; pub fn gst_mpegts_atsc_rrt_dimension_value_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue; pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue;
//========================================================================= //=========================================================================
@ -2370,8 +2370,8 @@ extern "C" {
pub fn gst_mpegts_section_get_atsc_mgt( pub fn gst_mpegts_section_get_atsc_mgt(
section: *mut GstMpegtsSection, section: *mut GstMpegtsSection,
) -> *const GstMpegtsAtscMGT; ) -> *const GstMpegtsAtscMGT;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_section_get_atsc_rrt( pub fn gst_mpegts_section_get_atsc_rrt(
section: *mut GstMpegtsSection, section: *mut GstMpegtsSection,
) -> *const GstMpegtsAtscRRT; ) -> *const GstMpegtsAtscRRT;
@ -2403,11 +2403,11 @@ extern "C" {
section: *mut GstMpegtsSection, section: *mut GstMpegtsSection,
element: *mut gst::GstElement, element: *mut gst::GstElement,
) -> gboolean; ) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_section_from_atsc_mgt(mgt: *mut GstMpegtsAtscMGT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_atsc_mgt(mgt: *mut GstMpegtsAtscMGT) -> *mut GstMpegtsSection;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_section_from_atsc_rrt(rrt: *mut GstMpegtsAtscRRT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_atsc_rrt(rrt: *mut GstMpegtsAtscRRT) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_atsc_stt(stt: *mut GstMpegtsAtscSTT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_atsc_stt(stt: *mut GstMpegtsAtscSTT) -> *mut GstMpegtsSection;
pub fn gst_mpegts_section_from_nit(nit: *mut GstMpegtsNIT) -> *mut GstMpegtsSection; pub fn gst_mpegts_section_from_nit(nit: *mut GstMpegtsNIT) -> *mut GstMpegtsSection;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_mpegts_sys::*; use gstreamer_mpegts_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) Generated by gir (https://github.com/gtk-rs/gir @ b16d610)
from gir-files (https://github.com/gtk-rs/gir-files @ 520eb582) from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)

View file

@ -47,7 +47,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
version = "0.17.0" version = "0.17.0"
edition = "2018" edition = "2018"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["dox"] features = []
[package.metadata.system-deps.gstreamer_net_1_0] [package.metadata.system-deps.gstreamer_net_1_0]
name = "gstreamer-net-1.0" name = "gstreamer-net-1.0"
version = "1.8" version = "1.8"

View file

@ -1,14 +1,14 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
use std::process; use std::process;
#[cfg(feature = "dox")] #[cfg(all(not(doctest), doc))]
fn main() {} // prevent linking libraries to avoid documentation failure fn main() {} // prevent linking libraries to avoid documentation failure
#[cfg(not(feature = "dox"))] #[cfg(any(not(doc), doctest))]
fn main() { fn main() {
if let Err(s) = system_deps::Config::new().probe() { if let Err(s) = system_deps::Config::new().probe() {
let _ = eprintln!("{}", s); let _ = eprintln!("{}", s);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 8865faed) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,7 +8,7 @@
clippy::type_complexity, clippy::type_complexity,
clippy::unreadable_literal clippy::unreadable_literal
)] )]
#![cfg_attr(feature = "dox", feature(doc_cfg))] #![cfg_attr(all(not(doctest), doc), feature(doc_cfg))]
use gio_sys as gio; use gio_sys as gio;
use glib_sys as glib; use glib_sys as glib;
@ -317,8 +317,8 @@ extern "C" {
pub fn gst_buffer_get_net_address_meta(buffer: *mut gst::GstBuffer) -> *mut GstNetAddressMeta; pub fn gst_buffer_get_net_address_meta(buffer: *mut gst::GstBuffer) -> *mut GstNetAddressMeta;
pub fn gst_net_address_meta_api_get_type() -> GType; pub fn gst_net_address_meta_api_get_type() -> GType;
pub fn gst_net_control_message_meta_api_get_type() -> GType; pub fn gst_net_control_message_meta_api_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg(any(feature = "v1_18", all(not(doctest), doc)))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[cfg_attr(all(not(doctest), doc), doc(cfg(feature = "v1_18")))]
pub fn gst_net_utils_set_socket_tos(socket: *mut gio::GSocket, qos_dscp: c_int) -> gboolean; pub fn gst_net_utils_set_socket_tos(socket: *mut gio::GSocket, qos_dscp: c_int) -> gboolean;
pub fn gst_ptp_deinit(); pub fn gst_ptp_deinit();
pub fn gst_ptp_init(clock_id: u64, interfaces: *mut *mut c_char) -> gboolean; pub fn gst_ptp_init(clock_id: u64, interfaces: *mut *mut c_char) -> gboolean;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
use gstreamer_net_sys::*; use gstreamer_net_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 694b4b8) // This file was generated by gir (https://github.com/gtk-rs/gir @ b16d610)
// from gir-files (https://github.com/gtk-rs/gir-files @ 58bda97d) // from gir-files (https://github.com/gtk-rs/gir-files @ 2bd095f2)
// DO NOT EDIT // DO NOT EDIT
#include "manual.h" #include "manual.h"

Some files were not shown because too many files have changed in this diff Show more