JxlSignatureCheck

Function JxlSignatureCheck 

Source
pub unsafe extern "C-unwind" fn JxlSignatureCheck(
    buf: *const u8,
    len: usize,
) -> JxlSignature
Expand description

JPEG XL signature identification.

Checks if the passed buffer contains a valid JPEG XL signature. The passed buf of size size doesn’t need to be a full image, only the beginning of the file.

§Returns

A flag indicating if a JPEG XL signature was found and what type.