pub struct FfmpegStepper { /* private fields */ }Implementations§
Source§impl FfmpegStepper
impl FfmpegStepper
pub fn try_new( temp_dir: &Path, input_file: PathBuf, crf: NonZeroUsize, fps: NonZeroUsize, ) -> Result<Self, Error>
pub fn frames_dir(&self) -> &Path
Sourcepub fn existing_video_count(&self) -> Result<usize, Error>
pub fn existing_video_count(&self) -> Result<usize, Error>
Returns the number of video pieces we’ve already extracted
Sourcepub fn flattened_time_ranges(
&self,
max_step_size: NonZeroUsize,
scene_gt: &str,
) -> Result<Vec<TimeRange>, Error>
pub fn flattened_time_ranges( &self, max_step_size: NonZeroUsize, scene_gt: &str, ) -> Result<Vec<TimeRange>, Error>
Returns a frame extractor which can be used to extract frames
pub fn clear_frames_dir(&self) -> Result<(), Error>
pub fn extract_frames(&self, time_range: &TimeRange) -> Result<&Path, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FfmpegStepper
impl RefUnwindSafe for FfmpegStepper
impl Send for FfmpegStepper
impl Sync for FfmpegStepper
impl Unpin for FfmpegStepper
impl UnwindSafe for FfmpegStepper
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