pub trait StatelessVp8DecoderBackend: StatelessDecoderBackend + StatelessDecoderBackendPicture<Vp8> {
// 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,
last_ref: &Option<Self::Handle>,
golden_ref: &Option<Self::Handle>,
alt_ref: &Option<Self::Handle>,
bitstream: &[u8],
segmentation: &Segmentation,
mb_lf_adjust: &MbLfAdjustments,
) -> 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 new_picture(&mut self, timestamp: u64) -> NewPictureResult<Self::Picture>
fn new_picture(&mut self, timestamp: u64) -> NewPictureResult<Self::Picture>
Called when the decoder determines that a frame or field was found.
Sourcefn submit_picture(
&mut self,
picture: Self::Picture,
hdr: &Header,
last_ref: &Option<Self::Handle>,
golden_ref: &Option<Self::Handle>,
alt_ref: &Option<Self::Handle>,
bitstream: &[u8],
segmentation: &Segmentation,
mb_lf_adjust: &MbLfAdjustments,
) -> StatelessBackendResult<Self::Handle>
fn submit_picture( &mut self, picture: Self::Picture, hdr: &Header, last_ref: &Option<Self::Handle>, golden_ref: &Option<Self::Handle>, alt_ref: &Option<Self::Handle>, bitstream: &[u8], segmentation: &Segmentation, mb_lf_adjust: &MbLfAdjustments, ) -> 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.