Skip to main content

frame_filter

frame_filter

Functions

Name
int scanToNextNonSkipped(FrameFilter const & filter, int start, int direction, int min_val, int max_val)
Scan from start in direction (+1 or -1) to find the first non-skipped frame within [min_val, max_val].

Functions Documentation

function scanToNextNonSkipped

int scanToNextNonSkipped(
    FrameFilter const & filter,
    int start,
    int direction,
    int min_val,
    int max_val
)

Scan from start in direction (+1 or -1) to find the first non-skipped frame within [min_val, max_val].

Parameters:

  • filter The active FrameFilter.
  • start Initial frame to test (inclusive).
  • direction +1 for forward scan, -1 for backward scan.
  • min_val Lower bound of valid frame range (inclusive).
  • max_val Upper bound of valid frame range (inclusive).

Return: The first non-skipped frame index, or -1 if all frames in the range are skipped (fully-tracked video guard).


Updated on 2026-11-13 at 20:25:42 +0000