/****************************************************************************** Copyright (C), 2015-2020, XM. Co., Ltd. ****************************************************************************** File Name : xm_comm_sns.h Version : Initial Draft Author : XM Isp software group Created : 2015/7/6 Description : The common data type defination Function List : History : 1.Date : 2015/7/6 Author : Lycai Modification : creat ******************************************************************************/ #ifndef __XM_COMM_SNS_H__ #define __XM_COMM_SNS_H__ #include "xm_type.h" #include "xm_comm_isp.h" typedef struct xm_ISP_CMOS_AGC_TABLE_S { XM_BOOL bValid; XM_U8 au8SharpenAltD[ISP_AUTO_STENGTH_NUM]; /* adjust image edge,different iso with different sharp strength */ XM_U8 au8SharpenAltUd[ISP_AUTO_STENGTH_NUM]; /* adjust image texture, different iso with different strength */ XM_U8 au8SharpenKd[ISP_AUTO_STENGTH_NUM]; XM_U8 au8SnrThresh[ISP_AUTO_STENGTH_NUM]; /* adjust 2Ddenoise strength, different iso with different strength */ XM_U8 au83DTfStrength[ISP_AUTO_STENGTH_NUM]; /* adjust 3Ddenoise strength, different iso with different strength */ XM_U8 au83DSfStrength[ISP_AUTO_STENGTH_NUM]; XM_U8 au8DyDpc[ISP_AUTO_STENGTH_NUM]; /* adjust DynamicDpc strength, different iso with different strength */ XM_U8 au8Saturation[ISP_AUTO_STENGTH_NUM]; XM_U16 au16Blc[ISP_AUTO_STENGTH_NUM]; /* adjust blackLevel,different iso with different sharp strength */ XM_U16 au16Ytrangamma[ISP_AUTO_STENGTH_NUM]; /*adjust Y_Tran gamma,iso with different sharp strength*/ } ISP_CMOS_AGC_TABLE_S; typedef struct xm_ISP_CMOS_NOISE_TABLE_S { XM_BOOL bValid; XM_U8 au8NoiseProfileWeightLut[128]; XM_U8 au8DemosaicWeightLut[128]; } ISP_CMOS_NOISE_TABLE_S; typedef struct xm_ISP_CMOS_DEMOSAIC_S { XM_BOOL bValid; XM_U8 u8VhSlope; XM_U8 u8AaSlope; XM_U8 u8VaSlope; XM_U8 u8UuSlope; XM_U8 u8SatSlope; XM_U8 u8AcSlope; XM_U16 u16VhThresh; XM_U16 u16AaThresh; XM_U16 u16VaThresh; XM_U16 u16UuThresh; XM_U16 u16SatThresh; XM_U16 u16AcThresh; } ISP_CMOS_DEMOSAIC_S; typedef struct xm_ISP_CMOS_DRC_S { XM_U8 u8DrcBlack; XM_U8 u8DrcVs; /* variance space */ XM_U8 u8DrcVi; /* variance intensity */ XM_U8 u8DrcSm; /* slope max */ XM_U16 u16DrcWl; /* white level */ } ISP_CMOS_DRC_S; #define LUT_FACTOR (8) #define GAMMA_FE_LUT_SIZE ((1<