tjpgdcnf.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*----------------------------------------------*/
  2. /* TJpgDec System Configurations R0.03 */
  3. /*----------------------------------------------*/
  4. #include "luat_lcd.h"
  5. #ifndef JD_SZBUF
  6. #define JD_SZBUF
  7. #endif
  8. /* Specifies size of stream input buffer */
  9. #if (LUAT_LCD_COLOR_DEPTH == 32)
  10. #define JD_FORMAT 0
  11. #elif (LUAT_LCD_COLOR_DEPTH == 16)
  12. #define JD_FORMAT 1
  13. #elif (LUAT_LCD_COLOR_DEPTH == 8)
  14. #define JD_FORMAT 2
  15. #else
  16. #error "no supprt color depth"
  17. #endif
  18. /* Specifies output pixel format.
  19. / 0: RGB888 (24-bit/pix)
  20. / 1: RGB565 (16-bit/pix)
  21. / 2: Grayscale (8-bit/pix)
  22. */
  23. #ifndef JD_USE_SCALE
  24. #define JD_USE_SCALE 1
  25. #endif
  26. /* Switches output descaling feature.
  27. / 0: Disable
  28. / 1: Enable
  29. */
  30. #ifndef JD_TBLCLIP
  31. #define JD_TBLCLIP 1
  32. #endif
  33. /* Use table conversion for saturation arithmetic. A bit faster, but increases 1 KB of code size.
  34. / 0: Disable
  35. / 1: Enable
  36. */
  37. #define JD_FASTDECODE 1
  38. /* Optimization level
  39. / 0: Basic optimization. Suitable for 8/16-bit MCUs.
  40. / 1: + 32-bit barrel shifter. Suitable for 32-bit MCUs.
  41. / 2: + Table conversion for huffman decoding (wants 6 << HUFF_BIT bytes of RAM)
  42. */