forked from mirrors/gstreamer-rs
Regenerate
This commit is contained in:
parent
27dc5b40ce
commit
d0b0006d27
279 changed files with 564 additions and 571 deletions
|
@ -10,7 +10,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AppSink(Object<ffi::GstAppSink, ffi::GstAppSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object, @implements gst::URIHandler;
|
pub struct AppSink(Object<ffi::GstAppSink, ffi::GstAppSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object, @implements gst::URIHandler;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -64,7 +64,7 @@ impl AppSink {
|
||||||
pub fn pull_preroll(&self) -> Result<gst::Sample, glib::BoolError> {
|
pub fn pull_preroll(&self) -> Result<gst::Sample, glib::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
Option::<_>::from_glib_full(ffi::gst_app_sink_pull_preroll(self.to_glib_none().0))
|
Option::<_>::from_glib_full(ffi::gst_app_sink_pull_preroll(self.to_glib_none().0))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to pull preroll sample"))
|
.ok_or_else(|| glib::bool_error!("Failed to pull preroll sample"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ impl AppSink {
|
||||||
pub fn pull_sample(&self) -> Result<gst::Sample, glib::BoolError> {
|
pub fn pull_sample(&self) -> Result<gst::Sample, glib::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
Option::<_>::from_glib_full(ffi::gst_app_sink_pull_sample(self.to_glib_none().0))
|
Option::<_>::from_glib_full(ffi::gst_app_sink_pull_sample(self.to_glib_none().0))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to pull sample"))
|
.ok_or_else(|| glib::bool_error!("Failed to pull sample"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AppSrc(Object<ffi::GstAppSrc, ffi::GstAppSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object, @implements gst::URIHandler;
|
pub struct AppSrc(Object<ffi::GstAppSrc, ffi::GstAppSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object, @implements gst::URIHandler;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use gstreamer_app_sys::*;
|
use gstreamer_app_sys::*;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AudioBaseSink(Object<ffi::GstAudioBaseSink, ffi::GstAudioBaseSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object;
|
pub struct AudioBaseSink(Object<ffi::GstAudioBaseSink, ffi::GstAudioBaseSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AudioBaseSrc(Object<ffi::GstAudioBaseSrc, ffi::GstAudioBaseSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object;
|
pub struct AudioBaseSrc(Object<ffi::GstAudioBaseSrc, ffi::GstAudioBaseSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -12,7 +12,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AudioDecoder(Object<ffi::GstAudioDecoder, ffi::GstAudioDecoderClass>) @extends gst::Element, gst::Object;
|
pub struct AudioDecoder(Object<ffi::GstAudioDecoder, ffi::GstAudioDecoderClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -136,7 +136,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
size,
|
size,
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to allocate output buffer"))
|
.ok_or_else(|| glib::bool_error!("Failed to allocate output buffer"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::translate::*;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AudioEncoder(Object<ffi::GstAudioEncoder, ffi::GstAudioEncoderClass>) @extends gst::Element, gst::Object;
|
pub struct AudioEncoder(Object<ffi::GstAudioEncoder, ffi::GstAudioEncoderClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -136,7 +136,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
size,
|
size,
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to allocate output buffer"))
|
.ok_or_else(|| glib::bool_error!("Failed to allocate output buffer"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
use crate::AudioBaseSink;
|
use crate::AudioBaseSink;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AudioSink(Object<ffi::GstAudioSink, ffi::GstAudioSinkClass>) @extends AudioBaseSink, gst_base::BaseSink, gst::Element, gst::Object;
|
pub struct AudioSink(Object<ffi::GstAudioSink, ffi::GstAudioSinkClass>) @extends AudioBaseSink, gst_base::BaseSink, gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
use crate::AudioBaseSrc;
|
use crate::AudioBaseSrc;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AudioSrc(Object<ffi::GstAudioSrc, ffi::GstAudioSrcClass>) @extends AudioBaseSrc, gst_base::BaseSrc, gst::Element, gst::Object;
|
pub struct AudioSrc(Object<ffi::GstAudioSrc, ffi::GstAudioSrcClass>) @extends AudioBaseSrc, gst_base::BaseSrc, gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct AudioStreamAlign(Boxed<ffi::GstAudioStreamAlign>);
|
pub struct AudioStreamAlign(Boxed<ffi::GstAudioStreamAlign>);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::translate::*;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct StreamVolume(Interface<ffi::GstStreamVolume>);
|
pub struct StreamVolume(Interface<ffi::GstStreamVolume>);
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use gstreamer_audio_sys::*;
|
use gstreamer_audio_sys::*;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -6,7 +6,7 @@ use glib::translate::*;
|
||||||
use glib::ObjectExt;
|
use glib::ObjectExt;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Adapter(Object<ffi::GstAdapter, ffi::GstAdapterClass>);
|
pub struct Adapter(Object<ffi::GstAdapter, ffi::GstAdapterClass>);
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -17,7 +17,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Aggregator(Object<ffi::GstAggregator, ffi::GstAggregatorClass>) @extends gst::Element, gst::Object;
|
pub struct Aggregator(Object<ffi::GstAggregator, ffi::GstAggregatorClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -13,7 +13,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct AggregatorPad(Object<ffi::GstAggregatorPad, ffi::GstAggregatorPadClass>) @extends gst::Pad, gst::Object;
|
pub struct AggregatorPad(Object<ffi::GstAggregatorPad, ffi::GstAggregatorPadClass>) @extends gst::Pad, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct BaseParse(Object<ffi::GstBaseParse, ffi::GstBaseParseClass>) @extends gst::Element, gst::Object;
|
pub struct BaseParse(Object<ffi::GstBaseParse, ffi::GstBaseParseClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct BaseSink(Object<ffi::GstBaseSink, ffi::GstBaseSinkClass>) @extends gst::Element, gst::Object;
|
pub struct BaseSink(Object<ffi::GstBaseSink, ffi::GstBaseSinkClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct BaseSrc(Object<ffi::GstBaseSrc, ffi::GstBaseSrcClass>) @extends gst::Element, gst::Object;
|
pub struct BaseSrc(Object<ffi::GstBaseSrc, ffi::GstBaseSrcClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -178,7 +178,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||||
|
|
||||||
fn set_caps(&self, caps: &gst::Caps) -> Result<(), glib::error::BoolError> {
|
fn set_caps(&self, caps: &gst::Caps) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_base_src_set_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0),
|
ffi::gst_base_src_set_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0),
|
||||||
"Failed to set caps"
|
"Failed to set caps"
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct BaseTransform(Object<ffi::GstBaseTransform, ffi::GstBaseTransformClass>) @extends gst::Element, gst::Object;
|
pub struct BaseTransform(Object<ffi::GstBaseTransform, ffi::GstBaseTransformClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -199,7 +199,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
||||||
|
|
||||||
fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError> {
|
fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_base_transform_update_src_caps(
|
ffi::gst_base_transform_update_src_caps(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
updated_caps.to_glib_none().0
|
updated_caps.to_glib_none().0
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub fn type_find_helper<P: IsA<gst::Pad>>(
|
||||||
src.as_ref().to_glib_none().0,
|
src.as_ref().to_glib_none().0,
|
||||||
size,
|
size,
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Could not find type"))
|
.ok_or_else(|| glib::bool_error!("Could not find type"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ pub fn type_find_helper_for_extension<P: IsA<gst::Object>>(
|
||||||
obj.map(|p| p.as_ref()).to_glib_none().0,
|
obj.map(|p| p.as_ref()).to_glib_none().0,
|
||||||
extension.to_glib_none().0,
|
extension.to_glib_none().0,
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Could not find type"))
|
.ok_or_else(|| glib::bool_error!("Could not find type"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
use crate::BaseSrc;
|
use crate::BaseSrc;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct PushSrc(Object<ffi::GstPushSrc, ffi::GstPushSrcClass>) @extends BaseSrc, gst::Element, gst::Object;
|
pub struct PushSrc(Object<ffi::GstPushSrc, ffi::GstPushSrcClass>) @extends BaseSrc, gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use gstreamer_base_sys::*;
|
use gstreamer_base_sys::*;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct TestClock(Object<ffi::GstTestClock, ffi::GstTestClockClass>) @extends gst::Clock, gst::Object;
|
pub struct TestClock(Object<ffi::GstTestClock, ffi::GstTestClockClass>) @extends gst::Clock, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use gstreamer_check_sys::*;
|
use gstreamer_check_sys::*;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct ARGBControlBinding(Object<ffi::GstARGBControlBinding, ffi::GstARGBControlBindingClass>) @extends gst::ControlBinding, gst::Object;
|
pub struct ARGBControlBinding(Object<ffi::GstARGBControlBinding, ffi::GstARGBControlBindingClass>) @extends gst::ControlBinding, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct DirectControlBinding(Object<ffi::GstDirectControlBinding, ffi::GstDirectControlBindingClass>) @extends gst::ControlBinding, gst::Object;
|
pub struct DirectControlBinding(Object<ffi::GstDirectControlBinding, ffi::GstDirectControlBindingClass>) @extends gst::ControlBinding, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -13,7 +13,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct InterpolationControlSource(Object<ffi::GstInterpolationControlSource, ffi::GstInterpolationControlSourceClass>) @extends TimedValueControlSource, gst::ControlSource, gst::Object;
|
pub struct InterpolationControlSource(Object<ffi::GstInterpolationControlSource, ffi::GstInterpolationControlSourceClass>) @extends TimedValueControlSource, gst::ControlSource, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -12,7 +12,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct LFOControlSource(Object<ffi::GstLFOControlSource, ffi::GstLFOControlSourceClass>) @extends gst::ControlSource, gst::Object;
|
pub struct LFOControlSource(Object<ffi::GstLFOControlSource, ffi::GstLFOControlSourceClass>) @extends gst::ControlSource, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -10,7 +10,7 @@ use glib::object::Cast;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct ProxyControlBinding(Object<ffi::GstProxyControlBinding, ffi::GstProxyControlBindingClass>) @extends gst::ControlBinding, gst::Object;
|
pub struct ProxyControlBinding(Object<ffi::GstProxyControlBinding, ffi::GstProxyControlBindingClass>) @extends gst::ControlBinding, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -11,7 +11,7 @@ use glib::translate::*;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct TimedValueControlSource(Object<ffi::GstTimedValueControlSource, ffi::GstTimedValueControlSourceClass>) @extends gst::ControlSource, gst::Object;
|
pub struct TimedValueControlSource(Object<ffi::GstTimedValueControlSource, ffi::GstTimedValueControlSourceClass>) @extends gst::ControlSource, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -12,7 +12,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct TriggerControlSource(Object<ffi::GstTriggerControlSource, ffi::GstTriggerControlSourceClass>) @extends TimedValueControlSource, gst::ControlSource, gst::Object;
|
pub struct TriggerControlSource(Object<ffi::GstTriggerControlSource, ffi::GstTriggerControlSourceClass>) @extends TimedValueControlSource, gst::ControlSource, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use gstreamer_controller_sys::*;
|
use gstreamer_controller_sys::*;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@ use std::mem::transmute;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Asset(Object<ffi::GESAsset, ffi::GESAssetClass>);
|
pub struct Asset(Object<ffi::GESAsset, ffi::GESAssetClass>);
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -201,7 +201,7 @@ impl<O: IsA<Asset>> AssetExt for O {
|
||||||
|
|
||||||
fn set_proxy<P: IsA<Asset>>(&self, proxy: Option<&P>) -> Result<(), glib::error::BoolError> {
|
fn set_proxy<P: IsA<Asset>>(&self, proxy: Option<&P>) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_asset_set_proxy(
|
ffi::ges_asset_set_proxy(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
proxy.map(|p| p.as_ref()).to_glib_none().0
|
proxy.map(|p| p.as_ref()).to_glib_none().0
|
||||||
|
@ -213,7 +213,7 @@ impl<O: IsA<Asset>> AssetExt for O {
|
||||||
|
|
||||||
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), glib::error::BoolError> {
|
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_asset_unproxy(
|
ffi::ges_asset_unproxy(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
proxy.as_ref().to_glib_none().0
|
proxy.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -8,7 +8,7 @@ use crate::TrackElement;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct BaseEffect(Object<ffi::GESBaseEffect, ffi::GESBaseEffectClass>) @extends TrackElement, TimelineElement, @implements Extractable;
|
pub struct BaseEffect(Object<ffi::GESBaseEffect, ffi::GESBaseEffectClass>) @extends TrackElement, TimelineElement, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -25,7 +25,7 @@ use std::mem::transmute;
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Clip(Object<ffi::GESClip, ffi::GESClipClass>) @extends Container, TimelineElement, @implements Extractable;
|
pub struct Clip(Object<ffi::GESClip, ffi::GESClipClass>) @extends Container, TimelineElement, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -184,7 +184,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
asset.as_ref().to_glib_none().0,
|
asset.as_ref().to_glib_none().0,
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to add asset"))
|
.ok_or_else(|| glib::bool_error!("Failed to add asset"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
|
|
||||||
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_clip_move_to_layer(
|
ffi::ges_clip_move_to_layer(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
layer.as_ref().to_glib_none().0
|
layer.as_ref().to_glib_none().0
|
||||||
|
@ -442,7 +442,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
newindex: u32,
|
newindex: u32,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_clip_set_top_effect_index(
|
ffi::ges_clip_set_top_effect_index(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
effect.as_ref().to_glib_none().0,
|
effect.as_ref().to_glib_none().0,
|
||||||
|
@ -482,7 +482,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
newpriority: u32,
|
newpriority: u32,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_clip_set_top_effect_priority(
|
ffi::ges_clip_set_top_effect_priority(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
effect.as_ref().to_glib_none().0,
|
effect.as_ref().to_glib_none().0,
|
||||||
|
@ -499,7 +499,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
position,
|
position,
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to split clip"))
|
.ok_or_else(|| glib::bool_error!("Failed to split clip"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Container(Object<ffi::GESContainer, ffi::GESContainerClass>) @extends TimelineElement, @implements Extractable;
|
pub struct Container(Object<ffi::GESContainer, ffi::GESContainerClass>) @extends TimelineElement, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -76,7 +76,7 @@ pub trait GESContainerExt: 'static {
|
||||||
impl<O: IsA<Container>> GESContainerExt for O {
|
impl<O: IsA<Container>> GESContainerExt for O {
|
||||||
fn add<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
|
fn add<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_container_add(
|
ffi::ges_container_add(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
child.as_ref().to_glib_none().0
|
child.as_ref().to_glib_none().0
|
||||||
|
@ -95,7 +95,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
|
||||||
position: u64,
|
position: u64,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_container_edit(
|
ffi::ges_container_edit(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
layers.to_glib_none().0,
|
layers.to_glib_none().0,
|
||||||
|
@ -120,7 +120,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
|
||||||
|
|
||||||
fn remove<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
|
fn remove<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_container_remove(
|
ffi::ges_container_remove(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
child.as_ref().to_glib_none().0
|
child.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -10,7 +10,7 @@ use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use glib::StaticType;
|
use glib::StaticType;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Effect(Object<ffi::GESEffect, ffi::GESEffectClass>) @extends BaseEffect, TrackElement, TimelineElement, @implements Extractable;
|
pub struct Effect(Object<ffi::GESEffect, ffi::GESEffectClass>) @extends BaseEffect, TrackElement, TimelineElement, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -24,7 +24,7 @@ impl Effect {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
unsafe {
|
unsafe {
|
||||||
Option::<_>::from_glib_none(ffi::ges_effect_new(bin_description.to_glib_none().0))
|
Option::<_>::from_glib_none(ffi::ges_effect_new(bin_description.to_glib_none().0))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to create effect from description"))
|
.ok_or_else(|| glib::bool_error!("Failed to create effect from description"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ use crate::Asset;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Extractable(Interface<ffi::GESExtractable>);
|
pub struct Extractable(Interface<ffi::GESExtractable>);
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -42,7 +42,7 @@ impl<O: IsA<Extractable>> ExtractableExt for O {
|
||||||
|
|
||||||
fn set_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
|
fn set_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_extractable_set_asset(
|
ffi::ges_extractable_set_asset(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
asset.as_ref().to_glib_none().0
|
asset.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -14,7 +14,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Group(Object<ffi::GESGroup, ffi::GESGroupClass>) @extends Container, TimelineElement, @implements Extractable;
|
pub struct Group(Object<ffi::GESGroup, ffi::GESGroupClass>) @extends Container, TimelineElement, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -21,7 +21,7 @@ use std::mem::transmute;
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Layer(Object<ffi::GESLayer, ffi::GESLayerClass>) @implements Extractable;
|
pub struct Layer(Object<ffi::GESLayer, ffi::GESLayerClass>) @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -155,7 +155,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
||||||
duration.to_glib(),
|
duration.to_glib(),
|
||||||
track_types.to_glib(),
|
track_types.to_glib(),
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to add asset"))
|
.ok_or_else(|| glib::bool_error!("Failed to add asset"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
||||||
|
|
||||||
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
|
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_layer_add_clip(
|
ffi::ges_layer_add_clip(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
clip.as_ref().to_glib_none().0
|
clip.as_ref().to_glib_none().0
|
||||||
|
@ -273,7 +273,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
||||||
|
|
||||||
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
|
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_layer_remove_clip(
|
ffi::ges_layer_remove_clip(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
clip.as_ref().to_glib_none().0
|
clip.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -14,7 +14,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Pipeline(Object<ffi::GESPipeline, ffi::GESPipelineClass>) @extends gst::Pipeline, gst::Element, gst::Object;
|
pub struct Pipeline(Object<ffi::GESPipeline, ffi::GESPipelineClass>) @extends gst::Pipeline, gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -200,7 +200,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
|
|
||||||
fn set_mode(&self, mode: PipelineFlags) -> Result<(), glib::error::BoolError> {
|
fn set_mode(&self, mode: PipelineFlags) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_pipeline_set_mode(self.as_ref().to_glib_none().0, mode.to_glib()),
|
ffi::ges_pipeline_set_mode(self.as_ref().to_glib_none().0, mode.to_glib()),
|
||||||
"Failed to set mode"
|
"Failed to set mode"
|
||||||
)
|
)
|
||||||
|
@ -213,7 +213,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
profile: &P,
|
profile: &P,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_pipeline_set_render_settings(
|
ffi::ges_pipeline_set_render_settings(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
output_uri.to_glib_none().0,
|
output_uri.to_glib_none().0,
|
||||||
|
@ -226,7 +226,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
||||||
|
|
||||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
|
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_pipeline_set_timeline(
|
ffi::ges_pipeline_set_timeline(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
timeline.as_ref().to_glib_full()
|
timeline.as_ref().to_glib_full()
|
||||||
|
|
|
@ -13,7 +13,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Project(Object<ffi::GESProject, ffi::GESProjectClass>) @extends Asset;
|
pub struct Project(Object<ffi::GESProject, ffi::GESProjectClass>) @extends Asset;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -131,7 +131,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
||||||
profile: &P,
|
profile: &P,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_project_add_encoding_profile(
|
ffi::ges_project_add_encoding_profile(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
profile.as_ref().to_glib_none().0
|
profile.as_ref().to_glib_none().0
|
||||||
|
@ -235,7 +235,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
||||||
|
|
||||||
fn remove_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
|
fn remove_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_project_remove_asset(
|
ffi::ges_project_remove_asset(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
asset.as_ref().to_glib_none().0
|
asset.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -24,7 +24,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Timeline(Object<ffi::GESTimeline, ffi::GESTimelineClass>) @extends gst::Element, gst::Object, @implements Extractable;
|
pub struct Timeline(Object<ffi::GESTimeline, ffi::GESTimelineClass>) @extends gst::Element, gst::Object, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -217,7 +217,7 @@ pub trait TimelineExt: 'static {
|
||||||
impl<O: IsA<Timeline>> TimelineExt for O {
|
impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
fn add_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
fn add_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_add_layer(
|
ffi::ges_timeline_add_layer(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
layer.as_ref().to_glib_none().0
|
layer.as_ref().to_glib_none().0
|
||||||
|
@ -229,7 +229,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
|
|
||||||
fn add_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
|
fn add_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_add_track(
|
ffi::ges_timeline_add_track(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
track.as_ref().to_glib_full()
|
track.as_ref().to_glib_full()
|
||||||
|
@ -390,7 +390,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
new_layer_priority: u32,
|
new_layer_priority: u32,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_move_layer(
|
ffi::ges_timeline_move_layer(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
layer.as_ref().to_glib_none().0,
|
layer.as_ref().to_glib_none().0,
|
||||||
|
@ -419,7 +419,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
|
|
||||||
fn remove_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
fn remove_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_remove_layer(
|
ffi::ges_timeline_remove_layer(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
layer.as_ref().to_glib_none().0
|
layer.as_ref().to_glib_none().0
|
||||||
|
@ -431,7 +431,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
||||||
|
|
||||||
fn remove_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
|
fn remove_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_remove_track(
|
ffi::ges_timeline_remove_track(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
track.as_ref().to_glib_none().0
|
track.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -29,7 +29,7 @@ use std::mem::transmute;
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct TimelineElement(Object<ffi::GESTimelineElement, ffi::GESTimelineElementClass>) @implements Extractable;
|
pub struct TimelineElement(Object<ffi::GESTimelineElement, ffi::GESTimelineElementClass>) @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -241,7 +241,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
deep.to_glib(),
|
deep.to_glib(),
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to copy timeline element"))
|
.ok_or_else(|| glib::bool_error!("Failed to copy timeline element"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
paste_position.to_glib(),
|
paste_position.to_glib(),
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to paste timeline element"))
|
.ok_or_else(|| glib::bool_error!("Failed to paste timeline element"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -437,7 +437,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
fn ripple(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
fn ripple(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_ripple(self.as_ref().to_glib_none().0, start.to_glib()),
|
ffi::ges_timeline_element_ripple(self.as_ref().to_glib_none().0, start.to_glib()),
|
||||||
"Failed to ripple"
|
"Failed to ripple"
|
||||||
)
|
)
|
||||||
|
@ -446,7 +446,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
fn ripple_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
fn ripple_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_ripple_end(self.as_ref().to_glib_none().0, end.to_glib()),
|
ffi::ges_timeline_element_ripple_end(self.as_ref().to_glib_none().0, end.to_glib()),
|
||||||
"Failed to ripple"
|
"Failed to ripple"
|
||||||
)
|
)
|
||||||
|
@ -455,7 +455,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
fn roll_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
fn roll_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_roll_end(self.as_ref().to_glib_none().0, end.to_glib()),
|
ffi::ges_timeline_element_roll_end(self.as_ref().to_glib_none().0, end.to_glib()),
|
||||||
"Failed to roll"
|
"Failed to roll"
|
||||||
)
|
)
|
||||||
|
@ -464,7 +464,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
fn roll_start(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
fn roll_start(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_roll_start(
|
ffi::ges_timeline_element_roll_start(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
start.to_glib()
|
start.to_glib()
|
||||||
|
@ -525,7 +525,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
fn set_name(&self, name: Option<&str>) -> Result<(), glib::error::BoolError> {
|
fn set_name(&self, name: Option<&str>) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_set_name(
|
ffi::ges_timeline_element_set_name(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
name.to_glib_none().0
|
name.to_glib_none().0
|
||||||
|
@ -540,7 +540,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
parent: &P,
|
parent: &P,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_set_parent(
|
ffi::ges_timeline_element_set_parent(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
parent.as_ref().to_glib_none().0
|
parent.as_ref().to_glib_none().0
|
||||||
|
@ -570,7 +570,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
|
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_set_timeline(
|
ffi::ges_timeline_element_set_timeline(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
timeline.as_ref().to_glib_none().0
|
timeline.as_ref().to_glib_none().0
|
||||||
|
@ -582,7 +582,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||||
|
|
||||||
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_timeline_element_trim(self.as_ref().to_glib_none().0, start.to_glib()),
|
ffi::ges_timeline_element_trim(self.as_ref().to_glib_none().0, start.to_glib()),
|
||||||
"Failed to trim"
|
"Failed to trim"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ use std::mem::transmute;
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct Track(Object<ffi::GESTrack, ffi::GESTrackClass>) @extends gst::Element, gst::Object;
|
pub struct Track(Object<ffi::GESTrack, ffi::GESTrackClass>) @extends gst::Element, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -133,7 +133,7 @@ pub trait GESTrackExt: 'static {
|
||||||
impl<O: IsA<Track>> GESTrackExt for O {
|
impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError> {
|
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_track_add_element(
|
ffi::ges_track_add_element(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
object.as_ref().to_glib_none().0
|
object.as_ref().to_glib_none().0
|
||||||
|
@ -200,7 +200,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
||||||
object: &P,
|
object: &P,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_track_remove_element(
|
ffi::ges_track_remove_element(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
object.as_ref().to_glib_none().0
|
object.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -18,7 +18,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct TrackElement(Object<ffi::GESTrackElement, ffi::GESTrackElementClass>) @extends TimelineElement, @implements Extractable;
|
pub struct TrackElement(Object<ffi::GESTrackElement, ffi::GESTrackElementClass>) @extends TimelineElement, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -186,7 +186,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
position: u64,
|
position: u64,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_track_element_edit(
|
ffi::ges_track_element_edit(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
layers.to_glib_none().0,
|
layers.to_glib_none().0,
|
||||||
|
@ -291,7 +291,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||||
|
|
||||||
fn remove_control_binding(&self, property_name: &str) -> Result<(), glib::error::BoolError> {
|
fn remove_control_binding(&self, property_name: &str) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::ges_track_element_remove_control_binding(
|
ffi::ges_track_element_remove_control_binding(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
property_name.to_glib_none().0
|
property_name.to_glib_none().0
|
||||||
|
|
|
@ -15,7 +15,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct UriClip(Object<ffi::GESUriClip, ffi::GESUriClipClass>) @extends Clip, Container, TimelineElement, @implements Extractable;
|
pub struct UriClip(Object<ffi::GESUriClip, ffi::GESUriClipClass>) @extends Clip, Container, TimelineElement, @implements Extractable;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -29,7 +29,7 @@ impl UriClip {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
unsafe {
|
unsafe {
|
||||||
Option::<_>::from_glib_none(ffi::ges_uri_clip_new(uri.to_glib_none().0))
|
Option::<_>::from_glib_none(ffi::ges_uri_clip_new(uri.to_glib_none().0))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to create Uri clip from Uri"))
|
.ok_or_else(|| glib::bool_error!("Failed to create Uri clip from Uri"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct UriClipAsset(Object<ffi::GESUriClipAsset, ffi::GESUriClipAssetClass>) @extends Asset;
|
pub struct UriClipAsset(Object<ffi::GESUriClipAsset, ffi::GESUriClipAssetClass>) @extends Asset;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -7,7 +7,7 @@ use crate::UriClipAsset;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct UriSourceAsset(Object<ffi::GESUriSourceAsset, ffi::GESUriSourceAssetClass>) @extends Asset;
|
pub struct UriSourceAsset(Object<ffi::GESUriSourceAsset, ffi::GESUriSourceAssetClass>) @extends Asset;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use gstreamer_editing_services_sys::*;
|
use gstreamer_editing_services_sys::*;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLDisplayEGL(Object<ffi::GstGLDisplayEGL, ffi::GstGLDisplayEGLClass>) @extends gst_gl::GLDisplay, gst::Object;
|
pub struct GLDisplayEGL(Object<ffi::GstGLDisplayEGL, ffi::GstGLDisplayEGLClass>) @extends gst_gl::GLDisplay, gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
use gstreamer_gl_egl_sys::*;
|
use gstreamer_gl_egl_sys::*;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#include "manual.h"
|
#include "manual.h"
|
||||||
|
|
|
@ -12,7 +12,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLBaseFilter(Object<ffi::GstGLBaseFilter, ffi::GstGLBaseFilterClass>) @extends gst::Object;
|
pub struct GLBaseFilter(Object<ffi::GstGLBaseFilter, ffi::GstGLBaseFilterClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -6,7 +6,7 @@ use crate::GLContext;
|
||||||
use glib::object::IsA;
|
use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLColorConvert(Object<ffi::GstGLColorConvert, ffi::GstGLColorConvertClass>) @extends gst::Object;
|
pub struct GLColorConvert(Object<ffi::GstGLColorConvert, ffi::GstGLColorConvertClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -32,7 +32,7 @@ impl GLColorConvert {
|
||||||
out_caps: &gst::Caps,
|
out_caps: &gst::Caps,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_color_convert_set_caps(
|
ffi::gst_gl_color_convert_set_caps(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
in_caps.to_glib_none().0,
|
in_caps.to_glib_none().0,
|
||||||
|
|
|
@ -13,7 +13,7 @@ use glib::translate::*;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLContext(Object<ffi::GstGLContext, ffi::GstGLContextClass>) @extends gst::Object;
|
pub struct GLContext(Object<ffi::GstGLContext, ffi::GstGLContextClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -135,7 +135,7 @@ pub trait GLContextExt: 'static {
|
||||||
impl<O: IsA<GLContext>> GLContextExt for O {
|
impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
fn activate(&self, activate: bool) -> Result<(), glib::error::BoolError> {
|
fn activate(&self, activate: bool) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_context_activate(self.as_ref().to_glib_none().0, activate.to_glib()),
|
ffi::gst_gl_context_activate(self.as_ref().to_glib_none().0, activate.to_glib()),
|
||||||
"Failed to activate OpenGL context"
|
"Failed to activate OpenGL context"
|
||||||
)
|
)
|
||||||
|
@ -307,7 +307,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
||||||
|
|
||||||
fn set_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
|
fn set_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_context_set_window(
|
ffi::gst_gl_context_set_window(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
window.as_ref().to_glib_full()
|
window.as_ref().to_glib_full()
|
||||||
|
|
|
@ -15,7 +15,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLDisplay(Object<ffi::GstGLDisplay, ffi::GstGLDisplayClass>) @extends gst::Object;
|
pub struct GLDisplay(Object<ffi::GstGLDisplay, ffi::GstGLDisplayClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -89,7 +89,7 @@ pub trait GLDisplayExt: 'static {
|
||||||
impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
||||||
fn add_context<P: IsA<GLContext>>(&self, context: &P) -> Result<(), glib::error::BoolError> {
|
fn add_context<P: IsA<GLContext>>(&self, context: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_display_add_context(
|
ffi::gst_gl_display_add_context(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
context.as_ref().to_glib_none().0
|
context.as_ref().to_glib_none().0
|
||||||
|
@ -125,7 +125,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
||||||
Option::<_>::from_glib_full(ffi::gst_gl_display_create_window(
|
Option::<_>::from_glib_full(ffi::gst_gl_display_create_window(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
))
|
))
|
||||||
.ok_or_else(|| glib::glib_bool_error!("Failed to create window"))
|
.ok_or_else(|| glib::bool_error!("Failed to create window"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
||||||
|
|
||||||
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
|
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_display_remove_window(
|
ffi::gst_gl_display_remove_window(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
window.as_ref().to_glib_none().0
|
window.as_ref().to_glib_none().0
|
||||||
|
|
|
@ -7,7 +7,7 @@ use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLFramebuffer(Object<ffi::GstGLFramebuffer, ffi::GstGLFramebufferClass>) @extends gst::Object;
|
pub struct GLFramebuffer(Object<ffi::GstGLFramebuffer, ffi::GstGLFramebufferClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -24,7 +24,7 @@ use std::boxed::Box as Box_;
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLOverlayCompositor(Object<ffi::GstGLOverlayCompositor, ffi::GstGLOverlayCompositorClass>) @extends gst::Object;
|
pub struct GLOverlayCompositor(Object<ffi::GstGLOverlayCompositor, ffi::GstGLOverlayCompositorClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
|
|
@ -20,7 +20,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLShader(Object<ffi::GstGLShader, ffi::GstGLShaderClass>) @extends gst::Object;
|
pub struct GLShader(Object<ffi::GstGLShader, ffi::GstGLShaderClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -62,7 +62,7 @@ impl GLShader {
|
||||||
#[doc(alias = "gst_gl_shader_attach")]
|
#[doc(alias = "gst_gl_shader_attach")]
|
||||||
pub fn attach(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> {
|
pub fn attach(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_shader_attach(self.to_glib_none().0, stage.to_glib_none().0),
|
ffi::gst_gl_shader_attach(self.to_glib_none().0, stage.to_glib_none().0),
|
||||||
"Failed to attach stage to shader"
|
"Failed to attach stage to shader"
|
||||||
)
|
)
|
||||||
|
@ -72,7 +72,7 @@ impl GLShader {
|
||||||
#[doc(alias = "gst_gl_shader_attach_unlocked")]
|
#[doc(alias = "gst_gl_shader_attach_unlocked")]
|
||||||
pub fn attach_unlocked(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> {
|
pub fn attach_unlocked(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_shader_attach_unlocked(self.to_glib_none().0, stage.to_glib_none().0),
|
ffi::gst_gl_shader_attach_unlocked(self.to_glib_none().0, stage.to_glib_none().0),
|
||||||
"Failed to attach stage to shader"
|
"Failed to attach stage to shader"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,7 +7,7 @@ use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLUpload(Object<ffi::GstGLUpload, ffi::GstGLUploadClass>) @extends gst::Object;
|
pub struct GLUpload(Object<ffi::GstGLUpload, ffi::GstGLUploadClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -39,7 +39,7 @@ impl GLUpload {
|
||||||
out_caps: &gst::Caps,
|
out_caps: &gst::Caps,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_upload_set_caps(
|
ffi::gst_gl_upload_set_caps(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
in_caps.to_glib_none().0,
|
in_caps.to_glib_none().0,
|
||||||
|
|
|
@ -13,7 +13,7 @@ use glib::StaticType;
|
||||||
use std::boxed::Box as Box_;
|
use std::boxed::Box as Box_;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLViewConvert(Object<ffi::GstGLViewConvert, ffi::GstGLViewConvertClass>) @extends gst::Object;
|
pub struct GLViewConvert(Object<ffi::GstGLViewConvert, ffi::GstGLViewConvertClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -52,7 +52,7 @@ impl GLViewConvert {
|
||||||
out_caps: &gst::Caps,
|
out_caps: &gst::Caps,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_view_convert_set_caps(
|
ffi::gst_gl_view_convert_set_caps(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
in_caps.to_glib_none().0,
|
in_caps.to_glib_none().0,
|
||||||
|
|
|
@ -13,7 +13,7 @@ use std::boxed::Box as Box_;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::mem::transmute;
|
use std::mem::transmute;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLWindow(Object<ffi::GstGLWindow, ffi::GstGLWindowClass>) @extends gst::Object;
|
pub struct GLWindow(Object<ffi::GstGLWindow, ffi::GstGLWindowClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -246,7 +246,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
|
||||||
height: i32,
|
height: i32,
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_gl_window_set_render_rectangle(
|
ffi::gst_gl_window_set_render_rectangle(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
x,
|
x,
|
||||||
|
|
|
@ -9,7 +9,7 @@ use glib::object::IsA;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
glib::glib_wrapper! {
|
glib::wrapper! {
|
||||||
pub struct GLSLStage(Object<ffi::GstGLSLStage, ffi::GstGLSLStageClass>) @extends gst::Object;
|
pub struct GLSLStage(Object<ffi::GstGLSLStage, ffi::GstGLSLStageClass>) @extends gst::Object;
|
||||||
|
|
||||||
match fn {
|
match fn {
|
||||||
|
@ -133,7 +133,7 @@ impl GLSLStage {
|
||||||
) -> Result<(), glib::error::BoolError> {
|
) -> Result<(), glib::error::BoolError> {
|
||||||
let n_strings = str.len() as i32;
|
let n_strings = str.len() as i32;
|
||||||
unsafe {
|
unsafe {
|
||||||
glib::glib_result_from_gboolean!(
|
glib::result_from_gboolean!(
|
||||||
ffi::gst_glsl_stage_set_strings(
|
ffi::gst_glsl_stage_set_strings(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
version.to_glib(),
|
version.to_glib(),
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
|
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
|
||||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
|
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
|
||||||
// DO NOT EDIT
|
// DO NOT EDIT
|
||||||
|
|
||||||
#[cfg(not(feature = "dox"))]
|
#[cfg(not(feature = "dox"))]
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue