morris
c96d9d0380
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-08-31 13:48:44 +08:00
C.S.M
a7ac00b812
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.
2026-08-25 16:29:16 +08:00
Chen Jichang
2b8029c775
feat(mspi): split dma and mspi alignment
2026-08-17 16:49:27 +08:00
C.S.M
fbdf6d7427
fix(jpeg): JPEG can encode and decode in encryption situation
2026-07-07 10:42:45 +08:00
morris
651d6a283f
refactor(esp_common): centralize ALIGN_UP/ALIGN_DOWN into esp_macros.h
...
Remove ~50 duplicate local definitions of ALIGN_UP/ALIGN_DOWN/ALIGN_UP_BY/
ALIGN_DOWN_BY across the codebase and replace them with canonical
ESP_ALIGN_UP/ESP_ALIGN_DOWN from esp_macros.h.
2026-07-06 13:36:06 +08:00
Song Ruo Jing
92024d98b6
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-02 20:25:09 +08:00
C.S.M
0f0edc051a
ci(esp32s31): Add ci target test for esp32s31
2026-04-14 19:40:51 +08:00
C.S.M
93566e1f8c
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-06 11:48:49 +08:00
C.S.M
762252153a
Merge branch 'feat/add_jpeg_pixel_reverse_enc' into 'master'
...
feat(jpeg): Add config for reversing input pixel format in jpeg encoder
Closes IDFGH-17272
See merge request espressif/esp-idf!46075
2026-02-27 18:31:56 +08:00
C.S.M
05fd4d7da3
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-02-27 15:31:47 +08:00
Song Ruo Jing
9362907287
feat(dma2d,ppa): Support flash encryption for DMA2D and PPA
2026-02-26 16:39:40 +08:00
C.S.M
4e55d49cc8
feat(jpeg): support jpeg sleep retention on esp32p4
2026-01-21 11:00:14 +08:00
Song Ruo Jing
fe8ace8bef
refactor(ppa): use fourcc for dma2d and ppa color formats
2025-12-01 19:21:49 +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