pub enum JxlColorEncoding {
RgbColorSpace {
white_point: JxlWhitePoint,
primaries: JxlPrimaries,
transfer_function: JxlTransferFunction,
rendering_intent: RenderingIntent,
},
GrayscaleColorSpace {
white_point: JxlWhitePoint,
transfer_function: JxlTransferFunction,
rendering_intent: RenderingIntent,
},
XYB {
rendering_intent: RenderingIntent,
},
}Variants§
RgbColorSpace
Fields
§
white_point: JxlWhitePoint§
primaries: JxlPrimaries§
transfer_function: JxlTransferFunction§
rendering_intent: RenderingIntentGrayscaleColorSpace
Fields
§
white_point: JxlWhitePoint§
transfer_function: JxlTransferFunction§
rendering_intent: RenderingIntentXYB
Fields
§
rendering_intent: RenderingIntentImplementations§
Source§impl JxlColorEncoding
impl JxlColorEncoding
pub fn from_internal(internal: &ColorEncoding) -> Result<Self>
pub fn get_color_encoding_description(&self) -> String
pub fn maybe_create_profile(&self) -> Result<Option<Vec<u8>>, Error>
pub fn srgb(grayscale: bool) -> Self
Sourcepub fn linear_srgb(grayscale: bool) -> Self
pub fn linear_srgb(grayscale: bool) -> Self
Creates linear sRGB color encoding (sRGB primaries with linear transfer function). This is the fallback output color space for XYB images when the embedded color profile cannot be output to without a CMS.
Sourcepub fn with_linear_tf(&self) -> Self
pub fn with_linear_tf(&self) -> Self
Returns a copy of this encoding with linear transfer function. For XYB encoding, returns linear sRGB as fallback.
Trait Implementations§
Source§impl Clone for JxlColorEncoding
impl Clone for JxlColorEncoding
Source§fn clone(&self) -> JxlColorEncoding
fn clone(&self) -> JxlColorEncoding
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 moreSource§impl Debug for JxlColorEncoding
impl Debug for JxlColorEncoding
Source§impl Display for JxlColorEncoding
impl Display for JxlColorEncoding
Source§impl PartialEq for JxlColorEncoding
impl PartialEq for JxlColorEncoding
impl StructuralPartialEq for JxlColorEncoding
Auto Trait Implementations§
impl Freeze for JxlColorEncoding
impl RefUnwindSafe for JxlColorEncoding
impl Send for JxlColorEncoding
impl Sync for JxlColorEncoding
impl Unpin for JxlColorEncoding
impl UnsafeUnpin for JxlColorEncoding
impl UnwindSafe for JxlColorEncoding
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