pub struct FrameSourceBuilder { /* private fields */ }Expand description
Builder for frame sources. Use this to set various options on the frame source.
Implementations§
Source§impl FrameSourceBuilder
impl FrameSourceBuilder
pub fn new<P: AsRef<Path>>(input: P) -> Self
pub fn do_decode_h264(self, do_decode_h264: bool) -> Self
pub fn timestamp_source(self, timestamp_source: TimestampSource) -> Self
pub fn srt_file_path(self, srt_file_path: Option<PathBuf>) -> Self
pub fn show_progress(self, show_progress: bool) -> Self
Sourcepub fn build_source(self) -> Result<Box<dyn FrameDataSource>>
pub fn build_source(self) -> Result<Box<dyn FrameDataSource>>
Create a FrameDataSource
pub fn build_h264_in_mp4_source(self) -> Result<H264Source<Mp4Source>>
pub fn build_h264_in_mp4_source_with_preparser( self, preparser: Box<dyn H264Preparser>, ) -> Result<H264Source<Mp4Source>>
Sourcepub fn build_h264_annexb_source(self) -> Result<H264Source<H264AnnexBSource>>
pub fn build_h264_annexb_source(self) -> Result<H264Source<H264AnnexBSource>>
Build a source for a raw “Annex B” .h264 file.
pub fn build_mkv_source(self) -> Result<StrandCamMkvSource<BufReader<File>>>
Auto Trait Implementations§
impl Freeze for FrameSourceBuilder
impl RefUnwindSafe for FrameSourceBuilder
impl Send for FrameSourceBuilder
impl Sync for FrameSourceBuilder
impl Unpin for FrameSourceBuilder
impl UnsafeUnpin for FrameSourceBuilder
impl UnwindSafe for FrameSourceBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more