pub struct LevelConstraints {
pub max_width: u32,
pub max_height: u32,
pub max_sample_rate: u64,
pub max_bitrate_main: u64,
pub max_bitrate_high: u64,
pub max_ref_frames: u8,
pub max_tile_cols: u8,
pub max_tile_rows: u8,
}Expand description
Constraints imposed by a profile/level combination.
Fields§
§max_width: u32Maximum picture width in pixels.
max_height: u32Maximum picture height in pixels.
max_sample_rate: u64Maximum luma sample rate (samples per second).
max_bitrate_main: u64Maximum bitrate in bits per second for main tier.
max_bitrate_high: u64Maximum bitrate in bits per second for high tier.
max_ref_frames: u8Maximum number of reference frames.
max_tile_cols: u8Maximum number of tile columns.
max_tile_rows: u8Maximum number of tile rows.
Implementations§
Source§impl LevelConstraints
impl LevelConstraints
Sourcepub fn max_bitrate(&self, tier: Tier) -> u64
pub fn max_bitrate(&self, tier: Tier) -> u64
Maximum bitrate for the given tier.
Sourcepub fn max_pixels(&self) -> u64
pub fn max_pixels(&self) -> u64
Maximum total pixel count (width * height).
Trait Implementations§
Source§impl Clone for LevelConstraints
impl Clone for LevelConstraints
Source§fn clone(&self) -> LevelConstraints
fn clone(&self) -> LevelConstraints
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 LevelConstraints
impl RefUnwindSafe for LevelConstraints
impl Send for LevelConstraints
impl Sync for LevelConstraints
impl Unpin for LevelConstraints
impl UnsafeUnpin for LevelConstraints
impl UnwindSafe for LevelConstraints
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