Regenerate with doc(cfg()) attribute on all symbols

This is enabled by a new version of gir, as updated in the previous
commit.
This commit is contained in:
Marijn Suijten 2020-11-19 10:16:33 +01:00
parent 2ce40e4973
commit 9daa8d20a9
195 changed files with 1856 additions and 224 deletions

View file

@ -27,6 +27,7 @@ glib_wrapper! {
impl AppSink {
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn get_buffer_list_support(&self) -> bool {
unsafe {
from_glib(gst_app_sys::gst_app_sink_get_buffer_list_support(
@ -86,6 +87,7 @@ impl AppSink {
}
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn set_buffer_list_support(&self, enable_lists: bool) {
unsafe {
gst_app_sys::gst_app_sink_set_buffer_list_support(
@ -130,6 +132,7 @@ impl AppSink {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn try_pull_preroll(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
unsafe {
from_glib_full(gst_app_sys::gst_app_sink_try_pull_preroll(
@ -140,6 +143,7 @@ impl AppSink {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn try_pull_sample(&self, timeout: gst::ClockTime) -> Option<gst::Sample> {
unsafe {
from_glib_full(gst_app_sys::gst_app_sink_try_pull_sample(

View file

@ -36,6 +36,7 @@ impl AppSrc {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn get_duration(&self) -> gst::ClockTime {
unsafe { from_glib(gst_app_sys::gst_app_src_get_duration(self.to_glib_none().0)) }
}
@ -75,6 +76,7 @@ impl AppSrc {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn set_duration(&self, duration: gst::ClockTime) {
unsafe {
gst_app_sys::gst_app_src_set_duration(self.to_glib_none().0, duration.to_glib());
@ -156,6 +158,7 @@ impl AppSrc {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn get_property_handle_segment_change(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -172,6 +175,7 @@ impl AppSrc {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn set_property_handle_segment_change(&self, handle_segment_change: bool) {
unsafe {
gobject_sys::g_object_set_property(
@ -436,6 +440,7 @@ impl AppSrc {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn connect_property_duration_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,
@ -514,6 +519,7 @@ impl AppSrc {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn connect_property_handle_segment_change_notify<F: Fn(&AppSrc) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gstreamer_base_sys as gst_base;
@ -187,6 +188,7 @@ extern "C" {
//=========================================================================
pub fn gst_app_sink_get_type() -> GType;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_app_sink_get_buffer_list_support(appsink: *mut GstAppSink) -> gboolean;
pub fn gst_app_sink_get_caps(appsink: *mut GstAppSink) -> *mut gst::GstCaps;
pub fn gst_app_sink_get_drop(appsink: *mut GstAppSink) -> gboolean;
@ -197,6 +199,7 @@ extern "C" {
pub fn gst_app_sink_pull_preroll(appsink: *mut GstAppSink) -> *mut gst::GstSample;
pub fn gst_app_sink_pull_sample(appsink: *mut GstAppSink) -> *mut gst::GstSample;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_app_sink_set_buffer_list_support(appsink: *mut GstAppSink, enable_lists: gboolean);
pub fn gst_app_sink_set_callbacks(
appsink: *mut GstAppSink,
@ -210,11 +213,13 @@ extern "C" {
pub fn gst_app_sink_set_max_buffers(appsink: *mut GstAppSink, max: c_uint);
pub fn gst_app_sink_set_wait_on_eos(appsink: *mut GstAppSink, wait: gboolean);
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_app_sink_try_pull_preroll(
appsink: *mut GstAppSink,
timeout: gst::GstClockTime,
) -> *mut gst::GstSample;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_app_sink_try_pull_sample(
appsink: *mut GstAppSink,
timeout: gst::GstClockTime,
@ -228,6 +233,7 @@ extern "C" {
pub fn gst_app_src_get_caps(appsrc: *mut GstAppSrc) -> *mut gst::GstCaps;
pub fn gst_app_src_get_current_level_bytes(appsrc: *mut GstAppSrc) -> u64;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_app_src_get_duration(appsrc: *mut GstAppSrc) -> gst::GstClockTime;
pub fn gst_app_src_get_emit_signals(appsrc: *mut GstAppSrc) -> gboolean;
pub fn gst_app_src_get_latency(appsrc: *mut GstAppSrc, min: *mut u64, max: *mut u64);
@ -239,6 +245,7 @@ extern "C" {
buffer: *mut gst::GstBuffer,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_app_src_push_buffer_list(
appsrc: *mut GstAppSrc,
buffer_list: *mut gst::GstBufferList,
@ -255,6 +262,7 @@ extern "C" {
);
pub fn gst_app_src_set_caps(appsrc: *mut GstAppSrc, caps: *const gst::GstCaps);
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_app_src_set_duration(appsrc: *mut GstAppSrc, duration: gst::GstClockTime);
pub fn gst_app_src_set_emit_signals(appsrc: *mut GstAppSrc, emit: gboolean);
pub fn gst_app_src_set_latency(appsrc: *mut GstAppSrc, min: u64, max: u64);

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_app_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -61,6 +61,7 @@ pub trait AudioDecoderExt: 'static {
fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>);
fn set_drainable(&self, enabled: bool);
@ -84,6 +85,7 @@ pub trait AudioDecoderExt: 'static {
fn set_use_default_pad_acceptcaps(&self, use_: bool);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -233,6 +235,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) {
unsafe {
gst_audio_sys::gst_audio_decoder_set_allocation_caps(
@ -331,6 +334,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -58,6 +58,7 @@ pub trait AudioEncoderExt: 'static {
fn proxy_getcaps(&self, caps: Option<&gst::Caps>, filter: Option<&gst::Caps>) -> gst::Caps;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>);
fn set_drainable(&self, enabled: bool);
@ -213,6 +214,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
fn set_allocation_caps(&self, allocation_caps: Option<&gst::Caps>) {
unsafe {
gst_audio_sys::gst_audio_encoder_set_allocation_caps(

View file

@ -3,8 +3,10 @@
// DO NOT EDIT
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
use glib::translate::*;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
use gst;
use gst_audio_sys;
@ -21,6 +23,7 @@ glib_wrapper! {
impl AudioStreamAlign {
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn new(
rate: i32,
alignment_threshold: gst::ClockTime,
@ -37,6 +40,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn get_alignment_threshold(&self) -> gst::ClockTime {
unsafe {
from_glib(
@ -48,6 +52,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn get_discont_wait(&self) -> gst::ClockTime {
unsafe {
from_glib(gst_audio_sys::gst_audio_stream_align_get_discont_wait(
@ -57,6 +62,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn get_rate(&self) -> i32 {
unsafe {
gst_audio_sys::gst_audio_stream_align_get_rate(mut_override(self.to_glib_none().0))
@ -64,6 +70,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn get_samples_since_discont(&self) -> u64 {
unsafe {
gst_audio_sys::gst_audio_stream_align_get_samples_since_discont(mut_override(
@ -73,6 +80,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn get_timestamp_at_discont(&self) -> gst::ClockTime {
unsafe {
from_glib(
@ -84,6 +92,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn mark_discont(&mut self) {
unsafe {
gst_audio_sys::gst_audio_stream_align_mark_discont(self.to_glib_none_mut().0);
@ -91,6 +100,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn set_alignment_threshold(&mut self, alignment_threshold: gst::ClockTime) {
unsafe {
gst_audio_sys::gst_audio_stream_align_set_alignment_threshold(
@ -101,6 +111,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn set_discont_wait(&mut self, discont_wait: gst::ClockTime) {
unsafe {
gst_audio_sys::gst_audio_stream_align_set_discont_wait(
@ -111,6 +122,7 @@ impl AudioStreamAlign {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn set_rate(&mut self, rate: i32) {
unsafe {
gst_audio_sys::gst_audio_stream_align_set_rate(self.to_glib_none_mut().0, rate);

View file

@ -415,10 +415,13 @@ pub enum AudioRingBufferFormatType {
Mpeg2Aac,
Mpeg4Aac,
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
Mpeg2AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
Mpeg4AacRaw,
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
Flac,
#[doc(hidden)]
__Unknown(i32),

View file

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

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
@ -1442,18 +1443,21 @@ extern "C" {
// GstAudioResamplerFilterInterpolation
//=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_filter_interpolation_get_type() -> GType;
//=========================================================================
// GstAudioResamplerFilterMode
//=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_filter_mode_get_type() -> GType;
//=========================================================================
// GstAudioResamplerMethod
//=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_method_get_type() -> GType;
//=========================================================================
@ -1500,12 +1504,14 @@ extern "C" {
// GstAudioResamplerFlags
//=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_flags_get_type() -> GType;
//=========================================================================
// GstAudioBuffer
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_map(
buffer: *mut GstAudioBuffer,
info: *const GstAudioInfo,
@ -1513,6 +1519,7 @@ extern "C" {
flags: gst::GstMapFlags,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_unmap(buffer: *mut GstAudioBuffer);
pub fn gst_audio_buffer_clip(
buffer: *mut gst::GstBuffer,
@ -1528,6 +1535,7 @@ extern "C" {
to: *const GstAudioChannelPosition,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_buffer_truncate(
buffer: *mut gst::GstBuffer,
bpf: c_int,
@ -1555,6 +1563,7 @@ extern "C" {
out_position: *mut GstAudioChannelPosition,
) -> *mut GstAudioChannelMixer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_channel_mixer_new_with_matrix(
flags: GstAudioChannelMixerFlags,
format: GstAudioFormat,
@ -1572,6 +1581,7 @@ extern "C" {
// GstAudioConverter
//=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_converter_get_type() -> GType;
pub fn gst_audio_converter_new(
flags: GstAudioConverterFlags,
@ -1580,6 +1590,7 @@ extern "C" {
config: *mut gst::GstStructure,
) -> *mut GstAudioConverter;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_converter_convert(
convert: *mut GstAudioConverter,
flags: GstAudioConverterFlags,
@ -1604,6 +1615,7 @@ extern "C" {
in_frames: size_t,
) -> size_t;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_converter_is_passthrough(convert: *mut GstAudioConverter) -> gboolean;
pub fn gst_audio_converter_reset(convert: *mut GstAudioConverter);
pub fn gst_audio_converter_samples(
@ -1615,6 +1627,7 @@ extern "C" {
out_frames: size_t,
) -> gboolean;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_audio_converter_supports_inplace(convert: *mut GstAudioConverter) -> gboolean;
pub fn gst_audio_converter_update_config(
convert: *mut GstAudioConverter,
@ -1670,6 +1683,7 @@ extern "C" {
// GstAudioMeta
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_meta_get_info() -> *const gst::GstMetaInfo;
//=========================================================================
@ -1696,20 +1710,25 @@ extern "C" {
// GstAudioResampler
//=========================================================================
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_free(resampler: *mut GstAudioResampler);
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_get_in_frames(
resampler: *mut GstAudioResampler,
out_frames: size_t,
) -> size_t;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_get_max_latency(resampler: *mut GstAudioResampler) -> size_t;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_get_out_frames(
resampler: *mut GstAudioResampler,
in_frames: size_t,
) -> size_t;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_resample(
resampler: *mut GstAudioResampler,
in_: *mut gpointer,
@ -1718,8 +1737,10 @@ extern "C" {
out_frames: size_t,
);
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_reset(resampler: *mut GstAudioResampler);
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_update(
resampler: *mut GstAudioResampler,
in_rate: c_int,
@ -1727,6 +1748,7 @@ extern "C" {
options: *mut gst::GstStructure,
) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_new(
method: GstAudioResamplerMethod,
flags: GstAudioResamplerFlags,
@ -1737,6 +1759,7 @@ extern "C" {
options: *mut gst::GstStructure,
) -> *mut GstAudioResampler;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_resampler_options_set_quality(
method: GstAudioResamplerMethod,
quality: c_uint,
@ -1749,39 +1772,50 @@ extern "C" {
// GstAudioStreamAlign
//=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_new(
rate: c_int,
alignment_threshold: gst::GstClockTime,
discont_wait: gst::GstClockTime,
) -> *mut GstAudioStreamAlign;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_copy(
align: *const GstAudioStreamAlign,
) -> *mut GstAudioStreamAlign;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_free(align: *mut GstAudioStreamAlign);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_alignment_threshold(
align: *mut GstAudioStreamAlign,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_discont_wait(
align: *mut GstAudioStreamAlign,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_rate(align: *mut GstAudioStreamAlign) -> c_int;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_samples_since_discont(align: *mut GstAudioStreamAlign)
-> u64;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_get_timestamp_at_discont(
align: *mut GstAudioStreamAlign,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_mark_discont(align: *mut GstAudioStreamAlign);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_process(
align: *mut GstAudioStreamAlign,
discont: gboolean,
@ -1792,24 +1826,29 @@ extern "C" {
out_sample_position: *mut u64,
) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_set_alignment_threshold(
align: *mut GstAudioStreamAlign,
alignment_threshold: gst::GstClockTime,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_set_discont_wait(
align: *mut GstAudioStreamAlign,
discont_wait: gst::GstClockTime,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_stream_align_set_rate(align: *mut GstAudioStreamAlign, rate: c_int);
//=========================================================================
// GstAudioAggregator
//=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_set_sink_caps(
aagg: *mut GstAudioAggregator,
pad: *mut GstAudioAggregatorPad,
@ -1820,12 +1859,14 @@ extern "C" {
// GstAudioAggregatorConvertPad
//=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_convert_pad_get_type() -> GType;
//=========================================================================
// GstAudioAggregatorPad
//=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_audio_aggregator_pad_get_type() -> GType;
//=========================================================================
@ -1927,6 +1968,7 @@ extern "C" {
frames: c_int,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_decoder_finish_subframe(
dec: *mut GstAudioDecoder,
buf: *mut gst::GstBuffer,
@ -1968,6 +2010,7 @@ extern "C" {
filter: *mut gst::GstCaps,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_decoder_set_allocation_caps(
dec: *mut GstAudioDecoder,
allocation_caps: *mut gst::GstCaps,
@ -1983,6 +2026,7 @@ extern "C" {
pub fn gst_audio_decoder_set_min_latency(dec: *mut GstAudioDecoder, num: gst::GstClockTime);
pub fn gst_audio_decoder_set_needs_format(dec: *mut GstAudioDecoder, enabled: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_decoder_set_output_caps(
dec: *mut GstAudioDecoder,
caps: *mut gst::GstCaps,
@ -2045,6 +2089,7 @@ extern "C" {
filter: *mut gst::GstCaps,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_encoder_set_allocation_caps(
enc: *mut GstAudioEncoder,
allocation_caps: *mut gst::GstCaps,
@ -2141,6 +2186,7 @@ extern "C" {
user_data: gpointer,
);
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_audio_ring_buffer_set_callback_full(
buf: *mut GstAudioRingBuffer,
cb: GstAudioRingBufferCallback,
@ -2208,6 +2254,7 @@ extern "C" {
channel_mask: *mut u64,
) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_audio_channel_positions_to_string(
position: *const GstAudioChannelPosition,
channels: c_int,
@ -2225,6 +2272,7 @@ extern "C" {
pub fn gst_audio_downmix_meta_api_get_type() -> GType;
pub fn gst_audio_format_info_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_audio_formats_raw(len: *mut c_uint) -> *const GstAudioFormat;
pub fn gst_audio_get_channel_reorder_map(
channels: c_int,
@ -2242,12 +2290,14 @@ extern "C" {
endianness: c_int,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_audio_make_raw_caps(
formats: *const GstAudioFormat,
len: c_uint,
layout: GstAudioLayout,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_audio_meta_api_get_type() -> GType;
pub fn gst_audio_reorder_channels(
data: gpointer,
@ -2272,6 +2322,7 @@ extern "C" {
matrix: *mut *const c_float,
) -> *mut GstAudioDownmixMeta;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_buffer_add_audio_meta(
buffer: *mut gst::GstBuffer,
info: *const GstAudioInfo,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_audio_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -49,11 +49,13 @@ impl Adapter {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn distance_from_discont(&self) -> u64 {
unsafe { gst_base_sys::gst_adapter_distance_from_discont(self.to_glib_none().0) }
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn dts_at_discont(&self) -> gst::ClockTime {
unsafe {
from_glib(gst_base_sys::gst_adapter_dts_at_discont(
@ -142,6 +144,7 @@ impl Adapter {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn offset_at_discont(&self) -> u64 {
unsafe { gst_base_sys::gst_adapter_offset_at_discont(self.to_glib_none().0) }
}
@ -172,6 +175,7 @@ impl Adapter {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn prev_offset(&self) -> (u64, u64) {
unsafe {
let mut distance = mem::MaybeUninit::uninit();
@ -208,6 +212,7 @@ impl Adapter {
}
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn pts_at_discont(&self) -> gst::ClockTime {
unsafe {
from_glib(gst_base_sys::gst_adapter_pts_at_discont(

View file

@ -16,8 +16,10 @@ use gst_base_sys;
use std::boxed::Box as Box_;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use AggregatorPad;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use AggregatorStartTimeSelection;
glib_wrapper! {
@ -35,36 +37,47 @@ pub const NONE_AGGREGATOR: Option<&Aggregator> = None;
pub trait AggregatorExt: 'static {
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn get_latency(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample>;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn set_src_caps(&self, caps: &gst::Caps);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn simple_get_next_time(&self) -> gst::ClockTime;
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn update_segment(&self, segment: /*Ignored*/&gst::Segment);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_emit_signals(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_property_emit_signals(&self, emit_signals: bool);
fn get_property_start_time(&self) -> u64;
@ -72,21 +85,26 @@ pub trait AggregatorExt: 'static {
fn set_property_start_time(&self, start_time: u64);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_property_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection);
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -98,6 +116,7 @@ pub trait AggregatorExt: 'static {
) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -106,11 +125,13 @@ pub trait AggregatorExt: 'static {
impl<O: IsA<Aggregator>> AggregatorExt for O {
//#[cfg(any(feature = "v1_14", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) {
// unsafe { TODO: call gst_base_sys:gst_aggregator_get_allocator() }
//}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
unsafe {
from_glib_full(gst_base_sys::gst_aggregator_get_buffer_pool(
@ -120,6 +141,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn get_latency(&self) -> gst::ClockTime {
unsafe {
from_glib(gst_base_sys::gst_aggregator_get_latency(
@ -129,6 +151,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool {
unsafe {
from_glib(gst_base_sys::gst_aggregator_negotiate(
@ -138,6 +161,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample> {
unsafe {
from_glib_full(gst_base_sys::gst_aggregator_peek_next_sample(
@ -148,6 +172,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn set_latency(&self, min_latency: gst::ClockTime, max_latency: gst::ClockTime) {
unsafe {
gst_base_sys::gst_aggregator_set_latency(
@ -159,6 +184,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn set_src_caps(&self, caps: &gst::Caps) {
unsafe {
gst_base_sys::gst_aggregator_set_src_caps(
@ -169,6 +195,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn simple_get_next_time(&self) -> gst::ClockTime {
unsafe {
from_glib(gst_base_sys::gst_aggregator_simple_get_next_time(
@ -178,11 +205,13 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn update_segment(&self, segment: /*Ignored*/&gst::Segment) {
// unsafe { TODO: call gst_base_sys:gst_aggregator_update_segment() }
//}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_emit_signals(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -199,6 +228,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_property_emit_signals(&self, emit_signals: bool) {
unsafe {
gobject_sys::g_object_set_property(
@ -235,6 +265,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_start_time_selection(&self) -> AggregatorStartTimeSelection {
unsafe {
let mut value =
@ -252,6 +283,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_property_start_time_selection(
&self,
start_time_selection: AggregatorStartTimeSelection,
@ -266,11 +298,13 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_samples_selected<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored segment: Gst.Segment
//}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -299,6 +333,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn connect_property_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -354,6 +389,7 @@ impl<O: IsA<Aggregator>> AggregatorExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_start_time_selection_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -8,11 +8,14 @@ use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::StaticType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::Value;
use glib_sys;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use gobject_sys;
use gst;
use gst_base_sys;
@ -35,24 +38,31 @@ pub const NONE_AGGREGATOR_PAD: Option<&AggregatorPad> = None;
pub trait AggregatorPadExt: 'static {
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn drop_buffer(&self) -> bool;
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
fn has_buffer(&self) -> bool;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn is_eos(&self) -> bool;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn peek_buffer(&self) -> Option<gst::Buffer>;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn pop_buffer(&self) -> Option<gst::Buffer>;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn get_property_emit_signals(&self) -> bool;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn set_property_emit_signals(&self, emit_signals: bool);
fn connect_buffer_consumed<F: Fn(&Self, &gst::Buffer) + Send + Sync + 'static>(
@ -61,6 +71,7 @@ pub trait AggregatorPadExt: 'static {
) -> SignalHandlerId;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -69,6 +80,7 @@ pub trait AggregatorPadExt: 'static {
impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn drop_buffer(&self) -> bool {
unsafe {
from_glib(gst_base_sys::gst_aggregator_pad_drop_buffer(
@ -78,6 +90,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
fn has_buffer(&self) -> bool {
unsafe {
from_glib(gst_base_sys::gst_aggregator_pad_has_buffer(
@ -87,6 +100,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn is_eos(&self) -> bool {
unsafe {
from_glib(gst_base_sys::gst_aggregator_pad_is_eos(
@ -96,6 +110,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn peek_buffer(&self) -> Option<gst::Buffer> {
unsafe {
from_glib_full(gst_base_sys::gst_aggregator_pad_peek_buffer(
@ -105,6 +120,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
fn pop_buffer(&self) -> Option<gst::Buffer> {
unsafe {
from_glib_full(gst_base_sys::gst_aggregator_pad_pop_buffer(
@ -114,6 +130,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn get_property_emit_signals(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -130,6 +147,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn set_property_emit_signals(&self, emit_signals: bool) {
unsafe {
gobject_sys::g_object_set_property(
@ -174,6 +192,7 @@ impl<O: IsA<AggregatorPad>> AggregatorPadExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_emit_signals_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -33,6 +33,7 @@ pub trait BaseParseExt: 'static {
fn add_index_entry(&self, offset: u64, ts: gst::ClockTime, key: bool, force: bool) -> bool;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn drain(&self);
fn merge_tags(&self, tags: Option<&gst::TagList>, mode: gst::TagMergeMode);
@ -79,6 +80,7 @@ impl<O: IsA<BaseParse>> BaseParseExt for O {
}
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn drain(&self) {
unsafe {
gst_base_sys::gst_base_parse_drain(self.as_ref().to_glib_none().0);

View file

@ -35,6 +35,7 @@ pub trait BaseSinkExt: 'static {
fn get_blocksize(&self) -> u32;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn get_drop_out_of_segment(&self) -> bool;
fn get_last_sample(&self) -> Option<gst::Sample>;
@ -46,11 +47,13 @@ pub trait BaseSinkExt: 'static {
fn get_max_lateness(&self) -> i64;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn get_processing_deadline(&self) -> gst::ClockTime;
fn get_render_delay(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_stats(&self) -> Option<gst::Structure>;
fn get_sync(&self) -> bool;
@ -70,6 +73,7 @@ pub trait BaseSinkExt: 'static {
fn set_blocksize(&self, blocksize: u32);
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn set_drop_out_of_segment(&self, drop_out_of_segment: bool);
fn set_last_sample_enabled(&self, enabled: bool);
@ -79,6 +83,7 @@ pub trait BaseSinkExt: 'static {
fn set_max_lateness(&self, max_lateness: i64);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime);
fn set_qos_enabled(&self, enabled: bool);
@ -134,6 +139,7 @@ pub trait BaseSinkExt: 'static {
) -> SignalHandlerId;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -150,6 +156,7 @@ pub trait BaseSinkExt: 'static {
) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -181,6 +188,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn get_drop_out_of_segment(&self) -> bool {
unsafe {
from_glib(gst_base_sys::gst_base_sink_get_drop_out_of_segment(
@ -214,6 +222,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn get_processing_deadline(&self) -> gst::ClockTime {
unsafe {
from_glib(gst_base_sys::gst_base_sink_get_processing_deadline(
@ -231,6 +240,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_stats(&self) -> Option<gst::Structure> {
unsafe {
from_glib_full(gst_base_sys::gst_base_sink_get_stats(
@ -295,6 +305,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn set_drop_out_of_segment(&self, drop_out_of_segment: bool) {
unsafe {
gst_base_sys::gst_base_sink_set_drop_out_of_segment(
@ -332,6 +343,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn set_processing_deadline(&self, processing_deadline: gst::ClockTime) {
unsafe {
gst_base_sys::gst_base_sink_set_processing_deadline(
@ -618,6 +630,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn connect_property_processing_deadline_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
@ -703,6 +716,7 @@ impl<O: IsA<BaseSink>> BaseSinkExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_stats_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -44,6 +44,7 @@ pub trait BaseSrcExt: 'static {
fn is_live(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool;
#[cfg_attr(feature = "v1_18", deprecated)]
@ -136,6 +137,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn negotiate(&self) -> bool {
unsafe {
from_glib(gst_base_sys::gst_base_src_negotiate(

View file

@ -42,6 +42,7 @@ pub trait BaseTransformExt: 'static {
fn is_qos_enabled(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn reconfigure(&self) -> bool;
fn reconfigure_sink(&self);
@ -110,6 +111,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn reconfigure(&self) -> bool {
unsafe {
from_glib(gst_base_sys::gst_base_transform_reconfigure(

View file

@ -13,6 +13,7 @@ use gobject_sys;
use gst_base_sys;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
pub enum AggregatorStartTimeSelection {
@ -24,6 +25,7 @@ pub enum AggregatorStartTimeSelection {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(hidden)]
impl ToGlib for AggregatorStartTimeSelection {
type GlibType = gst_base_sys::GstAggregatorStartTimeSelection;
@ -45,6 +47,7 @@ impl ToGlib for AggregatorStartTimeSelection {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
#[doc(hidden)]
impl FromGlib<gst_base_sys::GstAggregatorStartTimeSelection> for AggregatorStartTimeSelection {
fn from_glib(value: gst_base_sys::GstAggregatorStartTimeSelection) -> Self {
@ -59,6 +62,7 @@ impl FromGlib<gst_base_sys::GstAggregatorStartTimeSelection> for AggregatorStart
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl StaticType for AggregatorStartTimeSelection {
fn static_type() -> Type {
unsafe { from_glib(gst_base_sys::gst_aggregator_start_time_selection_get_type()) }
@ -66,6 +70,7 @@ impl StaticType for AggregatorStartTimeSelection {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection {
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
Some(FromValue::from_value(value))
@ -73,6 +78,7 @@ impl<'a> FromValueOptional<'a> for AggregatorStartTimeSelection {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
unsafe fn from_value(value: &Value) -> Self {
from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0))
@ -80,6 +86,7 @@ impl<'a> FromValue<'a> for AggregatorStartTimeSelection {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
impl SetValue for AggregatorStartTimeSelection {
unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())

View file

@ -41,6 +41,7 @@ pub fn type_find_helper_for_extension<P: IsA<gst::Object>>(
//}
//#[cfg(any(feature = "v1_14_3", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
//pub fn type_find_helper_get_range_full<P: IsA<gst::Object>, Q: IsA<gst::Object>, R: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> gst::FlowReturn>(obj: &P, parent: Option<&Q>, func: R, size: u64, extension: Option<&str>) -> (gst::FlowReturn, gst::Caps, gst::TypeFindProbability) {
// unsafe { TODO: call gst_base_sys:gst_type_find_helper_get_range_full() }
//}

View file

@ -6,17 +6,23 @@ mod adapter;
pub use self::adapter::Adapter;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
mod aggregator;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub use self::aggregator::AggregatorExt;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub use self::aggregator::{Aggregator, NONE_AGGREGATOR};
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
mod aggregator_pad;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub use self::aggregator_pad::AggregatorPadExt;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub use self::aggregator_pad::{AggregatorPad, NONE_AGGREGATOR_PAD};
mod base_parse;
@ -40,6 +46,7 @@ pub use self::push_src::{PushSrc, NONE_PUSH_SRC};
mod enums;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub use self::enums::AggregatorStartTimeSelection;
mod flags;
@ -50,8 +57,10 @@ pub mod functions;
#[doc(hidden)]
pub mod traits {
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub use super::AggregatorExt;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub use super::AggregatorPadExt;
pub use super::BaseParseExt;
pub use super::BaseSinkExt;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
@ -1217,6 +1218,7 @@ extern "C" {
// GstAggregatorStartTimeSelection
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_start_time_selection_get_type() -> GType;
//=========================================================================
@ -1229,6 +1231,7 @@ extern "C" {
overhead: c_int,
) -> *mut GstBaseParseFrame;
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
pub fn gst_base_parse_frame_copy(frame: *mut GstBaseParseFrame) -> *mut GstBaseParseFrame;
pub fn gst_base_parse_frame_free(frame: *mut GstBaseParseFrame);
pub fn gst_base_parse_frame_init(frame: *mut GstBaseParseFrame);
@ -1290,22 +1293,31 @@ extern "C" {
// GstBitWriter
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_align_bytes(bitwriter: *mut GstBitWriter, trailing_bit: u8) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free_and_get_buffer(bitwriter: *mut GstBitWriter) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_free_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_data(bitwriter: *const GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_remaining(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_get_size(bitwriter: *const GstBitWriter) -> c_uint;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init_with_data(
bitwriter: *mut GstBitWriter,
data: *mut u8,
@ -1313,55 +1325,68 @@ extern "C" {
initialized: gboolean,
);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_init_with_size(bitwriter: *mut GstBitWriter, size: u32, fixed: gboolean);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint16(
bitwriter: *mut GstBitWriter,
value: u16,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint32(
bitwriter: *mut GstBitWriter,
value: u32,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint64(
bitwriter: *mut GstBitWriter,
value: u64,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bits_uint8(
bitwriter: *mut GstBitWriter,
value: u8,
nbits: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_put_bytes(
bitwriter: *mut GstBitWriter,
data: *const u8,
nbytes: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset(bitwriter: *mut GstBitWriter);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset_and_get_buffer(bitwriter: *mut GstBitWriter)
-> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_reset_and_get_data(bitwriter: *mut GstBitWriter) -> *mut u8;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_set_pos(bitwriter: *mut GstBitWriter, pos: c_uint) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new() -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new_with_data(
data: *mut u8,
size: c_uint,
initialized: gboolean,
) -> *mut GstBitWriter;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_bit_writer_new_with_size(size: u32, fixed: gboolean) -> *mut GstBitWriter;
//=========================================================================
@ -1593,10 +1618,12 @@ extern "C" {
pub fn gst_flow_combiner_clear(combiner: *mut GstFlowCombiner);
pub fn gst_flow_combiner_free(combiner: *mut GstFlowCombiner);
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
pub fn gst_flow_combiner_ref(combiner: *mut GstFlowCombiner) -> *mut GstFlowCombiner;
pub fn gst_flow_combiner_remove_pad(combiner: *mut GstFlowCombiner, pad: *mut gst::GstPad);
pub fn gst_flow_combiner_reset(combiner: *mut GstFlowCombiner);
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
pub fn gst_flow_combiner_unref(combiner: *mut GstFlowCombiner);
pub fn gst_flow_combiner_update_flow(
combiner: *mut GstFlowCombiner,
@ -1612,6 +1639,7 @@ extern "C" {
// GstQueueArray
//=========================================================================
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_clear(array: *mut GstQueueArray);
pub fn gst_queue_array_drop_element(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
pub fn gst_queue_array_drop_struct(
@ -1630,22 +1658,29 @@ extern "C" {
pub fn gst_queue_array_peek_head(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_peek_head_struct(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_peek_nth(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_peek_nth_struct(array: *mut GstQueueArray, idx: c_uint) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_peek_tail(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_peek_tail_struct(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_pop_head(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_pop_head_struct(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_pop_tail(array: *mut GstQueueArray) -> gpointer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_queue_array_pop_tail_struct(array: *mut GstQueueArray) -> gpointer;
pub fn gst_queue_array_push_tail(array: *mut GstQueueArray, data: gpointer);
pub fn gst_queue_array_push_tail_struct(array: *mut GstQueueArray, p_struct: gpointer);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_queue_array_set_clear_func(
array: *mut GstQueueArray,
clear_func: glib::GDestroyNotify,
@ -1671,8 +1706,10 @@ extern "C" {
size: size_t,
) -> *mut glib::GBytes;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_distance_from_discont(adapter: *mut GstAdapter) -> u64;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_dts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime;
pub fn gst_adapter_flush(adapter: *mut GstAdapter, flush: size_t);
pub fn gst_adapter_get_buffer(adapter: *mut GstAdapter, nbytes: size_t) -> *mut gst::GstBuffer;
@ -1702,6 +1739,7 @@ extern "C" {
value: *mut u32,
) -> ssize_t;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_offset_at_discont(adapter: *mut GstAdapter) -> u64;
pub fn gst_adapter_prev_dts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
pub fn gst_adapter_prev_dts_at_offset(
@ -1710,6 +1748,7 @@ extern "C" {
distance: *mut u64,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_prev_offset(adapter: *mut GstAdapter, distance: *mut u64) -> u64;
pub fn gst_adapter_prev_pts(adapter: *mut GstAdapter, distance: *mut u64) -> gst::GstClockTime;
pub fn gst_adapter_prev_pts_at_offset(
@ -1718,6 +1757,7 @@ extern "C" {
distance: *mut u64,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_adapter_pts_at_discont(adapter: *mut GstAdapter) -> gst::GstClockTime;
pub fn gst_adapter_push(adapter: *mut GstAdapter, buf: *mut gst::GstBuffer);
pub fn gst_adapter_take(adapter: *mut GstAdapter, nbytes: size_t) -> gpointer;
@ -1738,35 +1778,44 @@ extern "C" {
// GstAggregator
//=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_finish_buffer(
aggregator: *mut GstAggregator,
buffer: *mut gst::GstBuffer,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_finish_buffer_list(
aggregator: *mut GstAggregator,
bufferlist: *mut gst::GstBufferList,
) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_allocator(
self_: *mut GstAggregator,
allocator: *mut *mut gst::GstAllocator,
params: *mut gst::GstAllocationParams,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_buffer_pool(self_: *mut GstAggregator) -> *mut gst::GstBufferPool;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_get_latency(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_negotiate(self_: *mut GstAggregator) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_peek_next_sample(
self_: *mut GstAggregator,
pad: *mut GstAggregatorPad,
) -> *mut gst::GstSample;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_selected_samples(
self_: *mut GstAggregator,
pts: gst::GstClockTime,
@ -1775,16 +1824,20 @@ extern "C" {
info: *mut gst::GstStructure,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_set_latency(
self_: *mut GstAggregator,
min_latency: gst::GstClockTime,
max_latency: gst::GstClockTime,
);
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_set_src_caps(self_: *mut GstAggregator, caps: *mut gst::GstCaps);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_aggregator_simple_get_next_time(self_: *mut GstAggregator) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_aggregator_update_segment(
self_: *mut GstAggregator,
segment: *const gst::GstSegment,
@ -1794,16 +1847,22 @@ extern "C" {
// GstAggregatorPad
//=========================================================================
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_get_type() -> GType;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_drop_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_1")))]
pub fn gst_aggregator_pad_has_buffer(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_is_eos(pad: *mut GstAggregatorPad) -> gboolean;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_peek_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_aggregator_pad_pop_buffer(pad: *mut GstAggregatorPad) -> *mut gst::GstBuffer;
//=========================================================================
@ -1825,6 +1884,7 @@ extern "C" {
dest_value: *mut i64,
) -> gboolean;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_base_parse_drain(parse: *mut GstBaseParse);
pub fn gst_base_parse_finish_frame(
parse: *mut GstBaseParse,
@ -1880,15 +1940,18 @@ extern "C" {
) -> gst::GstFlowReturn;
pub fn gst_base_sink_get_blocksize(sink: *mut GstBaseSink) -> c_uint;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_base_sink_get_drop_out_of_segment(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_get_last_sample(sink: *mut GstBaseSink) -> *mut gst::GstSample;
pub fn gst_base_sink_get_latency(sink: *mut GstBaseSink) -> gst::GstClockTime;
pub fn gst_base_sink_get_max_bitrate(sink: *mut GstBaseSink) -> u64;
pub fn gst_base_sink_get_max_lateness(sink: *mut GstBaseSink) -> i64;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_base_sink_get_processing_deadline(sink: *mut GstBaseSink) -> gst::GstClockTime;
pub fn gst_base_sink_get_render_delay(sink: *mut GstBaseSink) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_sink_get_stats(sink: *mut GstBaseSink) -> *mut gst::GstStructure;
pub fn gst_base_sink_get_sync(sink: *mut GstBaseSink) -> gboolean;
pub fn gst_base_sink_get_throttle_time(sink: *mut GstBaseSink) -> u64;
@ -1906,6 +1969,7 @@ extern "C" {
pub fn gst_base_sink_set_async_enabled(sink: *mut GstBaseSink, enabled: gboolean);
pub fn gst_base_sink_set_blocksize(sink: *mut GstBaseSink, blocksize: c_uint);
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_base_sink_set_drop_out_of_segment(
sink: *mut GstBaseSink,
drop_out_of_segment: gboolean,
@ -1914,6 +1978,7 @@ extern "C" {
pub fn gst_base_sink_set_max_bitrate(sink: *mut GstBaseSink, max_bitrate: u64);
pub fn gst_base_sink_set_max_lateness(sink: *mut GstBaseSink, max_lateness: i64);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_base_sink_set_processing_deadline(
sink: *mut GstBaseSink,
processing_deadline: gst::GstClockTime,
@ -1950,6 +2015,7 @@ extern "C" {
pub fn gst_base_src_is_async(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_is_live(src: *mut GstBaseSrc) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_src_negotiate(src: *mut GstBaseSrc) -> gboolean;
pub fn gst_base_src_new_seamless_segment(
src: *mut GstBaseSrc,
@ -1958,6 +2024,7 @@ extern "C" {
time: i64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_src_new_segment(
src: *mut GstBaseSrc,
segment: *const gst::GstSegment,
@ -1979,6 +2046,7 @@ extern "C" {
pub fn gst_base_src_start_complete(basesrc: *mut GstBaseSrc, ret: gst::GstFlowReturn);
pub fn gst_base_src_start_wait(basesrc: *mut GstBaseSrc) -> gst::GstFlowReturn;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_base_src_submit_buffer_list(
src: *mut GstBaseSrc,
buffer_list: *mut gst::GstBufferList,
@ -2001,6 +2069,7 @@ extern "C" {
pub fn gst_base_transform_is_passthrough(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_is_qos_enabled(trans: *mut GstBaseTransform) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_base_transform_reconfigure(trans: *mut GstBaseTransform) -> gboolean;
pub fn gst_base_transform_reconfigure_sink(trans: *mut GstBaseTransform);
pub fn gst_base_transform_reconfigure_src(trans: *mut GstBaseTransform);
@ -2177,6 +2246,7 @@ extern "C" {
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_type_find_helper_for_buffer_with_extension(
obj: *mut gst::GstObject,
buf: *mut gst::GstBuffer,
@ -2190,6 +2260,7 @@ extern "C" {
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_type_find_helper_for_data_with_extension(
obj: *mut gst::GstObject,
data: *const u8,
@ -2210,6 +2281,7 @@ extern "C" {
prob: *mut gst::GstTypeFindProbability,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_14_3", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
pub fn gst_type_find_helper_get_range_full(
obj: *mut gst::GstObject,
parent: *mut gst::GstObject,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_base_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -71,6 +71,7 @@ impl TestClock {
//}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//pub fn process_id(&self, pending_id: /*Ignored*/gst::ClockID) -> bool {
// unsafe { TODO: call gst_check_sys:gst_test_clock_process_id() }
//}
@ -90,6 +91,7 @@ impl TestClock {
}
//#[cfg(any(feature = "v1_16", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
//pub fn timed_wait_for_multiple_pending_ids(&self, count: u32, timeout_ms: u32, pending_list: /*Unimplemented*/Vec<gst::ClockID>) -> bool {
// unsafe { TODO: call gst_check_sys:gst_test_clock_timed_wait_for_multiple_pending_ids() }
//}

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
@ -130,6 +131,7 @@ extern "C" {
destroy_data: glib::GDestroyNotify,
);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_harness_add_propose_allocation_meta(
h: *mut GstHarness,
api: GType,
@ -182,6 +184,7 @@ extern "C" {
pub fn gst_harness_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
pub fn gst_harness_pull_event(h: *mut GstHarness) -> *mut gst::GstEvent;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_harness_pull_until_eos(
h: *mut GstHarness,
buf: *mut *mut gst::GstBuffer,
@ -295,10 +298,13 @@ extern "C" {
sleep: c_ulong,
) -> *mut GstHarnessThread;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_harness_take_all_data(h: *mut GstHarness, size: *mut size_t) -> *mut u8;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_harness_take_all_data_as_buffer(h: *mut GstHarness) -> *mut gst::GstBuffer;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_harness_take_all_data_as_bytes(h: *mut GstHarness) -> *mut glib::GBytes;
pub fn gst_harness_teardown(h: *mut GstHarness);
pub fn gst_harness_try_pull(h: *mut GstHarness) -> *mut gst::GstBuffer;
@ -359,6 +365,7 @@ extern "C" {
pending_id: *mut gst::GstClockID,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_test_clock_process_id(
test_clock: *mut GstTestClock,
pending_id: gst::GstClockID,
@ -370,6 +377,7 @@ extern "C" {
pub fn gst_test_clock_process_next_clock_id(test_clock: *mut GstTestClock) -> gst::GstClockID;
pub fn gst_test_clock_set_time(test_clock: *mut GstTestClock, new_time: gst::GstClockTime);
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_test_clock_timed_wait_for_multiple_pending_ids(
test_clock: *mut GstTestClock,
count: c_uint,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_check_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

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

View file

@ -3,8 +3,10 @@
// DO NOT EDIT
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
use glib::object::Cast;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
use glib::object::IsA;
use glib::translate::*;
use gst;
@ -20,6 +22,7 @@ glib_wrapper! {
impl ProxyControlBinding {
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn new<P: IsA<gst::Object>, Q: IsA<gst::Object>>(
object: &P,
property_name: &str,

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
@ -506,6 +507,7 @@ extern "C" {
//=========================================================================
pub fn gst_proxy_control_binding_get_type() -> GType;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_proxy_control_binding_new(
object: *mut gst::GstObject,
property_name: *const c_char,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_controller_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -21,17 +21,21 @@ pub const NONE_BASE_EFFECT: Option<&BaseEffect> = None;
pub trait BaseEffectExt: 'static {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_time_effect(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn register_time_property(&self, child_property_name: &str) -> bool;
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool;
}
impl<O: IsA<BaseEffect>> BaseEffectExt for O {
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_time_effect(&self) -> bool {
unsafe {
from_glib(ges_sys::ges_base_effect_is_time_effect(
@ -41,6 +45,7 @@ impl<O: IsA<BaseEffect>> BaseEffectExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn register_time_property(&self, child_property_name: &str) -> bool {
unsafe {
from_glib(ges_sys::ges_base_effect_register_time_property(
@ -51,6 +56,7 @@ impl<O: IsA<BaseEffect>> BaseEffectExt for O {
}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
// unsafe { TODO: call ges_sys:ges_base_effect_set_time_translation_funcs() }
//}

View file

@ -11,16 +11,19 @@ use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib_sys;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use gst;
use std::boxed::Box as Box_;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
use Asset;
use BaseEffect;
use Container;
use Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use FrameNumber;
use Layer;
use TimelineElement;
@ -42,6 +45,7 @@ pub trait ClipExt: 'static {
fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<TrackElement, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>(
&self,
child: &P,
@ -49,6 +53,7 @@ pub trait ClipExt: 'static {
) -> Result<TrackElement, glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_top_effect<P: IsA<BaseEffect>>(&self, effect: &P, index: i32)
-> Result<(), glib::Error>;
@ -66,9 +71,11 @@ pub trait ClipExt: 'static {
) -> Vec<TrackElement>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_duration_limit(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>(
&self,
child: &P,
@ -80,6 +87,7 @@ pub trait ClipExt: 'static {
fn get_supported_formats(&self) -> TrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>(
&self,
child: &P,
@ -87,6 +95,7 @@ pub trait ClipExt: 'static {
) -> Result<gst::ClockTime, glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_source_frame(
&self,
frame_number: FrameNumber,
@ -101,9 +110,11 @@ pub trait ClipExt: 'static {
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error>;
fn set_supported_formats(&self, supportedformats: TrackType);
@ -115,6 +126,7 @@ pub trait ClipExt: 'static {
) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_top_effect_index_full<P: IsA<BaseEffect>>(
&self,
effect: &P,
@ -130,9 +142,11 @@ pub trait ClipExt: 'static {
fn split(&self, position: u64) -> Result<Clip, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
@ -158,6 +172,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>(
&self,
child: &P,
@ -180,6 +195,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_top_effect<P: IsA<BaseEffect>>(
&self,
effect: &P,
@ -232,6 +248,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_duration_limit(&self) -> gst::ClockTime {
unsafe {
from_glib(ges_sys::ges_clip_get_duration_limit(
@ -241,6 +258,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_internal_time_from_timeline_time<P: IsA<TrackElement>>(
&self,
child: &P,
@ -275,6 +293,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_internal_time<P: IsA<TrackElement>>(
&self,
child: &P,
@ -297,6 +316,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_timeline_time_from_source_frame(
&self,
frame_number: FrameNumber,
@ -355,6 +375,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error> {
unsafe {
let mut error = ptr::null_mut();
@ -372,6 +393,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error> {
unsafe {
let mut error = ptr::null_mut();
@ -415,6 +437,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_top_effect_index_full<P: IsA<BaseEffect>>(
&self,
effect: &P,
@ -464,6 +487,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn split_full(&self, position: u64) -> Result<Option<Clip>, glib::Error> {
unsafe {
let mut error = ptr::null_mut();
@ -478,6 +502,7 @@ impl<O: IsA<Clip>> ClipExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_duration_limit_notify<F: Fn(&Self) + 'static>(
&self,
f: F,

View file

@ -14,12 +14,14 @@ use gst;
use std::boxed::Box as Box_;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
use Asset;
use Clip;
use Extractable;
use Timeline;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use Track;
use TrackType;
@ -57,6 +59,7 @@ pub trait LayerExt: 'static {
) -> Result<Clip, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_asset_full<P: IsA<Asset>>(
&self,
asset: &P,
@ -69,9 +72,11 @@ pub trait LayerExt: 'static {
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
fn get_auto_transition(&self) -> bool;
@ -91,6 +96,7 @@ pub trait LayerExt: 'static {
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool;
fn set_auto_transition(&self, auto_transition: bool);
@ -101,6 +107,7 @@ pub trait LayerExt: 'static {
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P);
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
fn connect_clip_added<F: Fn(&Self, &Clip) + 'static>(&self, f: F) -> SignalHandlerId;
@ -139,6 +146,7 @@ impl<O: IsA<Layer>> LayerExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_asset_full<P: IsA<Asset>>(
&self,
asset: &P,
@ -179,6 +187,7 @@ impl<O: IsA<Layer>> LayerExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error> {
unsafe {
let mut error = ptr::null_mut();
@ -196,6 +205,7 @@ impl<O: IsA<Layer>> LayerExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool {
unsafe {
from_glib(ges_sys::ges_layer_get_active_for_track(
@ -268,6 +278,7 @@ impl<O: IsA<Layer>> LayerExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_active_for_tracks(&self, active: bool, tracks: &[Track]) -> bool {
unsafe {
from_glib(ges_sys::ges_layer_set_active_for_tracks(
@ -303,6 +314,7 @@ impl<O: IsA<Layer>> LayerExt for O {
}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_active_changed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Empty ctype tracks: *.PtrArray TypeId { ns_id: 1, id: 17 }
//}

View file

@ -45,6 +45,7 @@ pub trait ProjectExt: 'static {
) -> Result<(), glib::error::BoolError>;
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn add_formatter(&self, formatter: /*Ignored*/&Formatter);
fn create_asset(&self, id: Option<&str>, extractable_type: glib::types::Type) -> bool;
@ -84,6 +85,7 @@ pub trait ProjectExt: 'static {
fn connect_asset_removed<F: Fn(&Self, &Asset) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
&self,
f: F,
@ -97,6 +99,7 @@ pub trait ProjectExt: 'static {
fn connect_loaded<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_missing_uri<F: Fn(&Self, &glib::Error, &Asset) -> Option<GString> + 'static>(
@ -131,6 +134,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn add_formatter(&self, formatter: /*Ignored*/&Formatter) {
// unsafe { TODO: call ges_sys:ges_project_add_formatter() }
//}
@ -340,6 +344,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_error_loading<F: Fn(&Self, &Timeline, &glib::Error) + 'static>(
&self,
f: F,
@ -442,6 +447,7 @@ impl<O: IsA<Project>> ProjectExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_loading<F: Fn(&Self, &Timeline) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn loading_trampoline<P, F: Fn(&P, &Timeline) + 'static>(
this: *mut ges_sys::GESProject,

View file

@ -16,9 +16,11 @@ use std::mem::transmute;
use std::ptr;
use Asset;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use Clip;
use Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use FrameNumber;
use Group;
use Layer;
@ -86,9 +88,11 @@ pub trait TimelineExt: 'static {
fn get_element(&self, name: &str) -> Option<TimelineElement>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime;
fn get_groups(&self) -> Vec<Group>;
@ -110,6 +114,7 @@ pub trait TimelineExt: 'static {
fn load_from_uri(&self, uri: &str) -> Result<(), glib::Error>;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn move_layer<P: IsA<Layer>>(
&self,
layer: &P,
@ -149,6 +154,7 @@ pub trait TimelineExt: 'static {
fn connect_layer_removed<F: Fn(&Self, &Layer) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
&self,
f: F,
@ -254,6 +260,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_frame_at(&self, timestamp: gst::ClockTime) -> FrameNumber {
unsafe {
ges_sys::ges_timeline_get_frame_at(self.as_ref().to_glib_none().0, timestamp.to_glib())
@ -261,6 +268,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_frame_time(&self, frame_number: FrameNumber) -> gst::ClockTime {
unsafe {
from_glib(ges_sys::ges_timeline_get_frame_time(
@ -354,6 +362,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn move_layer<P: IsA<Layer>>(
&self,
layer: &P,
@ -561,6 +570,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_select_element_track<F: Fn(&Self, &Clip, &TrackElement) -> Track + 'static>(
&self,
f: F,

View file

@ -17,16 +17,21 @@ use gobject_sys;
use gst;
use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::mem;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use Edge;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use EditMode;
use Extractable;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use Layer;
use Timeline;
use TrackType;
@ -47,6 +52,7 @@ pub trait TimelineElementExt: 'static {
fn copy(&self, deep: bool) -> Result<TimelineElement, glib::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn edit(
&self,
layers: &[Layer],
@ -57,6 +63,7 @@ pub trait TimelineElementExt: 'static {
) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn edit_full(
&self,
new_layer_priority: i64,
@ -78,6 +85,7 @@ pub trait TimelineElementExt: 'static {
fn get_inpoint(&self) -> gst::ClockTime;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn get_layer_priority(&self) -> u32;
fn get_max_duration(&self) -> gst::ClockTime;
@ -85,6 +93,7 @@ pub trait TimelineElementExt: 'static {
fn get_name(&self) -> Option<GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_natural_framerate(&self) -> Option<(i32, i32)>;
fn get_parent(&self) -> Option<TimelineElement>;
@ -122,6 +131,7 @@ pub trait TimelineElementExt: 'static {
//fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value);
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error>;
//fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
@ -155,9 +165,11 @@ pub trait TimelineElementExt: 'static {
fn set_property_serialize(&self, serialize: bool);
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
//fn connect_deep_notify<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
@ -199,6 +211,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn edit(
&self,
layers: &[Layer],
@ -220,6 +233,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn edit_full(
&self,
new_layer_priority: i64,
@ -278,6 +292,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn get_layer_priority(&self) -> u32 {
unsafe { ges_sys::ges_timeline_element_get_layer_priority(self.as_ref().to_glib_none().0) }
}
@ -299,6 +314,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_natural_framerate(&self) -> Option<(i32, i32)> {
unsafe {
let mut framerate_n = mem::MaybeUninit::uninit();
@ -445,6 +461,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
//}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn set_child_property_full(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> Result<(), glib::Error> {
// unsafe { TODO: call ges_sys:ges_timeline_element_set_child_property_full() }
//}
@ -597,11 +614,13 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_child_property_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored prop: GObject.ParamSpec
//}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn connect_child_property_removed<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
// Ignored prop: GObject.ParamSpec
//}

View file

@ -10,6 +10,7 @@ use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::GString;
use glib::StaticType;
use glib::Value;
@ -19,6 +20,7 @@ use gst;
use std::boxed::Box as Box_;
use std::mem::transmute;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
use Timeline;
use TrackElement;
@ -45,6 +47,7 @@ pub trait GESTrackExt: 'static {
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>;
fn commit(&self) -> bool;
@ -56,6 +59,7 @@ pub trait GESTrackExt: 'static {
fn get_mixing(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_restriction_caps(&self) -> Option<gst::Caps>;
fn get_timeline(&self) -> Option<Timeline>;
@ -66,6 +70,7 @@ pub trait GESTrackExt: 'static {
) -> Result<(), glib::error::BoolError>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>;
//fn set_create_element_for_gap_func<P: Fn(&Track) -> gst::Element + 'static>(&self, func: P);
@ -81,9 +86,11 @@ pub trait GESTrackExt: 'static {
fn get_property_duration(&self) -> u64;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_id(&self) -> Option<GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_property_id(&self, id: Option<&str>);
fn get_property_restriction_caps(&self) -> Option<gst::Caps>;
@ -105,6 +112,7 @@ pub trait GESTrackExt: 'static {
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_mixing_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
@ -129,6 +137,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> {
unsafe {
let mut error = ptr::null_mut();
@ -170,6 +179,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_restriction_caps(&self) -> Option<gst::Caps> {
unsafe {
from_glib_full(ges_sys::ges_track_get_restriction_caps(
@ -202,6 +212,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error> {
unsafe {
let mut error = ptr::null_mut();
@ -271,6 +282,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_id(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
@ -284,6 +296,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_property_id(&self, id: Option<&str>) {
unsafe {
gobject_sys::g_object_set_property(
@ -434,6 +447,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_id_trampoline<P, F: Fn(&P) + 'static>(
this: *mut ges_sys::GESTrack,

View file

@ -44,6 +44,7 @@ pub trait TrackElementExt: 'static {
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn clamp_control_source(&self, property_name: &str);
#[cfg_attr(feature = "v1_18", deprecated)]
@ -58,6 +59,7 @@ pub trait TrackElementExt: 'static {
//fn get_all_control_bindings(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 6, id: 83 };
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_auto_clamp_control_sources(&self) -> bool;
//fn get_control_binding(&self, property_name: &str) -> /*Ignored*/Option<gst::ControlBinding>;
@ -73,11 +75,13 @@ pub trait TrackElementExt: 'static {
fn get_track_type(&self) -> TrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn has_internal_source(&self) -> bool;
fn is_active(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_core(&self) -> bool;
//fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option<gst::Element>;
@ -87,11 +91,13 @@ pub trait TrackElementExt: 'static {
fn set_active(&self, active: bool) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_auto_clamp_control_sources(&self, auto_clamp: bool);
//fn set_control_source(&self, source: /*Ignored*/&gst::ControlSource, property_name: &str, binding_type: &str) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_has_internal_source(&self, has_internal_source: bool) -> bool;
fn set_track_type(&self, type_: TrackType);
@ -99,6 +105,7 @@ pub trait TrackElementExt: 'static {
fn get_property_active(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_has_internal_source(&self) -> bool;
//fn connect_control_binding_added<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
@ -108,12 +115,14 @@ pub trait TrackElementExt: 'static {
fn connect_property_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
@ -144,6 +153,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn clamp_control_source(&self, property_name: &str) {
unsafe {
ges_sys::ges_track_element_clamp_control_source(
@ -179,6 +189,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
//}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_auto_clamp_control_sources(&self) -> bool {
unsafe {
from_glib(ges_sys::ges_track_element_get_auto_clamp_control_sources(
@ -232,6 +243,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn has_internal_source(&self) -> bool {
unsafe {
from_glib(ges_sys::ges_track_element_has_internal_source(
@ -249,6 +261,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_core(&self) -> bool {
unsafe {
from_glib(ges_sys::ges_track_element_is_core(
@ -283,6 +296,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_auto_clamp_control_sources(&self, auto_clamp: bool) {
unsafe {
ges_sys::ges_track_element_set_auto_clamp_control_sources(
@ -297,6 +311,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
//}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn set_has_internal_source(&self, has_internal_source: bool) -> bool {
unsafe {
from_glib(ges_sys::ges_track_element_set_has_internal_source(
@ -331,6 +346,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_has_internal_source(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -379,6 +395,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_auto_clamp_control_sources_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
@ -407,6 +424,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_has_internal_source_notify<F: Fn(&Self) + 'static>(
&self,
f: F,

View file

@ -10,6 +10,7 @@ use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::StaticType;
use glib::Value;
use glib_sys;
@ -32,6 +33,7 @@ glib_wrapper! {
impl UriClipAsset {
//#[cfg(any(feature = "v1_16", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
//pub fn finish(res: /*Ignored*/&gio::AsyncResult) -> Result<UriClipAsset, glib::Error> {
// unsafe { TODO: call ges_sys:ges_uri_clip_asset_finish() }
//}
@ -62,21 +64,25 @@ pub trait UriClipAssetExt: 'static {
fn get_info(&self) -> Option<gst_pbutils::DiscovererInfo>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_max_duration(&self) -> gst::ClockTime;
fn get_stream_assets(&self) -> Vec<UriSourceAsset>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool;
fn set_property_duration(&self, duration: u64);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_is_nested_timeline(&self) -> bool;
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
@ -101,6 +107,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_max_duration(&self) -> gst::ClockTime {
unsafe {
from_glib(ges_sys::ges_uri_clip_asset_get_max_duration(
@ -118,6 +125,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool {
unsafe {
from_glib(ges_sys::ges_uri_clip_asset_is_image(
@ -137,6 +145,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_property_is_nested_timeline(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -177,6 +186,7 @@ impl<O: IsA<UriClipAsset>> UriClipAssetExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_property_is_nested_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F,

View file

@ -28,6 +28,7 @@ pub trait UriSourceAssetExt: 'static {
fn get_stream_uri(&self) -> Option<GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool;
}
@ -57,6 +58,7 @@ impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn is_image(&self) -> bool {
unsafe {
from_glib(ges_sys::ges_uri_source_asset_is_image(

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate gio_sys as gio;
extern crate glib_sys as glib;
@ -2653,6 +2654,7 @@ extern "C" {
//=========================================================================
pub fn ges_edge_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn ges_edge_name(edge: GESEdge) -> *const c_char;
//=========================================================================
@ -2660,6 +2662,7 @@ extern "C" {
//=========================================================================
pub fn ges_edit_mode_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_edit_mode_name(mode: GESEditMode) -> *const c_char;
//=========================================================================
@ -2798,13 +2801,16 @@ extern "C" {
//=========================================================================
pub fn ges_base_effect_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_base_effect_is_time_effect(effect: *mut GESBaseEffect) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_base_effect_register_time_property(
effect: *mut GESBaseEffect,
child_property_name: *const c_char,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_base_effect_set_time_translation_funcs(
effect: *mut GESBaseEffect,
source_to_sink_func: GESBaseEffectTimeTranslationFunc,
@ -2834,6 +2840,7 @@ extern "C" {
pub fn ges_clip_get_type() -> GType;
pub fn ges_clip_add_asset(clip: *mut GESClip, asset: *mut GESAsset) -> *mut GESTrackElement;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_add_child_to_track(
clip: *mut GESClip,
child: *mut GESTrackElement,
@ -2841,6 +2848,7 @@ extern "C" {
error: *mut *mut glib::GError,
) -> *mut GESTrackElement;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_add_top_effect(
clip: *mut GESClip,
effect: *mut GESBaseEffect,
@ -2859,8 +2867,10 @@ extern "C" {
type_: GType,
) -> *mut glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_duration_limit(clip: *mut GESClip) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_internal_time_from_timeline_time(
clip: *mut GESClip,
child: *mut GESTrackElement,
@ -2870,6 +2880,7 @@ extern "C" {
pub fn ges_clip_get_layer(clip: *mut GESClip) -> *mut GESLayer;
pub fn ges_clip_get_supported_formats(clip: *mut GESClip) -> GESTrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_timeline_time_from_internal_time(
clip: *mut GESClip,
child: *mut GESTrackElement,
@ -2877,6 +2888,7 @@ extern "C" {
error: *mut *mut glib::GError,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_get_timeline_time_from_source_frame(
clip: *mut GESClip,
frame_number: GESFrameNumber,
@ -2890,12 +2902,14 @@ extern "C" {
pub fn ges_clip_get_top_effects(clip: *mut GESClip) -> *mut glib::GList;
pub fn ges_clip_move_to_layer(clip: *mut GESClip, layer: *mut GESLayer) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_move_to_layer_full(
clip: *mut GESClip,
layer: *mut GESLayer,
error: *mut *mut glib::GError,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_remove_top_effect(
clip: *mut GESClip,
effect: *mut GESBaseEffect,
@ -2908,6 +2922,7 @@ extern "C" {
newindex: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_set_top_effect_index_full(
clip: *mut GESClip,
effect: *mut GESBaseEffect,
@ -2921,6 +2936,7 @@ extern "C" {
) -> gboolean;
pub fn ges_clip_split(clip: *mut GESClip, position: u64) -> *mut GESClip;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_split_full(
clip: *mut GESClip,
position: u64,
@ -2932,11 +2948,13 @@ extern "C" {
//=========================================================================
pub fn ges_clip_asset_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_asset_get_frame_time(
self_: *mut GESClipAsset,
frame_number: GESFrameNumber,
) -> gst::GstClockTime;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_clip_asset_get_natural_framerate(
self_: *mut GESClipAsset,
framerate_n: *mut c_int,
@ -3059,6 +3077,7 @@ extern "C" {
track_types: GESTrackType,
) -> *mut GESClip;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_layer_add_asset_full(
layer: *mut GESLayer,
asset: *mut GESAsset,
@ -3070,12 +3089,14 @@ extern "C" {
) -> *mut GESClip;
pub fn ges_layer_add_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_layer_add_clip_full(
layer: *mut GESLayer,
clip: *mut GESClip,
error: *mut *mut glib::GError,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_layer_get_active_for_track(layer: *mut GESLayer, track: *mut GESTrack) -> gboolean;
pub fn ges_layer_get_auto_transition(layer: *mut GESLayer) -> gboolean;
pub fn ges_layer_get_clips(layer: *mut GESLayer) -> *mut glib::GList;
@ -3090,6 +3111,7 @@ extern "C" {
pub fn ges_layer_is_empty(layer: *mut GESLayer) -> gboolean;
pub fn ges_layer_remove_clip(layer: *mut GESLayer, clip: *mut GESClip) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_layer_set_active_for_tracks(
layer: *mut GESLayer,
active: gboolean,
@ -3103,31 +3125,39 @@ extern "C" {
// GESMarker
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_get_type() -> GType;
//=========================================================================
// GESMarkerList
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_new() -> *mut GESMarkerList;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_add(
list: *mut GESMarkerList,
position: gst::GstClockTime,
) -> *mut GESMarker;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_get_markers(list: *mut GESMarkerList) -> *mut glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_move(
list: *mut GESMarkerList,
marker: *mut GESMarker,
position: gst::GstClockTime,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_remove(list: *mut GESMarkerList, marker: *mut GESMarker) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_marker_list_size(list: *mut GESMarkerList) -> c_uint;
//=========================================================================
@ -3206,6 +3236,7 @@ extern "C" {
profile: *mut gst_pbutils::GstEncodingProfile,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_project_add_formatter(project: *mut GESProject, formatter: *mut GESFormatter);
pub fn ges_project_create_asset(
project: *mut GESProject,
@ -3252,12 +3283,14 @@ extern "C" {
//=========================================================================
pub fn ges_source_clip_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_source_clip_new_time_overlay() -> *mut GESSourceClip;
//=========================================================================
// GESSourceClipAsset
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_source_clip_asset_get_type() -> GType;
//=========================================================================
@ -3340,11 +3373,13 @@ extern "C" {
name: *const c_char,
) -> *mut GESTimelineElement;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_get_frame_at(
self_: *mut GESTimeline,
timestamp: gst::GstClockTime,
) -> GESFrameNumber;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_get_frame_time(
self_: *mut GESTimeline,
frame_number: GESFrameNumber,
@ -3369,6 +3404,7 @@ extern "C" {
error: *mut *mut glib::GError,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn ges_timeline_move_layer(
timeline: *mut GESTimeline,
layer: *mut GESLayer,
@ -3409,6 +3445,7 @@ extern "C" {
deep: gboolean,
) -> *mut GESTimelineElement;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_edit(
self_: *mut GESTimelineElement,
layers: *mut glib::GList,
@ -3418,6 +3455,7 @@ extern "C" {
position: u64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_edit_full(
self_: *mut GESTimelineElement,
new_layer_priority: i64,
@ -3445,12 +3483,14 @@ extern "C" {
pub fn ges_timeline_element_get_duration(self_: *mut GESTimelineElement) -> gst::GstClockTime;
pub fn ges_timeline_element_get_inpoint(self_: *mut GESTimelineElement) -> gst::GstClockTime;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn ges_timeline_element_get_layer_priority(self_: *mut GESTimelineElement) -> u32;
pub fn ges_timeline_element_get_max_duration(
self_: *mut GESTimelineElement,
) -> gst::GstClockTime;
pub fn ges_timeline_element_get_name(self_: *mut GESTimelineElement) -> *mut c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_get_natural_framerate(
self_: *mut GESTimelineElement,
framerate_n: *mut c_int,
@ -3516,6 +3556,7 @@ extern "C" {
value: *const gobject::GValue,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_timeline_element_set_child_property_full(
self_: *mut GESTimelineElement,
property_name: *const c_char,
@ -3610,6 +3651,7 @@ extern "C" {
pub fn ges_track_new(type_: GESTrackType, caps: *mut gst::GstCaps) -> *mut GESTrack;
pub fn ges_track_add_element(track: *mut GESTrack, object: *mut GESTrackElement) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_add_element_full(
track: *mut GESTrack,
object: *mut GESTrackElement,
@ -3620,11 +3662,13 @@ extern "C" {
pub fn ges_track_get_elements(track: *mut GESTrack) -> *mut glib::GList;
pub fn ges_track_get_mixing(track: *mut GESTrack) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_get_restriction_caps(track: *mut GESTrack) -> *mut gst::GstCaps;
pub fn ges_track_get_timeline(track: *mut GESTrack) -> *const GESTimeline;
pub fn ges_track_remove_element(track: *mut GESTrack, object: *mut GESTrackElement)
-> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_remove_element_full(
track: *mut GESTrack,
object: *mut GESTrackElement,
@ -3651,6 +3695,7 @@ extern "C" {
whitelist: *mut *const c_char,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_clamp_control_source(
object: *mut GESTrackElement,
property_name: *const c_char,
@ -3666,6 +3711,7 @@ extern "C" {
trackelement: *mut GESTrackElement,
) -> *mut glib::GHashTable;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_get_auto_clamp_control_sources(
object: *mut GESTrackElement,
) -> gboolean;
@ -3695,9 +3741,11 @@ extern "C" {
pub fn ges_track_element_get_track(object: *mut GESTrackElement) -> *mut GESTrack;
pub fn ges_track_element_get_track_type(object: *mut GESTrackElement) -> GESTrackType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_has_internal_source(object: *mut GESTrackElement) -> gboolean;
pub fn ges_track_element_is_active(object: *mut GESTrackElement) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_is_core(object: *mut GESTrackElement) -> gboolean;
pub fn ges_track_element_list_children_properties(
object: *mut GESTrackElement,
@ -3716,6 +3764,7 @@ extern "C" {
pub fn ges_track_element_set_active(object: *mut GESTrackElement, active: gboolean)
-> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_set_auto_clamp_control_sources(
object: *mut GESTrackElement,
auto_clamp: gboolean,
@ -3743,6 +3792,7 @@ extern "C" {
binding_type: *const c_char,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_set_has_internal_source(
object: *mut GESTrackElement,
has_internal_source: gboolean,
@ -3754,6 +3804,7 @@ extern "C" {
//=========================================================================
pub fn ges_track_element_asset_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_track_element_asset_get_natural_framerate(
self_: *mut GESTrackElementAsset,
framerate_n: *mut c_int,
@ -3795,6 +3846,7 @@ extern "C" {
//=========================================================================
pub fn ges_uri_clip_asset_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn ges_uri_clip_asset_finish(
res: *mut gio::GAsyncResult,
error: *mut *mut glib::GError,
@ -3814,9 +3866,11 @@ extern "C" {
self_: *const GESUriClipAsset,
) -> *mut gst_pbutils::GstDiscovererInfo;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_uri_clip_asset_get_max_duration(self_: *mut GESUriClipAsset) -> gst::GstClockTime;
pub fn ges_uri_clip_asset_get_stream_assets(self_: *mut GESUriClipAsset) -> *const glib::GList;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_uri_clip_asset_is_image(self_: *mut GESUriClipAsset) -> gboolean;
//=========================================================================
@ -3831,6 +3885,7 @@ extern "C" {
) -> *mut gst_pbutils::GstDiscovererStreamInfo;
pub fn ges_uri_source_asset_get_stream_uri(asset: *mut GESUriSourceAsset) -> *const c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_uri_source_asset_is_image(asset: *mut GESUriSourceAsset) -> gboolean;
//=========================================================================
@ -3838,6 +3893,7 @@ extern "C" {
//=========================================================================
pub fn ges_video_source_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_video_source_get_natural_size(
self_: *mut GESVideoSource,
width: *mut c_int,
@ -3952,6 +4008,7 @@ extern "C" {
dest: *mut i64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_meta_container_get_marker_list(
container: *mut GESMetaContainer,
key: *const c_char,
@ -4042,6 +4099,7 @@ extern "C" {
value: u64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_meta_container_register_static_meta(
container: *mut GESMetaContainer,
flags: GESMetaFlag,
@ -4084,6 +4142,7 @@ extern "C" {
value: i64,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_meta_container_set_marker_list(
container: *mut GESMetaContainer,
meta_item: *const c_char,
@ -4116,6 +4175,7 @@ extern "C" {
pub fn ges_add_missing_uri_relocation_uri(uri: *const c_char, recurse: gboolean) -> gboolean;
pub fn ges_deinit();
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn ges_find_formatter_for_uri(uri: *const c_char) -> *mut GESAsset;
pub fn ges_init() -> gboolean;
pub fn ges_init_check(
@ -4125,6 +4185,7 @@ extern "C" {
) -> gboolean;
pub fn ges_init_get_option_group() -> *mut glib::GOptionGroup;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn ges_is_initialized() -> gboolean;
pub fn ges_list_assets(filter: GType) -> *mut glib::GList;
pub fn ges_play_sink_convert_frame(

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_editing_services_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -73,6 +73,7 @@ bitflags! {
const VIV_FB = 64;
const GBM = 128;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
const EGL_DEVICE = 256;
}
}

View file

@ -32,9 +32,11 @@ pub const NONE_GL_BASE_FILTER: Option<&GLBaseFilter> = None;
pub trait GLBaseFilterExt: 'static {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn find_gl_context(&self) -> bool;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_gl_context(&self) -> Option<GLContext>;
fn get_property_context(&self) -> Option<GLContext>;
@ -47,6 +49,7 @@ pub trait GLBaseFilterExt: 'static {
impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn find_gl_context(&self) -> bool {
unsafe {
from_glib(gst_gl_sys::gst_gl_base_filter_find_gl_context(
@ -56,6 +59,7 @@ impl<O: IsA<GLBaseFilter>> GLBaseFilterExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_gl_context(&self) -> Option<GLContext> {
unsafe {
from_glib_full(gst_gl_sys::gst_gl_base_filter_get_gl_context(

View file

@ -103,9 +103,11 @@ pub trait GLContextExt: 'static {
fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
fn swap_buffers(&self);
@ -311,6 +313,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn supports_precision(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
unsafe {
from_glib(gst_gl_sys::gst_gl_context_supports_precision(
@ -322,6 +325,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn supports_precision_highp(&self, version: GLSLVersion, profile: GLSLProfile) -> bool {
unsafe {
from_glib(gst_gl_sys::gst_gl_context_supports_precision_highp(

View file

@ -64,11 +64,13 @@ pub trait GLDisplayExt: 'static {
fn get_handle_type(&self) -> GLDisplayType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn remove_context<P: IsA<GLContext>>(&self, context: &P);
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError>;
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn retrieve_window(&self, data: /*Unimplemented*/Option<Fundamental: Pointer>, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>, /*Unimplemented*/Option<Fundamental: Pointer>) -> i32) -> Option<GLWindow>;
fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
@ -154,6 +156,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn remove_context<P: IsA<GLContext>>(&self, context: &P) {
unsafe {
gst_gl_sys::gst_gl_display_remove_context(
@ -176,6 +179,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
}
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
//fn retrieve_window(&self, data: /*Unimplemented*/Option<Fundamental: Pointer>, compare_func: /*Unimplemented*/FnMut(/*Unimplemented*/Option<Fundamental: Pointer>, /*Unimplemented*/Option<Fundamental: Pointer>) -> i32) -> Option<GLWindow> {
// unsafe { TODO: call gst_gl_sys:gst_gl_display_retrieve_window() }
//}

View file

@ -4,25 +4,34 @@
use glib::object::IsA;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::object::ObjectType as ObjectType_;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::signal::connect_raw;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::StaticType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::Value;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib_sys;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use gobject_sys;
use gst;
use gst_gl_sys;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use std::boxed::Box as Box_;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use std::mem::transmute;
use GLContext;
@ -57,6 +66,7 @@ impl GLOverlayCompositor {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn get_property_yinvert(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -73,6 +83,7 @@ impl GLOverlayCompositor {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn set_property_yinvert(&self, yinvert: bool) {
unsafe {
gobject_sys::g_object_set_property(
@ -93,6 +104,7 @@ impl GLOverlayCompositor {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn connect_property_yinvert_notify<F: Fn(&GLOverlayCompositor) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -9,6 +9,7 @@ use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::GString;
use glib::StaticType;
use glib::Value;
@ -21,9 +22,11 @@ use std::mem::transmute;
use std::ptr;
use GLContext;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use GLSLProfile;
use GLSLStage;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use GLSLVersion;
glib_wrapper! {
@ -391,6 +394,7 @@ impl GLShader {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn string_fragment_external_oes_get_default<P: IsA<GLContext>>(
context: &P,
version: GLSLVersion,
@ -409,6 +413,7 @@ impl GLShader {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn string_fragment_get_default<P: IsA<GLContext>>(
context: &P,
version: GLSLVersion,
@ -425,6 +430,7 @@ impl GLShader {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn string_get_highest_precision<P: IsA<GLContext>>(
context: &P,
version: GLSLVersion,

View file

@ -45,6 +45,7 @@ pub const NONE_GL_WINDOW: Option<&GLWindow> = None;
pub trait GLWindowExt: 'static {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn controls_viewport(&self) -> bool;
fn draw(&self);
@ -56,6 +57,7 @@ pub trait GLWindowExt: 'static {
fn handle_events(&self, handle_events: bool);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn has_output_surface(&self) -> bool;
fn queue_resize(&self);
@ -71,6 +73,7 @@ pub trait GLWindowExt: 'static {
fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64);
fn set_preferred_size(&self, width: i32, height: i32);
@ -96,6 +99,7 @@ pub trait GLWindowExt: 'static {
) -> SignalHandlerId;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
&self,
f: F,
@ -104,6 +108,7 @@ pub trait GLWindowExt: 'static {
impl<O: IsA<GLWindow>> GLWindowExt for O {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
fn controls_viewport(&self) -> bool {
unsafe {
from_glib(gst_gl_sys::gst_gl_window_controls_viewport(
@ -151,6 +156,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn has_output_surface(&self) -> bool {
unsafe {
from_glib(gst_gl_sys::gst_gl_window_has_output_surface(
@ -206,6 +212,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64) {
unsafe {
gst_gl_sys::gst_gl_window_send_scroll_event(
@ -330,6 +337,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -3,10 +3,13 @@
// DO NOT EDIT
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
mod gl_base_filter;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub use self::gl_base_filter::GLBaseFilterExt;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub use self::gl_base_filter::{GLBaseFilter, NONE_GL_BASE_FILTER};
mod gl_color_convert;
@ -21,18 +24,24 @@ pub use self::gl_display::GLDisplayExt;
pub use self::gl_display::{GLDisplay, NONE_GL_DISPLAY};
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
mod gl_display_egl;
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
pub use self::gl_display_egl::GLDisplayEGL;
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
mod gl_display_wayland;
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
pub use self::gl_display_wayland::GLDisplayWayland;
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
mod gl_display_x11;
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
pub use self::gl_display_x11::GLDisplayX11;
mod gl_framebuffer;
@ -78,6 +87,7 @@ pub use self::flags::GLAPI;
#[doc(hidden)]
pub mod traits {
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub use super::GLBaseFilterExt;
pub use super::GLContextExt;
pub use super::GLDisplayExt;

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
@ -600,6 +601,7 @@ impl ::std::fmt::Debug for GstGLDisplayClass {
}
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayEGLClass {
@ -608,6 +610,7 @@ pub struct GstGLDisplayEGLClass {
}
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
impl ::std::fmt::Debug for GstGLDisplayEGLClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayEGLClass @ {:?}", self as *const _))
@ -623,6 +626,7 @@ pub struct _GstGLDisplayPrivate(c_void);
pub type GstGLDisplayPrivate = *mut _GstGLDisplayPrivate;
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayWaylandClass {
@ -631,6 +635,7 @@ pub struct GstGLDisplayWaylandClass {
}
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
impl ::std::fmt::Debug for GstGLDisplayWaylandClass {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!(
@ -644,6 +649,7 @@ impl ::std::fmt::Debug for GstGLDisplayWaylandClass {
}
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayX11Class {
@ -652,6 +658,7 @@ pub struct GstGLDisplayX11Class {
}
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
impl ::std::fmt::Debug for GstGLDisplayX11Class {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayX11Class @ {:?}", self as *const _))
@ -1289,6 +1296,7 @@ impl ::std::fmt::Debug for GstGLDisplay {
}
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayEGL {
@ -1299,6 +1307,7 @@ pub struct GstGLDisplayEGL {
}
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
impl ::std::fmt::Debug for GstGLDisplayEGL {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayEGL @ {:?}", self as *const _))
@ -1308,6 +1317,7 @@ impl ::std::fmt::Debug for GstGLDisplayEGL {
}
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayWayland {
@ -1322,6 +1332,7 @@ pub struct GstGLDisplayWayland {
}
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
impl ::std::fmt::Debug for GstGLDisplayWayland {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayWayland @ {:?}", self as *const _))
@ -1336,6 +1347,7 @@ impl ::std::fmt::Debug for GstGLDisplayWayland {
}
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct GstGLDisplayX11 {
@ -1348,6 +1360,7 @@ pub struct GstGLDisplayX11 {
}
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
impl ::std::fmt::Debug for GstGLDisplayX11 {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GstGLDisplayX11 @ {:?}", self as *const _))
@ -1631,8 +1644,10 @@ extern "C" {
plane: c_uint,
) -> GstGLFormat;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_format_is_supported(context: *mut GstGLContext, format: GstGLFormat) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_format_type_from_sized_gl_format(
format: GstGLFormat,
unsized_format: *mut GstGLFormat,
@ -2031,8 +2046,10 @@ extern "C" {
//=========================================================================
pub fn gst_gl_base_filter_get_type() -> GType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_base_filter_find_gl_context(filter: *mut GstGLBaseFilter) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_gl_base_filter_get_gl_context(filter: *mut GstGLBaseFilter) -> *mut GstGLContext;
//=========================================================================
@ -2044,6 +2061,7 @@ extern "C" {
// GstGLBaseSrc
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_gl_base_src_get_type() -> GType;
//=========================================================================
@ -2178,12 +2196,14 @@ extern "C" {
profile: GstGLSLProfile,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_context_supports_precision(
context: *mut GstGLContext,
version: GstGLSLVersion,
profile: GstGLSLProfile,
) -> gboolean;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_context_supports_precision_highp(
context: *mut GstGLContext,
version: GstGLSLVersion,
@ -2227,12 +2247,14 @@ extern "C" {
pub fn gst_gl_display_get_handle(display: *mut GstGLDisplay) -> uintptr_t;
pub fn gst_gl_display_get_handle_type(display: *mut GstGLDisplay) -> GstGLDisplayType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_gl_display_remove_context(display: *mut GstGLDisplay, context: *mut GstGLContext);
pub fn gst_gl_display_remove_window(
display: *mut GstGLDisplay,
window: *mut GstGLWindow,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_gl_display_retrieve_window(
display: *mut GstGLDisplay,
data: gpointer,
@ -2243,14 +2265,19 @@ extern "C" {
// GstGLDisplayEGL
//=========================================================================
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_get_type() -> GType;
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_new() -> *mut GstGLDisplayEGL;
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_new_with_egl_display(display: gpointer) -> *mut GstGLDisplayEGL;
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_from_gl_display(display: *mut GstGLDisplay) -> *mut GstGLDisplayEGL;
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
pub fn gst_gl_display_egl_get_from_native(
type_: GstGLDisplayType,
display: uintptr_t,
@ -2260,20 +2287,26 @@ extern "C" {
// GstGLDisplayWayland
//=========================================================================
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
pub fn gst_gl_display_wayland_get_type() -> GType;
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
pub fn gst_gl_display_wayland_new(name: *const c_char) -> *mut GstGLDisplayWayland;
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
pub fn gst_gl_display_wayland_new_with_display(display: gpointer) -> *mut GstGLDisplayWayland;
//=========================================================================
// GstGLDisplayX11
//=========================================================================
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
pub fn gst_gl_display_x11_get_type() -> GType;
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
pub fn gst_gl_display_x11_new(name: *const c_char) -> *mut GstGLDisplayX11;
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
pub fn gst_gl_display_x11_new_with_display(display: gpointer) -> *mut GstGLDisplayX11;
//=========================================================================
@ -2420,18 +2453,21 @@ extern "C" {
...
) -> *mut GstGLShader;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_shader_string_fragment_external_oes_get_default(
context: *mut GstGLContext,
version: GstGLSLVersion,
profile: GstGLSLProfile,
) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_shader_string_fragment_get_default(
context: *mut GstGLContext,
version: GstGLSLVersion,
profile: GstGLSLProfile,
) -> *mut c_char;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn gst_gl_shader_string_get_highest_precision(
context: *mut GstGLContext,
version: GstGLSLVersion,
@ -2715,6 +2751,7 @@ extern "C" {
pub fn gst_gl_window_get_type() -> GType;
pub fn gst_gl_window_new(display: *mut GstGLDisplay) -> *mut GstGLWindow;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
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_get_context(window: *mut GstGLWindow) -> *mut GstGLContext;
@ -2727,6 +2764,7 @@ extern "C" {
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);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
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_quit(window: *mut GstGLWindow);
@ -2756,6 +2794,7 @@ extern "C" {
posy: c_double,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_gl_window_send_scroll_event(
window: *mut GstGLWindow,
posx: c_double,

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_gl_sys;
@ -428,6 +428,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
},
),
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
(
"GstGLDisplayEGL",
Layout {
@ -436,6 +437,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
},
),
#[cfg(any(feature = "egl", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "egl")))]
(
"GstGLDisplayEGLClass",
Layout {
@ -451,6 +453,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
},
),
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
(
"GstGLDisplayWayland",
Layout {
@ -459,6 +462,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
},
),
#[cfg(any(feature = "wayland", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "wayland")))]
(
"GstGLDisplayWaylandClass",
Layout {
@ -467,6 +471,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
},
),
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
(
"GstGLDisplayX11",
Layout {
@ -475,6 +480,7 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
},
),
#[cfg(any(feature = "x11", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "x11")))]
(
"GstGLDisplayX11Class",
Layout {

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
@ -1901,8 +1902,10 @@ extern "C" {
// GstMpegtsAtscRRT
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_new() -> *mut GstMpegtsAtscRRT;
//=========================================================================
@ -1915,8 +1918,10 @@ extern "C" {
// GstMpegtsAtscRRTDimensionValue
//=========================================================================
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_dimension_value_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_atsc_rrt_dimension_value_new() -> *mut GstMpegtsAtscRRTDimensionValue;
//=========================================================================
@ -2367,6 +2372,7 @@ extern "C" {
section: *mut GstMpegtsSection,
) -> *const GstMpegtsAtscMGT;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_section_get_atsc_rrt(
section: *mut GstMpegtsSection,
) -> *const GstMpegtsAtscRRT;
@ -2399,8 +2405,10 @@ extern "C" {
element: *mut gst::GstElement,
) -> gboolean;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_mpegts_section_from_atsc_mgt(mgt: *mut GstMpegtsAtscMGT) -> *mut GstMpegtsSection;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", 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_stt(stt: *mut GstMpegtsAtscSTT) -> *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 @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_mpegts_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate gio_sys as gio;
extern crate glib_sys as glib;
@ -319,6 +320,7 @@ extern "C" {
pub fn gst_net_address_meta_api_get_type() -> GType;
pub fn gst_net_control_message_meta_api_get_type() -> GType;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", 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_ptp_deinit();
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 @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_net_sys;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#include "manual.h"

View file

@ -8,11 +8,14 @@ use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::StaticType;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use glib::Value;
use glib_sys;
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use gobject_sys;
use gst;
use gst_pbutils_sys;
@ -85,6 +88,7 @@ impl Discoverer {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn get_property_use_cache(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
@ -101,6 +105,7 @@ impl Discoverer {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn set_property_use_cache(&self, use_cache: bool) {
unsafe {
gobject_sys::g_object_set_property(
@ -223,6 +228,7 @@ impl Discoverer {
}
#[cfg(any(feature = "v1_16", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
pub fn connect_property_use_cache_notify<F: Fn(&Discoverer) + Send + Sync + 'static>(
&self,
f: F,

View file

@ -21,6 +21,7 @@ impl DiscovererAudioInfo {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn get_channel_mask(&self) -> u64 {
unsafe {
gst_pbutils_sys::gst_discoverer_audio_info_get_channel_mask(self.to_glib_none().0)

View file

@ -53,6 +53,7 @@ impl DiscovererInfo {
}
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn get_live(&self) -> bool {
unsafe {
from_glib(gst_pbutils_sys::gst_discoverer_info_get_live(

View file

@ -52,6 +52,7 @@ pub const NONE_ENCODING_PROFILE: Option<&EncodingProfile> = None;
pub trait EncodingProfileExt: 'static {
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn copy(&self) -> EncodingProfile;
fn get_allow_dynamic_output(&self) -> bool;
@ -73,6 +74,7 @@ pub trait EncodingProfileExt: 'static {
fn get_preset_name(&self) -> Option<GString>;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_single_segment(&self) -> bool;
fn get_type_nick(&self) -> Option<GString>;
@ -84,6 +86,7 @@ pub trait EncodingProfileExt: 'static {
impl<O: IsA<EncodingProfile>> EncodingProfileExt for O {
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
fn copy(&self) -> EncodingProfile {
unsafe {
from_glib_full(gst_pbutils_sys::gst_encoding_profile_copy(
@ -165,6 +168,7 @@ impl<O: IsA<EncodingProfile>> EncodingProfileExt for O {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
fn get_single_segment(&self) -> bool {
unsafe {
from_glib(gst_pbutils_sys::gst_encoding_profile_get_single_segment(

View file

@ -61,6 +61,7 @@ impl EncodingTarget {
}
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn get_path(&self) -> Option<GString> {
unsafe {
from_glib_none(gst_pbutils_sys::gst_encoding_target_get_path(

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ db37199)
from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
Generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
@ -8,6 +8,7 @@
clippy::type_complexity,
clippy::unreadable_literal
)]
#![cfg_attr(feature = "dox", feature(doc_cfg))]
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;
@ -380,6 +381,7 @@ extern "C" {
pub fn gst_install_plugins_context_get_type() -> GType;
pub fn gst_install_plugins_context_new() -> *mut GstInstallPluginsContext;
#[cfg(any(feature = "v1_12_1", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12_1")))]
pub fn gst_install_plugins_context_copy(
ctx: *mut GstInstallPluginsContext,
) -> *mut GstInstallPluginsContext;
@ -429,6 +431,7 @@ extern "C" {
pub fn gst_discoverer_audio_info_get_type() -> GType;
pub fn gst_discoverer_audio_info_get_bitrate(info: *const GstDiscovererAudioInfo) -> c_uint;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_discoverer_audio_info_get_channel_mask(info: *const GstDiscovererAudioInfo) -> u64;
pub fn gst_discoverer_audio_info_get_channels(info: *const GstDiscovererAudioInfo) -> c_uint;
pub fn gst_discoverer_audio_info_get_depth(info: *const GstDiscovererAudioInfo) -> c_uint;
@ -461,6 +464,7 @@ extern "C" {
) -> *mut glib::GList;
pub fn gst_discoverer_info_get_duration(info: *const GstDiscovererInfo) -> gst::GstClockTime;
#[cfg(any(feature = "v1_14", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
pub fn gst_discoverer_info_get_live(info: *const GstDiscovererInfo) -> gboolean;
pub fn gst_discoverer_info_get_misc(info: *const GstDiscovererInfo)
-> *const gst::GstStructure;
@ -595,6 +599,7 @@ extern "C" {
info: *mut GstDiscovererInfo,
) -> *mut GstEncodingProfile;
#[cfg(any(feature = "v1_12", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))]
pub fn gst_encoding_profile_copy(self_: *mut GstEncodingProfile) -> *mut GstEncodingProfile;
pub fn gst_encoding_profile_get_allow_dynamic_output(
profile: *mut GstEncodingProfile,
@ -615,6 +620,7 @@ extern "C" {
profile: *mut GstEncodingProfile,
) -> *mut gst::GstCaps;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_encoding_profile_get_single_segment(profile: *mut GstEncodingProfile) -> gboolean;
pub fn gst_encoding_profile_get_type_nick(profile: *mut GstEncodingProfile) -> *const c_char;
pub fn gst_encoding_profile_is_enabled(profile: *mut GstEncodingProfile) -> gboolean;
@ -647,6 +653,7 @@ extern "C" {
restriction: *mut gst::GstCaps,
);
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_encoding_profile_set_single_segment(
profile: *mut GstEncodingProfile,
single_segment: gboolean,
@ -679,6 +686,7 @@ extern "C" {
pub fn gst_encoding_target_get_description(target: *mut GstEncodingTarget) -> *const c_char;
pub fn gst_encoding_target_get_name(target: *mut GstEncodingTarget) -> *const c_char;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
pub fn gst_encoding_target_get_path(target: *mut GstEncodingTarget) -> *const c_char;
pub fn gst_encoding_target_get_profile(
target: *mut GstEncodingTarget,
@ -724,11 +732,13 @@ extern "C" {
len: c_uint,
) -> gboolean;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_codec_utils_aac_get_channels(audio_config: *const u8, len: c_uint) -> c_uint;
pub fn gst_codec_utils_aac_get_index_from_sample_rate(rate: c_uint) -> c_int;
pub fn gst_codec_utils_aac_get_level(audio_config: *const u8, len: c_uint) -> *const c_char;
pub fn gst_codec_utils_aac_get_profile(audio_config: *const u8, len: c_uint) -> *const c_char;
#[cfg(any(feature = "v1_10", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
pub fn gst_codec_utils_aac_get_sample_rate(audio_config: *const u8, len: c_uint) -> c_uint;
pub fn gst_codec_utils_aac_get_sample_rate_from_index(sr_idx: c_uint) -> c_uint;
pub fn gst_codec_utils_h264_caps_set_level_and_profile(

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ db37199)
// from gir-files (https://github.com/gtk-rs/gir-files @ 54e2ef5e)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 1ae9689)
// from gir-files (https://github.com/gtk-rs/gir-files @ cdd997de)
// DO NOT EDIT
extern crate gstreamer_pbutils_sys;

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