First pass at integrating pipeline with application

This commit is contained in:
Benjamin Schaaf
2020-11-26 00:34:57 +11:00
parent e26d0ddd4b
commit dd45690d47
11 changed files with 2035 additions and 1443 deletions

27
main.h Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#include "camera_config.h"
#include "gtk/gtk.h"
struct mp_main_state {
const struct mp_camera_config *camera;
MPCameraMode mode;
bool gain_is_manual;
int gain;
int gain_max;
bool exposure_is_manual;
int exposure;
bool has_auto_focus_continuous;
bool has_auto_focus_start;
};
void mp_main_update_state(const struct mp_main_state *state);
void mp_main_set_preview(cairo_surface_t *image);
void mp_main_capture_completed(const char *fname);
int
remap(int value, int input_min, int input_max, int output_min, int output_max);