pub struct Rendition {
pub width: u32,
pub height: u32,
pub bitrate: u64,
}Expand description
A single resolution/bitrate rendition in an ABR ladder.
Each Rendition describes one quality level that the player can switch
between based on available bandwidth.
§Examples
use ff_stream::Rendition;
let r = Rendition::new(1280, 720, 3_000_000);
assert_eq!(r.width, 1280);
assert_eq!(r.bitrate, 3_000_000);Fields§
§width: u32Output width in pixels.
height: u32Output height in pixels.
bitrate: u64Target bitrate in bits per second.
Implementations§
Trait Implementations§
impl Copy for Rendition
impl StructuralPartialEq for Rendition
Auto Trait Implementations§
impl Freeze for Rendition
impl RefUnwindSafe for Rendition
impl Send for Rendition
impl Sync for Rendition
impl Unpin for Rendition
impl UnsafeUnpin for Rendition
impl UnwindSafe for Rendition
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