Reorganization, replacing CPU debayering entirely
This commit is contained in:
35
src/main.h
Normal file
35
src/main.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include "camera_config.h"
|
||||
#include "zbar_pipeline.h"
|
||||
#include "process_pipeline.h"
|
||||
#include "gtk/gtk.h"
|
||||
|
||||
#define MP_MAIN_THUMB_SIZE 24
|
||||
|
||||
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(MPProcessPipelineBuffer *buffer);
|
||||
void mp_main_capture_completed(cairo_surface_t *thumb, const char *fname);
|
||||
|
||||
void mp_main_set_zbar_result(MPZBarScanResult *result);
|
||||
|
||||
int remap(int value, int input_min, int input_max, int output_min, int output_max);
|
||||
|
||||
void draw_surface_scaled_centered(cairo_t *cr, uint32_t dst_width, uint32_t dst_height,
|
||||
cairo_surface_t *surface);
|
Reference in New Issue
Block a user