[][src]Function libavif::is_avif

pub fn is_avif(avif_bytes: &[u8]) -> bool

Very efficiently detects AVIF files

returns true if the file header matches the AVIF type Does not necessarily confirm that the file can actually be decoded.

Generally requires no more than 64 bytes to make this determination.