45 .sensor_size = { .w = 1280, .h = 720 },
46 .crop = { .x = 0, .y = 0, .w = 1280, .h = 720 },
47 .dev_name =
"front_camera",
49 .format = V4L2_PIX_FMT_UYVY,
58 .sensor_size = { .w = 320, .h = 240 },
59 .crop = { .x = 0, .y = 0, .w = 320, .h = 240 },
60 .dev_name =
"bottom_camera",
62 .format = V4L2_PIX_FMT_UYVY,
96 if (cameras[i] == device) {
100 if (cameras[i] != NULL) {
107 printf(
"[video_thread_nps] Added %s to camera array.\n",
void video_thread_start(void)
Starts the streaming of a all cameras.
struct video_config_t bottom_camera
struct img_size_t output_size
Output image size.
Capture images from a V4L2 device (Video for Linux 2)
Start a Video thread and grab images.
struct video_config_t * cameras[VIDEO_THREAD_MAX_CAMERAS]
char * dev_name
path to device
void video_thread_stop(void)
Stops the streaming of all cameras This could take some time, because the thread is stopped asynchron...
void video_thread_init(void)
Initialize the view video.
Image helper functions like resizing, color filter, converters...
Computer vision framework for onboard processing.
This header gives NPS access to the list of added cameras.
void video_thread_periodic(void)
A dummy for now.
#define VIDEO_THREAD_MAX_CAMERAS
bool add_video_device(struct video_config_t *device)
Keep track of video devices added by modules.
struct video_config_t front_camera
Video thread dummy for simulation.