pub fn simple_playback_loop<D, R, I, M>(
    decoder: &mut D,
    stream_iter: I,
    on_new_frame: &mut dyn FnMut(Box<dyn DecodedHandle<Descriptor = M>>),
    allocate_new_frames: &mut dyn FnMut(&StreamInfo, usize) -> Result<Vec<M>>,
    output_format: DecodedFormat,
    blocking_mode: BlockingMode
) -> Result<()>where
    D: StatelessVideoDecoder<M> + ?Sized,
    R: AsRef<[u8]>,
    I: Iterator<Item = R>,
Expand description

Simple decoding loop that plays the stream once from start to finish.