xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/algos/adehaze/rk_aiq_adehaze_algo_v11.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * rk_aiq_adehaze_algo.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_ADEHAZE_ALGO_V11_H__
21 #define __RK_AIQ_ADEHAZE_ALGO_V11_H__
22 
23 #include "RkAiqCalibDbTypes.h"
24 #include "RkAiqCalibDbV2Helper.h"
25 #include "adehaze/rk_aiq_types_adehaze_algo_prvt.h"
26 #ifdef RKAIQ_ENABLE_CAMGROUP
27 #include "rk_aiq_algo_camgroup_types.h"
28 #endif
29 #include "rk_aiq_comm.h"
30 #include "rk_aiq_types_adehaze_stat.h"
31 
32 RKAIQ_BEGIN_DECLARE
33 
34 XCamReturn AdehazeGetCurrData(AdehazeHandle_t* pAdehazeCtx, RkAiqAlgoProcAdhaz* procPara);
35 #ifdef RKAIQ_ENABLE_CAMGROUP
36 XCamReturn AdehazeGetCurrDataGroup(AdehazeHandle_t* pAdehazeCtx,
37                                    rk_aiq_singlecam_3a_result_t* pCamgrpParams);
38 #endif
39 XCamReturn AdehazeInit(AdehazeHandle_t** para, CamCalibDbV2Context_t* calib);
40 XCamReturn AdehazeRelease(AdehazeHandle_t* para);
41 XCamReturn AdehazeProcess(AdehazeHandle_t* para, dehaze_stats_v11_t* pStats,
42                           RkAiqAdehazeProcResult_t* pAdehzeProcRes);
43 bool AdehazeByPassProcessing(AdehazeHandle_t* pAdehazeCtx);
44 bool DehazeEnableSetting(AdehazeHandle_t* pAdehazeCtx, RkAiqAdehazeProcResult_t* pAdehzeProcRes);
45 
46 RKAIQ_END_DECLARE
47 
48 #endif  //__RK_AIQ_ADEHAZE_ALGO_V11_H__
49