Struct libjxl_sys::JxlExtraChannelInfo
source · [−]#[repr(C)]pub struct JxlExtraChannelInfo {
pub type_: JxlExtraChannelType,
pub bits_per_sample: u32,
pub exponent_bits_per_sample: u32,
pub dim_shift: u32,
pub name_length: u32,
pub alpha_premultiplied: c_int,
pub spot_color: [f32; 4],
pub cfa_channel: u32,
}
Expand description
Information for a single extra channel.
Fields
type_: JxlExtraChannelType
Given type of an extra channel.
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_premultiplied: c_int
Whether alpha channel uses premultiplied alpha. Only applicable if type is JXL_CHANNEL_ALPHA.
spot_color: [f32; 4]
Spot color of the current spot channel in linear RGBA. Only applicable if type is JXL_CHANNEL_SPOT_COLOR.
cfa_channel: u32
Only applicable if type is JXL_CHANNEL_CFA. TODO(lode): add comment about the meaning of this field.
Trait Implementations
sourceimpl Clone for JxlExtraChannelInfo
impl Clone for JxlExtraChannelInfo
sourcefn clone(&self) -> JxlExtraChannelInfo
fn clone(&self) -> JxlExtraChannelInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JxlExtraChannelInfo
impl Debug for JxlExtraChannelInfo
sourceimpl Default for JxlExtraChannelInfo
impl Default for JxlExtraChannelInfo
impl Copy for JxlExtraChannelInfo
Auto Trait Implementations
impl RefUnwindSafe for JxlExtraChannelInfo
impl Send for JxlExtraChannelInfo
impl Sync for JxlExtraChannelInfo
impl Unpin for JxlExtraChannelInfo
impl UnwindSafe for JxlExtraChannelInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more