Skip to main content

compare_frame_bytes

Function compare_frame_bytes 

Source
fn compare_frame_bytes(
    reference_bytes: &[u8],
    rgba: &[u8],
    width: u32,
    height: u32,
    channel_delta: u8,
) -> Result<Comparison, SnapshotError>
Available on crate feature snapshot only.
Expand description

Measure rgba against a WebP baseline held in memory.

This is the whole comparison, and the only difference between the two targets is where reference_bytes was read from.