pikapython/package/PikaCV/PikaCV_common.h

19 lines
528 B
C
Raw Normal View History

#include "./3rd-party/tjpgd/src/tjpgd.h"
typedef enum PikaCV_ImageFormat_Type {
PikaCV_ImageFormat_Type_Unknown = 0,
PikaCV_ImageFormat_Type_JPEG,
PikaCV_ImageFormat_Type_RGB888,
PikaCV_ImageFormat_Type_RGB565,
PikaCV_ImageFormat_Type_GRAY,
} PikaCV_ImageFormat_Type;
typedef struct PikaCV_Image {
PikaCV_ImageFormat_Type format;
int width;
int height;
int size;
} PikaCV_Image;
uint8_t* _Image_getData(PikaObj* self);
PIKA_RES PikaCV_Image_setData(PikaObj* self, uint8_t* data, int size);