pub struct LevelLimit {
pub max_mbps: u32,
pub max_fs: u32,
pub max_dpb_mbs: u32,
pub max_br: u32,
pub max_cpb: u32,
pub max_vmv_r: u32,
pub min_cr: u8,
pub max_mvs_per2mb: Option<NonZeroU8>,
}Expand description
Level limits from Table A-1 of the spec.
Fields§
§max_mbps: u32Maximum macroblock processing rate (macroblocks per second)
max_fs: u32Maximum frame size (in macroblocks)
max_dpb_mbs: u32Maximum decoded picture buffer size (in macroblocks)
max_br: u32Maximum video bitrate (in units of 1000 bits/s or 1200 bits/s depending on profile)
max_cpb: u32Maximum CPB size (in units of 1000 bits or 1200 bits depending on profile)
max_vmv_r: u32Maximum vertical MV component range
min_cr: u8Minimum compression ratio
max_mvs_per2mb: Option<NonZeroU8>Maximum number of motion vectors per two consecutive MBs.
None means no limit (applies to levels below 3.0).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LevelLimit
impl RefUnwindSafe for LevelLimit
impl Send for LevelLimit
impl Sync for LevelLimit
impl Unpin for LevelLimit
impl UnsafeUnpin for LevelLimit
impl UnwindSafe for LevelLimit
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