forked from mirrors/gstreamer-rs
Regenerate with fresh gir files
This commit is contained in:
parent
217dfdff10
commit
47102b0e76
7 changed files with 16 additions and 16 deletions
|
@ -33,7 +33,7 @@ pub const NONE_AGGREGATOR: Option<&Aggregator> = None;
|
|||
pub trait AggregatorExt: 'static {
|
||||
//#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams);
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
||||
|
||||
#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
|
@ -121,7 +121,7 @@ pub trait AggregatorExt: 'static {
|
|||
impl<O: IsA<Aggregator>> AggregatorExt for O {
|
||||
//#[cfg(any(feature = "v1_14", feature = "dox"))]
|
||||
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) {
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
||||
// unsafe { TODO: call ffi:gst_aggregator_get_allocator() }
|
||||
//}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ unsafe impl Sync for BaseSrc {}
|
|||
pub const NONE_BASE_SRC: Option<&BaseSrc> = None;
|
||||
|
||||
pub trait BaseSrcExt: 'static {
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams);
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
||||
|
||||
fn get_blocksize(&self) -> u32;
|
||||
|
||||
|
@ -90,7 +90,7 @@ pub trait BaseSrcExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<BaseSrc>> BaseSrcExt for O {
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) {
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
||||
// unsafe { TODO: call ffi:gst_base_src_get_allocator() }
|
||||
//}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ unsafe impl Sync for BaseTransform {}
|
|||
pub const NONE_BASE_TRANSFORM: Option<&BaseTransform> = None;
|
||||
|
||||
pub trait BaseTransformExt: 'static {
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams);
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams);
|
||||
|
||||
fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
|
||||
|
||||
|
@ -68,7 +68,7 @@ pub trait BaseTransformExt: 'static {
|
|||
}
|
||||
|
||||
impl<O: IsA<BaseTransform>> BaseTransformExt for O {
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams) {
|
||||
//fn get_allocator(&self, allocator: /*Ignored*/Option<gst::Allocator>, params: /*Ignored*/gst::AllocationParams) {
|
||||
// unsafe { TODO: call ffi:gst_base_transform_get_allocator() }
|
||||
//}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ impl Player {
|
|||
|
||||
pub fn get_current_subtitle_track(&self) -> Option<PlayerSubtitleInfo> {
|
||||
unsafe {
|
||||
from_glib_none(ffi::gst_player_get_current_subtitle_track(
|
||||
from_glib_full(ffi::gst_player_get_current_subtitle_track(
|
||||
self.to_glib_none().0,
|
||||
))
|
||||
}
|
||||
|
|
|
@ -2866,13 +2866,13 @@ extern "C" {
|
|||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_video_meta_get_plane_height(
|
||||
meta: *mut GstVideoMeta,
|
||||
plane_height: *mut c_uint,
|
||||
plane_height: *mut [c_uint; 4],
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn gst_video_meta_get_plane_size(
|
||||
meta: *mut GstVideoMeta,
|
||||
plane_size: *mut size_t,
|
||||
plane_size: *mut [size_t; 4],
|
||||
) -> gboolean;
|
||||
pub fn gst_video_meta_map(
|
||||
meta: *mut GstVideoMeta,
|
||||
|
@ -3461,7 +3461,7 @@ extern "C" {
|
|||
pub fn gst_video_decoder_set_interlaced_output_state(
|
||||
decoder: *mut GstVideoDecoder,
|
||||
fmt: GstVideoFormat,
|
||||
mode: GstVideoInterlaceMode,
|
||||
interlace_mode: GstVideoInterlaceMode,
|
||||
width: c_uint,
|
||||
height: c_uint,
|
||||
reference: *mut GstVideoCodecState,
|
||||
|
|
|
@ -52,14 +52,14 @@ impl DateTime {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn from_unix_epoch_local_time(secs: i64) -> DateTime {
|
||||
pub fn from_unix_epoch_local_time(secs: i64) -> Option<DateTime> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_local_time(secs)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> DateTime {
|
||||
pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> Option<DateTime> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_date_time_new_from_unix_epoch_local_time_usecs(
|
||||
|
@ -68,14 +68,14 @@ impl DateTime {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn from_unix_epoch_utc(secs: i64) -> DateTime {
|
||||
pub fn from_unix_epoch_utc(secs: i64) -> Option<DateTime> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_utc(secs)) }
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
|
||||
pub fn from_unix_epoch_utc_usecs(usecs: i64) -> DateTime {
|
||||
pub fn from_unix_epoch_utc_usecs(usecs: i64) -> Option<DateTime> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe { from_glib_full(ffi::gst_date_time_new_from_unix_epoch_utc_usecs(usecs)) }
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ impl DateTime {
|
|||
hour: i32,
|
||||
minute: i32,
|
||||
seconds: f64,
|
||||
) -> DateTime {
|
||||
) -> Option<DateTime> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
from_glib_full(ffi::gst_date_time_new_local_time(
|
||||
|
|
|
@ -91,7 +91,7 @@ impl PadTemplate {
|
|||
unsafe {
|
||||
ffi::gst_pad_template_set_documentation_caps(
|
||||
self.to_glib_none().0,
|
||||
caps.to_glib_none().0,
|
||||
caps.to_glib_full(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue