1 /* 2 * rk_aiq_algo_acgc_int.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 _RK_AIQ_UAPI_ACGC_INT_H_ 21 #define _RK_AIQ_UAPI_ACGC_INT_H_ 22 23 #include "base/xcam_common.h" 24 #include "rk_aiq_algo_des.h" 25 #include "rk_aiq_types_acgc_algo.h" 26 27 // need_sync means the implementation should consider 28 // the thread synchronization 29 // if called by RkAiqAdebayerHandleInt, the sync has been done 30 // in framework. And if called by user app directly, 31 // sync should be done in inner. now we just need implement 32 // the case of need_sync == false; need_sync is for future usage. 33 34 // same as type CGC_Param_t defined in cgc_head.h 35 typedef struct rk_aiq_uapi_acgc_attrib_s { 36 rk_aiq_uapi_sync_t sync; 37 rk_aiq_acgc_params_t param; 38 } rk_aiq_uapi_acgc_attrib_t; 39 40 XCamReturn 41 rk_aiq_uapi_acgc_SetAttrib(RkAiqAlgoContext* ctx, 42 const rk_aiq_uapi_acgc_attrib_t* attr, 43 bool need_sync); 44 45 XCamReturn 46 rk_aiq_uapi_acgc_GetAttrib(const RkAiqAlgoContext* ctx, 47 rk_aiq_uapi_acgc_attrib_t* attr); 48 49 #endif //_RK_AIQ_UAPI_ACGC_INT_H_ 50