Function libjxl_sys::JxlDecoderGetColorAsICCProfile [−][src]
pub unsafe extern "C" fn JxlDecoderGetColorAsICCProfile(
dec: *const JxlDecoder,
format: *const JxlPixelFormat,
target: JxlColorProfileTarget,
icc_profile: *mut u8,
size: usize
) -> JxlDecoderStatus
Outputs ICC profile if available. The profile is only available if JxlDecoderGetICCProfileSize returns success. The output buffer must have at least as many bytes as given by JxlDecoderGetICCProfileSize.
@param dec decoder object @param format pixel format to output the data to. Only used for JXL_COLOR_PROFILE_TARGET_DATA, may be nullptr 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 JXL_DEC_SUCCESS if the profile was successfully returned is available, JXL_DEC_NEED_MORE_INPUT if not yet available, JXL_DEC_ERROR if the profile doesn’t exist or the output size is not large enough.