pub unsafe extern "C-unwind" fn JxlDecoderExtraChannelBufferSize(
dec: *const JxlDecoder,
format: *const JxlPixelFormat,
size: *mut usize,
index: u32,
) -> JxlDecoderStatusExpand description
Returns the minimum size in bytes of an extra channel pixel buffer for the
given format. This is the buffer for JxlDecoderSetExtraChannelBuffer.
Requires the basic image information is available in the decoder.
§Parameters
dec: decoder objectformat: format of the pixels. Thenum_channelsvalue is ignored and is always treated to be1.size: output value, buffer size in bytesindex: which extra channel to get, matching the index used inJxlDecoderGetExtraChannelInfo. Must be smaller thannum_extra_channelsin the associatedJxlBasicInfo.
§Returns
JxlDecoderStatus::Successon successJxlDecoderStatus::Erroron error, such as information not available yet or invalid index.