hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
/*
 * RkAiqSharedDataManager.cpp
 *
 *  Copyright (c) 2019 Rockchip Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
 
#include "shared_data_api_wrapper.h"
 
#include "aiq_core/RkAiqSharedDataManager.h"
 
static RkCam::RkAiqSharedDataManager *handler;
 
RKAIQ_BEGIN_DECLARE
 
int shared_data_api_set_instance(void *instance)
{
    handler = (RkCam::RkAiqSharedDataManager* )instance;
    return 0;
}
 
bool shared_data_api_get_exposure_params(int32_t id, RKAiqAecExpInfo_t **exp_param)
{
    return handler->get_exposure_params(id, exp_param);
}
 
bool shared_data_api_get_ae_stats(int32_t id, rk_aiq_isp_aec_stats_t *aec_stats)
{
    return handler->get_ae_stats(id, aec_stats);
}
 
bool shared_data_api_get_awb_stats(int32_t id, rk_aiq_awb_stat_res_v200_t *awb_stats)
{
    return handler->get_awb_stats(id, awb_stats);
}
 
bool shared_data_api_get_af_stats(int32_t id, rk_aiq_isp_af_stats_t *af_stats)
{
    return handler->get_af_stats(id, af_stats);
}
 
RKAIQ_END_DECLARE