CjRaspiVideoCapture
|
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | RaspiVideoParams |
Enables video settings to be specified. More... | |
Typedefs | |
typedef void(* | nalu_encoded_handler) (uint8_t *buf, size_t bufLen) |
This callback gets called any time a new NALU (I-frame, P-frame, SPS, PPS, other) has been received from the camera module. More... | |
Enumerations | |
enum | RaspiVideoResolution { RASPI_VIDEO_RESOLUTION_240P, RASPI_VIDEO_RESOLUTION_360P, RASPI_VIDEO_RESOLUTION_480P, RASPI_VIDEO_RESOLUTION_720P, RASPI_VIDEO_RESOLUTION_1080P } |
Available video resolutions. | |
Functions | |
void | cj_rvc_init (nalu_encoded_handler naluEncodedHandler) |
Initializes library. | |
void | cj_rvc_start (RaspiVideoParams *params) |
Set various parameters for video and start capturing frames. More... | |
void | cj_rvc_stop (void) |
Stop capturing frames. | |
void | cj_rvc_process_main_loop (void) |
This function needs to be called regularly for the library to function. More... | |
typedef void(* nalu_encoded_handler) (uint8_t *buf, size_t bufLen) |
This callback gets called any time a new NALU (I-frame, P-frame, SPS, PPS, other) has been received from the camera module.
buf | The NALU buffer that was received. |
bufLen | Length of the NALU buffer. |
void cj_rvc_process_main_loop | ( | void | ) |
This function needs to be called regularly for the library to function.
Suggested interval is every 4 milliseconds.
void cj_rvc_start | ( | RaspiVideoParams * | params | ) |
Set various parameters for video and start capturing frames.
params | Specifies multpiple settings for the video such as resolution, bitrate, and more. |