pub unsafe extern "C-unwind" fn JxlDecoderGetICCProfileSize(
dec: *const JxlDecoder,
target: JxlColorProfileTarget,
size: *mut usize,
) -> JxlDecoderStatusExpand description
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 on what is encoded in the codestream.
§Parameters
dec: decoder objecttarget: whether to get the original color profile from the metadata or the color profile of the decoded pixels.size: variable to output the size into, orNULLto only check the return status.
§Returns
JxlDecoderStatus::Successif the ICC profile is availableJxlDecoderStatus::NeedMoreInputif the decoder has not yet received enough input data to determine whether an ICC profile is available or what its size isJxlDecoderStatus::Errorin case the ICC profile is not available and cannot be generated.