1 /* 2 * rk_aiq_types_accm_int.h 3 * 4 * Copyright (c) 2019 Rockchip Corporation 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 */ 19 20 #ifndef _RK_AIQ_TYPES_ACCM_ALGO_INT_H_ 21 #define _RK_AIQ_TYPES_ACCM_ALGO_INT_H_ 22 #include "RkAiqCalibDbTypes.h" 23 #include "ccm_head.h" 24 #include "ccm_uapi_head.h" 25 #include "accm/rk_aiq_types_accm_algo.h" 26 27 RKAIQ_BEGIN_DECLARE 28 29 typedef struct accm_sw_info_s { 30 float sensorGain; 31 float awbGain[2]; 32 float awbIIRDampCoef; 33 float varianceLuma; 34 bool grayMode; 35 bool awbConverged; 36 int prepare_type; 37 bool ccmConverged; 38 } accm_sw_info_t; 39 40 typedef struct rk_aiq_ccm_color_inhibition_s { 41 float sensorGain[RK_AIQ_ACCM_COLOR_GAIN_NUM]; 42 float level[RK_AIQ_ACCM_COLOR_GAIN_NUM];//max value 100,default value 0 43 } rk_aiq_ccm_color_inhibition_t; 44 45 typedef struct rk_aiq_ccm_color_saturation_s { 46 float sensorGain[RK_AIQ_ACCM_COLOR_GAIN_NUM]; 47 float level[RK_AIQ_ACCM_COLOR_GAIN_NUM];//max value 100, default value 100 48 } rk_aiq_ccm_color_saturation_t; 49 50 typedef struct rk_aiq_ccm_accm_attrib_s { 51 rk_aiq_ccm_color_inhibition_t color_inhibition; 52 rk_aiq_ccm_color_saturation_t color_saturation; 53 } rk_aiq_ccm_accm_attrib_t; 54 55 typedef struct rk_aiq_ccm_attrib_s { 56 rk_aiq_uapi_sync_t sync; 57 bool byPass; 58 rk_aiq_ccm_op_mode_t mode; 59 rk_aiq_ccm_mccm_attrib_t stManual; 60 rk_aiq_ccm_accm_attrib_t stAuto; 61 } rk_aiq_ccm_attrib_t; 62 63 typedef struct rk_aiq_ccm_v2_attrib_s { 64 rk_aiq_uapi_sync_t sync; 65 bool byPass; 66 rk_aiq_ccm_op_mode_t mode; 67 rk_aiq_ccm_mccm_attrib_v2_t stManual; 68 rk_aiq_ccm_accm_attrib_t stAuto; 69 } rk_aiq_ccm_v2_attrib_t; 70 71 72 RKAIQ_END_DECLARE 73 74 #endif 75 76