process_pipeline.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #pragma once
  2. #include "camera.h"
  3. #include "camera_config.h"
  4. #include <gtk/gtk.h>
  5. typedef struct _GdkSurface GdkSurface;
  6. struct mp_process_pipeline_state {
  7. const struct mp_camera_config *camera;
  8. MPMode mode;
  9. int burst_length;
  10. int preview_width;
  11. int preview_height;
  12. int device_rotation;
  13. bool gain_is_manual;
  14. int gain;
  15. int gain_max;
  16. float balance_red;
  17. float balance_blue;
  18. bool exposure_is_manual;
  19. int exposure;
  20. bool has_auto_focus_continuous;
  21. bool has_auto_focus_start;
  22. bool flash_enabled;
  23. };
  24. bool mp_process_find_processor(char *script);
  25. void mp_process_find_all_processors(GtkListStore *store);
  26. void mp_process_pipeline_start();
  27. void mp_process_pipeline_stop();
  28. void mp_process_pipeline_sync();
  29. void mp_process_pipeline_init_gl(GdkSurface *window);
  30. void mp_process_pipeline_process_image(MPBuffer buffer);
  31. void mp_process_pipeline_capture();
  32. void mp_process_pipeline_update_state(const struct mp_process_pipeline_state *state);
  33. typedef struct _MPProcessPipelineBuffer MPProcessPipelineBuffer;
  34. void mp_process_pipeline_buffer_ref(MPProcessPipelineBuffer *buf);
  35. void mp_process_pipeline_buffer_unref(MPProcessPipelineBuffer *buf);
  36. uint32_t mp_process_pipeline_buffer_get_texture_id(MPProcessPipelineBuffer *buf);