feat(isp_color): support ISP color on P4

This commit is contained in:
gaoxu
2026-03-15 12:58:16 +08:00
committed by BOT
parent 2f2c65ecaf
commit 0726a0dc0f
4 changed files with 72 additions and 3 deletions
@@ -11,6 +11,7 @@
#include "hal/misc.h"
#include "hal/assert.h"
#include "hal/hal_utils.h"
#include "hal/config.h"
#include "hal/isp_types.h"
#include "hal/color_types.h"
#include "hal/config.h"
@@ -130,8 +131,13 @@ extern "C" {
/*---------------------------------------------------------------
CCM
---------------------------------------------------------------*/
#if HAL_CONFIG(CHIP_SUPPORT_MIN_REV) >= 300
#define ISP_LL_CCM_MATRIX_INT_BITS (4)
#define ISP_LL_CCM_MATRIX_FRAC_BITS (8)
#else
#define ISP_LL_CCM_MATRIX_INT_BITS (2)
#define ISP_LL_CCM_MATRIX_FRAC_BITS (10)
#endif
#define ISP_LL_CCM_MATRIX_TOT_BITS (ISP_LL_CCM_MATRIX_INT_BITS + ISP_LL_CCM_MATRIX_FRAC_BITS + 1) // including one sign bit
typedef union {