[][src]Function jpegxl_sys::JpegxlDecoderGetExtraChannelName

pub unsafe extern "C" fn JpegxlDecoderGetExtraChannelName(
    dec: *const JpegxlDecoder,
    index: size_t,
    name: *mut c_char,
    size: size_t
) -> JpegxlDecoderStatus

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

@param dec decoder object @param index index of the extra channel to query. @param name buffer to copy the name into @param size size of the name buffer in bytes @return JPEGXL_DEC_SUCCESS if the value is available, JPEGXL_DEC_NEED_MORE_INPUT if not yet available, JPEGXL_DEC_ERROR in case of other error conditions.