Better support configurations

This commit is contained in:
Kamil Trzcinski
2022-04-05 20:29:47 +02:00
parent 7f14b60ba3
commit 65c0639cc5
6 changed files with 81 additions and 23 deletions

View File

@ -13,6 +13,8 @@ typedef struct camera_options_s {
unsigned width, height, format;
unsigned nbufs, fps;
bool allow_dma;
float high_res_factor;
float low_res_factor;
} camera_options_t;
typedef struct camera_s {
@ -33,7 +35,9 @@ typedef struct camera_s {
device_t *codec_h264; // encode YUVU into H264
};
};
link_t links[MAX_DEVICES];
int nlinks;
} camera_t;
#define CAMERA(DEVICE) camera->devices[DEVICE]