Trait gstreamer_video::prelude::VideoEncoderExt

source ·
pub trait VideoEncoderExt:
    IsA<VideoEncoder>
    + Sealed
    + 'static {
    // 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 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_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_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 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_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_qos_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§