pub struct Finish {
pub vignette: f64,
pub darken: f64,
pub fade_in: f64,
pub fade_out: f64,
pub fade_colour: [f64; 3],
pub flash: Option<(f64, Vec<f64>)>,
}Expand description
Per-shot finishing after the grade (render.py’s post filters).
Fields§
§vignette: f64ffcine.fx.vignette/1 amount; ffmpeg’s vignette angle is amount · π/2.
darken: f64ffcine.fx.darken/1 amount: RGB multiplier.
fade_in: f64ffcine.fx.fade/1: seconds from / to fade_colour at the clip’s start / end.
fade_out: f64§fade_colour: [f64; 3]§flash: Option<(f64, Vec<f64>)>ffcine.fx.flash/1: at seconds from the clip’s first frame, then one lift per frame.
Implementations§
Source§impl Finish
impl Finish
Sourcepub fn add(&mut self, schema: (&str, u32), m: &Map<String, Value>) -> bool
pub fn add(&mut self, schema: (&str, u32), m: &Map<String, Value>) -> bool
Folds one effect’s metadata.ffcine into the finish; false if schema isn’t one.
pub fn is_identity(&self) -> bool
Sourcepub fn is_timed(&self) -> bool
pub fn is_timed(&self) -> bool
Whether the result depends on where a piece sits in its clip (fades, flash).
Sourcepub fn tracks(
&self,
at: i64,
n: i64,
len: i64,
rate: f64,
) -> (Vec<f32>, Vec<f32>)
pub fn tracks( &self, at: i64, n: i64, len: i64, rate: f64, ) -> (Vec<f32>, Vec<f32>)
Per-frame (fade, lift) for frames at..at + n of a clip len frames long, ffmpeg’s
fade maths (frame time i / rate; fade 0 is the colour, 1 the picture).
Sourcepub fn vignette_angle(&self) -> f64
pub fn vignette_angle(&self) -> f64
render.py’s vignette angle in radians.
Trait Implementations§
impl StructuralPartialEq for Finish
Auto Trait Implementations§
impl Forget for Finish
impl Freeze for Finish
impl RefUnwindSafe for Finish
impl Send for Finish
impl Sync for Finish
impl Unpin for Finish
impl UnsafeUnpin for Finish
impl UnwindSafe for Finish
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