xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/aynr/rk_aiq_aynr_algo_v1.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * rk_aiq_aynr_algo_v1.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 __RKAIQ_AYNR_V1_H__
21 #define __RKAIQ_AYNR_V1_H__
22 
23 #include <stdio.h>
24 #include <string.h>
25 #include <math.h>
26 #include <stdlib.h>
27 
28 #include "rk_aiq_aynr_algo_ynr_v1.h"
29 #include "rk_aiq_types_aynr_algo_prvt_v1.h"
30 
31 RKAIQ_BEGIN_DECLARE
32 
33 Aynr_Result_V1_t Aynr_Start_V1(Aynr_Context_V1_t *pAynrCtx);
34 
35 Aynr_Result_V1_t Aynr_Stop_V1(Aynr_Context_V1_t *pAynrCtx);
36 
37 //anr inint
38 Aynr_Result_V1_t Aynr_Init_V1(Aynr_Context_V1_t **ppAynrCtx, CamCalibDbContext_t *pCalibDb);
39 
40 //anr release
41 Aynr_Result_V1_t Aynr_Release_V1(Aynr_Context_V1_t *pAynrCtx);
42 
43 //anr config
44 Aynr_Result_V1_t Aynr_Prepare_V1(Aynr_Context_V1_t *pAynrCtx, Aynr_Config_V1_t* pANRConfig);
45 
46 //anr reconfig
47 Aynr_Result_V1_t Aynr_ReConfig_V1(Aynr_Context_V1_t *pAynrCtx, Aynr_Config_V1_t* pANRConfig);
48 
49 Aynr_Result_V1_t Aynr_IQParaUpdate_V1(Aynr_Context_V1_t *pAynrCtx);
50 
51 //anr preprocess
52 Aynr_Result_V1_t Aynr_PreProcess_V1(Aynr_Context_V1_t *pAynrCtx);
53 
54 //anr process
55 Aynr_Result_V1_t Aynr_Process_V1(Aynr_Context_V1_t *pAynrCtx, Aynr_ExpInfo_V1_t *pExpInfo);
56 
57 //anr get result
58 Aynr_Result_V1_t Aynr_GetProcResult_V1(Aynr_Context_V1_t *pAynrCtx, Aynr_ProcResult_V1_t* pANRResult);
59 
60 Aynr_Result_V1_t Aynr_ConfigSettingParam_V1(Aynr_Context_V1_t *pAynrCtx, Aynr_ParamMode_V1_t eParamMode, int snr_mode);
61 
62 Aynr_Result_V1_t Aynr_ParamModeProcess_V1(Aynr_Context_V1_t *pAynrCtx, Aynr_ExpInfo_V1_t *pExpInfo, Aynr_ParamMode_V1_t *mode);
63 
64 Aynr_Result_V1_t Aynr_Init_Json_V1(Aynr_Context_V1_t **ppAynrCtx, CamCalibDbV2Context_t *pCalibDbV2);
65 
66 
67 RKAIQ_END_DECLARE
68 
69 #endif
70