Trait StatelessDecoderBackend

Source
pub trait StatelessDecoderBackend {
    type Handle: DecodedHandle;
    type FramePool: FramePool<Descriptor = <Self::Handle as DecodedHandle>::Descriptor>;

    // Required methods
    fn stream_info(&self) -> Option<&StreamInfo>;
    fn frame_pool(&mut self, layer: PoolLayer) -> Vec<&mut Self::FramePool>;
}
Expand description

Common trait shared by all stateless video decoder backends, providing codec-independent methods.

Required Associated Types§

Source

type Handle: DecodedHandle

The type that the backend returns as a result of a decode operation. This will usually be some backend-specific type with a resource and a resource pool so that said buffer can be reused for another decode operation when it goes out of scope.

Source

type FramePool: FramePool<Descriptor = <Self::Handle as DecodedHandle>::Descriptor>

Required Methods§

Source

fn stream_info(&self) -> Option<&StreamInfo>

Returns the current decoding parameters, as parsed from the stream.

Source

fn frame_pool(&mut self, layer: PoolLayer) -> Vec<&mut Self::FramePool>

Returns the frame pool currently in use by the backend for layer.

Implementors§