pub unsafe extern "C" fn JxlDecoderGetICCProfileSize(
    dec: *const JxlDecoder,
    format: *const JxlPixelFormat,
    target: JxlColorProfileTarget,
    size: *mut usize
) -> JxlDecoderStatus
Expand description

Outputs the size in bytes of the ICC profile returned by @ref JxlDecoderGetColorAsICCProfile, if available, or indicates there is none available. In most cases, the image will have an ICC profile available, but if it does not, @ref JxlDecoderGetColorAsEncodedProfile must be used instead.

@see JxlDecoderGetColorAsEncodedProfile for more information. The ICC profile is either the exact ICC profile attached to the codestream metadata, or a close approximation generated from JPEG XL encoded structured data, depending of what is encoded in the codestream.

@param dec decoder object @param format pixel format to output the data to. Only used for @ref JXL_COLOR_PROFILE_TARGET_DATA, may be NULL otherwise. @param target whether to get the original color profile from the metadata or the color profile of the decoded pixels. @param size variable to output the size into, or NULL to only check the return status. @return @ref JXL_DEC_SUCCESS if the ICC profile is available, @ref JXL_DEC_NEED_MORE_INPUT if the decoder has not yet received enough input data to determine whether an ICC profile is available or what its size is, @ref JXL_DEC_ERROR in case the ICC profile is not available and cannot be generated.