pub enum LayerSource {
File(PathBuf),
Lavfi(String),
Text(TextSpec),
Solid(Color),
}Expand description
The source of a composited VideoLayer’s frames.
File/Lavfi are opened via the movie filter (a media file, or a lavfi
filtergraph string via the lavfi demuxer). Text/Solid are generated
inline via the color filter source (and drawtext for text), so they render
without any file or the lavfi demuxer.
Variants§
File(PathBuf)
A media file opened via movie=filename=<path>.
Lavfi(String)
A lavfi filtergraph string opened via movie=<str>:format_name=lavfi.
Text(TextSpec)
A generated text/title layer over a transparent canvas.
Solid(Color)
A generated solid-color fill.
Trait Implementations§
Source§impl Clone for LayerSource
impl Clone for LayerSource
Source§fn clone(&self) -> LayerSource
fn clone(&self) -> LayerSource
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 LayerSource
impl RefUnwindSafe for LayerSource
impl Send for LayerSource
impl Sync for LayerSource
impl Unpin for LayerSource
impl UnsafeUnpin for LayerSource
impl UnwindSafe for LayerSource
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