2018-04-23 17:34:22 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2021-04-01 13:58:41 +00:00
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
2017-12-18 08:05:42 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
2023-01-03 18:56:00 +00:00
|
|
|
use glib::{prelude::*, translate::*};
|
2017-12-18 08:05:42 +00:00
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_type_find_helper")]
|
2021-05-23 19:22:45 +00:00
|
|
|
pub fn type_find_helper(src: &impl IsA<gst::Pad>, size: u64) -> Result<gst::Caps, glib::BoolError> {
|
2017-12-18 08:05:42 +00:00
|
|
|
assert_initialized_main_thread!();
|
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
Option::<_>::from_glib_full(ffi::gst_type_find_helper(
|
2019-06-18 10:12:00 +00:00
|
|
|
src.as_ref().to_glib_none().0,
|
|
|
|
size,
|
|
|
|
))
|
2020-12-17 22:34:53 +00:00
|
|
|
.ok_or_else(|| glib::bool_error!("Could not find type"))
|
2017-12-18 08:05:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
#[doc(alias = "gst_type_find_helper_for_extension")]
|
2021-05-23 19:22:45 +00:00
|
|
|
pub fn type_find_helper_for_extension(
|
|
|
|
obj: Option<&impl IsA<gst::Object>>,
|
2019-06-18 10:12:00 +00:00
|
|
|
extension: &str,
|
2019-12-17 19:00:42 +00:00
|
|
|
) -> Result<gst::Caps, glib::BoolError> {
|
2017-12-18 08:05:42 +00:00
|
|
|
assert_initialized_main_thread!();
|
|
|
|
unsafe {
|
2020-11-21 17:59:12 +00:00
|
|
|
Option::<_>::from_glib_full(ffi::gst_type_find_helper_for_extension(
|
2019-06-18 10:12:00 +00:00
|
|
|
obj.map(|p| p.as_ref()).to_glib_none().0,
|
|
|
|
extension.to_glib_none().0,
|
|
|
|
))
|
2020-12-17 22:34:53 +00:00
|
|
|
.ok_or_else(|| glib::bool_error!("Could not find type"))
|
2017-12-18 08:05:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-08 13:00:17 +00:00
|
|
|
//#[doc(alias = "gst_type_find_helper_get_range")]
|
2023-01-24 08:40:31 +00:00
|
|
|
//pub fn type_find_helper_get_range<P: FnMut(&gst::Object, Option<&gst::Object>, u64, u32) -> 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) {
|
2020-11-21 17:59:12 +00:00
|
|
|
// unsafe { TODO: call ffi:gst_type_find_helper_get_range() }
|
2017-12-18 08:05:42 +00:00
|
|
|
//}
|
2018-10-19 18:34:25 +00:00
|
|
|
|
2023-05-04 05:51:18 +00:00
|
|
|
//#[cfg(feature = "v1_14_3")]
|
|
|
|
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_14_3")))]
|
2020-12-08 13:00:17 +00:00
|
|
|
//#[doc(alias = "gst_type_find_helper_get_range_full")]
|
2023-01-24 08:40:31 +00:00
|
|
|
//pub fn type_find_helper_get_range_full<P: FnMut(&gst::Object, Option<&gst::Object>, u64, u32) -> 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) {
|
2020-11-21 17:59:12 +00:00
|
|
|
// unsafe { TODO: call ffi:gst_type_find_helper_get_range_full() }
|
2018-10-19 18:34:25 +00:00
|
|
|
//}
|