1 #include "rk_aiq_uapi_aie_int.h"
2 #include "rk_aiq_types_algo_aie_prvt.h"
3
4 XCamReturn
rk_aiq_uapi_aie_SetAttrib(RkAiqAlgoContext * ctx,const aie_attrib_t * attr,bool need_sync)5 rk_aiq_uapi_aie_SetAttrib(RkAiqAlgoContext* ctx,
6 const aie_attrib_t* attr,
7 bool need_sync)
8 {
9 if(ctx == NULL) {
10 LOGE_AIE("%s(%d): null pointer\n", __FUNCTION__, __LINE__);
11 return XCAM_RETURN_ERROR_PARAM;
12 }
13
14 ctx->params.mode = attr->mode;
15 ctx->isReCal_ = true;
16
17 return XCAM_RETURN_NO_ERROR;
18 }
19
rk_aiq_uapi_aie_GetAttrib(RkAiqAlgoContext * ctx,aie_attrib_t * attr)20 XCamReturn rk_aiq_uapi_aie_GetAttrib(RkAiqAlgoContext* ctx,
21 aie_attrib_t* attr)
22 {
23 if(ctx == NULL || attr == NULL) {
24 LOGE_AIE("%s(%d): null pointer\n", __FUNCTION__, __LINE__);
25 return XCAM_RETURN_ERROR_PARAM;
26 }
27
28 attr->mode = ctx->params.mode;
29
30 return XCAM_RETURN_NO_ERROR;
31 }
32
33