morris
31ceb68a04
Merge branch 'fix/jpeg_enc_header_oob_v6.0' into 'release/v6.0'
...
fix(jpeg): validate encoder buffer sizes before header/DMA access (backport v6.0)
See merge request espressif/esp-idf!52122
2026-09-04 17:57:34 +08:00
morris
324e9885af
fix(driver): allocate driver objects containing atomic variables from internal SRAM
...
Objects with atomic members must not be allocated to PSRAM, otherwise
the ordering guarantee of atomic accesses is weakened due to a hardware
behavior on ESP32 chips. Explicitly request MALLOC_CAP_INTERNAL |
MALLOC_CAP_8BIT for:
- i2c master bus object (atomic status/trans_idx)
- i3c master bus object (atomic fsm)
- ISP processor and AE/AF/AWB/HIST controllers (atomic fsm)
- JPEG decoder/encoder dma2d transaction descriptors (atomic started)
- PPA transaction storage embedding dma2d_trans_t
- dma2d m2m test transaction embedding dma2d_trans_t
2026-09-03 09:46:22 +08:00
C.S.M
cb97c7dfdb
fix(jpeg): validate encoder buffer sizes before header/DMA access
...
Bound JPEG header emission by outbuf capacity and reject undersized
input buffers before programming TX DMA to avoid heap corruption and
out-of-bounds DMA reads.
(cherry picked from commit a7ac00b812 )
2026-08-27 13:51:21 +08:00
C.S.M
1873ca6359
fix(jpeg): JPEG can encode and decode in encryption situation
2026-07-13 19:56:28 +08:00
Song Ruo Jing
4fbbc16ac6
fix(dma2d): add a dequeue mechanism for dma2d driver
...
JPEG driver should be able to either dequeue a pending transaction from
a 2D-DMA pool or force end a processing transaction.
2026-07-08 20:11:08 +08:00
C.S.M
cb7c429747
feat(jpeg): support jpeg sleep retention on esp32p4
2026-03-23 11:18:23 +08:00
Song Ruo Jing
163a95614c
feat(dma2d,ppa): Support flash encryption for DMA2D and PPA
2026-03-20 16:53:29 +08:00
C.S.M
fe950466f4
feat(jpeg): Fix some potential encoder issues
...
esp_driver_jpeg allocates inadequate DMA memory size for descriptor in jpeg_encode.c
Closes https://github.com/espressif/esp-idf/issues/18296
Potential integer underflow and uninitialized pointer dereference in jpeg_encode.c
Closes https://github.com/espressif/esp-idf/issues/18297
Invalid DMA2D block RW mode configuration for 1D direction in jpeg_encode.c
Closes https://github.com/espressif/esp-idf/issues/18298
2026-03-09 12:01:28 +08:00
C.S.M
d2498485aa
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
2026-03-09 12:00:44 +08:00
Song Ruo Jing
190c081160
refactor(ppa): use fourcc for dma2d and ppa color formats
2025-12-11 15:20:11 +08:00
C.S.M
8a41bb02b4
refactor(jpeg): Use fourcc for jpeg format
2025-10-20 16:18:09 +08:00
Marius Vikhammer
484d2c5c2f
fix(system): fixed issues with unused variable warnings when compiling with NDEBUG
2025-09-19 15:42:07 +08:00
C.S.M
01a362ccb4
feat(jpeg_encoder): Add yuv444 and yuv420 jpeg encoder format on esp32p4 eco5
2025-09-12 16:45:13 +08:00
Chen Jichang
90050df641
fix(jpeg): only call esp_pm APIs when CONFIG_PM_ENABLE is enabled
2025-05-22 17:38:58 +08:00
C.S.M
bfc69338c8
fix(jpeg): Fix wrong parameter in jpeg encoder msync
2025-05-21 17:54:44 +08:00
C.S.M
f9469f4e81
fix(jpeg): use dma2d empty rx desc event to avoid a stuck
2025-03-13 11:37:44 +08:00
C.S.M
a20d865bf5
bugfix(jpeg): Fix that jpeg driver does not distinguish err handle mode
2024-05-31 14:03:09 +08:00
C.S.M
c620a2fa39
fix(jpeg): Modify jpeg deocde/encode error handling logic, fix if one picture wrong, all picture wrong issue
2024-05-28 16:24:40 +08:00
Cao Sen Miao
7f97a9e524
fix(jpeg): Fix several issues reported recently,
...
1. Fix decode images with dri marker failed,
2. Fix encode sometimes get length error
2024-04-28 15:16:48 +08:00
Cao Sen Miao
282f3869c8
fix(jpeg): Fix issue that jpeg encoder does not end with 0xffd9
2024-04-18 12:39:09 +08:00
Cao Sen Miao
876a3697ec
feat(jpeg): Support jpeg decoder yuv format
2024-04-18 10:40:48 +08:00
Armando
d341540a5e
change(drivers): other driver changes for cache malloc
2024-04-15 15:34:51 +08:00
Cao Sen Miao
ca23d58cf3
change(jpeg): Clean up some mess code in jpeg encoder
2024-04-09 11:33:29 +08:00
Cao Sen Miao
22ec65adef
feat(jpeg_encoder): Add the basic support for jpeg encoder
2024-04-01 20:03:31 +08:00