pub struct ClipRef {
pub path: PathBuf,
pub width: u32,
pub height: u32,
pub source_fps: u32,
pub frame_count: Frame,
}Expand description
Immutable metadata about the source recording a project edits.
The editor never rewrites the source file; every edit is expressed
against this reference (segments index into 0..frame_count, the
renderer decodes from path). Stored in the project file so a
project re-opens against the right media.
Fields§
§path: PathBufAbsolute path to the source recording on disk.
width: u32Source frame width in pixels.
height: u32Source frame height in pixels.
source_fps: u32Source frame rate (frames per second).
frame_count: FrameTotal number of frames in the source recording.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClipRef
impl<'de> Deserialize<'de> for ClipRef
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
impl Eq for ClipRef
impl StructuralPartialEq for ClipRef
Auto Trait Implementations§
impl Freeze for ClipRef
impl RefUnwindSafe for ClipRef
impl Send for ClipRef
impl Sync for ClipRef
impl Unpin for ClipRef
impl UnsafeUnpin for ClipRef
impl UnwindSafe for ClipRef
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