pub struct SequenceFacts {
pub crop: CropWindow,
pub chroma_format: u32,
pub bit_depth_luma: u32,
pub bit_depth_chroma: u32,
pub vui: Vui,
}Expand description
What one SPS declares.
Fields§
§crop: CropWindowThe coded size and crop.
chroma_format: u32chroma_format_idc: 0 monochrome, 1 4:2:0, 2 4:2:2, 3 4:4:4.
bit_depth_luma: u32Luma bits per sample.
bit_depth_chroma: u32Chroma bits per sample.
vui: VuiThe VUI; empty when absent or unreadable.
Implementations§
Source§impl SequenceFacts
impl SequenceFacts
Sourcepub fn chroma_location(&self) -> Option<ChromaLocation>
pub fn chroma_location(&self) -> Option<ChromaLocation>
The chroma siting frames have: the VUI’s, else the 4:2:0 default both codecs infer (type 0, left).
Trait Implementations§
Source§impl Clone for SequenceFacts
impl Clone for SequenceFacts
impl Copy for SequenceFacts
Source§impl Debug for SequenceFacts
impl Debug for SequenceFacts
Source§impl Default for SequenceFacts
impl Default for SequenceFacts
impl Eq for SequenceFacts
Source§impl PartialEq for SequenceFacts
impl PartialEq for SequenceFacts
impl StructuralPartialEq for SequenceFacts
Auto Trait Implementations§
impl Forget for SequenceFacts
impl Freeze for SequenceFacts
impl Move for SequenceFacts
impl RefUnwindSafe for SequenceFacts
impl Send for SequenceFacts
impl Sync for SequenceFacts
impl Unpin for SequenceFacts
impl UnsafeUnpin for SequenceFacts
impl UnwindSafe for SequenceFacts
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