mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 21:10:20 +00:00
feat(cam): add camera buffer alloc function
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -133,6 +133,19 @@ struct esp_cam_ctlr_t {
|
||||
*/
|
||||
esp_err_t (*get_buffer_len)(esp_cam_ctlr_t *, size_t *);
|
||||
|
||||
/**
|
||||
* @brief Allocate aligned camera buffer for ESP CAM controller
|
||||
*
|
||||
* @param[in] esp_cam_ctlr_t * ESP CAM controller handle
|
||||
* @param[in] size_t Buffer size in bytes
|
||||
* @param[in] uint32_t Buffer allocation capabilities
|
||||
*
|
||||
* @return
|
||||
* - Buffer pointer on success
|
||||
* - NULL on failure
|
||||
*/
|
||||
void *(*alloc_buffer)(esp_cam_ctlr_t *, size_t, uint32_t);
|
||||
|
||||
void *user_data; ///< User data
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user