Skip to main content

check_animation_cases

Function check_animation_cases 

Source
pub fn check_animation_cases<E, D>(
    enc: E,
    dec: D,
    exact: bool,
    cases: &[TimingCase<'_>],
) -> Conformance
where E: EncoderConfig + 'static, D: DecoderConfig + 'static, <E::Job as EncodeJob>::Enc: Encoder + Send, <E::Job as EncodeJob>::AnimationFrameEnc: AnimationFrameEncoder,
Expand description

Strict counterpart to check_animation_timing: requires typed errors and verifies independently specified frame pixels, as well as duration and index. Accepted frames on both sides of a rejection expose timing/state corruption.