pub enum Source {
Video(PathBuf),
Still(PathBuf),
Solid(Track<[f64; 4]>),
Text {
params: Map<String, Value>,
dir: PathBuf,
},
Comp(Box<Comp>),
}Expand description
What a layer shows.
Variants§
Video(PathBuf)
A video file (relative paths are resolved against the comp file’s directory).
Still(PathBuf)
A still picture (PNG, JPEG, WebP, HEIC, …), decoded once through libav.
Solid(Track<[f64; 4]>)
A colour, [r, g, b, a] sRGB 0..1; the alpha multiplies the opacity.
Text
ffcine.text parameters (docs/text.md); font files resolve against dir.
Comp(Box<Comp>)
A nested comp, its canvas defaulted from the layer and its parent.
Trait Implementations§
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Forget for Source
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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