Trait cros_codecs::decoder::stateless::vp9::StatelessVp9DecoderBackend
source · pub trait StatelessVp9DecoderBackend: StatelessDecoderBackend<Header> {
// Required methods
fn new_sequence(&mut self, header: &Header) -> StatelessBackendResult<()>;
fn submit_picture(
&mut self,
picture: &Header,
reference_frames: &[Option<Self::Handle>; 8],
bitstream: &[u8],
timestamp: u64,
segmentation: &[Segmentation; 8]
) -> StatelessBackendResult<Self::Handle>;
}
Expand description
Stateless backend methods specific to VP9.
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,
reference_frames: &[Option<Self::Handle>; 8],
bitstream: &[u8],
timestamp: u64,
segmentation: &[Segmentation; 8]
) -> StatelessBackendResult<Self::Handle>
fn submit_picture( &mut self, picture: &Header, reference_frames: &[Option<Self::Handle>; 8], bitstream: &[u8], timestamp: u64, segmentation: &[Segmentation; 8] ) -> 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.