xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/iq_parser_v2/adrc_uapi_compact.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  *  Copyright (c) 2021 Rockchip Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #ifndef __ADRC_UAPI_COMPACT_H__
19 #define __ADRC_UAPI_COMPACT_H__
20 
21 #include "adrc_head.h"
22 #include "adrc_uapi_head.h"
23 
24 typedef enum AdrcVersion_e {
25     ADRC_VERSION_356X = 0,
26     ADRC_VERSION_3588 = 1,
27     ADRC_VERSION_MAX
28 } AdrcVersion_t;
29 
30 typedef CalibDbV2_drc_V10_t adrcAttr_V21_t;
31 typedef CalibDbV2_drc_V11_t adrcAttr_V30_t;
32 typedef mdrcAttr_V10_t mdrcAttr_V21_t;
33 typedef mdrcAttr_V11_t mdrcAttr_V30_t;
34 typedef DrcInfo_t DrcCtrlInfo_t;
35 
36 typedef struct DrcInfoV30_s {
37     // M4_STRUCT_DESC("CtrlInfo", "normal_ui_style")
38     DrcCtrlInfo_t CtrlInfo;
39     // M4_STRUCT_DESC("ValidParamsV21", "normal_ui_style")
40     mdrcAttr_V21_t ValidParamsV21;
41     // M4_STRUCT_DESC("ValidParamsV30", "normal_ui_style")
42     mdrcAttr_V30_t ValidParamsV30;
43 } DrcInfoV30_t;
44 
45 typedef struct drcAttr_s {
46     rk_aiq_uapi_sync_t sync;
47 
48     AdrcVersion_t Version;
49     drc_OpMode_t opMode;
50     adrcAttr_V21_t stAutoV21;
51     adrcAttr_V30_t stAutoV30;
52     mdrcAttr_V21_t stManualV21;
53     mdrcAttr_V30_t stManualV30;
54     DrcInfoV30_t Info;
55 } drcAttr_t;
56 
57 typedef drcAttr_t drc_attrib_t;
58 
59 #endif /*__ADRC_UAPI_COMPACT_H__*/
60