pub struct VideoColor {
pub primaries: Option<u8>,
pub transfer: Option<u8>,
pub matrix: Option<u8>,
pub range: Option<ColorRange>,
pub chroma_location: Option<ChromaLocation>,
}Expand description
What a frame’s samples mean as colour, as its stream says it: the code points of ITU-T
H.273, which every codec and every system’s frame carry. None of a value where neither the
stream nor the app said.
Fields§
§primaries: Option<u8>Which red, green and blue: 1 is BT.709, 9 BT.2020, 12 Display P3.
transfer: Option<u8>How samples encode brightness: 1 is BT.709, 13 sRGB, 16 PQ, 18 HLG.
matrix: Option<u8>How brightness and colour mix into red, green and blue: 1 is BT.709, 6 BT.601, 9 BT.2020, 0 none.
range: Option<ColorRange>§chroma_location: Option<ChromaLocation>Implementations§
Source§impl VideoColor
impl VideoColor
Sourcepub const RGB_MATRIX: u8 = 0
pub const RGB_MATRIX: u8 = 0
The matrix of samples that are red, green and blue already.
Trait Implementations§
Source§impl Clone for VideoColor
impl Clone for VideoColor
impl Copy for VideoColor
Source§impl Debug for VideoColor
impl Debug for VideoColor
impl Eq for VideoColor
Source§impl PartialEq for VideoColor
impl PartialEq for VideoColor
impl StructuralPartialEq for VideoColor
Auto Trait Implementations§
impl Forget for VideoColor
impl Freeze for VideoColor
impl Move for VideoColor
impl RefUnwindSafe for VideoColor
impl Send for VideoColor
impl Sync for VideoColor
impl Unpin for VideoColor
impl UnsafeUnpin for VideoColor
impl UnwindSafe for VideoColor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.