-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGIFDecoder.h
33 lines (25 loc) · 863 Bytes
/
GIFDecoder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _GIFDECODER_H_
#define _GIFDECODER_H_
#include <stdint.h>
typedef void (*callback)(void);
typedef void (*pixel_callback)(int16_t x, int16_t y, uint8_t red, uint8_t green, uint8_t blue);
void setScreenClearCallback(callback f);
void setUpdateScreenCallback(callback f);
void setDrawPixelCallback(pixel_callback f);
// public
int enumerateGIFFiles(const char *directoryName, boolean displayFilenames);
void getGIFFilenameByIndex(const char *directoryName, int index, char *pnBuffer);
void chooseRandomGIFFilename(const char *directoryName, char *pnBuffer);
int processGIFFile(const char * pathname);
// private
#ifndef SmartMatrix_h
typedef struct rgb24 {
uint8_t red;
uint8_t green;
uint8_t blue;
} rgb24;
#endif
void lzw_decode_init (int csize, byte *buf);
int lzw_decode(byte *buf, int len);
void decompressAndDisplayFrame();
#endif