#[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: JxlBool,
pub spot_color: [f32; 4],
pub cfa_channel: u32,
}Expand description
Information for a single extra channel.
Fields§
§type: JxlExtraChannelTypeGiven type of an extra channel.
bits_per_sample: u32Total bits per sample for this channel.
exponent_bits_per_sample: u32Floating point exponent bits per channel, or 0 if they are unsigned integer.
dim_shift: u32The 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: u32Length of the extra channel name in bytes, or 0 if no name. Excludes null termination character.
alpha_premultiplied: JxlBoolWhether alpha channel uses premultiplied alpha. Only applicable if
type is JxlExtraChannelType::Alpha.
spot_color: [f32; 4]Spot color of the current spot channel in linear RGBA. Only applicable if
type is JxlExtraChannelType::SpotColor.
cfa_channel: u32Only applicable if type is JxlExtraChannelType::Cfa.
TODO(lode): add comment about the meaning of this field.
Trait Implementations§
Source§impl Clone for JxlExtraChannelInfo
impl Clone for JxlExtraChannelInfo
Source§fn clone(&self) -> JxlExtraChannelInfo
fn clone(&self) -> JxlExtraChannelInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more