pub enum ProxyResolution {
Half,
Quarter,
Eighth,
}Expand description
Output resolution for a proxy file, expressed as a fraction of the source.
The target dimensions are computed as (src / divisor) & !1 — divided by
the factor and rounded down to the nearest even number so that video codecs
do not reject odd dimensions.
| Variant | Divisor | 1920×1080 → |
|---|---|---|
Half | 2 | 960×540 |
Quarter | 4 | 480×270 |
Eighth | 8 | 240×136 |
Variants§
Half
1/2 of the original dimensions (e.g. 1920×1080 → 960×540).
Quarter
1/4 of the original dimensions (e.g. 1920×1080 → 480×270).
Eighth
1/8 of the original dimensions (e.g. 1920×1080 → 240×136).
Trait Implementations§
Source§impl Clone for ProxyResolution
impl Clone for ProxyResolution
Source§fn clone(&self) -> ProxyResolution
fn clone(&self) -> ProxyResolution
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 moreimpl Copy for ProxyResolution
Source§impl Debug for ProxyResolution
impl Debug for ProxyResolution
impl Eq for ProxyResolution
Source§impl PartialEq for ProxyResolution
impl PartialEq for ProxyResolution
Source§fn eq(&self, other: &ProxyResolution) -> bool
fn eq(&self, other: &ProxyResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProxyResolution
Auto Trait Implementations§
impl Freeze for ProxyResolution
impl RefUnwindSafe for ProxyResolution
impl Send for ProxyResolution
impl Sync for ProxyResolution
impl Unpin for ProxyResolution
impl UnsafeUnpin for ProxyResolution
impl UnwindSafe for ProxyResolution
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