[][src]Function jpegxl_sys::JpegxlSignatureCheck

pub unsafe extern "C" fn JpegxlSignatureCheck(
    buf: *const u8,
    len: size_t
) -> JpegxlSignature

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.

  • JPEGXL_SIG_INVALID: no valid signature found for JPEG XL decoding.
  • JPEGXL_SIG_VALID a valid JPEG XL signature was found.
  • JPEGXL_SIG_NOT_ENOUGH_BYTES not enough bytes were passed to determine if a valid signature is there.