Skip to main content

check_frame_size

Function check_frame_size 

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

Reject a frame whose bytes do not describe width x height RGBA pixels.