pub struct AnalysisConfig {
pub similarity_threshold: u32,
pub min_segment_frames: usize,
pub detect_static: bool,
pub identical_threshold: u32,
}Expand description
Configuration for segment analysis.
Fields§
§similarity_threshold: u32Maximum hash distance for frames to be considered similar.
min_segment_frames: usizeMinimum number of consecutive similar frames to form a segment.
detect_static: boolWhether to mark segments with all identical frames as static.
identical_threshold: u32Distance threshold for considering frames identical (for static detection).
Implementations§
Source§impl AnalysisConfig
impl AnalysisConfig
Sourcepub fn with_similarity_threshold(self, threshold: u32) -> Self
pub fn with_similarity_threshold(self, threshold: u32) -> Self
Set the similarity threshold.
Sourcepub fn with_min_segment_frames(self, min: usize) -> Self
pub fn with_min_segment_frames(self, min: usize) -> Self
Set the minimum segment frames.
Sourcepub fn with_static_detection(self, enabled: bool) -> Self
pub fn with_static_detection(self, enabled: bool) -> Self
Enable or disable static frame detection.
Sourcepub fn with_identical_threshold(self, threshold: u32) -> Self
pub fn with_identical_threshold(self, threshold: u32) -> Self
Set the threshold for identical frame detection.
Trait Implementations§
Source§impl Clone for AnalysisConfig
impl Clone for AnalysisConfig
Source§fn clone(&self) -> AnalysisConfig
fn clone(&self) -> AnalysisConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AnalysisConfig
impl Debug for AnalysisConfig
Auto Trait Implementations§
impl Freeze for AnalysisConfig
impl RefUnwindSafe for AnalysisConfig
impl Send for AnalysisConfig
impl Sync for AnalysisConfig
impl Unpin for AnalysisConfig
impl UnsafeUnpin for AnalysisConfig
impl UnwindSafe for AnalysisConfig
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> 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