Refactor controls more

This commit is contained in:
Martijn Braam
2023-07-21 13:19:26 +02:00
parent d4806d6ab6
commit f26f81e3f1
5 changed files with 152 additions and 110 deletions

View File

@@ -1,29 +1,10 @@
#pragma once
#include "state.h"
#include <libmegapixels.h>
#include <stdbool.h>
#include <stdint.h>
struct mp_io_pipeline_state {
libmegapixels_camera *camera;
libmegapixels_devconfig *configuration;
int burst_length;
int preview_width;
int preview_height;
int device_rotation;
bool gain_is_manual;
int gain;
bool exposure_is_manual;
int exposure;
bool flash_enabled;
};
void mp_io_pipeline_start();
void mp_io_pipeline_stop();
@@ -32,4 +13,4 @@ void mp_io_pipeline_capture();
void mp_io_pipeline_release_buffer(uint32_t buffer_index);
void mp_io_pipeline_update_state(const struct mp_io_pipeline_state *state);
void mp_io_pipeline_update_state(const mp_state_io *state);