151 uint16_t* decodedimage = malloc(
sizeof(uint16_t) * (width - 2) * (height - 2));
153 if (decodedimage == NULL) {
155 for (y = 1; y < height - 1; y++) {
158 for (x = 1; x < width - 1; x++, frame++) {
166 uint16_t* line = decodedimage;
168 for (y = 1; y < height - 1; y++) {
172 for (x = 1; x < width - 1; x++, frame++) {
175 *line++ =
RGB(r, g, b);
void tft_draw_bitmap_unscaled(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint16_t *dat)
static void interpolateBayer(uint16_t width, uint16_t x, uint16_t y, uint8_t *pixel, uint8_t *r, uint8_t *g, uint8_t *b)
void tft_draw_pixel(uint16_t x, uint16_t y, uint16_t color)