FastLED 3.9.15
Loading...
Searching...
No Matches
tjpgdcnf.h
Go to the documentation of this file.
1/*----------------------------------------------*/
2/* TJpgDec System Configurations R0.03 */
3/*----------------------------------------------*/
4
5#define JD_SZBUF 512
6/* Specifies size of stream input buffer */
7
8#define JD_FORMAT 0
9/* Specifies output pixel format.
10/ 0: RGB888 (24-bit/pix)
11/ 1: RGB565 (16-bit/pix)
12/ 2: Grayscale (8-bit/pix)
13*/
14
15#define JD_USE_SCALE 1
16/* Switches output descaling feature.
17/ 0: Disable
18/ 1: Enable
19*/
20
21#define JD_TBLCLIP 0
22/* Use table conversion for saturation arithmetic. A bit faster, but increases 1 KB of code size.
23/ 0: Disable
24/ 1: Enable
25*/
26
27#define JD_FASTDECODE 1
28/* Optimization level
29/ 0: Basic optimization. Suitable for 8/16-bit MCUs.
30/ Workspace of 3100 bytes needed.
31/ 1: + 32-bit barrel shifter. Suitable for 32-bit MCUs.
32/ Workspace of 3480 bytes needed.
33/ 2: + Table conversion for huffman decoding (wants 6 << HUFF_BIT bytes of RAM).
34/ Workspace of 9644 bytes needed.
35*/
36
37// Do not change this, it is the minimum size in bytes of the workspace needed by the decoder
38#if JD_FASTDECODE == 0
39 #define TJPGD_WORKSPACE_SIZE 3100
40#elif JD_FASTDECODE == 1
41 #define TJPGD_WORKSPACE_SIZE 3500
42#elif JD_FASTDECODE == 2
43 #define TJPGD_WORKSPACE_SIZE (3500 + 6144)
44#endif