pub struct Av1Level {
pub level: u8,
pub max_pic_size: u64,
pub max_h_size: u32,
pub max_v_size: u32,
pub max_display_rate: u64,
pub max_bitrate_mbps: u32,
}Expand description
An entry in the AV1 level table.
Level numbers are encoded as major * 10 + minor; e.g., level 5.1 is
encoded as 51. The table is derived from the AV1 specification,
Annex A.
Fields§
§level: u8Level code: major * 10 + minor. Level 4.0 → 40, 6.3 → 63.
max_pic_size: u64Maximum picture size in pixels (width × height).
max_h_size: u32Maximum horizontal picture dimension in pixels.
max_v_size: u32Maximum vertical picture dimension in pixels.
max_display_rate: u64Maximum display sample rate in samples per second.
max_bitrate_mbps: u32Maximum bitrate in Mbps (megabits per second).
Implementations§
Source§impl Av1Level
impl Av1Level
Sourcepub fn from_code(code: u8) -> Option<Self>
pub fn from_code(code: u8) -> Option<Self>
Return the AV1 level entry for the given code (e.g., 20 = level 2.0).
Returns None if the code does not correspond to a defined level.
Trait Implementations§
impl Eq for Av1Level
impl StructuralPartialEq for Av1Level
Auto Trait Implementations§
impl Freeze for Av1Level
impl RefUnwindSafe for Av1Level
impl Send for Av1Level
impl Sync for Av1Level
impl Unpin for Av1Level
impl UnsafeUnpin for Av1Level
impl UnwindSafe for Av1Level
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