Skip to main content

libCZI_CompositorFillOutCompositionChannelInfoInterop

Function libCZI_CompositorFillOutCompositionChannelInfoInterop 

Source
pub unsafe extern "C" fn libCZI_CompositorFillOutCompositionChannelInfoInterop(
    display_settings_handle: DisplaySettingsHandle,
    channel_index: c_int,
    sixteen_or_eight_bits_lut: bool,
    composition_channel_info_interop: *mut CompositionChannelInfoInterop,
) -> LibCZIApiErrorCode
Expand description

Given a display-settings object and the channel-number, this function fills out the composition-channel-information which is needed for the multi-channel-composition. Note that in the returned ‘CompositionChannelInfoInterop’ structure, the ‘lut’ field is a pointer to the LUT-data, which must be freed with ‘libCZI_Free’ by the caller.

\param display_settings_handle The display settings handle. \param channel_index The channel-index (referring to the display settings object) we are concerned with. \param sixteen_or_eight_bits_lut True for generating a 16-bit LUT; if false, then an 8-bit LUT is generated. \param [out] composition_channel_info_interop The composition channel information is put here.

\returns An error-code indicating success or failure of the operation.