pub unsafe extern "C" 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 @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.

  • @ref JXL_SIG_NOT_ENOUGH_BYTES if not enough bytes were passed to determine if a valid signature is there.
  • @ref JXL_SIG_INVALID if no valid signature found for JPEG XL decoding.
  • @ref JXL_SIG_CODESTREAM if a valid JPEG XL codestream signature was found.
  • @ref JXL_SIG_CONTAINER if a valid JPEG XL container signature was found.