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