pub unsafe extern "C-unwind" fn JxlSignatureCheck(
buf: *const u8,
len: usize,
) -> JxlSignatureExpand 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.
JxlSignature::NotEnoughBytesif not enough bytes were passed to determine if a valid signature is there.JxlSignature::Invalidif no valid signature found for JPEG XL decoding.JxlSignature::Codestreamif a valid JPEG XL codestream signature was found.JxlSignature::Containerif a valid JPEG XL container signature was found.