forked from mirrors/gstreamer-rs
gir: Update and regenerate with impl Trait
instead of named types
https://github.com/gtk-rs/gir/pull/1153
This commit is contained in:
parent
c66287843f
commit
e2a9f83f5b
196 changed files with 597 additions and 624 deletions
2
gir
2
gir
|
@ -1 +1 @@
|
|||
Subproject commit f64f90a1d328afd96c6a2a41a8e061d0c0c202c3
|
||||
Subproject commit ede0c31f5a5d978fb04fdf1462748f34a0e26bd2
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -50,7 +50,7 @@ pub trait AggregatorExt: 'static {
|
|||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_aggregator_peek_next_sample")]
|
||||
fn peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample>;
|
||||
fn peek_next_sample(&self, pad: &impl IsA<AggregatorPad>) -> Option<gst::Sample>;
|
||||
|
||||
#[doc(alias = "gst_aggregator_set_latency")]
|
||||
fn set_latency(
|
||||
|
@ -151,7 +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 peek_next_sample<P: IsA<AggregatorPad>>(&self, pad: &P) -> Option<gst::Sample> {
|
||||
fn peek_next_sample(&self, pad: &impl IsA<AggregatorPad>) -> Option<gst::Sample> {
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_aggregator_peek_next_sample(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
|
|
@ -7,10 +7,7 @@ use glib::object::IsA;
|
|||
use glib::translate::*;
|
||||
|
||||
#[doc(alias = "gst_type_find_helper")]
|
||||
pub fn type_find_helper<P: IsA<gst::Pad>>(
|
||||
src: &P,
|
||||
size: u64,
|
||||
) -> Result<gst::Caps, glib::BoolError> {
|
||||
pub fn type_find_helper(src: &impl IsA<gst::Pad>, size: u64) -> Result<gst::Caps, glib::BoolError> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
Option::<_>::from_glib_full(ffi::gst_type_find_helper(
|
||||
|
@ -22,8 +19,8 @@ pub fn type_find_helper<P: IsA<gst::Pad>>(
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_type_find_helper_for_extension")]
|
||||
pub fn type_find_helper_for_extension<P: IsA<gst::Object>>(
|
||||
obj: Option<&P>,
|
||||
pub fn type_find_helper_for_extension(
|
||||
obj: Option<&impl IsA<gst::Object>>,
|
||||
extension: &str,
|
||||
) -> Result<gst::Caps, glib::BoolError> {
|
||||
assert_initialized_main_thread!();
|
||||
|
@ -37,13 +34,13 @@ pub fn type_find_helper_for_extension<P: IsA<gst::Object>>(
|
|||
}
|
||||
|
||||
//#[doc(alias = "gst_type_find_helper_get_range")]
|
||||
//pub fn type_find_helper_get_range<P: IsA<gst::Object>, Q: IsA<gst::Object>, R: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> Result<gst::FlowSuccess, gst::FlowError>>(obj: &P, parent: Option<&Q>, func: R, size: u64, extension: Option<&str>) -> (Option<gst::Caps>, gst::TypeFindProbability) {
|
||||
//pub fn type_find_helper_get_range<P: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> Result<gst::FlowSuccess, gst::FlowError>>(obj: &impl IsA<gst::Object>, parent: Option<&impl IsA<gst::Object>>, func: P, size: u64, extension: Option<&str>) -> (Option<gst::Caps>, gst::TypeFindProbability) {
|
||||
// unsafe { TODO: call ffi:gst_type_find_helper_get_range() }
|
||||
//}
|
||||
|
||||
//#[cfg(any(feature = "v1_14_3", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14_3")))]
|
||||
//#[doc(alias = "gst_type_find_helper_get_range_full")]
|
||||
//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) -> Result<gst::FlowSuccess, gst::FlowError>>(obj: &P, parent: Option<&Q>, func: R, size: u64, extension: Option<&str>) -> (Result<gst::FlowSuccess, gst::FlowError>, gst::Caps, gst::TypeFindProbability) {
|
||||
//pub fn type_find_helper_get_range_full<P: FnMut(&gst::Object, Option<&gst::Object>, u64, u32, &gst::Buffer) -> Result<gst::FlowSuccess, gst::FlowError>>(obj: &impl IsA<gst::Object>, parent: Option<&impl IsA<gst::Object>>, func: P, size: u64, extension: Option<&str>) -> (Result<gst::FlowSuccess, gst::FlowError>, gst::Caps, gst::TypeFindProbability) {
|
||||
// unsafe { TODO: call ffi:gst_type_find_helper_get_range_full() }
|
||||
//}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -24,19 +24,13 @@ glib::wrapper! {
|
|||
|
||||
impl ARGBControlBinding {
|
||||
#[doc(alias = "gst_argb_control_binding_new")]
|
||||
pub fn new<
|
||||
P: IsA<gst::Object>,
|
||||
Q: IsA<gst::ControlSource>,
|
||||
R: IsA<gst::ControlSource>,
|
||||
S: IsA<gst::ControlSource>,
|
||||
T: IsA<gst::ControlSource>,
|
||||
>(
|
||||
object: &P,
|
||||
pub fn new(
|
||||
object: &impl IsA<gst::Object>,
|
||||
property_name: &str,
|
||||
cs_a: &Q,
|
||||
cs_r: &R,
|
||||
cs_g: &S,
|
||||
cs_b: &T,
|
||||
cs_a: &impl IsA<gst::ControlSource>,
|
||||
cs_r: &impl IsA<gst::ControlSource>,
|
||||
cs_g: &impl IsA<gst::ControlSource>,
|
||||
cs_b: &impl IsA<gst::ControlSource>,
|
||||
) -> ARGBControlBinding {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
|
|
|
@ -24,10 +24,10 @@ glib::wrapper! {
|
|||
|
||||
impl DirectControlBinding {
|
||||
#[doc(alias = "gst_direct_control_binding_new")]
|
||||
pub fn new<P: IsA<gst::Object>, Q: IsA<gst::ControlSource>>(
|
||||
object: &P,
|
||||
pub fn new(
|
||||
object: &impl IsA<gst::Object>,
|
||||
property_name: &str,
|
||||
cs: &Q,
|
||||
cs: &impl IsA<gst::ControlSource>,
|
||||
) -> DirectControlBinding {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
|
@ -41,10 +41,10 @@ impl DirectControlBinding {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_direct_control_binding_new_absolute")]
|
||||
pub fn new_absolute<P: IsA<gst::Object>, Q: IsA<gst::ControlSource>>(
|
||||
object: &P,
|
||||
pub fn new_absolute(
|
||||
object: &impl IsA<gst::Object>,
|
||||
property_name: &str,
|
||||
cs: &Q,
|
||||
cs: &impl IsA<gst::ControlSource>,
|
||||
) -> DirectControlBinding {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
|
|
|
@ -18,10 +18,10 @@ glib::wrapper! {
|
|||
|
||||
impl ProxyControlBinding {
|
||||
#[doc(alias = "gst_proxy_control_binding_new")]
|
||||
pub fn new<P: IsA<gst::Object>, Q: IsA<gst::Object>>(
|
||||
object: &P,
|
||||
pub fn new(
|
||||
object: &impl IsA<gst::Object>,
|
||||
property_name: &str,
|
||||
ref_object: &Q,
|
||||
ref_object: &impl IsA<gst::Object>,
|
||||
ref_property_name: &str,
|
||||
) -> ProxyControlBinding {
|
||||
assert_initialized_main_thread!();
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -57,19 +57,16 @@ impl Asset {
|
|||
}
|
||||
|
||||
#[doc(alias = "ges_asset_request_async")]
|
||||
pub fn request_async<
|
||||
P: IsA<gio::Cancellable>,
|
||||
Q: FnOnce(Result<Asset, glib::Error>) + Send + 'static,
|
||||
>(
|
||||
pub fn request_async<P: FnOnce(Result<Asset, glib::Error>) + Send + 'static>(
|
||||
extractable_type: glib::types::Type,
|
||||
id: Option<&str>,
|
||||
cancellable: Option<&P>,
|
||||
callback: Q,
|
||||
cancellable: Option<&impl IsA<gio::Cancellable>>,
|
||||
callback: P,
|
||||
) {
|
||||
assert_initialized_main_thread!();
|
||||
let user_data: Box_<Q> = Box_::new(callback);
|
||||
let user_data: Box_<P> = Box_::new(callback);
|
||||
unsafe extern "C" fn request_async_trampoline<
|
||||
Q: FnOnce(Result<Asset, glib::Error>) + Send + 'static,
|
||||
P: FnOnce(Result<Asset, glib::Error>) + Send + 'static,
|
||||
>(
|
||||
_source_object: *mut glib::gobject_ffi::GObject,
|
||||
res: *mut gio::ffi::GAsyncResult,
|
||||
|
@ -82,10 +79,10 @@ impl Asset {
|
|||
} else {
|
||||
Err(from_glib_full(error))
|
||||
};
|
||||
let callback: Box_<Q> = Box_::from_raw(user_data as *mut _);
|
||||
let callback: Box_<P> = Box_::from_raw(user_data as *mut _);
|
||||
callback(result);
|
||||
}
|
||||
let callback = request_async_trampoline::<Q>;
|
||||
let callback = request_async_trampoline::<P>;
|
||||
unsafe {
|
||||
ffi::ges_asset_request_async(
|
||||
extractable_type.into_glib(),
|
||||
|
@ -146,10 +143,10 @@ pub trait AssetExt: 'static {
|
|||
fn list_proxies(&self) -> Vec<Asset>;
|
||||
|
||||
#[doc(alias = "ges_asset_set_proxy")]
|
||||
fn set_proxy<P: IsA<Asset>>(&self, proxy: Option<&P>) -> Result<(), glib::error::BoolError>;
|
||||
fn set_proxy(&self, proxy: Option<&impl IsA<Asset>>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_asset_unproxy")]
|
||||
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn unproxy(&self, proxy: &impl IsA<Asset>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "proxy")]
|
||||
fn connect_proxy_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
@ -207,7 +204,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(&self, proxy: Option<&impl IsA<Asset>>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_asset_set_proxy(
|
||||
|
@ -219,7 +216,7 @@ impl<O: IsA<Asset>> AssetExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn unproxy(&self, proxy: &impl IsA<Asset>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_asset_unproxy(
|
||||
|
|
|
@ -39,34 +39,33 @@ pub const NONE_CLIP: Option<&Clip> = None;
|
|||
|
||||
pub trait ClipExt: 'static {
|
||||
#[doc(alias = "ges_clip_add_asset")]
|
||||
fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<TrackElement, glib::BoolError>;
|
||||
fn add_asset(&self, asset: &impl IsA<Asset>) -> Result<TrackElement, glib::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_add_child_to_track")]
|
||||
fn add_child_to_track<P: IsA<TrackElement>, Q: IsA<Track>>(
|
||||
fn add_child_to_track(
|
||||
&self,
|
||||
child: &P,
|
||||
track: &Q,
|
||||
child: &impl IsA<TrackElement>,
|
||||
track: &impl IsA<Track>,
|
||||
) -> Result<TrackElement, glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_add_top_effect")]
|
||||
fn add_top_effect<P: IsA<BaseEffect>>(&self, effect: &P, index: i32)
|
||||
-> Result<(), glib::Error>;
|
||||
fn add_top_effect(&self, effect: &impl IsA<BaseEffect>, index: i32) -> Result<(), glib::Error>;
|
||||
|
||||
#[doc(alias = "ges_clip_find_track_element")]
|
||||
fn find_track_element<P: IsA<Track>>(
|
||||
fn find_track_element(
|
||||
&self,
|
||||
track: Option<&P>,
|
||||
track: Option<&impl IsA<Track>>,
|
||||
type_: glib::types::Type,
|
||||
) -> Option<TrackElement>;
|
||||
|
||||
#[doc(alias = "ges_clip_find_track_elements")]
|
||||
fn find_track_elements<P: IsA<Track>>(
|
||||
fn find_track_elements(
|
||||
&self,
|
||||
track: Option<&P>,
|
||||
track: Option<&impl IsA<Track>>,
|
||||
track_type: TrackType,
|
||||
type_: glib::types::Type,
|
||||
) -> Vec<TrackElement>;
|
||||
|
@ -81,9 +80,9 @@ pub trait ClipExt: 'static {
|
|||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_get_internal_time_from_timeline_time")]
|
||||
#[doc(alias = "get_internal_time_from_timeline_time")]
|
||||
fn internal_time_from_timeline_time<P: IsA<TrackElement>>(
|
||||
fn internal_time_from_timeline_time(
|
||||
&self,
|
||||
child: &P,
|
||||
child: &impl IsA<TrackElement>,
|
||||
timeline_time: impl Into<Option<gst::ClockTime>>,
|
||||
) -> Result<Option<gst::ClockTime>, glib::Error>;
|
||||
|
||||
|
@ -99,9 +98,9 @@ pub trait ClipExt: 'static {
|
|||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_get_timeline_time_from_internal_time")]
|
||||
#[doc(alias = "get_timeline_time_from_internal_time")]
|
||||
fn timeline_time_from_internal_time<P: IsA<TrackElement>>(
|
||||
fn timeline_time_from_internal_time(
|
||||
&self,
|
||||
child: &P,
|
||||
child: &impl IsA<TrackElement>,
|
||||
internal_time: impl Into<Option<gst::ClockTime>>,
|
||||
) -> Result<Option<gst::ClockTime>, glib::Error>;
|
||||
|
||||
|
@ -116,52 +115,52 @@ pub trait ClipExt: 'static {
|
|||
|
||||
#[doc(alias = "ges_clip_get_top_effect_index")]
|
||||
#[doc(alias = "get_top_effect_index")]
|
||||
fn top_effect_index<P: IsA<BaseEffect>>(&self, effect: &P) -> i32;
|
||||
fn top_effect_index(&self, effect: &impl IsA<BaseEffect>) -> i32;
|
||||
|
||||
#[doc(alias = "ges_clip_get_top_effect_position")]
|
||||
#[doc(alias = "get_top_effect_position")]
|
||||
fn top_effect_position<P: IsA<BaseEffect>>(&self, effect: &P) -> i32;
|
||||
fn top_effect_position(&self, effect: &impl IsA<BaseEffect>) -> i32;
|
||||
|
||||
#[doc(alias = "ges_clip_get_top_effects")]
|
||||
#[doc(alias = "get_top_effects")]
|
||||
fn top_effects(&self) -> Vec<TrackElement>;
|
||||
|
||||
#[doc(alias = "ges_clip_move_to_layer")]
|
||||
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn move_to_layer(&self, layer: &impl IsA<Layer>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_move_to_layer_full")]
|
||||
fn move_to_layer_full<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::Error>;
|
||||
fn move_to_layer_full(&self, layer: &impl IsA<Layer>) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_remove_top_effect")]
|
||||
fn remove_top_effect<P: IsA<BaseEffect>>(&self, effect: &P) -> Result<(), glib::Error>;
|
||||
fn remove_top_effect(&self, effect: &impl IsA<BaseEffect>) -> Result<(), glib::Error>;
|
||||
|
||||
#[doc(alias = "ges_clip_set_supported_formats")]
|
||||
fn set_supported_formats(&self, supportedformats: TrackType);
|
||||
|
||||
#[doc(alias = "ges_clip_set_top_effect_index")]
|
||||
fn set_top_effect_index<P: IsA<BaseEffect>>(
|
||||
fn set_top_effect_index(
|
||||
&self,
|
||||
effect: &P,
|
||||
effect: &impl IsA<BaseEffect>,
|
||||
newindex: u32,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_clip_set_top_effect_index_full")]
|
||||
fn set_top_effect_index_full<P: IsA<BaseEffect>>(
|
||||
fn set_top_effect_index_full(
|
||||
&self,
|
||||
effect: &P,
|
||||
effect: &impl IsA<BaseEffect>,
|
||||
newindex: u32,
|
||||
) -> Result<(), glib::Error>;
|
||||
|
||||
#[doc(alias = "ges_clip_set_top_effect_priority")]
|
||||
fn set_top_effect_priority<P: IsA<BaseEffect>>(
|
||||
fn set_top_effect_priority(
|
||||
&self,
|
||||
effect: &P,
|
||||
effect: &impl IsA<BaseEffect>,
|
||||
newpriority: u32,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
|
@ -186,7 +185,7 @@ pub trait ClipExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<Clip>> ClipExt for O {
|
||||
fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<TrackElement, glib::BoolError> {
|
||||
fn add_asset(&self, asset: &impl IsA<Asset>) -> Result<TrackElement, glib::BoolError> {
|
||||
unsafe {
|
||||
Option::<_>::from_glib_none(ffi::ges_clip_add_asset(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -198,10 +197,10 @@ 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>>(
|
||||
fn add_child_to_track(
|
||||
&self,
|
||||
child: &P,
|
||||
track: &Q,
|
||||
child: &impl IsA<TrackElement>,
|
||||
track: &impl IsA<Track>,
|
||||
) -> Result<TrackElement, glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -221,11 +220,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,
|
||||
index: i32,
|
||||
) -> Result<(), glib::Error> {
|
||||
fn add_top_effect(&self, effect: &impl IsA<BaseEffect>, index: i32) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::ges_clip_add_top_effect(
|
||||
|
@ -242,9 +237,9 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn find_track_element<P: IsA<Track>>(
|
||||
fn find_track_element(
|
||||
&self,
|
||||
track: Option<&P>,
|
||||
track: Option<&impl IsA<Track>>,
|
||||
type_: glib::types::Type,
|
||||
) -> Option<TrackElement> {
|
||||
unsafe {
|
||||
|
@ -256,9 +251,9 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn find_track_elements<P: IsA<Track>>(
|
||||
fn find_track_elements(
|
||||
&self,
|
||||
track: Option<&P>,
|
||||
track: Option<&impl IsA<Track>>,
|
||||
track_type: TrackType,
|
||||
type_: glib::types::Type,
|
||||
) -> Vec<TrackElement> {
|
||||
|
@ -285,9 +280,9 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn internal_time_from_timeline_time<P: IsA<TrackElement>>(
|
||||
fn internal_time_from_timeline_time(
|
||||
&self,
|
||||
child: &P,
|
||||
child: &impl IsA<TrackElement>,
|
||||
timeline_time: impl Into<Option<gst::ClockTime>>,
|
||||
) -> Result<Option<gst::ClockTime>, glib::Error> {
|
||||
unsafe {
|
||||
|
@ -320,9 +315,9 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
fn timeline_time_from_internal_time<P: IsA<TrackElement>>(
|
||||
fn timeline_time_from_internal_time(
|
||||
&self,
|
||||
child: &P,
|
||||
child: &impl IsA<TrackElement>,
|
||||
internal_time: impl Into<Option<gst::ClockTime>>,
|
||||
) -> Result<Option<gst::ClockTime>, glib::Error> {
|
||||
unsafe {
|
||||
|
@ -362,7 +357,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn top_effect_index<P: IsA<BaseEffect>>(&self, effect: &P) -> i32 {
|
||||
fn top_effect_index(&self, effect: &impl IsA<BaseEffect>) -> i32 {
|
||||
unsafe {
|
||||
ffi::ges_clip_get_top_effect_index(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -371,7 +366,7 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn top_effect_position<P: IsA<BaseEffect>>(&self, effect: &P) -> i32 {
|
||||
fn top_effect_position(&self, effect: &impl IsA<BaseEffect>) -> i32 {
|
||||
unsafe {
|
||||
ffi::ges_clip_get_top_effect_position(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -388,7 +383,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(&self, layer: &impl IsA<Layer>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_clip_move_to_layer(
|
||||
|
@ -402,7 +397,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> {
|
||||
fn move_to_layer_full(&self, layer: &impl IsA<Layer>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::ges_clip_move_to_layer_full(
|
||||
|
@ -420,7 +415,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> {
|
||||
fn remove_top_effect(&self, effect: &impl IsA<BaseEffect>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::ges_clip_remove_top_effect(
|
||||
|
@ -445,9 +440,9 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_top_effect_index<P: IsA<BaseEffect>>(
|
||||
fn set_top_effect_index(
|
||||
&self,
|
||||
effect: &P,
|
||||
effect: &impl IsA<BaseEffect>,
|
||||
newindex: u32,
|
||||
) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
|
@ -464,9 +459,9 @@ 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>>(
|
||||
fn set_top_effect_index_full(
|
||||
&self,
|
||||
effect: &P,
|
||||
effect: &impl IsA<BaseEffect>,
|
||||
newindex: u32,
|
||||
) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
|
@ -485,9 +480,9 @@ impl<O: IsA<Clip>> ClipExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_top_effect_priority<P: IsA<BaseEffect>>(
|
||||
fn set_top_effect_priority(
|
||||
&self,
|
||||
effect: &P,
|
||||
effect: &impl IsA<BaseEffect>,
|
||||
newpriority: u32,
|
||||
) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
|
|
|
@ -38,7 +38,7 @@ pub const NONE_CONTAINER: Option<&Container> = None;
|
|||
|
||||
pub trait GESContainerExt: 'static {
|
||||
#[doc(alias = "ges_container_add")]
|
||||
fn add<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn add(&self, child: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg_attr(feature = "v1_18", deprecated = "Since 1.18")]
|
||||
#[doc(alias = "ges_container_edit")]
|
||||
|
@ -56,7 +56,7 @@ pub trait GESContainerExt: 'static {
|
|||
fn children(&self, recursive: bool) -> Vec<TimelineElement>;
|
||||
|
||||
#[doc(alias = "ges_container_remove")]
|
||||
fn remove<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn remove(&self, child: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_container_ungroup")]
|
||||
fn ungroup(&self, recursive: bool) -> Vec<Container>;
|
||||
|
@ -80,7 +80,7 @@ pub trait GESContainerExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<Container>> GESContainerExt for O {
|
||||
fn add<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn add(&self, child: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_container_add(
|
||||
|
@ -124,7 +124,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn remove<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn remove(&self, child: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_container_remove(
|
||||
|
|
|
@ -28,7 +28,7 @@ pub trait ExtractableExt: 'static {
|
|||
fn id(&self) -> Option<glib::GString>;
|
||||
|
||||
#[doc(alias = "ges_extractable_set_asset")]
|
||||
fn set_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn set_asset(&self, asset: &impl IsA<Asset>) -> Result<(), glib::error::BoolError>;
|
||||
}
|
||||
|
||||
impl<O: IsA<Extractable>> ExtractableExt for O {
|
||||
|
@ -44,7 +44,7 @@ impl<O: IsA<Extractable>> ExtractableExt for O {
|
|||
unsafe { from_glib_full(ffi::ges_extractable_get_id(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
fn set_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn set_asset(&self, asset: &impl IsA<Asset>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_extractable_set_asset(
|
||||
|
|
|
@ -49,9 +49,9 @@ pub const NONE_LAYER: Option<&Layer> = None;
|
|||
|
||||
pub trait LayerExt: 'static {
|
||||
#[doc(alias = "ges_layer_add_asset")]
|
||||
fn add_asset<P: IsA<Asset>>(
|
||||
fn add_asset(
|
||||
&self,
|
||||
asset: &P,
|
||||
asset: &impl IsA<Asset>,
|
||||
start: impl Into<Option<gst::ClockTime>>,
|
||||
inpoint: impl Into<Option<gst::ClockTime>>,
|
||||
duration: impl Into<Option<gst::ClockTime>>,
|
||||
|
@ -61,9 +61,9 @@ pub trait LayerExt: 'static {
|
|||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_layer_add_asset_full")]
|
||||
fn add_asset_full<P: IsA<Asset>>(
|
||||
fn add_asset_full(
|
||||
&self,
|
||||
asset: &P,
|
||||
asset: &impl IsA<Asset>,
|
||||
start: impl Into<Option<gst::ClockTime>>,
|
||||
inpoint: impl Into<Option<gst::ClockTime>>,
|
||||
duration: impl Into<Option<gst::ClockTime>>,
|
||||
|
@ -71,18 +71,18 @@ pub trait LayerExt: 'static {
|
|||
) -> Result<Clip, glib::Error>;
|
||||
|
||||
#[doc(alias = "ges_layer_add_clip")]
|
||||
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_layer_add_clip_full")]
|
||||
fn add_clip_full<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::Error>;
|
||||
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), glib::Error>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_layer_get_active_for_track")]
|
||||
#[doc(alias = "get_active_for_track")]
|
||||
fn is_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool;
|
||||
fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool;
|
||||
|
||||
#[doc(alias = "ges_layer_get_auto_transition")]
|
||||
#[doc(alias = "get_auto_transition")]
|
||||
|
@ -116,7 +116,7 @@ pub trait LayerExt: 'static {
|
|||
fn is_empty(&self) -> bool;
|
||||
|
||||
#[doc(alias = "ges_layer_remove_clip")]
|
||||
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn remove_clip(&self, clip: &impl IsA<Clip>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
|
@ -131,7 +131,7 @@ pub trait LayerExt: 'static {
|
|||
fn set_priority(&self, priority: u32);
|
||||
|
||||
#[doc(alias = "ges_layer_set_timeline")]
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P);
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>);
|
||||
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
|
@ -153,9 +153,9 @@ pub trait LayerExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<Layer>> LayerExt for O {
|
||||
fn add_asset<P: IsA<Asset>>(
|
||||
fn add_asset(
|
||||
&self,
|
||||
asset: &P,
|
||||
asset: &impl IsA<Asset>,
|
||||
start: impl Into<Option<gst::ClockTime>>,
|
||||
inpoint: impl Into<Option<gst::ClockTime>>,
|
||||
duration: impl Into<Option<gst::ClockTime>>,
|
||||
|
@ -176,9 +176,9 @@ 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>>(
|
||||
fn add_asset_full(
|
||||
&self,
|
||||
asset: &P,
|
||||
asset: &impl IsA<Asset>,
|
||||
start: impl Into<Option<gst::ClockTime>>,
|
||||
inpoint: impl Into<Option<gst::ClockTime>>,
|
||||
duration: impl Into<Option<gst::ClockTime>>,
|
||||
|
@ -203,7 +203,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn add_clip(&self, clip: &impl IsA<Clip>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_layer_add_clip(
|
||||
|
@ -217,7 +217,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> {
|
||||
fn add_clip_full(&self, clip: &impl IsA<Clip>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::ges_layer_add_clip_full(
|
||||
|
@ -235,7 +235,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 is_active_for_track<P: IsA<Track>>(&self, track: &P) -> bool {
|
||||
fn is_active_for_track(&self, track: &impl IsA<Track>) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_layer_get_active_for_track(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -293,7 +293,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
unsafe { from_glib(ffi::ges_layer_is_empty(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn remove_clip(&self, clip: &impl IsA<Clip>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_layer_remove_clip(
|
||||
|
@ -332,7 +332,7 @@ impl<O: IsA<Layer>> LayerExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) {
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>) {
|
||||
unsafe {
|
||||
ffi::ges_layer_set_timeline(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
|
|
@ -61,10 +61,10 @@ pub trait GESPipelineExt: 'static {
|
|||
fn preview_get_video_sink(&self) -> Option<gst::Element>;
|
||||
|
||||
#[doc(alias = "ges_pipeline_preview_set_audio_sink")]
|
||||
fn preview_set_audio_sink<P: IsA<gst::Element>>(&self, sink: &P);
|
||||
fn preview_set_audio_sink(&self, sink: &impl IsA<gst::Element>);
|
||||
|
||||
#[doc(alias = "ges_pipeline_preview_set_video_sink")]
|
||||
fn preview_set_video_sink<P: IsA<gst::Element>>(&self, sink: &P);
|
||||
fn preview_set_video_sink(&self, sink: &impl IsA<gst::Element>);
|
||||
|
||||
#[doc(alias = "ges_pipeline_save_thumbnail")]
|
||||
fn save_thumbnail(
|
||||
|
@ -79,14 +79,14 @@ pub trait GESPipelineExt: 'static {
|
|||
fn set_mode(&self, mode: PipelineFlags) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_pipeline_set_render_settings")]
|
||||
fn set_render_settings<P: IsA<gst_pbutils::EncodingProfile>>(
|
||||
fn set_render_settings(
|
||||
&self,
|
||||
output_uri: &str,
|
||||
profile: &P,
|
||||
profile: &impl IsA<gst_pbutils::EncodingProfile>,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_pipeline_set_timeline")]
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "audio-filter")]
|
||||
fn audio_filter(&self) -> Option<gst::Element>;
|
||||
|
@ -173,7 +173,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn preview_set_audio_sink<P: IsA<gst::Element>>(&self, sink: &P) {
|
||||
fn preview_set_audio_sink(&self, sink: &impl IsA<gst::Element>) {
|
||||
unsafe {
|
||||
ffi::ges_pipeline_preview_set_audio_sink(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -182,7 +182,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn preview_set_video_sink<P: IsA<gst::Element>>(&self, sink: &P) {
|
||||
fn preview_set_video_sink(&self, sink: &impl IsA<gst::Element>) {
|
||||
unsafe {
|
||||
ffi::ges_pipeline_preview_set_video_sink(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -225,10 +225,10 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_render_settings<P: IsA<gst_pbutils::EncodingProfile>>(
|
||||
fn set_render_settings(
|
||||
&self,
|
||||
output_uri: &str,
|
||||
profile: &P,
|
||||
profile: &impl IsA<gst_pbutils::EncodingProfile>,
|
||||
) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
|
@ -242,7 +242,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_pipeline_set_timeline(
|
||||
|
|
|
@ -35,12 +35,12 @@ pub const NONE_PROJECT: Option<&Project> = None;
|
|||
|
||||
pub trait ProjectExt: 'static {
|
||||
#[doc(alias = "ges_project_add_asset")]
|
||||
fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> bool;
|
||||
fn add_asset(&self, asset: &impl IsA<Asset>) -> bool;
|
||||
|
||||
#[doc(alias = "ges_project_add_encoding_profile")]
|
||||
fn add_encoding_profile<P: IsA<gst_pbutils::EncodingProfile>>(
|
||||
fn add_encoding_profile(
|
||||
&self,
|
||||
profile: &P,
|
||||
profile: &impl IsA<gst_pbutils::EncodingProfile>,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
|
@ -77,17 +77,17 @@ pub trait ProjectExt: 'static {
|
|||
fn list_encoding_profiles(&self) -> Vec<gst_pbutils::EncodingProfile>;
|
||||
|
||||
#[doc(alias = "ges_project_load")]
|
||||
fn load<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::Error>;
|
||||
fn load(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::Error>;
|
||||
|
||||
#[doc(alias = "ges_project_remove_asset")]
|
||||
fn remove_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn remove_asset(&self, asset: &impl IsA<Asset>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_project_save")]
|
||||
fn save<P: IsA<Timeline>, Q: IsA<Asset>>(
|
||||
fn save(
|
||||
&self,
|
||||
timeline: &P,
|
||||
timeline: &impl IsA<Timeline>,
|
||||
uri: &str,
|
||||
formatter_asset: Option<&Q>,
|
||||
formatter_asset: Option<&impl IsA<Asset>>,
|
||||
overwrite: bool,
|
||||
) -> Result<(), glib::Error>;
|
||||
|
||||
|
@ -130,7 +130,7 @@ pub trait ProjectExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<Project>> ProjectExt for O {
|
||||
fn add_asset<P: IsA<Asset>>(&self, asset: &P) -> bool {
|
||||
fn add_asset(&self, asset: &impl IsA<Asset>) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::ges_project_add_asset(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -139,9 +139,9 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn add_encoding_profile<P: IsA<gst_pbutils::EncodingProfile>>(
|
||||
fn add_encoding_profile(
|
||||
&self,
|
||||
profile: &P,
|
||||
profile: &impl IsA<gst_pbutils::EncodingProfile>,
|
||||
) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
|
@ -230,7 +230,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn load<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::Error> {
|
||||
fn load(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::ges_project_load(
|
||||
|
@ -246,7 +246,7 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn remove_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn remove_asset(&self, asset: &impl IsA<Asset>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_project_remove_asset(
|
||||
|
@ -258,11 +258,11 @@ impl<O: IsA<Project>> ProjectExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn save<P: IsA<Timeline>, Q: IsA<Asset>>(
|
||||
fn save(
|
||||
&self,
|
||||
timeline: &P,
|
||||
timeline: &impl IsA<Timeline>,
|
||||
uri: &str,
|
||||
formatter_asset: Option<&Q>,
|
||||
formatter_asset: Option<&impl IsA<Asset>>,
|
||||
overwrite: bool,
|
||||
) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
|
|
|
@ -74,10 +74,10 @@ pub const NONE_TIMELINE: Option<&Timeline> = None;
|
|||
pub trait TimelineExt: 'static {
|
||||
#[cfg_attr(feature = "v1_18", deprecated = "Since 1.18")]
|
||||
#[doc(alias = "ges_timeline_add_layer")]
|
||||
fn add_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn add_layer(&self, layer: &impl IsA<Layer>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_timeline_add_track")]
|
||||
fn add_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn add_track(&self, track: &impl IsA<Track>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_timeline_append_layer")]
|
||||
fn append_layer(&self) -> Layer;
|
||||
|
@ -131,7 +131,7 @@ pub trait TimelineExt: 'static {
|
|||
|
||||
#[doc(alias = "ges_timeline_get_pad_for_track")]
|
||||
#[doc(alias = "get_pad_for_track")]
|
||||
fn pad_for_track<P: IsA<Track>>(&self, track: &P) -> Option<gst::Pad>;
|
||||
fn pad_for_track(&self, track: &impl IsA<Track>) -> Option<gst::Pad>;
|
||||
|
||||
#[doc(alias = "ges_timeline_get_snapping_distance")]
|
||||
#[doc(alias = "get_snapping_distance")]
|
||||
|
@ -139,7 +139,7 @@ pub trait TimelineExt: 'static {
|
|||
|
||||
#[doc(alias = "ges_timeline_get_track_for_pad")]
|
||||
#[doc(alias = "get_track_for_pad")]
|
||||
fn track_for_pad<P: IsA<gst::Pad>>(&self, pad: &P) -> Option<Track>;
|
||||
fn track_for_pad(&self, pad: &impl IsA<gst::Pad>) -> Option<Track>;
|
||||
|
||||
#[doc(alias = "ges_timeline_get_tracks")]
|
||||
#[doc(alias = "get_tracks")]
|
||||
|
@ -154,31 +154,31 @@ pub trait TimelineExt: 'static {
|
|||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "ges_timeline_move_layer")]
|
||||
fn move_layer<P: IsA<Layer>>(
|
||||
fn move_layer(
|
||||
&self,
|
||||
layer: &P,
|
||||
layer: &impl IsA<Layer>,
|
||||
new_layer_priority: u32,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_timeline_paste_element")]
|
||||
fn paste_element<P: IsA<TimelineElement>>(
|
||||
fn paste_element(
|
||||
&self,
|
||||
element: &P,
|
||||
element: &impl IsA<TimelineElement>,
|
||||
position: gst::ClockTime,
|
||||
layer_priority: i32,
|
||||
) -> Option<TimelineElement>;
|
||||
|
||||
#[doc(alias = "ges_timeline_remove_layer")]
|
||||
fn remove_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn remove_layer(&self, layer: &impl IsA<Layer>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_timeline_remove_track")]
|
||||
fn remove_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn remove_track(&self, track: &impl IsA<Track>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_timeline_save_to_uri")]
|
||||
fn save_to_uri<P: IsA<Asset>>(
|
||||
fn save_to_uri(
|
||||
&self,
|
||||
uri: &str,
|
||||
formatter_asset: Option<&P>,
|
||||
formatter_asset: Option<&impl IsA<Asset>>,
|
||||
overwrite: bool,
|
||||
) -> Result<(), glib::Error>;
|
||||
|
||||
|
@ -248,7 +248,7 @@ pub trait TimelineExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<Timeline>> TimelineExt for O {
|
||||
fn add_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn add_layer(&self, layer: &impl IsA<Layer>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_timeline_add_layer(
|
||||
|
@ -260,7 +260,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn add_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn add_track(&self, track: &impl IsA<Track>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_timeline_add_track(
|
||||
|
@ -370,7 +370,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn pad_for_track<P: IsA<Track>>(&self, track: &P) -> Option<gst::Pad> {
|
||||
fn pad_for_track(&self, track: &impl IsA<Track>) -> Option<gst::Pad> {
|
||||
unsafe {
|
||||
from_glib_none(ffi::ges_timeline_get_pad_for_track(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -387,7 +387,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn track_for_pad<P: IsA<gst::Pad>>(&self, pad: &P) -> Option<Track> {
|
||||
fn track_for_pad(&self, pad: &impl IsA<gst::Pad>) -> Option<Track> {
|
||||
unsafe {
|
||||
from_glib_none(ffi::ges_timeline_get_track_for_pad(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -426,9 +426,9 @@ 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>>(
|
||||
fn move_layer(
|
||||
&self,
|
||||
layer: &P,
|
||||
layer: &impl IsA<Layer>,
|
||||
new_layer_priority: u32,
|
||||
) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
|
@ -443,9 +443,9 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn paste_element<P: IsA<TimelineElement>>(
|
||||
fn paste_element(
|
||||
&self,
|
||||
element: &P,
|
||||
element: &impl IsA<TimelineElement>,
|
||||
position: gst::ClockTime,
|
||||
layer_priority: i32,
|
||||
) -> Option<TimelineElement> {
|
||||
|
@ -459,7 +459,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn remove_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn remove_layer(&self, layer: &impl IsA<Layer>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_timeline_remove_layer(
|
||||
|
@ -471,7 +471,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn remove_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn remove_track(&self, track: &impl IsA<Track>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_timeline_remove_track(
|
||||
|
@ -483,10 +483,10 @@ impl<O: IsA<Timeline>> TimelineExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn save_to_uri<P: IsA<Asset>>(
|
||||
fn save_to_uri(
|
||||
&self,
|
||||
uri: &str,
|
||||
formatter_asset: Option<&P>,
|
||||
formatter_asset: Option<&impl IsA<Asset>>,
|
||||
overwrite: bool,
|
||||
) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
|
|
|
@ -44,7 +44,7 @@ pub const NONE_TIMELINE_ELEMENT: Option<&TimelineElement> = None;
|
|||
|
||||
pub trait TimelineElementExt: 'static {
|
||||
//#[doc(alias = "ges_timeline_element_add_child_property")]
|
||||
//fn add_child_property<P: IsA<glib::Object>>(&self, pspec: /*Ignored*/&glib::ParamSpec, child: &P) -> bool;
|
||||
//fn add_child_property(&self, pspec: /*Ignored*/&glib::ParamSpec, child: &impl IsA<glib::Object>) -> bool;
|
||||
|
||||
#[doc(alias = "ges_timeline_element_copy")]
|
||||
fn copy(&self, deep: bool) -> Result<TimelineElement, glib::BoolError>;
|
||||
|
@ -202,8 +202,7 @@ pub trait TimelineElementExt: 'static {
|
|||
fn set_name(&self, name: Option<&str>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_timeline_element_set_parent")]
|
||||
fn set_parent<P: IsA<TimelineElement>>(&self, parent: &P)
|
||||
-> Result<(), glib::error::BoolError>;
|
||||
fn set_parent(&self, parent: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg_attr(feature = "v1_10", deprecated = "Since 1.10")]
|
||||
#[doc(alias = "ges_timeline_element_set_priority")]
|
||||
|
@ -213,7 +212,7 @@ pub trait TimelineElementExt: 'static {
|
|||
fn set_start(&self, start: gst::ClockTime) -> bool;
|
||||
|
||||
#[doc(alias = "ges_timeline_element_set_timeline")]
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "ges_timeline_element_trim")]
|
||||
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError>;
|
||||
|
@ -271,7 +270,7 @@ pub trait TimelineElementExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
||||
//fn add_child_property<P: IsA<glib::Object>>(&self, pspec: /*Ignored*/&glib::ParamSpec, child: &P) -> bool {
|
||||
//fn add_child_property(&self, pspec: /*Ignored*/&glib::ParamSpec, child: &impl IsA<glib::Object>) -> bool {
|
||||
// unsafe { TODO: call ffi:ges_timeline_element_add_child_property() }
|
||||
//}
|
||||
|
||||
|
@ -623,10 +622,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_parent<P: IsA<TimelineElement>>(
|
||||
&self,
|
||||
parent: &P,
|
||||
) -> Result<(), glib::error::BoolError> {
|
||||
fn set_parent(&self, parent: &impl IsA<TimelineElement>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_timeline_element_set_parent(
|
||||
|
@ -656,7 +652,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_timeline_element_set_timeline(
|
||||
|
|
|
@ -42,12 +42,12 @@ pub const NONE_TRACK: Option<&Track> = None;
|
|||
|
||||
pub trait GESTrackExt: 'static {
|
||||
#[doc(alias = "ges_track_add_element")]
|
||||
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn add_element(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_add_element_full")]
|
||||
fn add_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>;
|
||||
fn add_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error>;
|
||||
|
||||
#[doc(alias = "ges_track_commit")]
|
||||
fn commit(&self) -> bool;
|
||||
|
@ -75,15 +75,13 @@ pub trait GESTrackExt: 'static {
|
|||
fn timeline(&self) -> Option<Timeline>;
|
||||
|
||||
#[doc(alias = "ges_track_remove_element")]
|
||||
fn remove_element<P: IsA<TrackElement>>(
|
||||
&self,
|
||||
object: &P,
|
||||
) -> Result<(), glib::error::BoolError>;
|
||||
fn remove_element(&self, object: &impl IsA<TrackElement>)
|
||||
-> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "ges_track_remove_element_full")]
|
||||
fn remove_element_full<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::Error>;
|
||||
fn remove_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error>;
|
||||
|
||||
//#[doc(alias = "ges_track_set_create_element_for_gap_func")]
|
||||
//fn set_create_element_for_gap_func<P: Fn(&Track) -> gst::Element + 'static>(&self, func: P);
|
||||
|
@ -95,7 +93,7 @@ pub trait GESTrackExt: 'static {
|
|||
fn set_restriction_caps(&self, caps: &gst::Caps);
|
||||
|
||||
#[doc(alias = "ges_track_set_timeline")]
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P);
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>);
|
||||
|
||||
#[doc(alias = "ges_track_update_restriction_caps")]
|
||||
fn update_restriction_caps(&self, caps: &gst::Caps);
|
||||
|
@ -147,7 +145,7 @@ pub trait GESTrackExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<Track>> GESTrackExt for O {
|
||||
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn add_element(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::ges_track_add_element(
|
||||
|
@ -161,7 +159,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> {
|
||||
fn add_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::ges_track_add_element_full(
|
||||
|
@ -211,9 +209,9 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
unsafe { from_glib_none(ffi::ges_track_get_timeline(self.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
fn remove_element<P: IsA<TrackElement>>(
|
||||
fn remove_element(
|
||||
&self,
|
||||
object: &P,
|
||||
object: &impl IsA<TrackElement>,
|
||||
) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
|
@ -228,7 +226,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> {
|
||||
fn remove_element_full(&self, object: &impl IsA<TrackElement>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::ges_track_remove_element_full(
|
||||
|
@ -263,7 +261,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) {
|
||||
fn set_timeline(&self, timeline: &impl IsA<Timeline>) {
|
||||
unsafe {
|
||||
ffi::ges_track_set_timeline(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
|
|
@ -31,9 +31,9 @@ pub const NONE_TRACK_ELEMENT: Option<&TrackElement> = None;
|
|||
|
||||
pub trait TrackElementExt: 'static {
|
||||
#[doc(alias = "ges_track_element_add_children_props")]
|
||||
fn add_children_props<P: IsA<gst::Element>>(
|
||||
fn add_children_props(
|
||||
&self,
|
||||
element: &P,
|
||||
element: &impl IsA<gst::Element>,
|
||||
wanted_categories: &[&str],
|
||||
blacklist: &[&str],
|
||||
whitelist: &[&str],
|
||||
|
@ -116,9 +116,9 @@ pub trait TrackElementExt: 'static {
|
|||
fn set_auto_clamp_control_sources(&self, auto_clamp: bool);
|
||||
|
||||
#[doc(alias = "ges_track_element_set_control_source")]
|
||||
fn set_control_source<P: IsA<gst::ControlSource>>(
|
||||
fn set_control_source(
|
||||
&self,
|
||||
source: &P,
|
||||
source: &impl IsA<gst::ControlSource>,
|
||||
property_name: &str,
|
||||
binding_type: &str,
|
||||
) -> bool;
|
||||
|
@ -167,9 +167,9 @@ pub trait TrackElementExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<TrackElement>> TrackElementExt for O {
|
||||
fn add_children_props<P: IsA<gst::Element>>(
|
||||
fn add_children_props(
|
||||
&self,
|
||||
element: &P,
|
||||
element: &impl IsA<gst::Element>,
|
||||
wanted_categories: &[&str],
|
||||
blacklist: &[&str],
|
||||
whitelist: &[&str],
|
||||
|
@ -344,9 +344,9 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_control_source<P: IsA<gst::ControlSource>>(
|
||||
fn set_control_source(
|
||||
&self,
|
||||
source: &P,
|
||||
source: &impl IsA<gst::ControlSource>,
|
||||
property_name: &str,
|
||||
binding_type: &str,
|
||||
) -> bool {
|
||||
|
|
|
@ -36,7 +36,7 @@ impl UriClipAsset {
|
|||
//}
|
||||
|
||||
//#[doc(alias = "ges_uri_clip_asset_new")]
|
||||
//pub fn new<P: IsA<gio::Cancellable>, Q: FnOnce(Result<(), glib::Error>) + 'static>(uri: &str, cancellable: Option<&P>, callback: Q) {
|
||||
//pub fn new<P: FnOnce(Result<(), glib::Error>) + 'static>(uri: &str, cancellable: Option<&impl IsA<gio::Cancellable>>, callback: P) {
|
||||
// unsafe { TODO: call ffi:ges_uri_clip_asset_new() }
|
||||
//}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -29,7 +29,7 @@ impl GLDisplayEGL {
|
|||
//}
|
||||
|
||||
#[doc(alias = "gst_gl_display_egl_from_gl_display")]
|
||||
pub fn from_gl_display<P: IsA<gst_gl::GLDisplay>>(display: &P) -> Option<GLDisplayEGL> {
|
||||
pub fn from_gl_display(display: &impl IsA<gst_gl::GLDisplay>) -> Option<GLDisplayEGL> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_display_egl_from_gl_display(
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -273,8 +273,8 @@ pub enum GLFormat {
|
|||
|
||||
impl GLFormat {
|
||||
#[doc(alias = "gst_gl_format_from_video_info")]
|
||||
pub fn from_video_info<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn from_video_info(
|
||||
context: &impl IsA<GLContext>,
|
||||
vinfo: &gst_video::VideoInfo,
|
||||
plane: u32,
|
||||
) -> GLFormat {
|
||||
|
@ -291,7 +291,7 @@ impl GLFormat {
|
|||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_format_is_supported")]
|
||||
pub fn is_supported<P: IsA<GLContext>>(context: &P, format: GLFormat) -> bool {
|
||||
pub fn is_supported(context: &impl IsA<GLContext>, format: GLFormat) -> bool {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_format_is_supported(
|
||||
|
|
|
@ -28,7 +28,7 @@ impl GLAllocationParams {
|
|||
}
|
||||
|
||||
//#[doc(alias = "gst_gl_allocation_params_init")]
|
||||
//pub fn init<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static, Q: IsA<GLContext>>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &Q, alloc_size: usize, alloc_params: Option<&gst::AllocationParams>, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
|
||||
//pub fn init<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &impl IsA<GLContext>, alloc_size: usize, alloc_params: Option<&gst::AllocationParams>, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
|
||||
// unsafe { TODO: call ffi:gst_gl_allocation_params_init() }
|
||||
//}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ glib::wrapper! {
|
|||
|
||||
impl GLColorConvert {
|
||||
#[doc(alias = "gst_gl_color_convert_new")]
|
||||
pub fn new<P: IsA<GLContext>>(context: &P) -> GLColorConvert {
|
||||
pub fn new(context: &impl IsA<GLContext>) -> GLColorConvert {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_color_convert_new(
|
||||
|
@ -46,8 +46,8 @@ impl GLColorConvert {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_gl_color_convert_transform_caps")]
|
||||
pub fn transform_caps<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn transform_caps(
|
||||
context: &impl IsA<GLContext>,
|
||||
direction: gst::PadDirection,
|
||||
caps: &gst::Caps,
|
||||
filter: &gst::Caps,
|
||||
|
|
|
@ -25,7 +25,7 @@ glib::wrapper! {
|
|||
|
||||
impl GLContext {
|
||||
#[doc(alias = "gst_gl_context_new")]
|
||||
pub fn new<P: IsA<GLDisplay>>(display: &P) -> GLContext {
|
||||
pub fn new(display: &impl IsA<GLDisplay>) -> GLContext {
|
||||
skip_assert_initialized!();
|
||||
unsafe { from_glib_none(ffi::gst_gl_context_new(display.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ pub trait GLContextExt: 'static {
|
|||
fn activate(&self, activate: bool) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "gst_gl_context_can_share")]
|
||||
fn can_share<P: IsA<GLContext>>(&self, other_context: &P) -> bool;
|
||||
fn can_share(&self, other_context: &impl IsA<GLContext>) -> bool;
|
||||
|
||||
#[doc(alias = "gst_gl_context_check_feature")]
|
||||
fn check_feature(&self, feature: &str) -> bool;
|
||||
|
@ -84,7 +84,7 @@ pub trait GLContextExt: 'static {
|
|||
fn clear_shader(&self);
|
||||
|
||||
#[doc(alias = "gst_gl_context_create")]
|
||||
fn create<P: IsA<GLContext>>(&self, other_context: Option<&P>) -> Result<(), glib::Error>;
|
||||
fn create(&self, other_context: Option<&impl IsA<GLContext>>) -> Result<(), glib::Error>;
|
||||
|
||||
#[doc(alias = "gst_gl_context_destroy")]
|
||||
fn destroy(&self);
|
||||
|
@ -131,10 +131,10 @@ pub trait GLContextExt: 'static {
|
|||
fn request_config(&self, gl_config: Option<&gst::Structure>) -> bool;
|
||||
|
||||
#[doc(alias = "gst_gl_context_set_shared_with")]
|
||||
fn set_shared_with<P: IsA<GLContext>>(&self, share: &P);
|
||||
fn set_shared_with(&self, share: &impl IsA<GLContext>);
|
||||
|
||||
#[doc(alias = "gst_gl_context_set_window")]
|
||||
fn set_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn set_window(&self, window: &impl IsA<GLWindow>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "gst_gl_context_supports_glsl_profile_version")]
|
||||
fn supports_glsl_profile_version(&self, version: GLSLVersion, profile: GLSLProfile) -> bool;
|
||||
|
@ -163,7 +163,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn can_share<P: IsA<GLContext>>(&self, other_context: &P) -> bool {
|
||||
fn can_share(&self, other_context: &impl IsA<GLContext>) -> bool {
|
||||
unsafe {
|
||||
from_glib(ffi::gst_gl_context_can_share(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -213,7 +213,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn create<P: IsA<GLContext>>(&self, other_context: Option<&P>) -> Result<(), glib::Error> {
|
||||
fn create(&self, other_context: Option<&impl IsA<GLContext>>) -> Result<(), glib::Error> {
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
let _ = ffi::gst_gl_context_create(
|
||||
|
@ -338,7 +338,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_shared_with<P: IsA<GLContext>>(&self, share: &P) {
|
||||
fn set_shared_with(&self, share: &impl IsA<GLContext>) {
|
||||
unsafe {
|
||||
ffi::gst_gl_context_set_shared_with(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -347,7 +347,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn set_window(&self, window: &impl IsA<GLWindow>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::gst_gl_context_set_window(
|
||||
|
|
|
@ -55,13 +55,11 @@ pub const NONE_GL_DISPLAY: Option<&GLDisplay> = None;
|
|||
|
||||
pub trait GLDisplayExt: 'static {
|
||||
#[doc(alias = "gst_gl_display_add_context")]
|
||||
fn add_context<P: IsA<GLContext>>(&self, context: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn add_context(&self, context: &impl IsA<GLContext>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
#[doc(alias = "gst_gl_display_create_context")]
|
||||
fn create_context<P: IsA<GLContext>>(
|
||||
&self,
|
||||
other_context: &P,
|
||||
) -> Result<GLContext, glib::Error>;
|
||||
fn create_context(&self, other_context: &impl IsA<GLContext>)
|
||||
-> Result<GLContext, glib::Error>;
|
||||
|
||||
#[doc(alias = "gst_gl_display_create_window")]
|
||||
fn create_window(&self) -> Result<GLWindow, glib::BoolError>;
|
||||
|
@ -84,10 +82,10 @@ pub trait GLDisplayExt: 'static {
|
|||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
#[doc(alias = "gst_gl_display_remove_context")]
|
||||
fn remove_context<P: IsA<GLContext>>(&self, context: &P);
|
||||
fn remove_context(&self, context: &impl IsA<GLContext>);
|
||||
|
||||
#[doc(alias = "gst_gl_display_remove_window")]
|
||||
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError>;
|
||||
fn remove_window(&self, window: &impl IsA<GLWindow>) -> Result<(), glib::error::BoolError>;
|
||||
|
||||
//#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
|
@ -102,7 +100,7 @@ pub trait GLDisplayExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
||||
fn add_context<P: IsA<GLContext>>(&self, context: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn add_context(&self, context: &impl IsA<GLContext>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::gst_gl_display_add_context(
|
||||
|
@ -114,9 +112,9 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn create_context<P: IsA<GLContext>>(
|
||||
fn create_context(
|
||||
&self,
|
||||
other_context: &P,
|
||||
other_context: &impl IsA<GLContext>,
|
||||
) -> Result<GLContext, glib::Error> {
|
||||
unsafe {
|
||||
let mut p_context = ptr::null_mut();
|
||||
|
@ -176,7 +174,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) {
|
||||
fn remove_context(&self, context: &impl IsA<GLContext>) {
|
||||
unsafe {
|
||||
ffi::gst_gl_display_remove_context(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -185,7 +183,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
|
||||
fn remove_window(&self, window: &impl IsA<GLWindow>) -> Result<(), glib::error::BoolError> {
|
||||
unsafe {
|
||||
glib::result_from_gboolean!(
|
||||
ffi::gst_gl_display_remove_window(
|
||||
|
|
|
@ -20,7 +20,7 @@ glib::wrapper! {
|
|||
|
||||
impl GLFramebuffer {
|
||||
#[doc(alias = "gst_gl_framebuffer_new")]
|
||||
pub fn new<P: IsA<GLContext>>(context: &P) -> GLFramebuffer {
|
||||
pub fn new(context: &impl IsA<GLContext>) -> GLFramebuffer {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_framebuffer_new(
|
||||
|
@ -31,8 +31,8 @@ impl GLFramebuffer {
|
|||
|
||||
#[doc(alias = "gst_gl_framebuffer_new_with_default_depth")]
|
||||
#[doc(alias = "new_with_default_depth")]
|
||||
pub fn with_default_depth<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn with_default_depth(
|
||||
context: &impl IsA<GLContext>,
|
||||
width: u32,
|
||||
height: u32,
|
||||
) -> GLFramebuffer {
|
||||
|
|
|
@ -20,7 +20,7 @@ glib::wrapper! {
|
|||
impl GLMemoryAllocator {
|
||||
#[doc(alias = "gst_gl_memory_allocator_get_default")]
|
||||
#[doc(alias = "get_default")]
|
||||
pub fn default<P: IsA<GLContext>>(context: &P) -> Option<GLMemoryAllocator> {
|
||||
pub fn default(context: &impl IsA<GLContext>) -> Option<GLMemoryAllocator> {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_gl_memory_allocator_get_default(
|
||||
|
|
|
@ -39,7 +39,7 @@ glib::wrapper! {
|
|||
|
||||
impl GLOverlayCompositor {
|
||||
#[doc(alias = "gst_gl_overlay_compositor_new")]
|
||||
pub fn new<P: IsA<GLContext>>(context: &P) -> GLOverlayCompositor {
|
||||
pub fn new(context: &impl IsA<GLContext>) -> GLOverlayCompositor {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_gl_overlay_compositor_new(
|
||||
|
|
|
@ -31,13 +31,13 @@ glib::wrapper! {
|
|||
|
||||
impl GLShader {
|
||||
#[doc(alias = "gst_gl_shader_new")]
|
||||
pub fn new<P: IsA<GLContext>>(context: &P) -> GLShader {
|
||||
pub fn new(context: &impl IsA<GLContext>) -> GLShader {
|
||||
skip_assert_initialized!();
|
||||
unsafe { from_glib_full(ffi::gst_gl_shader_new(context.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
||||
#[doc(alias = "gst_gl_shader_new_default")]
|
||||
pub fn new_default<P: IsA<GLContext>>(context: &P) -> Result<GLShader, glib::Error> {
|
||||
pub fn new_default(context: &impl IsA<GLContext>) -> Result<GLShader, glib::Error> {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
let mut error = ptr::null_mut();
|
||||
|
@ -51,13 +51,13 @@ impl GLShader {
|
|||
}
|
||||
|
||||
//#[doc(alias = "gst_gl_shader_new_link_with_stages")]
|
||||
//pub fn new_link_with_stages<P: IsA<GLContext>>(context: &P, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader {
|
||||
//pub fn new_link_with_stages(context: &impl IsA<GLContext>, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader {
|
||||
// unsafe { TODO: call ffi:gst_gl_shader_new_link_with_stages() }
|
||||
//}
|
||||
|
||||
//#[doc(alias = "gst_gl_shader_new_with_stages")]
|
||||
//#[doc(alias = "new_with_stages")]
|
||||
//pub fn with_stages<P: IsA<GLContext>>(context: &P, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader {
|
||||
//pub fn with_stages(context: &impl IsA<GLContext>, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> GLShader {
|
||||
// unsafe { TODO: call ffi:gst_gl_shader_new_with_stages() }
|
||||
//}
|
||||
|
||||
|
@ -377,8 +377,8 @@ impl GLShader {
|
|||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_shader_string_fragment_external_oes_get_default")]
|
||||
pub fn string_fragment_external_oes_get_default<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn string_fragment_external_oes_get_default(
|
||||
context: &impl IsA<GLContext>,
|
||||
version: GLSLVersion,
|
||||
profile: GLSLProfile,
|
||||
) -> Option<glib::GString> {
|
||||
|
@ -395,8 +395,8 @@ impl GLShader {
|
|||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_shader_string_fragment_get_default")]
|
||||
pub fn string_fragment_get_default<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn string_fragment_get_default(
|
||||
context: &impl IsA<GLContext>,
|
||||
version: GLSLVersion,
|
||||
profile: GLSLProfile,
|
||||
) -> Option<glib::GString> {
|
||||
|
@ -413,8 +413,8 @@ impl GLShader {
|
|||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
|
||||
#[doc(alias = "gst_gl_shader_string_get_highest_precision")]
|
||||
pub fn string_get_highest_precision<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn string_get_highest_precision(
|
||||
context: &impl IsA<GLContext>,
|
||||
version: GLSLVersion,
|
||||
profile: GLSLProfile,
|
||||
) -> Option<glib::GString> {
|
||||
|
|
|
@ -19,7 +19,7 @@ glib::wrapper! {
|
|||
|
||||
impl GLUpload {
|
||||
#[doc(alias = "gst_gl_upload_new")]
|
||||
pub fn new<P: IsA<GLContext>>(context: &P) -> GLUpload {
|
||||
pub fn new(context: &impl IsA<GLContext>) -> GLUpload {
|
||||
skip_assert_initialized!();
|
||||
unsafe { from_glib_full(ffi::gst_gl_upload_new(context.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ impl GLUpload {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_gl_upload_set_context")]
|
||||
pub fn set_context<P: IsA<GLContext>>(&self, context: &P) {
|
||||
pub fn set_context(&self, context: &impl IsA<GLContext>) {
|
||||
unsafe {
|
||||
ffi::gst_gl_upload_set_context(
|
||||
self.to_glib_none().0,
|
||||
|
@ -64,9 +64,9 @@ impl GLUpload {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_gl_upload_transform_caps")]
|
||||
pub fn transform_caps<P: IsA<GLContext>>(
|
||||
pub fn transform_caps(
|
||||
&self,
|
||||
context: &P,
|
||||
context: &impl IsA<GLContext>,
|
||||
direction: gst::PadDirection,
|
||||
caps: &gst::Caps,
|
||||
filter: &gst::Caps,
|
||||
|
|
|
@ -22,8 +22,8 @@ glib::wrapper! {
|
|||
|
||||
impl GLVideoAllocationParams {
|
||||
#[doc(alias = "gst_gl_video_allocation_params_new")]
|
||||
pub fn new<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn new(
|
||||
context: &impl IsA<GLContext>,
|
||||
alloc_params: Option<&gst::AllocationParams>,
|
||||
v_info: &gst_video::VideoInfo,
|
||||
plane: u32,
|
||||
|
@ -46,17 +46,17 @@ impl GLVideoAllocationParams {
|
|||
}
|
||||
|
||||
//#[doc(alias = "gst_gl_video_allocation_params_new_wrapped_data")]
|
||||
//pub fn new_wrapped_data<P: IsA<GLContext>>(context: &P, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
|
||||
//pub fn new_wrapped_data(context: &impl IsA<GLContext>, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
|
||||
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_new_wrapped_data() }
|
||||
//}
|
||||
|
||||
//#[doc(alias = "gst_gl_video_allocation_params_new_wrapped_gl_handle")]
|
||||
//pub fn new_wrapped_gl_handle<P: IsA<GLContext>>(context: &P, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
|
||||
//pub fn new_wrapped_gl_handle(context: &impl IsA<GLContext>, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
|
||||
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_new_wrapped_gl_handle() }
|
||||
//}
|
||||
|
||||
//#[doc(alias = "gst_gl_video_allocation_params_new_wrapped_texture")]
|
||||
//pub fn new_wrapped_texture<P: IsA<GLContext>>(context: &P, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, tex_id: u32, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
|
||||
//pub fn new_wrapped_texture(context: &impl IsA<GLContext>, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, tex_id: u32, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> GLVideoAllocationParams {
|
||||
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_new_wrapped_texture() }
|
||||
//}
|
||||
|
||||
|
@ -71,7 +71,7 @@ impl GLVideoAllocationParams {
|
|||
}
|
||||
|
||||
//#[doc(alias = "gst_gl_video_allocation_params_init_full")]
|
||||
//pub fn init_full<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static, Q: IsA<GLContext>>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &Q, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
|
||||
//pub fn init_full<P: Fn(&GLAllocationParams, &GLAllocationParams) + Send + Sync + 'static>(&mut self, struct_size: usize, alloc_flags: u32, copy: P, free: /*Unimplemented*/Fn(/*Unimplemented*/Option<Fundamental: Pointer>), context: &impl IsA<GLContext>, alloc_params: Option<&gst::AllocationParams>, v_info: &gst_video::VideoInfo, plane: u32, valign: Option<&gst_video::VideoAlignment>, target: GLTextureTarget, tex_format: GLFormat, wrapped_data: /*Unimplemented*/Option<Fundamental: Pointer>, gl_handle: /*Unimplemented*/Option<Fundamental: Pointer>, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
|
||||
// unsafe { TODO: call ffi:gst_gl_video_allocation_params_init_full() }
|
||||
//}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ impl GLViewConvert {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_gl_view_convert_set_context")]
|
||||
pub fn set_context<P: IsA<GLContext>>(&self, context: &P) {
|
||||
pub fn set_context(&self, context: &impl IsA<GLContext>) {
|
||||
unsafe {
|
||||
ffi::gst_gl_view_convert_set_context(
|
||||
self.to_glib_none().0,
|
||||
|
|
|
@ -25,7 +25,7 @@ glib::wrapper! {
|
|||
|
||||
impl GLWindow {
|
||||
#[doc(alias = "gst_gl_window_new")]
|
||||
pub fn new<P: IsA<GLDisplay>>(display: &P) -> GLWindow {
|
||||
pub fn new(display: &impl IsA<GLDisplay>) -> GLWindow {
|
||||
skip_assert_initialized!();
|
||||
unsafe { from_glib_full(ffi::gst_gl_window_new(display.as_ref().to_glib_none().0)) }
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ glib::wrapper! {
|
|||
|
||||
impl GLSLStage {
|
||||
#[doc(alias = "gst_glsl_stage_new")]
|
||||
pub fn new<P: IsA<GLContext>>(context: &P, type_: u32) -> GLSLStage {
|
||||
pub fn new(context: &impl IsA<GLContext>, type_: u32) -> GLSLStage {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_glsl_stage_new(
|
||||
|
@ -32,7 +32,7 @@ impl GLSLStage {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_glsl_stage_new_default_fragment")]
|
||||
pub fn new_default_fragment<P: IsA<GLContext>>(context: &P) -> GLSLStage {
|
||||
pub fn new_default_fragment(context: &impl IsA<GLContext>) -> GLSLStage {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_glsl_stage_new_default_fragment(
|
||||
|
@ -42,7 +42,7 @@ impl GLSLStage {
|
|||
}
|
||||
|
||||
#[doc(alias = "gst_glsl_stage_new_default_vertex")]
|
||||
pub fn new_default_vertex<P: IsA<GLContext>>(context: &P) -> GLSLStage {
|
||||
pub fn new_default_vertex(context: &impl IsA<GLContext>) -> GLSLStage {
|
||||
skip_assert_initialized!();
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_glsl_stage_new_default_vertex(
|
||||
|
@ -53,8 +53,8 @@ impl GLSLStage {
|
|||
|
||||
#[doc(alias = "gst_glsl_stage_new_with_string")]
|
||||
#[doc(alias = "new_with_string")]
|
||||
pub fn with_string<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn with_string(
|
||||
context: &impl IsA<GLContext>,
|
||||
type_: u32,
|
||||
version: GLSLVersion,
|
||||
profile: GLSLProfile,
|
||||
|
@ -74,8 +74,8 @@ impl GLSLStage {
|
|||
|
||||
#[doc(alias = "gst_glsl_stage_new_with_strings")]
|
||||
#[doc(alias = "new_with_strings")]
|
||||
pub fn with_strings<P: IsA<GLContext>>(
|
||||
context: &P,
|
||||
pub fn with_strings(
|
||||
context: &impl IsA<GLContext>,
|
||||
type_: u32,
|
||||
version: GLSLVersion,
|
||||
profile: GLSLProfile,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by gir (https://github.com/gtk-rs/gir @ f64f90a)
|
||||
// Generated by gir (https://github.com/gtk-rs/gir @ ede0c31)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ 8e47c67)
|
||||
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 0d4f3ae)
|
||||
// DO NOT EDIT
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue