pub struct ProxyProfile {
pub name: String,
pub width: u32,
pub height: u32,
pub bitrate_kbps: u32,
pub codec: String,
pub frame_rate: f32,
}Expand description
Configuration that describes how a proxy should be encoded.
Fields§
§name: StringHuman-readable name for this profile.
width: u32Output width in pixels.
height: u32Output height in pixels.
bitrate_kbps: u32Target bitrate in kilobits per second.
codec: StringCodec identifier (e.g. “h264”, “vp9”).
frame_rate: f32Target frame rate.
Implementations§
Source§impl ProxyProfile
impl ProxyProfile
Sourcepub fn new(
name: impl Into<String>,
width: u32,
height: u32,
bitrate_kbps: u32,
codec: impl Into<String>,
frame_rate: f32,
) -> Self
pub fn new( name: impl Into<String>, width: u32, height: u32, bitrate_kbps: u32, codec: impl Into<String>, frame_rate: f32, ) -> Self
Create a new proxy profile.
Sourcepub fn offline_edit() -> Self
pub fn offline_edit() -> Self
Standard offline-edit proxy: 1920×1080 H.264 @ 8 000 kbps / 25 fps.
Sourcepub fn web_preview() -> Self
pub fn web_preview() -> Self
Web preview proxy: 1280×720 H.264 @ 2 000 kbps / 25 fps.
Trait Implementations§
Source§impl Clone for ProxyProfile
impl Clone for ProxyProfile
Source§fn clone(&self) -> ProxyProfile
fn clone(&self) -> ProxyProfile
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 ProxyProfile
impl Debug for ProxyProfile
Source§impl PartialEq for ProxyProfile
impl PartialEq for ProxyProfile
impl StructuralPartialEq for ProxyProfile
Auto Trait Implementations§
impl Freeze for ProxyProfile
impl RefUnwindSafe for ProxyProfile
impl Send for ProxyProfile
impl Sync for ProxyProfile
impl Unpin for ProxyProfile
impl UnsafeUnpin for ProxyProfile
impl UnwindSafe for ProxyProfile
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