feat(isp): demonstrate isp awb in current multi-pipeline example

This commit is contained in:
Chen Chen
2026-01-09 15:25:52 +08:00
parent b13047f8ca
commit 85b5688241
7 changed files with 464 additions and 37 deletions
@@ -38,20 +38,6 @@ typedef struct {
esp_sccb_io_handle_t dw9714_io_handle; // DW9714 VCM SCCB handle
} example_isp_af_task_param_t;
/**
* @brief AF configuration structure
*/
typedef struct {
int window_size; // AF window size (centered window)
int edge_thresh; // Edge threshold for definition calculation
int env_interval; // Environment detector interval (frames)
int first_step_val; // First step value for SA scheme
int first_approx_cycles; // First approximation cycles
int second_step_val; // Second step value for SA scheme
int second_approx_cycles; // Second approximation cycles
int focus_val_max; // Maximum focus value
} example_isp_af_config_t;
/**
* @brief Initialize AF module
*
@@ -60,15 +46,13 @@ typedef struct {
*
* @param[in] isp_proc ISP processor handle
* @param[in] dw9714_io_handle DW9714 VCM SCCB handle
* @param[in] config AF configuration (can be NULL for default values)
* @return
* - ESP_OK: Success
* - ESP_ERR_INVALID_ARG: Invalid arguments
* - ESP_ERR_NO_MEM: Out of memory
*/
esp_err_t example_isp_af_init(isp_proc_handle_t isp_proc,
esp_sccb_io_handle_t dw9714_io_handle,
const example_isp_af_config_t *config);
esp_sccb_io_handle_t dw9714_io_handle);
/**
* @brief Start AF task