mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
b463e812bf
* add pikaCV-test.cpp * read(Image) and convert to RGB565 is tested ok * transfer can return res, but not assert * format tjpgd * add test for PikaCV * add assert for newContent * restore assets * restore PikaCV.pyi * restore PikaCV * restore uint16_t * add jpeg_test.py * move ADC, GPIO, RGB ... to Device * add jd_decomp * convert_JPEGtoREG888 is not ok * connecting tjpegdec * Converter.toRGB565() .toRGB888() .toGRay() eachother is ok * support Gray * add PikaCV_Image, PikaCV_ImageFormat * add classes for PikaCV * add PikaCV
10 lines
360 B
C
10 lines
360 B
C
#include "PikaCV_ImageFormat.h"
|
|
#include "PikaCV_common.h"
|
|
|
|
void PikaCV_ImageFormat___init__(PikaObj* self) {
|
|
obj_setInt(self, "JPEG", PikaCV_ImageFormat_Type_JPEG);
|
|
obj_setInt(self, "RGB888", PikaCV_ImageFormat_Type_RGB888);
|
|
obj_setInt(self, "RGB565", PikaCV_ImageFormat_Type_RGB565);
|
|
obj_setInt(self, "GRAY", PikaCV_ImageFormat_Type_GRAY);
|
|
}
|