aboutsummaryrefslogtreecommitdiff
path: root/src/camera.h
blob: bfc5394a5422192b84613f155cf97ac379dd4291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef CAMERA_H
#define CAMERA_H

typedef struct camera_handle {
    void *handle;
} camera_handle;

typedef struct camera_params {
    char *device;
    int x_res;
    int y_res;
} camera_params;

void camera_init(camera_handle *handle, camera_params params);

char *camera_get_image(camera_handle *handle);

void camera_deinit(camera_handle *handle);

#endif