Trait gstreamer_video::prelude::VideoEncoderExt
source · pub trait VideoEncoderExt: IsA<VideoEncoder> + Sealed + 'static {
Show 14 methods
// Provided methods
fn allocate_output_buffer(&self, size: usize) -> Buffer { ... }
fn finish_frame(
&self,
frame: VideoCodecFrame<'_>
) -> Result<FlowSuccess, FlowError> { ... }
fn max_encode_time(&self, frame: &VideoCodecFrame<'_>) -> ClockTimeDiff { ... }
fn min_force_key_unit_interval(&self) -> Option<ClockTime> { ... }
fn is_qos_enabled(&self) -> bool { ... }
fn merge_tags(&self, tags: Option<&TagList>, mode: TagMergeMode) { ... }
fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps { ... }
fn set_min_force_key_unit_interval(
&self,
interval: impl Into<Option<ClockTime>>
) { ... }
fn set_min_pts(&self, min_pts: impl Into<Option<ClockTime>>) { ... }
fn set_qos_enabled(&self, enabled: bool) { ... }
fn is_qos(&self) -> bool { ... }
fn set_qos(&self, qos: bool) { ... }
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 allocate_output_buffer(&self, size: usize) -> Buffer
fn finish_frame( &self, frame: VideoCodecFrame<'_> ) -> Result<FlowSuccess, FlowError>
fn max_encode_time(&self, frame: &VideoCodecFrame<'_>) -> ClockTimeDiff
fn min_force_key_unit_interval(&self) -> Option<ClockTime>
Available on crate feature
v1_18
only.fn is_qos_enabled(&self) -> bool
fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps
fn set_min_force_key_unit_interval( &self, interval: impl Into<Option<ClockTime>> )
Available on crate feature
v1_18
only.fn set_min_pts(&self, min_pts: impl Into<Option<ClockTime>>)
fn set_qos_enabled(&self, enabled: bool)
fn is_qos(&self) -> bool
fn set_qos(&self, qos: bool)
fn connect_min_force_key_unit_interval_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v1_18
only.fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.