aboutsummaryrefslogtreecommitdiff
path: root/src/camera.c
blob: 6842a12c2beef2e2b09f506d8765126d1dcd72c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "camera.h"
#include "common_v4l2.h"

CommonV4l2 common_v4l2;

void camera_init(char *dev_name, unsigned int x_res, unsigned int y_res)
{
    CommonV4l2_init(&common_v4l2, dev_name, x_res, y_res);
}

char *camera_get_image()
{
    CommonV4l2_update_image(&common_v4l2);
    return CommonV4l2_get_image(&common_v4l2);
}

void camera_deinit()
{
    CommonV4l2_deinit(&common_v4l2);
}