pub struct ProxySource {
pub path: PathBuf,
pub width: u32,
pub height: u32,
}Expand description
A low-resolution proxy substitute for a VideoLayer’s source.
When set on VideoLayer::proxy, frames are decoded from path
instead of the layer’s source, then scaled up to width × height (the
original source resolution) before any other processing. This lets callers
render from small proxy files for speed while producing full-resolution output.
Fields§
§path: PathBufPath to the proxy media file to decode from.
width: u32Original source width, in pixels. Decoded proxy frames are scaled to this.
height: u32Original source height, in pixels. Decoded proxy frames are scaled to this.
Trait Implementations§
Source§impl Clone for ProxySource
impl Clone for ProxySource
Source§fn clone(&self) -> ProxySource
fn clone(&self) -> ProxySource
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 moreAuto Trait Implementations§
impl Freeze for ProxySource
impl RefUnwindSafe for ProxySource
impl Send for ProxySource
impl Sync for ProxySource
impl Unpin for ProxySource
impl UnsafeUnpin for ProxySource
impl UnwindSafe for ProxySource
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