Files
Megapixels/process_pipeline.h
Benjamin Schaaf f1947f134e Rework pipeline to allow for DMA support
The process pipeline is now tasked with releasing the camera buffer,
rather than being given a copy. This enables being able to avoid the
copy in the future if it has a performance advantage.
2021-04-08 19:56:51 +10:00

32 lines
636 B
C

#pragma once
#include "camera_config.h"
struct mp_process_pipeline_state {
const struct mp_camera_config *camera;
MPCameraMode mode;
int burst_length;
int preview_width;
int preview_height;
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_process_pipeline_start();
void mp_process_pipeline_stop();
void mp_process_pipeline_sync();
void mp_process_pipeline_process_image(MPBuffer buffer);
void mp_process_pipeline_capture();
void mp_process_pipeline_update_state(const struct mp_process_pipeline_state *state);