pub struct ImportOptions {
pub frame_size: Option<(u32, u32)>,
pub rate: Option<f64>,
pub media_duration: Option<fn(&Path) -> Option<f64>>,
pub beats: Option<BeatsFn>,
pub strict: bool,
}Expand description
Settings the source format may lack.
Fields§
§frame_size: Option<(u32, u32)>Frame size of the timeline, for formats that don’t store one (Resolve OTIO).
rate: Option<f64>Timeline frame rate; overrides the source’s.
media_duration: Option<fn(&Path) -> Option<f64>>Media duration in seconds, for formats that leave lengths to the media (edit.yaml shots
without out, sound effects, in: end music cues). Without it, importers fall back to
what they can read themselves (WAV headers) and warn.
beats: Option<BeatsFn>Beat times (seconds into the file) of a music track, for formats that snap cuts to the
music (edit.yaml). Without it cuts land unsnapped, with a warning.
strict: boolFail instead of skipping what can’t be read (ImportReport::skipped).
Trait Implementations§
Source§impl Clone for ImportOptions
impl Clone for ImportOptions
impl Copy for ImportOptions
Source§impl Debug for ImportOptions
impl Debug for ImportOptions
Auto Trait Implementations§
impl Forget for ImportOptions
impl Freeze for ImportOptions
impl RefUnwindSafe for ImportOptions
impl Send for ImportOptions
impl Sync for ImportOptions
impl Unpin for ImportOptions
impl UnsafeUnpin for ImportOptions
impl UnwindSafe for ImportOptions
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