Skip to main content

sample_frame_indices

Function sample_frame_indices 

Source
pub fn sample_frame_indices(
    total_frames: u32,
    stride: u32,
    out: &mut [u32],
) -> usize
Expand description

Deterministic frame indices for video sampling (cold path helper). Writes every stride-th frame into out, starting at 0. Returns count written. Overflow: if more indices than out.len(), only first out.len() are kept (deterministic).