Function libjxl_sys::JxlDecoderGetICCProfileSize[][src]

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

Outputs the size in bytes of the ICC profile returned by 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, 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 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 size variable to output the size into, or NULL to only check the return status. @return JXL_DEC_SUCCESS if the ICC profile is available, 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, JXL_DEC_ERROR in case the ICC profile is not available and cannot be generated.