Skip to main content

compute_average_drift

Function compute_average_drift 

Source
pub fn compute_average_drift(
    cues: &[SubtitleCue],
    reference_in_frames: &[u64],
) -> Option<f64>
Expand description

Compute the average drift (in frames) between subtitle cue-in times and a set of expected reference timecodes.

Both slices must have the same length. Returns None if empty.