5.3.4.147. Function video_reader_get_frame
Defined in File video_io.h
5.3.4.147.1. Function Documentation
-
int video_reader_get_frame(video_reader_t *video, uint8_t **img_gray8, uint8_t **img_rgb24)
Write grayscale image in a given 2D array.
- Parameters
video – A pointer of previously allocated inner video reader data.
img_gray8 – Output grayscale image (2D array \([i1 - i0 + 1][j1 - j0 + 1]\)), can be NULL if rgb mode.
img_rgb24 – Output color image (2D array \([i1 - i0 + 1][j1 - j0 + 1]\)), can be NULL if grayscale mode.
- Returns
The frame id (positive integer) or -1 if there is no more frame to read.