pub struct ChromaticityPoint12 {
pub x_raw: u16,
pub y_raw: u16,
}Expand description
A single CIE chromaticity coordinate pair encoded as 12-bit fixed-point integers.
Used by DisplayID 2.x block 0x21. Each raw value is in the range 0..4096, representing
a coordinate in [0.0, 1.0) with scale factor 2⁻¹² (divide by 4096 to normalise).
The encoding may use CIE 1931 (x, y) or CIE 1976 (u’, v’) coordinates depending on
the color_space_cie1976 flag in DisplayParamsV2.
Fields§
§x_raw: u16Raw 12-bit x (or u’) value.
y_raw: u16Raw 12-bit y (or v’) value.
Implementations§
Trait Implementations§
Source§impl Clone for ChromaticityPoint12
impl Clone for ChromaticityPoint12
impl Copy for ChromaticityPoint12
Source§impl Debug for ChromaticityPoint12
impl Debug for ChromaticityPoint12
Source§impl Default for ChromaticityPoint12
impl Default for ChromaticityPoint12
impl Eq for ChromaticityPoint12
Source§impl PartialEq for ChromaticityPoint12
impl PartialEq for ChromaticityPoint12
impl StructuralPartialEq for ChromaticityPoint12
Auto Trait Implementations§
impl Freeze for ChromaticityPoint12
impl RefUnwindSafe for ChromaticityPoint12
impl Send for ChromaticityPoint12
impl Sync for ChromaticityPoint12
impl Unpin for ChromaticityPoint12
impl UnsafeUnpin for ChromaticityPoint12
impl UnwindSafe for ChromaticityPoint12
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