mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
fix(isp): isp demosaic module should never be disabled for non-raw8 output format
This commit is contained in:
@ -59,7 +59,10 @@ esp_err_t esp_isp_demosaic_disable(isp_proc_handle_t proc)
|
|||||||
ESP_RETURN_ON_FALSE(proc, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null pointer");
|
ESP_RETURN_ON_FALSE(proc, ESP_ERR_INVALID_ARG, TAG, "invalid argument: null pointer");
|
||||||
ESP_RETURN_ON_FALSE(proc->demosaic_fsm == ISP_FSM_ENABLE, ESP_ERR_INVALID_STATE, TAG, "demosaic isn't enabled yet");
|
ESP_RETURN_ON_FALSE(proc->demosaic_fsm == ISP_FSM_ENABLE, ESP_ERR_INVALID_STATE, TAG, "demosaic isn't enabled yet");
|
||||||
|
|
||||||
isp_ll_demosaic_enable(proc->hal.hw, false);
|
if (proc->out_color_format.color_space == (uint32_t)COLOR_SPACE_RAW) {
|
||||||
|
// for other out_color_format, demosaic module is needed for rgb interpolation algorithm
|
||||||
|
isp_ll_demosaic_enable(proc->hal.hw, false);
|
||||||
|
}
|
||||||
proc->demosaic_fsm = ISP_FSM_INIT;
|
proc->demosaic_fsm = ISP_FSM_INIT;
|
||||||
|
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
|
Reference in New Issue
Block a user