decode_frames

Function decode_frames 

Source
pub fn decode_frames(
    bytes: &[u8],
    target_fps: f32,
    policy: &FfmpegPolicy,
) -> Result<Vec<RgbImage>>
Expand description

2026-09-25: Decode bytes to RGB frames sampled at target_fps.

ffmpeg samples with -vf fps=, so the returned frames are already at target_fps, and the caller does not need the source frame rate. A non-finite or non-positive target_fps samples at 2.0.