1 /*
2  *rk_aiq_types_asharp_algo_prvt.h
3  *
4  *  Copyright (c) 2022 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 #ifndef _RK_AIQ_TYPES_ASHARP_ALGO_PRVT_V33_H_
20 #define _RK_AIQ_TYPES_ASHARP_ALGO_PRVT_V33_H_
21 
22 #include "RkAiqCalibDbTypes.h"
23 #include "asharpV33/rk_aiq_types_asharp_algo_int_v33.h"
24 #include "xcam_common.h"
25 #include "xcam_log.h"
26 
27 // RKAIQ_BEGIN_DECLARE
28 
29 // anr context
30 typedef struct Asharp_Context_V33_s {
31     Asharp_ExpInfo_V33_t stExpInfo;
32     Asharp_State_V33_t eState;
33     Asharp_OPMode_V33_t eMode;
34 
35 #if RKAIQ_HAVE_SHARP_V33
36     Asharp_Auto_Attr_V33_t stAuto;
37     Asharp_Manual_Attr_V33_t stManual;
38 #else
39     Asharp_Auto_Attr_V33LT_t stAuto;
40     Asharp_Manual_Attr_V33LT_t stManual;
41 #endif
42 
43     struct list_head* list_sharp_v33;
44 
45     rk_aiq_sharp_strength_v33_t stStrength;
46 
47     bool isIQParaUpdate;
48     bool isGrayMode;
49     Asharp_ParamMode_V33_t eParamMode;
50 
51     int rawWidth;
52     int rawHeight;
53 
54     int prepare_type;
55 #if RKAIQ_HAVE_SHARP_V33
56     CalibDbV2_SharpV33_t sharp_v33;
57 #else
58     CalibDbV2_SharpV33Lite_t sharp_v33;
59 #endif
60 
61     int isReCalculate;
62 } Asharp_Context_V33_t;
63 
64 // RKAIQ_END_DECLARE
65 #endif