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

Outputs ICC profile if available. The profile is only available if @ref JxlDecoderGetICCProfileSize returns success. The output buffer must have at least as many bytes as given by @ref JxlDecoderGetICCProfileSize.

@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 icc_profile buffer to copy the ICC profile into @param size size of the icc_profile buffer in bytes @return @ref JXL_DEC_SUCCESS if the profile was successfully returned is available, @ref JXL_DEC_NEED_MORE_INPUT if not yet available, @ref JXL_DEC_ERROR if the profile doesn’t exist or the output size is not large enough.