pub struct RenditionSpec {
pub name: String,
pub width: u32,
pub height: u32,
pub video_bitrate_bps: u64,
pub codec: CodecId,
}Expand description
One target rendition in an adaptive-bitrate ladder.
Fields§
§name: StringHuman label / variant id (e.g. "720p").
width: u32Target encoded width in pixels (0 = keep source).
height: u32Target encoded height in pixels (0 = keep source).
video_bitrate_bps: u64Target video bitrate in bits/sec.
codec: CodecIdOutput video codec.
Implementations§
Trait Implementations§
Source§impl Clone for RenditionSpec
impl Clone for RenditionSpec
Source§fn clone(&self) -> RenditionSpec
fn clone(&self) -> RenditionSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenditionSpec
impl Debug for RenditionSpec
impl Eq for RenditionSpec
Source§impl PartialEq for RenditionSpec
impl PartialEq for RenditionSpec
Source§fn eq(&self, other: &RenditionSpec) -> bool
fn eq(&self, other: &RenditionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RenditionSpec
Auto Trait Implementations§
impl Freeze for RenditionSpec
impl RefUnwindSafe for RenditionSpec
impl Send for RenditionSpec
impl Sync for RenditionSpec
impl Unpin for RenditionSpec
impl UnsafeUnpin for RenditionSpec
impl UnwindSafe for RenditionSpec
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