JxlDecoderGetExtraChannelName

Function JxlDecoderGetExtraChannelName 

Source
pub unsafe extern "C-unwind" fn JxlDecoderGetExtraChannelName(
    dec: *const JxlDecoder,
    index: usize,
    name: *mut c_char,
    size: usize,
) -> JxlDecoderStatus
Expand description

Outputs name for extra channel at the given index in UTF-8. The index must be smaller than num_extra_channels in the associated JxlBasicInfo. The buffer for name must have at least name_length + 1 bytes allocated, gotten from the associated JxlExtraChannelInfo.

§Parameters

  • dec: decoder object
  • index: index of the extra channel to query.
  • name: buffer to copy the name into
  • size: size of the name buffer in bytes

§Returns