pub struct OperatingPoint {
pub idc: u16,
pub temporal_id: u8,
pub spatial_id: u8,
pub level: u8,
pub tier: u8,
pub cumulative_bitrate_fraction: f32,
pub cumulative_framerate_fraction: f32,
}Expand description
An AV1 operating point defined by temporal+spatial layer combination.
Fields§
§idc: u16Operating point IDC bitmask (bits 0-7: temporal, bits 8-11: spatial).
temporal_id: u8Maximum temporal ID included.
spatial_id: u8Maximum spatial ID included.
level: u8AV1 level index for this operating point.
tier: u8Tier (0 = Main, 1 = High).
cumulative_bitrate_fraction: f32Cumulative bitrate fraction up to this temporal layer.
cumulative_framerate_fraction: f32Cumulative framerate fraction at this temporal layer.
Implementations§
Source§impl OperatingPoint
impl OperatingPoint
Sourcepub fn compute_idc(max_temporal_id: u8, max_spatial_id: u8) -> u16
pub fn compute_idc(max_temporal_id: u8, max_spatial_id: u8) -> u16
Get the operating point IDC for a given temporal and spatial layer set.
Sourcepub fn includes_temporal(&self, temporal_id: u8) -> bool
pub fn includes_temporal(&self, temporal_id: u8) -> bool
Check if this operating point includes a given temporal layer.
Sourcepub fn includes_spatial(&self, spatial_id: u8) -> bool
pub fn includes_spatial(&self, spatial_id: u8) -> bool
Check if this operating point includes a given spatial layer.
Trait Implementations§
Source§impl Clone for OperatingPoint
impl Clone for OperatingPoint
Source§fn clone(&self) -> OperatingPoint
fn clone(&self) -> OperatingPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OperatingPoint
impl RefUnwindSafe for OperatingPoint
impl Send for OperatingPoint
impl Sync for OperatingPoint
impl Unpin for OperatingPoint
impl UnsafeUnpin for OperatingPoint
impl UnwindSafe for OperatingPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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