pub struct MtmdVideoParams { /* private fields */ }Expand description
Parameters controlling how a MtmdVideo stream is opened and sampled.
Obtain a default-initialised instance via MtmdVideoParams::default()
(which mirrors mtmd_helper_video_init_params_default: ~4 fps, native
ffmpeg/ffprobe from PATH, and a 5 s timestamp interval) and tweak it
with the builder methods.
Implementations§
Source§impl MtmdVideoParams
impl MtmdVideoParams
Sourcepub fn fps_target(self, fps: f32) -> Self
pub fn fps_target(self, fps: f32) -> Self
Desired output frame rate. Values <= 0 mean “use the video’s native
fps” (the default is ~4 fps).
Sourcepub fn timestamp_interval_ms(self, ms: i64) -> Self
pub fn timestamp_interval_ms(self, ms: i64) -> Self
Interval, in milliseconds, between inserted timestamp text chunks (e.g.
"[10m50.5s]"). Values <= 0 disable timestamps (default 5000 ms).
Trait Implementations§
Source§impl Debug for MtmdVideoParams
impl Debug for MtmdVideoParams
Auto Trait Implementations§
impl !Send for MtmdVideoParams
impl !Sync for MtmdVideoParams
impl Freeze for MtmdVideoParams
impl RefUnwindSafe for MtmdVideoParams
impl Unpin for MtmdVideoParams
impl UnsafeUnpin for MtmdVideoParams
impl UnwindSafe for MtmdVideoParams
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