pub enum H264Level {
Show 20 variants
L1_0,
L1b,
L1_1,
L1_2,
L1_3,
L2_0,
L2_1,
L2_2,
L3_0,
L3_1,
L3_2,
L4_0,
L4_1,
L4_2,
L5_0,
L5_1,
L5_2,
L6_0,
L6_1,
L6_2,
}Expand description
H.264 level (ITU-T H.264 Table A-1).
Variants§
Implementations§
Source§impl H264Level
impl H264Level
Sourcepub fn lowest_for(
profile: H264Profile,
width: u32,
height: u32,
frame_rate: f64,
bps: u32,
) -> Option<Self>
pub fn lowest_for( profile: H264Profile, width: u32, height: u32, frame_rate: f64, bps: u32, ) -> Option<Self>
The lowest level whose frame size, frame dimension, macroblock rate
and bitrate limits cover a widthxheight stream at frame_rate and
bps in profile, or None when even level 6.2 does not.
Trait Implementations§
impl Copy for H264Level
impl Eq for H264Level
Source§impl Ord for H264Level
impl Ord for H264Level
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for H264Level
impl PartialOrd for H264Level
impl StructuralPartialEq for H264Level
Auto Trait Implementations§
impl Freeze for H264Level
impl RefUnwindSafe for H264Level
impl Send for H264Level
impl Sync for H264Level
impl Unpin for H264Level
impl UnsafeUnpin for H264Level
impl UnwindSafe for H264Level
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