#[repr(C)]pub struct JxlBlendInfo {
pub blendmode: JxlBlendMode,
pub source: u32,
pub alpha: u32,
pub clamp: JxlBool,
}Expand description
The information about blending the color channels or a single extra channel.
When decoding, if coalescing is enabled (default), this can be ignored and
the blend mode is considered to be JxlBlendMode::Replace.
When encoding, these settings apply to the pixel data given to the encoder.
Fields§
§blendmode: JxlBlendModeBlend mode.
source: u32Reference frame ID to use as the ‘bottom’ layer (0-3).
alpha: u32Which extra channel to use as the ‘alpha’ channel for blend modes
JxlBlendMode::Blend and JxlBlendMode::MULADD.
clamp: JxlBoolClamp values to [0,1] for the purpose of blending.
Trait Implementations§
Source§impl Clone for JxlBlendInfo
impl Clone for JxlBlendInfo
Source§fn clone(&self) -> JxlBlendInfo
fn clone(&self) -> JxlBlendInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JxlBlendInfo
impl RefUnwindSafe for JxlBlendInfo
impl Send for JxlBlendInfo
impl Sync for JxlBlendInfo
impl Unpin for JxlBlendInfo
impl UnwindSafe for JxlBlendInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more