Skip to main content

b3RecPlayer_SetKeyframePolicy

Function b3RecPlayer_SetKeyframePolicy 

Source
pub unsafe extern "C" fn b3RecPlayer_SetKeyframePolicy(
    player: *mut b3RecPlayer,
    budgetBytes: usize,
    minIntervalFrames: c_int,
)
Expand description

Tune the keyframe ring used to speed up backward seeking. A keyframe is a periodic snapshot the player restores from instead of replaying from the start, trading memory for seek speed. @param player the recording player @param budgetBytes memory cap for the kept snapshots; the spacing widens to stay under it @param minIntervalFrames finest spacing between keyframes, in frames A zero budget or a non-positive interval keeps that value. Clears the existing ring, so call b3RecPlayer_Restart afterward to repopulate it under the new policy.