Trait StatelessVp9DecoderBackend

Source
pub trait StatelessVp9DecoderBackend: StatelessDecoderBackend + StatelessDecoderBackendPicture<Vp9> {
    // Required methods
    fn new_sequence(&mut self, header: &Header) -> StatelessBackendResult<()>;
    fn new_picture(&mut self, timestamp: u64) -> NewPictureResult<Self::Picture>;
    fn submit_picture(
        &mut self,
        picture: Self::Picture,
        hdr: &Header,
        reference_frames: &[Option<Self::Handle>; 8],
        bitstream: &[u8],
        segmentation: &[Segmentation; 8],
    ) -> StatelessBackendResult<Self::Handle>;
}
Expand description

Stateless backend methods specific to VP9.

Required Methods§

Source

fn new_sequence(&mut self, header: &Header) -> StatelessBackendResult<()>

Called when new stream parameters are found.

Source

fn new_picture(&mut self, timestamp: u64) -> NewPictureResult<Self::Picture>

Allocate all resources required to process a new picture.

Source

fn submit_picture( &mut self, picture: Self::Picture, hdr: &Header, reference_frames: &[Option<Self::Handle>; 8], bitstream: &[u8], 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.

Implementors§