pub struct ColorConfig {
pub bit_depth: Option<f64>,
pub color_primaries: Option<f64>,
pub transfer_characteristics: Option<f64>,
pub matrix_coefficients: Option<f64>,
}Expand description
colorConfig sub-object of ColorInfo. Bit depth plus the three
ITU-T H.273 / ISO-IEC 23091-4 enumeration indices (colour primaries,
transfer characteristics, matrix coefficients). Stored as Option<f64>
to round-trip a partial object byte-for-byte; use ColorConfig::is_empty
to detect the all-absent case.
Fields§
§bit_depth: Option<f64>Bits per colour channel. SHOULD be 8, 10 or 12.
color_primaries: Option<f64>Colour primaries — H.273 “Colour primaries” table index [0-255].
transfer_characteristics: Option<f64>Transfer characteristics — H.273 table index [0-255] (e.g. PQ, HLG).
matrix_coefficients: Option<f64>Matrix coefficients — H.273 table index [0-255].
Implementations§
Trait Implementations§
Source§impl Clone for ColorConfig
impl Clone for ColorConfig
Source§fn clone(&self) -> ColorConfig
fn clone(&self) -> ColorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorConfig
Source§impl Debug for ColorConfig
impl Debug for ColorConfig
Source§impl Default for ColorConfig
impl Default for ColorConfig
Source§fn default() -> ColorConfig
fn default() -> ColorConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for ColorConfig
impl PartialEq for ColorConfig
Source§fn eq(&self, other: &ColorConfig) -> bool
fn eq(&self, other: &ColorConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColorConfig
Auto Trait Implementations§
impl Freeze for ColorConfig
impl RefUnwindSafe for ColorConfig
impl Send for ColorConfig
impl Sync for ColorConfig
impl Unpin for ColorConfig
impl UnsafeUnpin for ColorConfig
impl UnwindSafe for ColorConfig
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