1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*----------------------------------------------*/
- /* TJpgDec System Configurations R0.03 */
- /*----------------------------------------------*/
- #define JD_SZBUF 512
- /* Specifies size of stream input buffer */
- #define JD_FORMAT 2
- /* Specifies output pixel format.
- / 0: RGB888 (24-bit/pix)
- / 1: RGB565 (16-bit/pix)
- / 2: Grayscale (8-bit/pix)
- / 3: BGR888 (24-bit/pix)
- / 4: BGR565 (16-bit/pix)
- */
- #define JD_USE_SCALE 0
- /* Switches output descaling feature.
- / 0: Disable
- / 1: Enable
- */
- #define JD_TBLCLIP 1
- /* Use table conversion for saturation arithmetic. A bit faster, but increases 1 KB of code size.
- / 0: Disable
- / 1: Enable
- */
- //#define JD_FASTDECODE 1
- #define JD_FASTDECODE 2
- /* Optimization level
- / 0: Basic optimization. Suitable for 8/16-bit MCUs.
- / Workspace of 3100 bytes needed.
- / 1: + 32-bit barrel shifter. Suitable for 32-bit MCUs.
- / Workspace of 3480 bytes needed.
- / 2: + Table conversion for huffman decoding (wants 6 << HUFF_BIT bytes of RAM).
- / Workspace of 9644 bytes needed.
- */
- // Do not change this, it is the minimum size in bytes of the workspace needed by the decoder
- #if JD_FASTDECODE == 0
- #define TJPGD_WORKSPACE_SIZE 3100
- #elif JD_FASTDECODE == 1
- #define TJPGD_WORKSPACE_SIZE 3500
- #elif JD_FASTDECODE == 2
- #define TJPGD_WORKSPACE_SIZE (3500 + 6144)
- #endif
|