Trait gstreamer_video::prelude::VideoDecoderExt
source · pub trait VideoDecoderExt: IsA<VideoDecoder> + Sealed + 'static {
Show 45 methods
// Provided methods
fn add_to_frame(&self, n_bytes: i32) { ... }
fn allocate_output_buffer(&self) -> Result<Buffer, BoolError> { ... }
fn drop_frame(
&self,
frame: VideoCodecFrame<'_>,
) -> Result<FlowSuccess, FlowError> { ... }
fn drop_subframe(
&self,
frame: VideoCodecFrame<'_>,
) -> Result<FlowSuccess, FlowError> { ... }
fn finish_frame(
&self,
frame: VideoCodecFrame<'_>,
) -> Result<FlowSuccess, FlowError> { ... }
fn finish_subframe(
&self,
frame: VideoCodecFrame<'_>,
) -> Result<FlowSuccess, FlowError> { ... }
fn buffer_pool(&self) -> Option<BufferPool> { ... }
fn estimate_rate(&self) -> i32 { ... }
fn max_decode_time(&self, frame: &VideoCodecFrame<'_>) -> ClockTimeDiff { ... }
fn max_errors(&self) -> i32 { ... }
fn needs_format(&self) -> bool { ... }
fn needs_sync_point(&self) -> bool { ... }
fn is_packetized(&self) -> bool { ... }
fn pending_frame_size(&self) -> usize { ... }
fn qos_proportion(&self) -> f64 { ... }
fn is_subframe_mode(&self) -> bool { ... }
fn have_frame(&self) -> Result<FlowSuccess, FlowError> { ... }
fn have_last_subframe(
&self,
frame: &VideoCodecFrame<'_>,
) -> Result<FlowSuccess, FlowError> { ... }
fn merge_tags(&self, tags: Option<&TagList>, mode: TagMergeMode) { ... }
fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps { ... }
fn release_frame(&self, frame: VideoCodecFrame<'_>) { ... }
fn request_sync_point(
&self,
frame: &VideoCodecFrame<'_>,
flags: VideoDecoderRequestSyncPointFlags,
) { ... }
fn set_estimate_rate(&self, enabled: bool) { ... }
fn set_max_errors(&self, num: i32) { ... }
fn set_needs_format(&self, enabled: bool) { ... }
fn set_needs_sync_point(&self, enabled: bool) { ... }
fn set_packetized(&self, packetized: bool) { ... }
fn set_subframe_mode(&self, subframe_mode: bool) { ... }
fn set_use_default_pad_acceptcaps(&self, use_: bool) { ... }
fn automatic_request_sync_point_flags(
&self,
) -> VideoDecoderRequestSyncPointFlags { ... }
fn set_automatic_request_sync_point_flags(
&self,
automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags,
) { ... }
fn is_automatic_request_sync_points(&self) -> bool { ... }
fn set_automatic_request_sync_points(
&self,
automatic_request_sync_points: bool,
) { ... }
fn is_discard_corrupted_frames(&self) -> bool { ... }
fn set_discard_corrupted_frames(&self, discard_corrupted_frames: bool) { ... }
fn min_force_key_unit_interval(&self) -> u64 { ... }
fn set_min_force_key_unit_interval(&self, min_force_key_unit_interval: u64) { ... }
fn is_qos(&self) -> bool { ... }
fn set_qos(&self, qos: bool) { ... }
fn connect_automatic_request_sync_point_flags_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_automatic_request_sync_points_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_discard_corrupted_frames_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_min_force_key_unit_interval_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
fn add_to_frame(&self, n_bytes: i32)
fn allocate_output_buffer(&self) -> Result<Buffer, BoolError>
fn drop_frame( &self, frame: VideoCodecFrame<'_>, ) -> Result<FlowSuccess, FlowError>
fn drop_subframe( &self, frame: VideoCodecFrame<'_>, ) -> Result<FlowSuccess, FlowError>
Available on crate feature
v1_20
only.fn finish_frame( &self, frame: VideoCodecFrame<'_>, ) -> Result<FlowSuccess, FlowError>
fn finish_subframe( &self, frame: VideoCodecFrame<'_>, ) -> Result<FlowSuccess, FlowError>
Available on crate feature
v1_20
only.fn buffer_pool(&self) -> Option<BufferPool>
fn estimate_rate(&self) -> i32
fn max_decode_time(&self, frame: &VideoCodecFrame<'_>) -> ClockTimeDiff
fn max_errors(&self) -> i32
fn needs_format(&self) -> bool
fn needs_sync_point(&self) -> bool
Available on crate feature
v1_20
only.fn is_packetized(&self) -> bool
fn pending_frame_size(&self) -> usize
fn qos_proportion(&self) -> f64
fn is_subframe_mode(&self) -> bool
Available on crate feature
v1_20
only.fn have_frame(&self) -> Result<FlowSuccess, FlowError>
fn have_last_subframe( &self, frame: &VideoCodecFrame<'_>, ) -> Result<FlowSuccess, FlowError>
Available on crate feature
v1_20
only.fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps
fn release_frame(&self, frame: VideoCodecFrame<'_>)
fn request_sync_point( &self, frame: &VideoCodecFrame<'_>, flags: VideoDecoderRequestSyncPointFlags, )
Available on crate feature
v1_20
only.fn set_estimate_rate(&self, enabled: bool)
fn set_max_errors(&self, num: i32)
fn set_needs_format(&self, enabled: bool)
fn set_needs_sync_point(&self, enabled: bool)
Available on crate feature
v1_20
only.fn set_packetized(&self, packetized: bool)
fn set_subframe_mode(&self, subframe_mode: bool)
Available on crate feature
v1_20
only.fn set_use_default_pad_acceptcaps(&self, use_: bool)
fn automatic_request_sync_point_flags( &self, ) -> VideoDecoderRequestSyncPointFlags
Available on crate feature
v1_20
only.fn set_automatic_request_sync_point_flags( &self, automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags, )
Available on crate feature
v1_20
only.fn is_automatic_request_sync_points(&self) -> bool
Available on crate feature
v1_20
only.fn set_automatic_request_sync_points(&self, automatic_request_sync_points: bool)
Available on crate feature
v1_20
only.fn is_discard_corrupted_frames(&self) -> bool
Available on crate feature
v1_20
only.fn set_discard_corrupted_frames(&self, discard_corrupted_frames: bool)
Available on crate feature
v1_20
only.fn min_force_key_unit_interval(&self) -> u64
Available on crate feature
v1_20
only.fn set_min_force_key_unit_interval(&self, min_force_key_unit_interval: u64)
Available on crate feature
v1_20
only.fn is_qos(&self) -> bool
Available on crate feature
v1_18
only.fn set_qos(&self, qos: bool)
Available on crate feature
v1_18
only.fn connect_automatic_request_sync_point_flags_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_20
only.fn connect_automatic_request_sync_points_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_20
only.fn connect_discard_corrupted_frames_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_20
only.fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_18
only.fn connect_min_force_key_unit_interval_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_20
only.fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_18
only.Object Safety§
This trait is not object safe.