Skip to main content

CompositionChannelInfoInterop

Struct CompositionChannelInfoInterop 

Source
#[repr(C, packed(4))]
pub struct CompositionChannelInfoInterop { pub weight: f32, pub enable_tinting: c_uchar, pub tinting_color_r: c_uchar, pub tinting_color_g: c_uchar, pub tinting_color_b: c_uchar, pub black_point: f32, pub white_point: f32, pub look_up_table_element_count: c_int, pub ptr_look_up_table: *mut c_uchar, }
Expand description

This structure gathers all information about a channel for the purpose of multi-channel-composition.

Fields§

§weight: f32

< The weight of the channel in the composition.

§enable_tinting: c_uchar

True if tinting is enabled for this channel (in which case the tinting member is to be examined), false if no tinting is to be applied (the tinting member is then not used).

§tinting_color_r: c_uchar

The tinting color (only examined if enableTinting is true). This is the red-component.

§tinting_color_g: c_uchar

The tinting color (only examined if enableTinting is true). This is the green-component.

§tinting_color_b: c_uchar

The tinting color (only examined if enableTinting is true). This is the blue-component.

§black_point: f32

The black point - it is a float between 0 and 1, where 0 corresponds to the lowest pixel value (of the pixel-type for the channel) and 1 to the highest pixel value (of the pixel-type of this channel). All pixel values below the black point are mapped to 0.

§white_point: f32

The white point - it is a float between 0 and 1, where 0 corresponds to the lowest pixel value (of the pixel-type for the channel) and 1 to the highest pixel value (of the pixel-type of this channel). All pixel value above the white pointer are mapped to the highest pixel value.

§look_up_table_element_count: c_int

Number of elements in the look-up table. If 0, then the look-up table is not used. If this channelInfo applies to a Gray8/Bgr24-channel, then the size of the look-up table must be 256. In case of a Gray16/Bgr48-channel, the size must be 65536. \remark If a look-up table is provided, then \c blackPoint and \c whitePoint are not used anymore .

§ptr_look_up_table: *mut c_uchar

The pointer to the look-up table. If the property ‘look_up_table_element_count’ is <> 0, then this pointer must be valid.

Trait Implementations§

Source§

impl Clone for CompositionChannelInfoInterop

Source§

fn clone(&self) -> CompositionChannelInfoInterop

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CompositionChannelInfoInterop

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for CompositionChannelInfoInterop

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.