5.3.4.100. Function video_reader_alloc_init¶
Defined in File video_io.h
5.3.4.100.1. Function Documentation¶
-
video_reader_t *video_reader_alloc_init(const char *path, const size_t start, const size_t end, const size_t skip, const int bufferize, const size_t n_ffmpeg_threads, int *i0, int *i1, int *j0, int *j1)¶
Allocation and initialization of inner data required for a video reader.
- Parameters
path – Path to the video or images.
start – Start frame number (first frame is frame 0).
end – Last frame number (if 0 then the video sequence is entirely read).
skip – Number of frames to skip between two frames (0 means no frame is skipped).
bufferize – Boolean to store the entire video sequence in memory first (this is useful for benchmarks but usually the video sequences are too big to be stored in memory).
n_ffmpeg_threads – Number of threads used in FFMPEG to decode the video sequence (0 means FFMPEG will decide).
i0 – Return the first \(y\) index in the labels (included).
i1 – Return the last \(y\) index in the labels (included).
j0 – Return the first \(x\) index in the labels (included).
j1 – Return the last \(x\) index in the labels (included).
- Returns
The allocated data.