xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/iq_parser_v2/alsc_uapi_head.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 __ALSC_UAPI_HEAD_H__
19 #define __ALSC_UAPI_HEAD_H__
20 
21 #include "alsc/rk_aiq_types_alsc_hw.h"
22 
23 typedef struct rk_aiq_lsc_table_s {
24     // M4_ARRAY_DESC("lsc_sect_size_x", "u16", M4_SIZE(1,16), M4_RANGE(0,10000), "0", M4_DIGIT(0), M4_DYNAMIC(0))
25     uint16_t    lsc_sect_size_x[LSC_SIZE_TBL_SIZE];
26     // M4_ARRAY_DESC("lsc_sect_size_y", "u16", M4_SIZE(1,16), M4_RANGE(0,10000), "0", M4_DIGIT(0), M4_DYNAMIC(0))
27     uint16_t    lsc_sect_size_y[LSC_SIZE_TBL_SIZE];
28     // M4_ARRAY_DESC("r_data_tbl", "u16", M4_SIZE(17,17), M4_RANGE(0,4096), "0", M4_DIGIT(0),  M4_DYNAMIC(0))
29     unsigned short r_data_tbl[LSC_DATA_TBL_SIZE];
30     // M4_ARRAY_DESC("gr_data_tbl", "u16", M4_SIZE(17,17), M4_RANGE(0,4096), "0", M4_DIGIT(0),  M4_DYNAMIC(0))
31     unsigned short gr_data_tbl[LSC_DATA_TBL_SIZE];
32     // M4_ARRAY_DESC("gb_data_tbl", "u16", M4_SIZE(17,17), M4_RANGE(0,4096), "0", M4_DIGIT(0),  M4_DYNAMIC(0))
33     unsigned short gb_data_tbl[LSC_DATA_TBL_SIZE];
34     // M4_ARRAY_DESC("b_data_tbl", "u16", M4_SIZE(17,17), M4_RANGE(0,4096), "0", M4_DIGIT(0),  M4_DYNAMIC(0))
35     unsigned short b_data_tbl[LSC_DATA_TBL_SIZE];
36 } rk_aiq_lsc_table_t;
37 
38 #endif  /*__ALSC_UAPI_HEAD_H__*/
39