feat(jpeg): support jpeg sleep retention on esp32p4

This commit is contained in:
C.S.M
2026-01-21 11:00:14 +08:00
parent 2948a46371
commit 4e55d49cc8
17 changed files with 268 additions and 11 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -29,7 +29,12 @@ typedef struct {
*/
typedef struct {
int intr_priority; /*!< JPEG interrupt priority, if set to 0, driver will select the default priority (1,2,3). */
int timeout_ms; /*!< JPEG timeout threshold for handling a picture, should larger than valid decode time in ms. For example, for 30fps decode, this value must larger than 34. -1 means wait forever */
int timeout_ms; /*!< JPEG timeout threshold for handling a picture, should larger than valid decode time in ms. For example, for 30fps decode, this value must larger than 34. -1 means wait forever */
struct {
uint32_t allow_pd: 1; /*!< If set, the driver will backup/restore the JPEG registers before/after entering/exist sleep mode.
By this approach, the system can power off JPEG's power domain.
This can save power, but at the expense of more RAM being consumed */
} flags; /*!< JPEG engine configuration flags */
} jpeg_decode_engine_cfg_t;
/**