#[non_exhaustive]pub struct FrameInterpretation {
pub geometry: FrameGeometry,
pub subsampling: Subsampling,
pub siting: ChromaSiting,
pub encoding: SampleEncoding,
pub roles: Vec<PlaneRole>,
pub color: ColorClaim,
pub config_epoch: u32,
}Expand description
Everything needed to interpret the samples of one frame. Immutable and
shared through Arc: a configuration change makes a new one, and a frame
keeps the one it was decoded under.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.geometry: FrameGeometryPicture shape.
subsampling: SubsamplingChroma subsampling.
siting: ChromaSitingChroma siting.
encoding: SampleEncodingSample storage and code depth.
roles: Vec<PlaneRole>What each plane holds, in plane order.
color: ColorClaimColour claims.
config_epoch: u32The codec configuration epoch it was decoded under.
Implementations§
Source§impl FrameInterpretation
impl FrameInterpretation
Sourcepub fn new(
geometry: FrameGeometry,
subsampling: Subsampling,
siting: ChromaSiting,
encoding: SampleEncoding,
roles: Vec<PlaneRole>,
) -> FrameInterpretation
pub fn new( geometry: FrameGeometry, subsampling: Subsampling, siting: ChromaSiting, encoding: SampleEncoding, roles: Vec<PlaneRole>, ) -> FrameInterpretation
An interpretation with no colour claims, at epoch 0.
Sourcepub fn with_color(self, color: ColorClaim) -> FrameInterpretation
pub fn with_color(self, color: ColorClaim) -> FrameInterpretation
The colour claims.
Sourcepub fn with_config_epoch(self, epoch: u32) -> FrameInterpretation
pub fn with_config_epoch(self, epoch: u32) -> FrameInterpretation
The configuration epoch.
Trait Implementations§
Source§impl Clone for FrameInterpretation
impl Clone for FrameInterpretation
Source§fn clone(&self) -> FrameInterpretation
fn clone(&self) -> FrameInterpretation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrameInterpretation
impl Debug for FrameInterpretation
impl Eq for FrameInterpretation
Source§impl PartialEq for FrameInterpretation
impl PartialEq for FrameInterpretation
impl StructuralPartialEq for FrameInterpretation
Auto Trait Implementations§
impl Freeze for FrameInterpretation
impl RefUnwindSafe for FrameInterpretation
impl Send for FrameInterpretation
impl Sync for FrameInterpretation
impl Unpin for FrameInterpretation
impl UnsafeUnpin for FrameInterpretation
impl UnwindSafe for FrameInterpretation
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