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§
Sourcetype Handle: DecodedHandle
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.
type FramePool: FramePool<Descriptor = <Self::Handle as DecodedHandle>::Descriptor>
Required Methods§
Sourcefn stream_info(&self) -> Option<&StreamInfo>
fn stream_info(&self) -> Option<&StreamInfo>
Returns the current decoding parameters, as parsed from the stream.
Sourcefn frame_pool(&mut self, layer: PoolLayer) -> Vec<&mut Self::FramePool>
fn frame_pool(&mut self, layer: PoolLayer) -> Vec<&mut Self::FramePool>
Returns the frame pool currently in use by the backend for layer
.