mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(jpeg): Add config for reversing input pixel format in jpeg encoder
Also add format check on both encoder and decoder Closes https://github.com/espressif/esp-idf/issues/18262
This commit is contained in:
@@ -10,6 +10,8 @@ JPEG 常用于数字图像,尤其是数码摄影图像的有损压缩。压缩
|
||||
|
||||
{IDF_TARGET_NAME} 的 JPEG 编解码器是一种基于 JPEG 基线标准的图像编解码器,可以压缩和解压缩图像,从而降低传输图像所需的带宽或存储图像所需的空间,可以处理高分辨率的图像。但请注意,编解码器引擎不能同时作为编码器和解码器工作。
|
||||
|
||||
关于更多 JPEG 编解码器的硬件特性,请参考 {IDF_TARGET_NAME} 技术参考手册中的 `JPEG 编解码器 <{IDF_TARGET_TRM_EN_URL}#jpegcodec>`__ 章节,了解更多详情。
|
||||
|
||||
功能概述
|
||||
--------
|
||||
|
||||
@@ -187,6 +189,7 @@ JPEG 编码器引擎
|
||||
.image_quality = 80,
|
||||
.width = 1920,
|
||||
.height = 1080,
|
||||
.pixel_reverse = false, // 是否反转输入图像的像素顺序,或像素顺序细节请参考技术参考手册
|
||||
};
|
||||
|
||||
uint8_t *raw_buf_1080p = (uint8_t*)jpeg_alloc_encoder_mem(raw_size_1080p);
|
||||
|
||||
Reference in New Issue
Block a user