Support UVC cameras somewhat

This commit is contained in:
Martijn Braam
2023-07-09 21:31:51 +02:00
parent b13d15d5de
commit e4a39c4747
8 changed files with 218 additions and 71 deletions

View File

@@ -75,17 +75,23 @@ typedef struct _lmp_camera libmegapixels_camera;
struct _lmp_device_config {
char *path;
char *make;
char *model;
const char *make;
const char *model;
int count;
int loaded_config;
int loaded_uvc;
libmegapixels_camera **cameras;
};
typedef struct _lmp_device_config libmegapixels_devconfig;
EXPORT int
libmegapixels_init(libmegapixels_devconfig **config);
EXPORT int
libmegapixels_load_file(libmegapixels_devconfig **config, const char *file);
libmegapixels_load_file(libmegapixels_devconfig *config, const char *file);
EXPORT int
libmegapixels_load_uvc(libmegapixels_devconfig *config);
EXPORT int
libmegapixels_open(libmegapixels_camera *camera);