CjRaspiVideoCapture
Classes | Typedefs | Enumerations | Functions
cj_raspi_video_capture.h File Reference
#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 Documentation

◆ nalu_encoded_handler

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.

Parameters
bufThe NALU buffer that was received.
bufLenLength of the NALU buffer.

Function Documentation

◆ cj_rvc_process_main_loop()

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.

◆ cj_rvc_start()

void cj_rvc_start ( RaspiVideoParams params)

Set various parameters for video and start capturing frames.

Parameters
paramsSpecifies multpiple settings for the video such as resolution, bitrate, and more.