Trait 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§

Source

fn allocate_output_buffer(&self, size: usize) -> Buffer

Source

fn finish_frame( &self, frame: VideoCodecFrame<'_>, ) -> Result<FlowSuccess, FlowError>

Source

fn max_encode_time(&self, frame: &VideoCodecFrame<'_>) -> ClockTimeDiff

Source

fn min_force_key_unit_interval(&self) -> Option<ClockTime>

Source

fn is_qos_enabled(&self) -> bool

Source

fn merge_tags(&self, tags: Option<&TagList>, mode: TagMergeMode)

Source

fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps

Source

fn set_min_force_key_unit_interval( &self, interval: impl Into<Option<ClockTime>>, )

Source

fn set_min_pts(&self, min_pts: impl Into<Option<ClockTime>>)

Source

fn set_qos_enabled(&self, enabled: bool)

Source

fn is_qos(&self) -> bool

Source

fn set_qos(&self, qos: bool)

Source

fn connect_min_force_key_unit_interval_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§