feat(cam): support format conversion function
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <stdbool.h>
|
||||
#include "esp_err.h"
|
||||
#include "esp_cam_ctlr_types.h"
|
||||
#include "hal/cam_ctlr_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -146,6 +147,19 @@ struct esp_cam_ctlr_t {
|
||||
*/
|
||||
void *(*alloc_buffer)(esp_cam_ctlr_t *, size_t, uint32_t);
|
||||
|
||||
/**
|
||||
* @brief Configure format conversion
|
||||
*
|
||||
* @param[in] esp_cam_ctlr_t * ESP CAM controller handle
|
||||
* @param[in] const cam_ctlr_format_conv_config_t * Color conversion configuration
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - ESP_ERR_INVALID_ARG: Invalid argument
|
||||
* - ESP_ERR_NOT_SUPPORTED: Format conversion not supported by this controller
|
||||
*/
|
||||
esp_err_t (*format_conversion)(esp_cam_ctlr_t *, const cam_ctlr_format_conv_config_t *);
|
||||
|
||||
void *user_data; ///< User data
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user