Trait cros_codecs::decoder::stateless::vp8::StatelessVp8DecoderBackend
source · pub trait StatelessVp8DecoderBackend: StatelessDecoderBackend<Header> {
// Required methods
fn new_sequence(&mut self, header: &Header) -> StatelessBackendResult<()>;
fn submit_picture(
&mut self,
picture: &Header,
last_ref: Option<&Self::Handle>,
golden_ref: Option<&Self::Handle>,
alt_ref: Option<&Self::Handle>,
bitstream: &[u8],
segmentation: &Segmentation,
mb_lf_adjust: &MbLfAdjustments,
timestamp: u64
) -> StatelessBackendResult<Self::Handle>;
}Expand description
Stateless backend methods specific to VP8.
Required Methods§
sourcefn new_sequence(&mut self, header: &Header) -> StatelessBackendResult<()>
fn new_sequence(&mut self, header: &Header) -> StatelessBackendResult<()>
Called when new stream parameters are found.
sourcefn submit_picture(
&mut self,
picture: &Header,
last_ref: Option<&Self::Handle>,
golden_ref: Option<&Self::Handle>,
alt_ref: Option<&Self::Handle>,
bitstream: &[u8],
segmentation: &Segmentation,
mb_lf_adjust: &MbLfAdjustments,
timestamp: u64
) -> StatelessBackendResult<Self::Handle>
fn submit_picture( &mut self, picture: &Header, last_ref: Option<&Self::Handle>, golden_ref: Option<&Self::Handle>, alt_ref: Option<&Self::Handle>, bitstream: &[u8], segmentation: &Segmentation, mb_lf_adjust: &MbLfAdjustments, timestamp: u64 ) -> StatelessBackendResult<Self::Handle>
Called when the decoder wants the backend to finish the decoding
operations for picture.
This call will assign the ownership of the BackendHandle to the Picture and then assign the ownership of the Picture to the Handle.