pub trait VideoDecoderImpl: VideoDecoderImplExt + ElementImpl {
Show 19 methods // Provided methods fn open(&self) -> Result<(), ErrorMessage> { ... } fn close(&self) -> Result<(), ErrorMessage> { ... } fn start(&self) -> Result<(), ErrorMessage> { ... } fn stop(&self) -> Result<(), ErrorMessage> { ... } fn finish(&self) -> Result<FlowSuccess, FlowError> { ... } fn drain(&self) -> Result<FlowSuccess, FlowError> { ... } fn set_format( &self, state: &VideoCodecState<'static, Readable> ) -> Result<(), LoggableError> { ... } fn parse( &self, frame: &VideoCodecFrame<'_>, adapter: &Adapter, at_eos: bool ) -> Result<FlowSuccess, FlowError> { ... } fn handle_frame( &self, frame: VideoCodecFrame<'_> ) -> Result<FlowSuccess, FlowError> { ... } fn flush(&self) -> bool { ... } fn negotiate(&self) -> Result<(), LoggableError> { ... } fn caps(&self, filter: Option<&Caps>) -> Caps { ... } fn sink_event(&self, event: Event) -> bool { ... } fn sink_query(&self, query: &mut QueryRef) -> bool { ... } fn src_event(&self, event: Event) -> bool { ... } fn src_query(&self, query: &mut QueryRef) -> bool { ... } fn propose_allocation( &self, query: &mut Allocation ) -> Result<(), LoggableError> { ... } fn decide_allocation( &self, query: &mut Allocation ) -> Result<(), LoggableError> { ... } fn handle_missing_data( &self, timestamp: ClockTime, duration: Option<ClockTime> ) -> bool { ... }
}

Provided Methods§

source

fn open(&self) -> Result<(), ErrorMessage>

source

fn close(&self) -> Result<(), ErrorMessage>

source

fn start(&self) -> Result<(), ErrorMessage>

source

fn stop(&self) -> Result<(), ErrorMessage>

source

fn finish(&self) -> Result<FlowSuccess, FlowError>

source

fn drain(&self) -> Result<FlowSuccess, FlowError>

source

fn set_format( &self, state: &VideoCodecState<'static, Readable> ) -> Result<(), LoggableError>

source

fn parse( &self, frame: &VideoCodecFrame<'_>, adapter: &Adapter, at_eos: bool ) -> Result<FlowSuccess, FlowError>

source

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

§frame

The frame to handle

source

fn flush(&self) -> bool

source

fn negotiate(&self) -> Result<(), LoggableError>

Negotiate with downstream elements to currently configured VideoCodecState. Unmark GST_PAD_FLAG_NEED_RECONFIGURE in any case. But mark it again if negotiate fails.

§Returns

true if the negotiation succeeded, else false.

source

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

source

fn sink_event(&self, event: Event) -> bool

source

fn sink_query(&self, query: &mut QueryRef) -> bool

source

fn src_event(&self, event: Event) -> bool

source

fn src_query(&self, query: &mut QueryRef) -> bool

source

fn propose_allocation( &self, query: &mut Allocation ) -> Result<(), LoggableError>

source

fn decide_allocation(&self, query: &mut Allocation) -> Result<(), LoggableError>

source

fn handle_missing_data( &self, timestamp: ClockTime, duration: Option<ClockTime> ) -> bool

§timestamp

Timestamp of the missing data

§duration

Duration of the missing data

§Returns

true if the decoder should be drained afterwards.

Object Safety§

This trait is not object safe.

Implementors§