Function libjxl_sys::JxlDecoderGetExtraChannelName[][src]

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

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.

@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 JXL_DEC_SUCCESS if the value is available, JXL_DEC_NEED_MORE_INPUT if not yet available, JXL_DEC_ERROR in case of other error conditions.