mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +00:00
feat(csi): add API to expose internal backup_buffer
This commit is contained in:
@@ -105,6 +105,34 @@ struct esp_cam_ctlr_t {
|
||||
*/
|
||||
esp_err_t (*register_event_callbacks)(esp_cam_ctlr_t *ctlr, const esp_cam_ctlr_evt_cbs_t *cbs, void *user_ctx);
|
||||
|
||||
/**
|
||||
* @brief Get ESP CAM controller internal malloced backup buffer(s) addr
|
||||
*
|
||||
* @param[in] esp_cam_ctlr_t * ESP CAM controller handle
|
||||
* @param[in] uint32_t Number of frame buffer(s) to get. This value must be the same as the number of the followed fbN parameters
|
||||
* @param[out] const void ** Address of the frame buffer 0 (first frame buffer)
|
||||
* @param[out] ... List of other frame buffers if any
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK
|
||||
* - ESP_ERR_INVALID_ARG: Invalid argument
|
||||
* - ESP_ERR_INVALID_STATE: Invalid driver state
|
||||
*/
|
||||
esp_err_t (*get_internal_buffer)(esp_cam_ctlr_t *, uint32_t, const void **, ...);
|
||||
|
||||
/**
|
||||
* @brief Get ESP CAM controller internal backup buffer length
|
||||
*
|
||||
* @param[in] esp_cam_ctlr_t * ESP CAM controller handle
|
||||
* @param[out] size_t * The size of each frame buffer, in bytes.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK
|
||||
* - ESP_ERR_INVALID_ARG: NULL ptr
|
||||
* - ESP_ERR_INVALID_STATE: Invalid driver state
|
||||
*/
|
||||
esp_err_t (*get_buffer_len)(esp_cam_ctlr_t *, size_t *);
|
||||
|
||||
void *user_data; ///< User data
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user