WIP
This commit is contained in:
26
src/state.h
Normal file
26
src/state.h
Normal 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;
|
Reference in New Issue
Block a user