xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/asharpV33/rk_aiq_asharp_algo_v33.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * rk_aiq_asharp_algo_v33.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 
20 #ifndef __RKAIQ_ASHARP_SHARP_V33_H__
21 #define __RKAIQ_ASHARP_SHARP_V33_H__
22 
23 #include "RkAiqCalibDbV2Helper.h"
24 #include "math.h"
25 #include "rk_aiq_asharp_algo_sharp_v33.h"
26 #include "rk_aiq_types_asharp_algo_prvt_v33.h"
27 #include "stdio.h"
28 #include "stdlib.h"
29 #include "string.h"
30 
31 RKAIQ_BEGIN_DECLARE
32 
33 Asharp_result_V33_t Asharp_Start_V33(Asharp_Context_V33_t* pAsharpCtx);
34 
35 Asharp_result_V33_t Asharp_Stop_V33(Asharp_Context_V33_t* pAsharpCtx);
36 
37 // anr inint
38 Asharp_result_V33_t Asharp_Init_V33(Asharp_Context_V33_t** ppAsharpCtx, void* pCalibDb);
39 
40 // anr release
41 Asharp_result_V33_t Asharp_Release_V33(Asharp_Context_V33_t* pAsharpCtx);
42 
43 // anr config
44 Asharp_result_V33_t Asharp_Prepare_V33(Asharp_Context_V33_t* pAsharpCtx,
45                                        Asharp_Config_V33_t* pANRConfig);
46 
47 // anr reconfig
48 Asharp_result_V33_t Asharp_ReConfig_V33(Asharp_Context_V33_t* pAsharpCtx,
49                                         Asharp_Config_V33_t* pANRConfig);
50 
51 Asharp_result_V33_t Asharp_IQParaUpdate_V33(Asharp_Context_V33_t* pAsharpCtx);
52 
53 // anr preprocess
54 Asharp_result_V33_t Asharp_PreProcess_V33(Asharp_Context_V33_t* pAsharpCtx);
55 
56 // anr process
57 Asharp_result_V33_t Asharp_Process_V33(Asharp_Context_V33_t* pAsharpCtx,
58                                        Asharp_ExpInfo_V33_t* pExpInfo);
59 
60 // anr get result
61 Asharp_result_V33_t Asharp_GetProcResult_V33(Asharp_Context_V33_t* pAsharpCtx,
62                                              Asharp_ProcResult_V33_t* pANRResult);
63 
64 Asharp_result_V33_t Asharp_ConfigSettingParam_V33(Asharp_Context_V33_t* pAsharpCtx,
65                                                   Asharp_ParamMode_V33_t eParamMode, int snr_mode);
66 
67 Asharp_result_V33_t Asharp_ParamModeProcess_V33(Asharp_Context_V33_t* pAsharpCtx,
68                                                 Asharp_ExpInfo_V33_t* pExpInfo,
69                                                 Asharp_ParamMode_V33_t* mode);
70 
71 RKAIQ_END_DECLARE
72 
73 #endif