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_ADPCC_ALGO_PRVT_H_ 21 #define _RK_AIQ_TYPES_ADPCC_ALGO_PRVT_H_ 22 23 #include "adpcc/rk_aiq_types_adpcc_algo_int.h" 24 #include "RkAiqCalibDbTypes.h" 25 #include "RkAiqCalibDbTypesV2.h" 26 #include "base/xcam_log.h" 27 #include "base/xcam_common.h" 28 29 30 #define LIMIT_VALUE(value,max_value,min_value) (value > max_value? max_value : value < min_value ? min_value : value) 31 #define FASTMODELEVELMAX (10) 32 #define FASTMODELEVELMIN (1) 33 34 35 typedef struct AdpccContext_s { 36 AdpccOPMode_t eMode; 37 AdpccState_t eState; 38 39 AdpccExpInfo_t stExpInfo; 40 41 Adpcc_Auto_Attr_t stAuto; 42 Adpcc_Manual_Attr_t stManual; 43 CalibDbV2_Dpcc_t stTool; 44 //xml param 45 CalibDbV2_Dpcc_t stDpccCalib; 46 //html param 47 Adpcc_html_param_t stParams; 48 49 //sensor dpcc proc result 50 Sensor_dpcc_res_t SenDpccRes; 51 52 //pre ae result 53 Adpcc_pre_ae_res_t PreAe; 54 55 bool isBlackSensor; 56 57 int prepare_type; 58 bool isReCal_; 59 } AdpccContext_t; 60 61 typedef struct _RkAiqAlgoContext { 62 AdpccContext_t pAdpccCtx; 63 } RkAiqAlgoContext; 64 65 66 67 #endif 68 69 70