pub struct EnumColourEncoding {
pub colour_space: ColourSpace,
pub white_point: WhitePoint,
pub primaries: Primaries,
pub tf: TransferFunction,
pub rendering_intent: RenderingIntent,
}
Expand description
“Enum color encoding” represented by JPEG XL enum values.
Fields§
§colour_space: ColourSpace
§white_point: WhitePoint
§primaries: Primaries
§tf: TransferFunction
§rendering_intent: RenderingIntent
Implementations§
Source§impl EnumColourEncoding
impl EnumColourEncoding
Sourcepub fn xyb(rendering_intent: RenderingIntent) -> Self
pub fn xyb(rendering_intent: RenderingIntent) -> Self
Creates an XYB color encoding.
Sourcepub fn srgb(rendering_intent: RenderingIntent) -> Self
pub fn srgb(rendering_intent: RenderingIntent) -> Self
Creates an sRGB color encoding.
Sourcepub fn srgb_gamma22(rendering_intent: RenderingIntent) -> Self
pub fn srgb_gamma22(rendering_intent: RenderingIntent) -> Self
Creates an sRGB color encoding with gamma of 2.2 (instead of sRGB transfer curve).
Sourcepub fn gray_srgb(rendering_intent: RenderingIntent) -> Self
pub fn gray_srgb(rendering_intent: RenderingIntent) -> Self
Creates a grayscale color encoding with white point of D65 and sRGB transfer curve.
Sourcepub fn gray_gamma22(rendering_intent: RenderingIntent) -> Self
pub fn gray_gamma22(rendering_intent: RenderingIntent) -> Self
Creates a grayscale color encoding with white point of D65 and gamma of 2.2.
Sourcepub fn bt709(rendering_intent: RenderingIntent) -> Self
pub fn bt709(rendering_intent: RenderingIntent) -> Self
Creates a BT.709 color encoding.
Sourcepub fn dci_p3(rendering_intent: RenderingIntent) -> Self
pub fn dci_p3(rendering_intent: RenderingIntent) -> Self
Creates a DCI-P3 color encoding.
Sourcepub fn display_p3(rendering_intent: RenderingIntent) -> Self
pub fn display_p3(rendering_intent: RenderingIntent) -> Self
Creates a Display P3 color encoding.
Sourcepub fn display_p3_pq(rendering_intent: RenderingIntent) -> Self
pub fn display_p3_pq(rendering_intent: RenderingIntent) -> Self
Creates a Display P3 color encoding with PQ transfer function.
Sourcepub fn bt2100_pq(rendering_intent: RenderingIntent) -> Self
pub fn bt2100_pq(rendering_intent: RenderingIntent) -> Self
Creates a BT.2100 color encoding with PQ transfer function.
Sourcepub fn bt2100_hlg(rendering_intent: RenderingIntent) -> Self
pub fn bt2100_hlg(rendering_intent: RenderingIntent) -> Self
Creates a BT.2100 color encoding with hybrid log-gamma transfer function.
Source§impl EnumColourEncoding
impl EnumColourEncoding
Sourcepub fn is_srgb(&self) -> bool
pub fn is_srgb(&self) -> bool
Returns whether the color encoding represents the sRGB colorspace.
Sourcepub fn is_srgb_gamut(&self) -> bool
pub fn is_srgb_gamut(&self) -> bool
Returns whether color gamut of the color encoding equals to sRGB (BT.709), and white point equals to D65.
Trait Implementations§
Source§impl Clone for EnumColourEncoding
impl Clone for EnumColourEncoding
Source§fn clone(&self) -> EnumColourEncoding
fn clone(&self) -> EnumColourEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EnumColourEncoding
impl Debug for EnumColourEncoding
Source§impl Default for EnumColourEncoding
impl Default for EnumColourEncoding
Source§fn default() -> EnumColourEncoding
fn default() -> EnumColourEncoding
Auto Trait Implementations§
impl Freeze for EnumColourEncoding
impl RefUnwindSafe for EnumColourEncoding
impl Send for EnumColourEncoding
impl Sync for EnumColourEncoding
impl Unpin for EnumColourEncoding
impl UnwindSafe for EnumColourEncoding
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
Source§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)