initial ESP-IDF project

Signed-off-by: Peter Siegmund <peter@rdkr.com>
This commit is contained in:
Peter Siegmund
2024-05-29 23:03:43 +02:00
parent 2a98cb9367
commit 09037c6df0
68 changed files with 27746 additions and 88 deletions

View File

@@ -0,0 +1,55 @@
#ifndef LIB_LPEG_H
#define LIB_LPEG_H
#ifdef __cplusplus
extern "C" {
#endif
/******************************************************************************/
/*** include files ***/
/******************************************************************************/
#include "epd_driver.h"
#include <stdint.h>
/******************************************************************************/
/*** macro definitions ***/
/******************************************************************************/
/**
* @brief Adds dithering to image rendering (Makes grayscale smoother on transitions)
*/
#define JPG_DITHERING 0
/**
* @brief Measure the time consumed by jpeg image processing.
*/
#define LIBJPEG_MEASURE 1
/******************************************************************************/
/*** type definitions ***/
/******************************************************************************/
/******************************************************************************/
/*** exported variables ***/
/******************************************************************************/
/******************************************************************************/
/*** exported functions ***/
/******************************************************************************/
void libjpeg_init(void);
void show_jpg_from_buff(uint8_t *buff, uint32_t buff_size, Rect_t area);
// void show_jpg_from_spiffs(const char *fn);
void libjpeg_deinit(void);
#ifdef __cplusplus
}
#endif
#endif
/******************************************************************************/
/*** END OF FILE ***/
/******************************************************************************/