[−][src]Struct jpegxl_sys::JpegxlExtraChannelInfo
Information for a single extra channel.
Fields
type_: JpegxlExtraChannelType
Given type of an extra channel.
next_frame_base: JpegxlFrameBase
Base for next frame
blend_mode: JpegxlBlendMode
Blend mode for next frame
bits_per_sample: u32
Total bits per sample for this channel.
exponent_bits_per_sample: u32
Floating point exponent bits per channel, or 0 if they are unsigned integer.
dim_shift: u32
The exponent the channel is downsampled by on each axis. TODO(lode): expand this comment to match the JPEG XL specification, specify how to upscale, how to round the size computation, and to which extra channels this field applies.
name_length: u32
Length of the extra channel name in bytes, or 0 if no name. Excludes null termination character.
alpha_associated: c_int
Whether alpha channel uses premultiplied alpha. Only applicable if type is JPEGXL_CHANNEL_ALPHA.
spot_color: [f32; 4]
Spot color of the current spot channel in linear RGBA. Only applicable if type is JPEGXL_CHANNEL_SPOT_COLOR.
cfa_channel: u32
Only applicable if type is JPEGXL_CHANNEL_CFA. TODO(lode): add comment about the meaning of this field.
Trait Implementations
impl Clone for JpegxlExtraChannelInfo
[src]
fn clone(&self) -> JpegxlExtraChannelInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for JpegxlExtraChannelInfo
[src]
impl Debug for JpegxlExtraChannelInfo
[src]
impl NewUninit for JpegxlExtraChannelInfo
[src]
fn new_uninit() -> MaybeUninit<Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for JpegxlExtraChannelInfo
impl Send for JpegxlExtraChannelInfo
impl Sync for JpegxlExtraChannelInfo
impl Unpin for JpegxlExtraChannelInfo
impl UnwindSafe for JpegxlExtraChannelInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,