feat(isp): supported byte endianness swap

This commit is contained in:
armando
2025-03-11 17:11:43 +08:00
committed by Armando (Dou Yiwen)
parent 4abe226cf3
commit f31a5dc543
3 changed files with 16 additions and 1 deletions

View File

@@ -166,6 +166,9 @@ esp_err_t esp_isp_new_processor(const esp_isp_processor_cfg_t *proc_config, isp_
if (out_color_format.color_space == COLOR_SPACE_RGB && proc_config->input_data_source == ISP_INPUT_DATA_SOURCE_DVP) {
isp_ll_color_enable(proc->hal.hw, true); // workaround for DIG-474
}
if (proc_config->flags.byte_swap_en) {
isp_ll_set_byte_swap(proc->hal.hw, true);
}
proc->in_color_format = in_color_format;
proc->out_color_format = out_color_format;