pub enum InputFileHandler {
Subtitle(SubtitleFileHandler),
Video(VideoFileHandler),
}Variants§
Subtitle(SubtitleFileHandler)
Video(VideoFileHandler)
Implementations§
Source§impl InputFileHandler
impl InputFileHandler
pub fn open( file_path: &Path, audio_index: Option<usize>, sub_encoding: Option<&'static Encoding>, sub_fps: f64, video_decode_progress: impl ProgressHandler, ) -> Result<InputFileHandler, InputFileError>
pub fn into_subtitle_file(self) -> Option<SubtitleFile>
pub fn timespans(&self) -> &[TimeSpan]
pub fn filter_video_with_min_span_length_ms( &mut self, min_vad_span_length_ms: i64, )
Auto Trait Implementations§
impl Freeze for InputFileHandler
impl RefUnwindSafe for InputFileHandler
impl Send for InputFileHandler
impl Sync for InputFileHandler
impl Unpin for InputFileHandler
impl UnsafeUnpin for InputFileHandler
impl UnwindSafe for InputFileHandler
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