luat_tjpgd.h 520 B

123456789101112131415161718192021222324
  1. /*----------------------------------------------------------------------------/
  2. / TJpgDec - Tiny JPEG Decompressor include file (C)ChaN, 2020
  3. /----------------------------------------------------------------------------*/
  4. #ifndef LUAT_TJPGD
  5. #define LUAT_TJPGD
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. typedef struct {
  10. uint16_t width;
  11. uint16_t height;
  12. uint8_t *fbuf;
  13. } luat_tjpgd_data_t;
  14. luat_tjpgd_data_t * luat_tjpgd(const char* input_file);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif /* _TJPGDEC */