pub struct Reframe {
pub zoom: Option<Keyed<f64>>,
pub zoom_center: Option<Keyed<[f64; 2]>>,
pub punch: Vec<Punch>,
pub push: Option<(f64, f64)>,
pub push_center: Option<[f64; 2]>,
pub pan: Option<([f64; 2], [f64; 2])>,
pub crop_x: Slide,
pub crop_y: Slide,
pub fit: Fit,
pub fit_y: f64,
}Fields§
§zoom: Option<Keyed<f64>>Base zoom (1 = the whole output-aspect window).
zoom_center: Option<Keyed<[f64; 2]>>§punch: Vec<Punch>§push: Option<(f64, f64)>[from, to] zoom, eased over the whole shot (half linear, half cosine, as render.py).
push_center: Option<[f64; 2]>Centre of the push (default zoom_center).
pan: Option<([f64; 2], [f64; 2])>The push centre moving [from, to] with the push’s easing.
crop_x: SlideWindow position on wider sources (0 left .. 1 right).
crop_y: SlideWindow position on taller sources (0 top .. 1 bottom).
fit: Fit§fit_y: f64fit: contain: the picture’s centre as a fraction of the output height (0.42).
Implementations§
Source§impl Reframe
impl Reframe
Sourcepub fn parse(params: &Map<String, Value>, profile: Option<&str>) -> Result<Self>
pub fn parse(params: &Map<String, Value>, profile: Option<&str>) -> Result<Self>
Reads the effect’s parameters (metadata.ffcine without schema) for profile:
profiles.<profile> fields replace the base ones. Unknown fields are ignored (the
Resolve importer’s timeline_size, the panels’ focus).
Sourcepub fn from_effects(
effects: &[Effect],
profile: Option<&str>,
) -> Result<Option<Self>>
pub fn from_effects( effects: &[Effect], profile: Option<&str>, ) -> Result<Option<Self>>
The first ffcine.geo.reframe/1 among a clip’s effects, for profile.
Sourcepub fn is_animated(&self) -> bool
pub fn is_animated(&self) -> bool
Whether the window changes over the shot.
Trait Implementations§
impl StructuralPartialEq for Reframe
Auto Trait Implementations§
impl Freeze for Reframe
impl RefUnwindSafe for Reframe
impl Send for Reframe
impl Sync for Reframe
impl Unpin for Reframe
impl UnsafeUnpin for Reframe
impl UnwindSafe for Reframe
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