xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/algos/again2/rk_aiq_uapi_again_int_v2.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * Copyright (c) 2019-2022 Rockchip Eletronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef _RK_AIQ_UAPI_AGAIN_INT_V2_H_
18 #define _RK_AIQ_UAPI_AGAIN_INT_V2_H_
19 
20 #include "base/xcam_common.h"
21 #include "rk_aiq_algo_des.h"
22 #include "again2/rk_aiq_types_again_algo_int_v2.h"
23 
24 // need_sync means the implementation should consider
25 // the thread synchronization
26 // if called by RkAiqAlscHandleInt, the sync has been done
27 // in framework. And if called by user app directly,
28 // sync should be done in inner. now we just need implement
29 // the case of need_sync == false; need_sync is for future usage.
30 
31 XCamReturn
32 rk_aiq_uapi_againV2_SetAttrib(RkAiqAlgoContext *ctx,
33                               const rk_aiq_gain_attrib_v2_t *attr,
34                               bool need_sync);
35 
36 XCamReturn
37 rk_aiq_uapi_againV2_GetAttrib(const RkAiqAlgoContext *ctx,
38                               rk_aiq_gain_attrib_v2_t *attr);
39 
40 XCamReturn
41 rk_aiq_uapi_againV2_GetInfo(const RkAiqAlgoContext *ctx,
42                             rk_aiq_gain_info_v2_t *pInfo);
43 
44 #endif
45