1234567891011121314151617181920212223242526272829303132 |
-
- #pragma once
- #include <stdint.h>
- #include "esp_err.h"
- struct GDS_Device;
- #define GDS_IMAGE_LEFT 0x00
- #define GDS_IMAGE_CENTER_X 0x01
- #define GDS_IMAGE_RIGHT 0x04
- #define GDS_IMAGE_TOP 0x00
- #define GDS_IMAGE_BOTTOM 0x08
- #define GDS_IMAGE_CENTER_Y 0x02
- #define GDS_IMAGE_CENTER (GDS_IMAGE_CENTER_X | GDS_IMAGE_CENTER_Y)
- #define GDS_IMAGE_FIT 0x10
- void* GDS_DecodeJPEG(uint8_t *Source, int *Width, int *Height, float Scale, int RGB_Mode);
- void GDS_GetJPEGSize(uint8_t *Source, int *Width, int *Height);
- bool GDS_DrawJPEG( struct GDS_Device* Device, uint8_t *Source, int x, int y, int Fit);
- void GDS_DrawRGB( struct GDS_Device* Device, uint8_t *Image, int x, int y, int Width, int Height, int RGB_Mode );
|