gstreamer_video::prelude

Trait VideoEncoderExtManual

Source
pub trait VideoEncoderExtManual:
    Sealed
    + IsA<VideoEncoder>
    + 'static {
Show 15 methods // Provided methods fn allocate_output_frame( &self, frame: &mut VideoCodecFrame<'_>, size: usize, ) -> Result<FlowSuccess, FlowError> { ... } fn frame(&self, frame_number: i32) -> Option<VideoCodecFrame<'_>> { ... } fn frames(&self) -> Vec<VideoCodecFrame<'_>> { ... } fn oldest_frame(&self) -> Option<VideoCodecFrame<'_>> { ... } fn allocator(&self) -> (Option<Allocator>, AllocationParams) { ... } fn latency(&self) -> (ClockTime, Option<ClockTime>) { ... } fn set_latency( &self, min_latency: ClockTime, max_latency: impl Into<Option<ClockTime>>, ) { ... } fn output_state(&self) -> Option<VideoCodecState<'static, Readable>> { ... } fn set_output_state( &self, caps: Caps, reference: Option<&VideoCodecState<'_, Readable>>, ) -> Result<VideoCodecState<'_, InNegotiation<'_>>, FlowError> { ... } fn negotiate<'a>( &'a self, output_state: VideoCodecState<'a, InNegotiation<'a>>, ) -> Result<(), FlowError> { ... } fn set_headers(&self, headers: impl IntoIterator<Item = Buffer>) { ... } fn sink_pad(&self) -> &Pad { ... } fn src_pad(&self) -> &Pad { ... } fn input_segment(&self) -> Segment { ... } fn output_segment(&self) -> Segment { ... }
}

Provided Methods§

Source

fn allocate_output_frame( &self, frame: &mut VideoCodecFrame<'_>, size: usize, ) -> Result<FlowSuccess, FlowError>

Source

fn frame(&self, frame_number: i32) -> Option<VideoCodecFrame<'_>>

Source

fn frames(&self) -> Vec<VideoCodecFrame<'_>>

Source

fn oldest_frame(&self) -> Option<VideoCodecFrame<'_>>

Source

fn allocator(&self) -> (Option<Allocator>, AllocationParams)

Source

fn latency(&self) -> (ClockTime, Option<ClockTime>)

Source

fn set_latency( &self, min_latency: ClockTime, max_latency: impl Into<Option<ClockTime>>, )

Source

fn output_state(&self) -> Option<VideoCodecState<'static, Readable>>

Source

fn set_output_state( &self, caps: Caps, reference: Option<&VideoCodecState<'_, Readable>>, ) -> Result<VideoCodecState<'_, InNegotiation<'_>>, FlowError>

Source

fn negotiate<'a>( &'a self, output_state: VideoCodecState<'a, InNegotiation<'a>>, ) -> Result<(), FlowError>

Source

fn set_headers(&self, headers: impl IntoIterator<Item = Buffer>)

Source

fn sink_pad(&self) -> &Pad

Source

fn src_pad(&self) -> &Pad

Source

fn input_segment(&self) -> Segment

Source

fn output_segment(&self) -> Segment

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§