#[non_exhaustive]pub enum TransferPointEncoding {
Bits8,
Bits10,
Bits12,
}Expand description
Bit-depth encoding for transfer characteristic sample points, decoded from
the Transfer Characteristics Block (DisplayID 1.x 0x0E) byte 0 bits 7:6.
The same three encodings are used by the CEA-861 VESA Display Transfer
Characteristic Data Block (standard tag 0x05).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bits8
8 bits per luminance point: one byte per sample, range 0–255.
Bits10
10 bits per luminance point: 5 bytes packed MSB-first per 4 samples, range 0–1023.
Bits12
12 bits per luminance point: 3 bytes packed MSB-first per 2 samples, range 0–4095.
Trait Implementations§
Source§impl Clone for TransferPointEncoding
impl Clone for TransferPointEncoding
Source§fn clone(&self) -> TransferPointEncoding
fn clone(&self) -> TransferPointEncoding
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 TransferPointEncoding
impl Debug for TransferPointEncoding
Source§impl PartialEq for TransferPointEncoding
impl PartialEq for TransferPointEncoding
impl Copy for TransferPointEncoding
impl Eq for TransferPointEncoding
impl StructuralPartialEq for TransferPointEncoding
Auto Trait Implementations§
impl Freeze for TransferPointEncoding
impl RefUnwindSafe for TransferPointEncoding
impl Send for TransferPointEncoding
impl Sync for TransferPointEncoding
impl Unpin for TransferPointEncoding
impl UnsafeUnpin for TransferPointEncoding
impl UnwindSafe for TransferPointEncoding
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