xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/algos/agamma/rk_aiq_types_agamma_hw.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * rk_aiq_algo_agamma_hw.h
3  *
4  *  Copyright (c) 2019 Rockchip Corporation
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 #include "agamma_head.h"
20 
21 #ifndef _RK_AIQ_ALGO_AGAMMA_HW_H_
22 #define _RK_AIQ_ALGO_AGAMMA_HW_H_
23 
24 typedef struct AgammaProcResV10_s {
25     bool gamma_en;
26     int equ_segm;
27     int offset;
28     int gamma_y[CALIBDB_AGAMMA_KNOTS_NUM_V10];
29 } AgammaProcResV10_t;
30 
31 typedef struct AgammaProcResV11_s {
32     bool gamma_en;
33     int equ_segm;
34     bool EnableDot49;
35     int offset;
36     int gamma_y[CALIBDB_AGAMMA_KNOTS_NUM_V11];
37 } AgammaProcResV11_t;
38 
39 typedef struct AgammaProcRes_s {
40     //bool update;
41 #if RKAIQ_HAVE_GAMMA_V10
42     AgammaProcResV10_t Gamma_v10;
43 #endif
44 #if RKAIQ_HAVE_GAMMA_V11
45     AgammaProcResV11_t Gamma_v11;
46 #endif
47 } AgammaProcRes_t;
48 
49 #endif  //_RK_AIQ_ALGO_AGAMMA_HW_H_
50