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