Files
Linux_Drivers/freertos/cvitek/install/include/common/cvi_awb_comm.h
wangliang.wang 3818ecf1c0 [freertos] Upgrade the MMF SDK from V4.0.0 to V4.1.0
1. Delete some useless files
	2. Add .gitignore file
	3. Some function update

Change-Id: Ie0b31dc20739fbceba20fd78f4fdfeaea4d526b2
2023-03-10 20:41:01 +08:00

83 lines
1.9 KiB
C

/*
* Copyright (C) Cvitek Co., Ltd. 2019-2021. All rights reserved.
*
* File Name: include/cvi_awb_comm.h
* Description:
*/
#ifndef __CVI_AWB_COMM_H__
#define __CVI_AWB_COMM_H__
#include "cvi_comm_inc.h"
#include "cvi_comm_3a.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* End of #ifdef __cplusplus */
#define CVI_AWB_LIB_NAME "cvi_awb_lib"
typedef struct cviAWB_SENSOR_DEFAULT_S {
CVI_U16 u16WbRefTemp;
CVI_U16 au16GainOffset[ISP_BAYER_CHN_NUM];
// CVI_S32 as32WbPara[AWB_CURVE_PARA_NUM];
CVI_U16 u16GoldenRgain;
CVI_U16 u16GoldenBgain;
CVI_U16 u16SampleRgain;
CVI_U16 u16SampleBgain;
// AWB_AGC_TABLE_S stAgcTbl;
// AWB_CCM_S stCcm;
CVI_U16 u16InitRgain;
CVI_U16 u16InitGgain;
CVI_U16 u16InitBgain;
CVI_U8 u8AWBRunInterval;
} AWB_SENSOR_DEFAULT_S;
typedef struct cviAWB_SENSOR_EXP_FUNC_S {
CVI_S32 (*pfn_cmos_get_awb_default)(VI_PIPE ViPipe, AWB_SENSOR_DEFAULT_S *pstAwbSnsDft);
// CVI_S32(*pfn_cmos_get_awb_spec_default)(VI_PIPE ViPipe, AWB_SPEC_SENSOR_DEFAULT_S *pstAwbSpecSnsDft);
} AWB_SENSOR_EXP_FUNC_S;
typedef struct cviAWB_SENSOR_REGISTER_S {
AWB_SENSOR_EXP_FUNC_S stAwbExp;
} AWB_SENSOR_REGISTER_S;
typedef struct _ISP_WB_CURVE_S {
CVI_U16 u16CurveSize;
CVI_U16 *u16RGain;
CVI_U16 *u16BGain;
CVI_U16 *u16BGainTop;
CVI_U16 *u16BGainBottom;
} ISP_WB_CURVE_S;
typedef struct _ISP_WB_Q_INFO_S {
CVI_U16 u16Rgain;
CVI_U16 u16Grgain;
CVI_U16 u16Gbgain;
CVI_U16 u16Bgain;
CVI_U16 u16Saturation;
CVI_U16 u16ColorTemp;
CVI_U16 u16LS0CT;
CVI_U16 u16LS1CT;
CVI_U16 u16LS0Area;
CVI_U16 u16LS1Area;
CVI_U8 u8MultiDegree;
CVI_U16 u16ActiveShift;
CVI_U32 u32FirstStableTime;
ISP_AWB_INDOOR_OUTDOOR_STATUS_E enInOutStatus;
CVI_S16 s16Bv;
CVI_U16 u16GrayWorldRgain;
CVI_U16 u16GrayWorldBgain;
} ISP_WB_Q_INFO_S;
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* End of #ifdef __cplusplus */
#endif /* __CVI_AWB_COMM_H__ */