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) -> EnumColourEncoding
pub fn xyb(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates an XYB color encoding.
sourcepub fn srgb(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn srgb(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates an sRGB color encoding.
sourcepub fn srgb_gamma22(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn srgb_gamma22(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates an sRGB color encoding with gamma of 2.2 (instead of sRGB transfer curve).
sourcepub fn gray_srgb(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn gray_srgb(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates a grayscale color encoding with white point of D65 and sRGB transfer curve.
sourcepub fn gray_gamma22(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn gray_gamma22(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates a grayscale color encoding with white point of D65 and gamma of 2.2.
sourcepub fn bt709(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn bt709(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates a BT.709 color encoding.
sourcepub fn dci_p3(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn dci_p3(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates a DCI-P3 color encoding.
sourcepub fn display_p3(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn display_p3(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates a Display P3 color encoding.
sourcepub fn display_p3_pq(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn display_p3_pq(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates a Display P3 color encoding with PQ transfer function.
sourcepub fn bt2100_pq(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn bt2100_pq(rendering_intent: RenderingIntent) -> EnumColourEncoding
Creates a BT.2100 color encoding with PQ transfer function.
sourcepub fn bt2100_hlg(rendering_intent: RenderingIntent) -> EnumColourEncoding
pub fn bt2100_hlg(rendering_intent: RenderingIntent) -> EnumColourEncoding
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
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more