pub struct CrossFormatConfig {
pub max_duration_diff_secs: f64,
pub max_phash_distance: u32,
pub min_audio_similarity: f64,
pub confidence_threshold: f64,
pub weight_duration: f64,
pub weight_resolution: f64,
pub weight_phash: f64,
pub weight_audio: f64,
}Expand description
Configuration for cross-format detection.
Fields§
§max_duration_diff_secs: f64Maximum allowed duration difference in seconds.
max_phash_distance: u32Maximum Hamming distance for perceptual hash match (out of 64 bits).
min_audio_similarity: f64Minimum audio fingerprint similarity (0.0 - 1.0).
confidence_threshold: f64Overall confidence threshold for declaring a cross-format duplicate.
weight_duration: f64Weight for duration similarity in composite score.
weight_resolution: f64Weight for resolution match in composite score.
weight_phash: f64Weight for perceptual hash match in composite score.
weight_audio: f64Weight for audio fingerprint match in composite score.
Implementations§
Trait Implementations§
Source§impl Clone for CrossFormatConfig
impl Clone for CrossFormatConfig
Source§fn clone(&self) -> CrossFormatConfig
fn clone(&self) -> CrossFormatConfig
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 CrossFormatConfig
impl Debug for CrossFormatConfig
Auto Trait Implementations§
impl Freeze for CrossFormatConfig
impl RefUnwindSafe for CrossFormatConfig
impl Send for CrossFormatConfig
impl Sync for CrossFormatConfig
impl Unpin for CrossFormatConfig
impl UnsafeUnpin for CrossFormatConfig
impl UnwindSafe for CrossFormatConfig
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