pub struct SegmentDedupConfig {
pub window_size_frames: usize,
pub stride_frames: usize,
pub min_match_length_frames: usize,
pub max_diff_bits: u32,
}Expand description
Configuration for segment-level deduplication.
Fields§
§window_size_frames: usizeNumber of frames per dedup window.
stride_frames: usizeStep between consecutive windows (stride).
min_match_length_frames: usizeMinimum number of consecutive matching frames to report as a shared clip.
max_diff_bits: u32Maximum Hamming-bit distance to consider two segments identical.
Implementations§
Source§impl SegmentDedupConfig
impl SegmentDedupConfig
Sourcepub fn new(
window_size_frames: usize,
stride_frames: usize,
max_diff_bits: u32,
) -> Self
pub fn new( window_size_frames: usize, stride_frames: usize, max_diff_bits: u32, ) -> Self
Create a new config with explicit parameters.
Sourcepub fn window_size_frames(&self) -> usize
pub fn window_size_frames(&self) -> usize
Returns the window size in frames.
Sourcepub fn stride_frames(&self) -> usize
pub fn stride_frames(&self) -> usize
Returns the stride in frames.
Sourcepub fn min_match_length_frames(&self) -> usize
pub fn min_match_length_frames(&self) -> usize
Returns the minimum match length in frames required to emit a result.
Sourcepub fn max_diff_bits(&self) -> u32
pub fn max_diff_bits(&self) -> u32
Returns the maximum allowed Hamming-bit difference.
Trait Implementations§
Source§impl Clone for SegmentDedupConfig
impl Clone for SegmentDedupConfig
Source§fn clone(&self) -> SegmentDedupConfig
fn clone(&self) -> SegmentDedupConfig
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 SegmentDedupConfig
impl Debug for SegmentDedupConfig
Auto Trait Implementations§
impl Freeze for SegmentDedupConfig
impl RefUnwindSafe for SegmentDedupConfig
impl Send for SegmentDedupConfig
impl Sync for SegmentDedupConfig
impl Unpin for SegmentDedupConfig
impl UnsafeUnpin for SegmentDedupConfig
impl UnwindSafe for SegmentDedupConfig
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