roo_display
API Documentation for roo_display
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 1
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// Empirically, 2 is about 26% faster on ESP32; i.e. the extra 3 KB seem well invested.
28#define JD_FASTDECODE 2
29/* Optimization level
30/ 0: Basic optimization. Suitable for 8/16-bit MCUs.
31/ 1: + 32-bit barrel shifter. Suitable for 32-bit MCUs.
32/ 2: + Table conversion for huffman decoding (wants 6 << HUFF_BIT bytes of RAM)
33*/
34