Function simple_playback_loop

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

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