process_pipeline.h 728 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include "camera_config.h"
  3. typedef struct _GdkWindow GdkWindow;
  4. struct mp_process_pipeline_state {
  5. const struct mp_camera_config *camera;
  6. MPCameraMode mode;
  7. int burst_length;
  8. int preview_width;
  9. int preview_height;
  10. bool gain_is_manual;
  11. int gain;
  12. int gain_max;
  13. bool exposure_is_manual;
  14. int exposure;
  15. bool has_auto_focus_continuous;
  16. bool has_auto_focus_start;
  17. };
  18. void mp_process_pipeline_start();
  19. void mp_process_pipeline_stop();
  20. void mp_process_pipeline_sync();
  21. void mp_process_pipeline_init_gl(GdkWindow *window);
  22. void mp_process_pipeline_process_image(MPBuffer buffer);
  23. void mp_process_pipeline_capture();
  24. void mp_process_pipeline_update_state(const struct mp_process_pipeline_state *state);