JxlDecoderGetICCProfileSize

Function JxlDecoderGetICCProfileSize 

Source
pub unsafe extern "C-unwind" fn JxlDecoderGetICCProfileSize(
    dec: *const JxlDecoder,
    target: JxlColorProfileTarget,
    size: *mut usize,
) -> JxlDecoderStatus
Expand 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 object
  • target: 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, or NULL to only check the return status.

§Returns