feat(isp_awb): support to change config after initialized

This commit is contained in:
laokaiyao
2024-06-14 18:26:37 +08:00
parent b4b1906d2c
commit 9e66f1ecc0
2 changed files with 47 additions and 18 deletions

View File

@@ -49,8 +49,8 @@ typedef struct {
* so that all the distorted pixels will be counted for the reference of white balance.
*/
} white_patch; /*!< white patch configuration */
int intr_priority; /*!< The interrupt priority, range 0~7, if set to 0, the driver will try to allocate an interrupt with
* a relative low priority (1,2,3) otherwise the larger the higher, 7 is NMI.
int intr_priority; /*!< The interrupt priority, range 0~3, if set to 0, the driver will try to allocate an interrupt with
* a relative low priority (1,2,3)
*/
} esp_isp_awb_config_t;
@@ -82,6 +82,19 @@ esp_err_t esp_isp_new_awb_controller(isp_proc_handle_t isp_proc, const esp_isp_a
*/
esp_err_t esp_isp_del_awb_controller(isp_awb_ctlr_t awb_ctlr);
/**
* @brief Reconfigure the ISP AWB controller
* @note This function is allowed to be called no matter the awb controller is enabled or not.
*
* @param[in] awb_ctlr AWB controller handle
* @param[in] awb_cfg Pointer to AWB config. Refer to ``esp_isp_awb_config_t``
*
* @return
* - ESP_OK On success
* - ESP_ERR_INVALID_ARG If the combination of arguments is invalid
*/
esp_err_t esp_isp_awb_controller_reconfig(isp_awb_ctlr_t awb_ctlr, const esp_isp_awb_config_t *awb_cfg);
/**
* @brief Enable an ISP AWB controller
*