1 /* 2 *rk_aiq_types_alsc_algo_prvt.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_AGAIN_ALGO_PRVT_V2_H_ 21 #define _RK_AIQ_TYPES_AGAIN_ALGO_PRVT_V2_H_ 22 23 #include "again2/rk_aiq_types_again_algo_int_v2.h" 24 #include "RkAiqCalibDbTypes.h" 25 #include "xcam_log.h" 26 #include "xcam_common.h" 27 #include "RkAiqCalibDbTypesV2.h" 28 #include "RkAiqCalibDbV2Helper.h" 29 30 //RKAIQ_BEGIN_DECLARE 31 32 33 typedef struct Again_GainState_V2_s { 34 int gain_stat_full_last; 35 int gainState; 36 int gainState_last; 37 float gain_th0[2]; 38 float gain_th1[2]; 39 float gain_cur; 40 float ratio; 41 } Again_GainState_V2_t; 42 43 44 //anr context 45 typedef struct Again_Context_V2_s { 46 Again_ExpInfo_V2_t stExpInfo; 47 Again_State_V2_t eState; 48 Again_OPMode_V2_t eMode; 49 50 Again_Auto_Attr_V2_t stAuto; 51 Again_Manual_Attr_V2_t stManual; 52 53 // Again_ProcResult_V2_t stProcResult; 54 bool isIQParaUpdate; 55 bool isGrayMode; 56 Again_ParamMode_V2_t eParamMode; 57 58 int rawWidth; 59 int rawHeight; 60 61 Again_GainState_V2_t stGainState; 62 int prepare_type; 63 64 int isReCalculate; 65 66 CalibDbV2_GainV2_t gain_v2; 67 68 } Again_Context_V2_t; 69 70 71 72 73 74 75 //RKAIQ_END_DECLARE 76 77 #endif 78 79 80