2020-02-29 10:02:42 +00:00
|
|
|
#ifndef IMAGE_H
|
|
|
|
#define IMAGE_H
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
2020-03-02 19:58:40 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
size_t format;
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int w;
|
|
|
|
int h;
|
|
|
|
bool dithering;
|
|
|
|
} structImageProcess;
|
2020-02-29 10:02:42 +00:00
|
|
|
|
2020-03-20 19:04:41 +00:00
|
|
|
void setupImage();
|
|
|
|
|
2020-02-29 10:02:42 +00:00
|
|
|
void ImageNew(int x, int y, int w, int h, bool dithering);
|
|
|
|
void ImageWriteBuffer(uint8_t buff[], size_t c);
|
|
|
|
void ImageFlushBuffer();
|
|
|
|
|
2020-10-27 18:39:19 +00:00
|
|
|
void ImageProcessPixel(uint16_t x, uint16_t y, uint8_t rgba[4]);
|
2020-03-28 09:45:10 +00:00
|
|
|
|
|
|
|
uint16_t drawRGB24toRGB565(uint8_t r, uint8_t g, uint8_t b);
|
|
|
|
uint32_t drawRGB565toBGRA32(uint16_t color);
|
|
|
|
|
2020-03-02 19:58:40 +00:00
|
|
|
#endif /* IMAGE_H */
|