pub struct Vp9Format {
pub profile: u8,
pub bit_depth: u8,
pub subsampling: (bool, bool),
pub color_space: u8,
pub full_range: bool,
pub width: u32,
pub height: u32,
}Expand description
The picture format a VP9 key frame or intra-only frame declares in its uncompressed header (VP9 bitstream 6.2).
Fields§
§profile: u8The profile, 0 to 3.
bit_depth: u8Bits per sample: 8 for profiles 0 and 1, 10 or 12 for profiles 2 and 3.
subsampling: (bool, bool)subsampling_x and subsampling_y: (true, true) is 4:2:0, (true, false) 4:2:2.
color_space: u8color_space (VP9 7.2.2): 1 BT.601, 2 BT.709, 3 SMPTE 170, 4 SMPTE 240, 5 BT.2020, 7 RGB.
full_range: boolcolor_range: full range when set.
width: u32Frame width in luma samples.
height: u32Frame height in luma samples.
Implementations§
Source§impl Vp9Format
impl Vp9Format
Sourcepub fn vpcc_record(&self, color: Option<ColorMetadata>) -> [u8; 12]
pub fn vpcc_record(&self, color: Option<ColorMetadata>) -> [u8; 12]
A vpcC body (VP Codec ISO Media File Format Binding 2.2, version 1) for a stream of
this format. The color codes are color’s when the container declares one, else what
color_space implies, and the level is the lowest whose picture size holds the frame.
Trait Implementations§
impl Copy for Vp9Format
impl Eq for Vp9Format
impl StructuralPartialEq for Vp9Format
Auto Trait Implementations§
impl Forget for Vp9Format
impl Freeze for Vp9Format
impl Move for Vp9Format
impl RefUnwindSafe for Vp9Format
impl Send for Vp9Format
impl Sync for Vp9Format
impl Unpin for Vp9Format
impl UnsafeUnpin for Vp9Format
impl UnwindSafe for Vp9Format
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more