pub struct ZoomSegment {
pub id: ZoomId,
pub start: Frame,
pub end: Frame,
pub amount: f64,
pub mode: ZoomMode,
pub ease: EditEase,
}Expand description
A cinematic punch-in over [start, end) project frames.
Fields§
§id: ZoomIdStable identifier within the project.
start: FrameFirst project frame the zoom affects (inclusive).
end: FrameOne past the last project frame the zoom affects (exclusive).
amount: f64Zoom factor at the hold. 1.0 = no zoom, 1.6 = 1.6× punch-in.
A zoom out is unusual for a screen recording, so the zoom engine
(crate::zoom_anim::zoom_at) clamps the produced scale to
>= 1.0 — an amount < 1.0 reads as no zoom rather than a shrink.
mode: ZoomModeWhat the zoom targets.
ease: EditEaseEasing of the in/out animation.
Implementations§
Trait Implementations§
Source§impl Clone for ZoomSegment
impl Clone for ZoomSegment
Source§fn clone(&self) -> ZoomSegment
fn clone(&self) -> ZoomSegment
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 moreSource§impl Debug for ZoomSegment
impl Debug for ZoomSegment
Source§impl<'de> Deserialize<'de> for ZoomSegment
impl<'de> Deserialize<'de> for ZoomSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ZoomSegment
impl PartialEq for ZoomSegment
Source§fn eq(&self, other: &ZoomSegment) -> bool
fn eq(&self, other: &ZoomSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ZoomSegment
impl Serialize for ZoomSegment
impl Copy for ZoomSegment
impl StructuralPartialEq for ZoomSegment
Auto Trait Implementations§
impl Freeze for ZoomSegment
impl RefUnwindSafe for ZoomSegment
impl Send for ZoomSegment
impl Sync for ZoomSegment
impl Unpin for ZoomSegment
impl UnsafeUnpin for ZoomSegment
impl UnwindSafe for ZoomSegment
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