Skip to content

Commit a2523ce

Browse files
author
linxu
committed
ID: [88db46fd]
esp_new_jpeg: Fix some esp_new_jpeg bugs 1. Support IDF5.4 2. Support SD power supply comes from internal LDO IO in test_app 3. Add 16-byte alignment check for encoder input buffer when using ESP32-S3 4. Add 16-byte alignment check for decoder output buffer when using ESP32-S3 5. Fix inaccurate `inbuf_remain` member in `jpeg_dec_io_t` structure after decoding is finished 6. Fix spelling errors in test_app
1 parent 230b0d2 commit a2523ce

File tree

17 files changed

+85
-36
lines changed

17 files changed

+85
-36
lines changed

esp_new_jpeg/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## v0.6.0
4+
5+
### Features
6+
7+
- Support IDF5.4
8+
- Support SD power supply comes from internal LDO IO in test_app
9+
- Add 16-byte alignment check for encoder input buffer when using ESP32-S3
10+
- Add 16-byte alignment check for decoder output buffer when using ESP32-S3
11+
12+
### Bug Fixes
13+
14+
- Fix inaccurate `inbuf_remain` member in `jpeg_dec_io_t` structure after decoding is finished
15+
- Fix spelling errors in test_app
16+
317
## v0.5.1
418

519
### Bug Fixes

esp_new_jpeg/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ Please refer to the `test_app` folder for more details on API usage.
169169
>>> Image.open("file_name.jpg").info.get('progressive', 0)
170170
```
171171

172-
2. Why does the decoded output image appear misaligned?
172+
2. Why does the output image appear misaligned?
173173

174-
The issue typically occurs when a few columns of the image on the far left or right side appear on the opposite side. If you are using the ESP32-S3, a possible cause is that the output buffer is not 16-byte aligned. Please use the `jpeg_calloc_align` function to allocate output buffer.
174+
The issue typically occurs when a few columns of the image on the far left or right side appear on the opposite side. If you are using the ESP32-S3, a possible cause is that the output buffer of decoder or the input buffer of encoder is not 16-byte aligned. Please use the `jpeg_calloc_align` function to allocate buffer.
175175

176176
3. How can I use a simpler method to check if the encoder's output is correct?
177177
@@ -188,7 +188,7 @@ Please refer to the `test_app` folder for more details on API usage.
188188
189189
The following table shows the support of ESP_NEW_JPEG for Espressif SoCs. The "✔" means supported, and the "✖" means not supported.
190190
191-
| Chip | v0.5.1 |
191+
| Chip | v0.6.0 |
192192
|----------|----------|
193193
| ESP32 | ✔ |
194194
| ESP32-S2 | ✔ |

esp_new_jpeg/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.5.1"
1+
version: "0.6.0"
22
description: Espressif JPEG encoder and decoder
33
url: https://github.com/espressif/esp-adf-libs/tree/master/esp_new_jpeg
44
repository: https://github.com/espressif/esp-adf-libs.git

esp_new_jpeg/include/esp_jpeg_dec.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ jpeg_error_t jpeg_dec_get_process_count(jpeg_dec_handle_t jpeg_dec, int *process
137137
/**
138138
* @brief Decode JPEG picture
139139
*
140+
* @note For ESP32-S3, please use `jpeg_calloc_align` to allocate a 16-byte aligned output buffer.
141+
*
140142
* @param[in] jpeg_dec JPEG decoder handle
141143
* @param[in] io Pointer to io control struct
142144
*

esp_new_jpeg/include/esp_jpeg_enc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jpeg_error_t jpeg_enc_open(jpeg_enc_config_t *info, jpeg_enc_handle_t *jpeg_enc)
5858
/**
5959
* @brief Encode one image
6060
*
61+
* @note For ESP32-S3, please use `jpeg_calloc_align` to allocate a 16-byte aligned input buffer.
62+
*
6163
* @param[in] jpeg_enc The JPEG encoder handle. It gained from `jpeg_enc_open`
6264
* @param[in] in_buf The input buffer, It needs a completed image. The buffer must be aligned 16 byte.
6365
* @param[in] inbuf_size The size of `in_buf`. The value must be size of a completed image.

esp_new_jpeg/include/esp_jpeg_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extern "C" {
88
#endif /* __cplusplus */
99

10-
#define ESP_JPEG_VERION "0.5.1"
10+
#define ESP_JPEG_VERION "0.6.0"
1111

1212
/**
1313
* @version 0.5.0:
884 Bytes
Binary file not shown.
1.53 KB
Binary file not shown.
1.53 KB
Binary file not shown.
1.54 KB
Binary file not shown.

0 commit comments

Comments
 (0)