io_pipeline.h 570 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "camera_config.h"
  3. struct mp_io_pipeline_state {
  4. const struct mp_camera_config *camera;
  5. int burst_length;
  6. int preview_width;
  7. int preview_height;
  8. int device_rotation;
  9. bool gain_is_manual;
  10. int gain;
  11. bool exposure_is_manual;
  12. int exposure;
  13. bool save_dng;
  14. bool flash_enabled;
  15. };
  16. void mp_io_pipeline_start();
  17. void mp_io_pipeline_stop();
  18. void mp_io_pipeline_focus();
  19. void mp_io_pipeline_capture();
  20. void mp_io_pipeline_release_buffer(uint32_t buffer_index);
  21. void mp_io_pipeline_update_state(const struct mp_io_pipeline_state *state);