Struct matroska_demuxer::Colour
source · pub struct Colour { /* private fields */ }
Expand description
Settings describing the colour format.
Implementations§
source§impl Colour
impl Colour
sourcepub fn matrix_coefficients(&self) -> Option<MatrixCoefficients>
pub fn matrix_coefficients(&self) -> Option<MatrixCoefficients>
The matrix coefficients of the video used to derive luma and chroma values from red, green, and blue color primaries.
sourcepub fn bits_per_channel(&self) -> Option<u64>
pub fn bits_per_channel(&self) -> Option<u64>
Number of decoded bits per channel.
sourcepub fn chroma_subsampling_horz(&self) -> Option<u64>
pub fn chroma_subsampling_horz(&self) -> Option<u64>
The amount of pixels to remove in the Cr and Cb channels for every pixel not removed horizontally.
sourcepub fn chroma_subsampling_vert(&self) -> Option<u64>
pub fn chroma_subsampling_vert(&self) -> Option<u64>
The amount of pixels to remove in the Cr and Cb channels for every pixel not removed vertically.
sourcepub fn cb_subsampling_horz(&self) -> Option<u64>
pub fn cb_subsampling_horz(&self) -> Option<u64>
The amount of pixels to remove in the Cb channel for every pixel not removed horizontally.
sourcepub fn cb_subsampling_vert(&self) -> Option<u64>
pub fn cb_subsampling_vert(&self) -> Option<u64>
The amount of pixels to remove in the Cb channel for every pixel not removed vertically.
sourcepub fn chroma_sitting_horz(&self) -> Option<ChromaSitingHorz>
pub fn chroma_sitting_horz(&self) -> Option<ChromaSitingHorz>
How chroma is sub sampled horizontally.
sourcepub fn chroma_sitting_vert(&self) -> Option<ChromaSitingVert>
pub fn chroma_sitting_vert(&self) -> Option<ChromaSitingVert>
How chroma is sub sampled vertically.
sourcepub fn transfer_characteristics(&self) -> Option<TransferCharacteristics>
pub fn transfer_characteristics(&self) -> Option<TransferCharacteristics>
The transfer characteristics of the video.
sourcepub fn mastering_metadata(&self) -> Option<&MasteringMetadata>
pub fn mastering_metadata(&self) -> Option<&MasteringMetadata>
SMPTE 2086 mastering data.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Colour
impl Send for Colour
impl Sync for Colour
impl Unpin for Colour
impl UnwindSafe for Colour
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