Rdzleo 38b71ce221 chore: 添加 esp_jpeg 托管组件到仓库
将 ESP Component Registry 自动下载的 espressif__esp_jpeg 组件纳入版本管理,
避免其他开发者拉取后需要重新下载。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:32:38 +08:00

49 lines
1.2 KiB
C

/*----------------------------------------------*/
/* TJpgDec System Configurations R0.03 */
/*----------------------------------------------*/
#include "sdkconfig.h"
#define JD_SZBUF CONFIG_JD_SZBUF
/* Specifies size of stream input buffer */
#define JD_FORMAT CONFIG_JD_FORMAT
/* Specifies output pixel format.
/ 0: RGB888 (24-bit/pix)
/ 1: RGB565 (16-bit/pix)
/ 2: Grayscale (8-bit/pix)
*/
#if defined(CONFIG_JD_USE_SCALE)
#define JD_USE_SCALE CONFIG_JD_USE_SCALE
#else
#define JD_USE_SCALE 0
#endif
/* Switches output descaling feature.
/ 0: Disable
/ 1: Enable
*/
#if defined(CONFIG_JD_TBLCLIP)
#define JD_TBLCLIP CONFIG_JD_TBLCLIP
#else
#define JD_TBLCLIP 0
#endif
/* Use table conversion for saturation arithmetic. A bit faster, but increases 1 KB of code size.
/ 0: Disable
/ 1: Enable
*/
#define JD_FASTDECODE CONFIG_JD_FASTDECODE
/* Optimization level
/ 0: Basic optimization. Suitable for 8/16-bit MCUs.
/ 1: + 32-bit barrel shifter. Suitable for 32-bit MCUs.
/ 2: + Table conversion for huffman decoding (wants 6 << HUFF_BIT bytes of RAM)
*/
#if defined(CONFIG_JD_DEFAULT_HUFFMAN)
#define JD_DEFAULT_HUFFMAN CONFIG_JD_DEFAULT_HUFFMAN
#else
#define JD_DEFAULT_HUFFMAN 0
#endif