Add more camera modes

This commit is contained in:
Kamil Trzcinski
2022-04-05 13:53:19 +02:00
parent 5a81b75684
commit f4e133b191
6 changed files with 69 additions and 18 deletions

View File

@ -34,8 +34,9 @@ typedef struct camera_s {
};
link_t links[MAX_DEVICES];
unsigned width, height;
unsigned nbufs;
unsigned width, height, format;
unsigned nbufs, fps;
bool allow_dma;
} camera_t;
#define CAMERA(DEVICE) camera->devices[DEVICE]
@ -43,7 +44,9 @@ typedef struct camera_s {
void camera_init(camera_t *camera);
void camera_close(camera_t *camera);
int camera_open(camera_t *camera, const char *path);
int camera_configure_srgb_isp(camera_t *camera, float high_div, float low_div);
int camera_configure_srgb_legacy_isp(camera_t *camera, float div);
int camera_set_params(camera_t *camera);
int camera_run(camera_t *camera);
int camera_configure_isp(camera_t *camera, float high_div, float low_div);
int camera_configure_legacy_isp(camera_t *camera, float div);
int camera_configure_direct(camera_t *camera);