pub struct MetadataColorInfoColorConfig {
pub bit_depth: Option<f64>,
pub color_primaries: Option<f64>,
pub transfer_characteristics: Option<f64>,
pub matrix_coefficients: Option<f64>,
}
Expand description
Color configuration metadata.
colorPrimaries
,transferCharacteristics
andmatrixCoefficients
are defined in ISO/IEC 23091-4/ITU-T H.273. The values are an index into respective tables which are described in “Colour primaries”, “Transfer characteristics” and “Matrix coefficients” sections. It is RECOMMENDED to provide these values.
Fields§
§bit_depth: Option<f64>
Number of bits used to record the color channels for each pixel.
SHOULD be 8, 10 or 12
color_primaries: Option<f64>
Indicates the chromaticity coordinates of the source color primaries.
enumeration [0-255]
transfer_characteristics: Option<f64>
Opto-electronic transfer characteristic function (e.g., PQ, HLG).
enumeration [0-255]
matrix_coefficients: Option<f64>
Matrix coefficients used in deriving luma and chroma signals.
enumeration [0-255]
Trait Implementations§
Source§impl Clone for MetadataColorInfoColorConfig
impl Clone for MetadataColorInfoColorConfig
Source§fn clone(&self) -> MetadataColorInfoColorConfig
fn clone(&self) -> MetadataColorInfoColorConfig
Returns a copy 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 MetadataColorInfoColorConfig
impl Debug for MetadataColorInfoColorConfig
Source§impl<'de> Deserialize<'de> for MetadataColorInfoColorConfig
impl<'de> Deserialize<'de> for MetadataColorInfoColorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MetadataColorInfoColorConfig
impl PartialEq for MetadataColorInfoColorConfig
Source§fn eq(&self, other: &MetadataColorInfoColorConfig) -> bool
fn eq(&self, other: &MetadataColorInfoColorConfig) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MetadataColorInfoColorConfig
Auto Trait Implementations§
impl Freeze for MetadataColorInfoColorConfig
impl RefUnwindSafe for MetadataColorInfoColorConfig
impl Send for MetadataColorInfoColorConfig
impl Sync for MetadataColorInfoColorConfig
impl Unpin for MetadataColorInfoColorConfig
impl UnwindSafe for MetadataColorInfoColorConfig
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