This commit is contained in:
Martijn Braam
2023-07-16 23:18:14 +02:00
parent 2f48f31b6a
commit 0170544013
4 changed files with 92 additions and 84 deletions

26
src/state.h Normal file
View File

@@ -0,0 +1,26 @@
#include <libmegapixels.h>
#include <stdbool.h>
typedef struct state_main {
libmegapixels_devconfig *configuration;
libmegapixels_camera *camera;
int preview_width;
int preview_height;
int device_rotation;
int burst_length;
// Control state
bool gain_is_manual;
int gain;
int gain_max;
bool exposure_is_manual;
int exposure;
bool flash_enabled;
bool has_auto_focus_continuous;
bool has_auto_focus_start;
} mp_state_main;