pub fn check_animation_over_video<E, M, D, C, P, R>(
make_encoder: impl FnMut() -> E,
make_muxer: impl FnMut() -> M,
lag_frames: u32,
capture: impl FnMut() -> P,
make_demuxer: impl FnOnce() -> D,
make_decoder: impl FnOnce() -> C,
render: R,
frames: &[PixelBuffer],
durations: &[FrameDuration],
) -> Conformancewhere
E: VideoEncoder + Send,
M: Muxer + Send,
D: Demuxer + Send,
C: VideoDecoder + Send,
P: CaptureFrame + Send,
R: RenderFrame + Send,Expand description
Verify the animation adapters over a video codec and a container.
Encodes frames with durations through AnimationVideoEncoder
(the encoder from make_encoder, the muxer from make_muxer, pixels
captured by capture), drained and undrained, then decodes the file
through VideoAnimationDecoder (make_demuxer, make_decoder,
render). Checked: draining never changes the bytes; with a streaming
muxer, bytes become pending across every lag + 1 frames; the decoded
animation has the same frames, pixels and exact durations; a declared
frame count is binding.