pub struct AbrLadderGenerator;Expand description
Generator for ABR ladders targeting specific resolutions and codecs.
Implementations§
Source§impl AbrLadderGenerator
impl AbrLadderGenerator
Sourcepub fn generate(&self, target_resolution: (u32, u32), codec: &str) -> AbrLadder
pub fn generate(&self, target_resolution: (u32, u32), codec: &str) -> AbrLadder
Generates a Netflix-style ABR ladder for the given target resolution and codec.
Standard ladder: 1080p/8000, 720p/4500, 540p/2000, 360p/800, 240p/300 kbps. Only renditions at or below the target resolution are included.
Trait Implementations§
Source§impl Clone for AbrLadderGenerator
impl Clone for AbrLadderGenerator
Source§fn clone(&self) -> AbrLadderGenerator
fn clone(&self) -> AbrLadderGenerator
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 moreSource§impl Debug for AbrLadderGenerator
impl Debug for AbrLadderGenerator
Source§impl Default for AbrLadderGenerator
impl Default for AbrLadderGenerator
Source§fn default() -> AbrLadderGenerator
fn default() -> AbrLadderGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AbrLadderGenerator
impl RefUnwindSafe for AbrLadderGenerator
impl Send for AbrLadderGenerator
impl Sync for AbrLadderGenerator
impl Unpin for AbrLadderGenerator
impl UnsafeUnpin for AbrLadderGenerator
impl UnwindSafe for AbrLadderGenerator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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