pub struct SmartTrimConfig {
pub silence_threshold_db: f64,
pub min_scene_confidence: f64,
pub min_silence_duration_ms: i64,
pub motion_threshold: f64,
pub min_output_confidence: f64,
}Expand description
Tuning parameters for the smart trim engine.
Fields§
§silence_threshold_db: f64Silence threshold in dBFS (default −40 dB).
min_scene_confidence: f64Minimum confidence required before a scene-boundary suggestion is emitted (default 0.7).
min_silence_duration_ms: i64Minimum duration of a silence region to be considered, in timebase units (default 100 ms).
motion_threshold: f64Normalised motion magnitude below which motion is considered stopped (default 0.1).
min_output_confidence: f64Minimum suggestion confidence to include in analyze results (default 0.0).
Implementations§
Source§impl SmartTrimConfig
impl SmartTrimConfig
Sourcepub fn with_silence_threshold(self, db: f64) -> Self
pub fn with_silence_threshold(self, db: f64) -> Self
Set the silence threshold.
Sourcepub fn with_min_scene_confidence(self, confidence: f64) -> Self
pub fn with_min_scene_confidence(self, confidence: f64) -> Self
Set the minimum scene-detection confidence.
Sourcepub fn with_min_silence_duration_ms(self, ms: i64) -> Self
pub fn with_min_silence_duration_ms(self, ms: i64) -> Self
Set the minimum silence duration in milliseconds.
Sourcepub fn with_motion_threshold(self, threshold: f64) -> Self
pub fn with_motion_threshold(self, threshold: f64) -> Self
Set the motion-stop threshold.
Sourcepub fn with_min_output_confidence(self, confidence: f64) -> Self
pub fn with_min_output_confidence(self, confidence: f64) -> Self
Only surface suggestions with at least this confidence level.
Trait Implementations§
Source§impl Clone for SmartTrimConfig
impl Clone for SmartTrimConfig
Source§fn clone(&self) -> SmartTrimConfig
fn clone(&self) -> SmartTrimConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmartTrimConfig
impl Debug for SmartTrimConfig
Auto Trait Implementations§
impl Freeze for SmartTrimConfig
impl RefUnwindSafe for SmartTrimConfig
impl Send for SmartTrimConfig
impl Sync for SmartTrimConfig
impl Unpin for SmartTrimConfig
impl UnsafeUnpin for SmartTrimConfig
impl UnwindSafe for SmartTrimConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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