[][src]Function jpegxl_sys::JpegxlDecoderGetICCProfile

pub unsafe extern "C" fn JpegxlDecoderGetICCProfile(
    dec: *const JpegxlDecoder,
    icc_profile: *mut u8,
    size: size_t
) -> JpegxlDecoderStatus

Outputs ICC profile. The output buffer should have enough bytes allocated to contain the icc_size given in the JpegxlColorEncoding.

@param dec decoder object @param icc_profile buffer to copy the ICC profile into @param size size of the icc_profile buffer in bytes @return JPEGXL_DEC_SUCCESS if the value is available, JPEGXL_DEC_NEED_MORE_INPUT if not yet available, JPEGXL_DEC_ERROR in case of other error conditions.