Function jpegxl_sys::JxlSignatureCheck [−][src]
pub unsafe extern "C" fn JxlSignatureCheck(
buf: *const u8,
len: size_t
) -> JxlSignature
JPEG XL signature identification.
Checks if the passed buffer contains a valid JPEG XL signature. The passed @p buf of size @p size doesn’t need to be a full image, only the beginning of the file.
@return a flag indicating if a JPEG XL signature was found and what type.
- JXL_SIG_NOT_ENOUGH_BYTES not enough bytes were passed to determine if a valid signature is there.
- JXL_SIG_INVALID: no valid signature found for JPEG XL decoding.
- JXL_SIG_CODESTREAM a valid JPEG XL codestream signature was found.
- JXL_SIG_CONTAINER a valid JPEG XL container signature was found.