Merge branch 'change/isp_hsize_check_v5.4' into 'release/v5.4'

isp: hsize check and lut size check (v5.4)

See merge request espressif/esp-idf!46989
This commit is contained in:
morris
2026-04-20 13:31:30 +08:00
3 changed files with 22 additions and 13 deletions
+20 -13
View File
@@ -106,13 +106,6 @@ extern "C" {
---------------------------------------------------------------*/
#define ISP_LL_BF_DEFAULT_TEMPLATE_VAL 15
/*---------------------------------------------------------------
DVP
---------------------------------------------------------------*/
#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
---------------------------------------------------------------*/
@@ -122,12 +115,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
---------------------------------------------------------------*/
@@ -140,6 +127,26 @@ extern "C" {
#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
/*---------------------------------------------------------------
DVP
---------------------------------------------------------------*/
#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;