Get zbar working again

This commit is contained in:
Benjamin Schaaf
2021-04-26 18:09:04 +10:00
parent f9e6576266
commit 44fc390b99
8 changed files with 329 additions and 254 deletions

View File

@@ -2,7 +2,7 @@
#include "camera_config.h"
typedef struct _cairo_surface cairo_surface_t;
typedef struct _MPZBarImage MPZBarImage;
typedef struct {
int bounds_x[4];
@@ -19,4 +19,13 @@ typedef struct {
void mp_zbar_pipeline_start();
void mp_zbar_pipeline_stop();
void mp_zbar_pipeline_process_image(cairo_surface_t *surface);
void mp_zbar_pipeline_process_image(MPZBarImage *image);
MPZBarImage *mp_zbar_image_new(uint8_t *data,
MPPixelFormat pixel_format,
int width,
int height,
int rotation,
bool mirrored);
MPZBarImage *mp_zbar_image_ref(MPZBarImage *image);
void mp_zbar_image_unref(MPZBarImage *image);