zbar_pipeline.h 390 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "camera_config.h"
  3. typedef struct _cairo_surface cairo_surface_t;
  4. typedef struct {
  5. int bounds_x[4];
  6. int bounds_y[4];
  7. char *data;
  8. const char *type;
  9. } MPZBarCode;
  10. typedef struct {
  11. MPZBarCode codes[8];
  12. uint8_t size;
  13. } MPZBarScanResult;
  14. void mp_zbar_pipeline_start();
  15. void mp_zbar_pipeline_stop();
  16. void mp_zbar_pipeline_process_image(cairo_surface_t *surface);