change(isp): added lut table depth check

This commit is contained in:
armando
2026-03-23 11:31:30 +08:00
parent 94b24b3434
commit 418a091240
2 changed files with 23 additions and 15 deletions
@@ -121,15 +121,6 @@ extern "C" {
---------------------------------------------------------------*/
#define ISP_LL_BF_DEFAULT_TEMPLATE_VAL 15
/*---------------------------------------------------------------
DVP
---------------------------------------------------------------*/
#define ISP_LL_DVP_CTLR_NUMS 1U
#define ISP_LL_DVP_DATA_WIDTH_MAX 16
#define ISP_LL_DVP_DATA_TYPE_RAW8 0x2A
#define ISP_LL_DVP_DATA_TYPE_RAW10 0x2B
#define ISP_LL_DVP_DATA_TYPE_RAW12 0x2C
/*---------------------------------------------------------------
Color
---------------------------------------------------------------*/
@@ -139,12 +130,6 @@ extern "C" {
#define ISP_LL_COLOR_BRIGNTNESS_MIN -128
#define ISP_LL_COLOR_BRIGNTNESS_MAX 127
/*---------------------------------------------------------------
LSC
---------------------------------------------------------------*/
#define ISP_LL_LSC_GRID_HEIGHT 32
#define ISP_LL_LSC_GRID_WIDTH 32
/*---------------------------------------------------------------
CCM
---------------------------------------------------------------*/
@@ -162,6 +147,28 @@ extern "C" {
---------------------------------------------------------------*/
#define ISP_LL_HIST_CTLR_NUMS 1U
/*---------------------------------------------------------------
DVP
---------------------------------------------------------------*/
#define ISP_LL_DVP_CTLR_NUMS 1U
#define ISP_LL_DVP_DATA_WIDTH_MAX 16
#define ISP_LL_DVP_DATA_TYPE_RAW8 0x2A
#define ISP_LL_DVP_DATA_TYPE_RAW10 0x2B
#define ISP_LL_DVP_DATA_TYPE_RAW12 0x2C
/*---------------------------------------------------------------
LSC
---------------------------------------------------------------*/
#define ISP_LL_LSC_GRID_HEIGHT 32
#define ISP_LL_LSC_GRID_WIDTH 32
/*---------------------------------------------------------------
LUT
---------------------------------------------------------------*/
#define ISP_LL_LUT_LSC_SIZE_MAX 560
#define ISP_LL_LUT_DPC_SIZE_MAX 512
#define ISP_LL_LUT_AWB_SIZE_MAX 104
typedef union {
struct {
uint32_t fraction: ISP_LL_AWB_RGB_RATIO_FRAC_BITS;