1 /*
2  *rk_aiq_types_alsc_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 
20 #ifndef _RK_AIQ_TYPE_ABAYERNR_HW_V2_H_
21 #define _RK_AIQ_TYPE_ABAYERNR_HW_V2_H_
22 #include "rk_aiq_comm.h"
23 
24 
25 
26 typedef struct RK_Bayernr_2D_Fix_V2_s{
27 
28 	//ISP_BAYNR_3A00_CTRL
29 	uint8_t baynr_gauss_en;
30 	uint8_t baynr_log_bypass;
31 	uint8_t baynr_en;
32 
33 	// ISP_BAYNR_3A00_DGAIN0-2
34 	uint16_t baynr_dgain[3];
35 
36 	// ISP_BAYNR_3A00_PIXDIFF
37 	uint16_t baynr_pix_diff;
38 
39 	// ISP_BAYNR_3A00_THLD
40 	uint16_t baynr_diff_thld;
41 	uint16_t baynr_softthld;
42 
43 	// ISP_BAYNR_3A00_W1_STRENG
44 	uint16_t bltflt_streng;
45 	uint16_t baynr_reg_w1;
46 
47 	// ISP_BAYNR_3A00_SIGMAX0-15
48 	uint16_t sigma_x[16];
49 
50 	// ISP_BAYNR_3A00_SIGMAY0-15
51 	uint16_t sigma_y[16];
52 
53 	// ISP_BAYNR_3A00_WRIT_D
54 	uint16_t weit_d[3];
55 }RK_Bayernr_2D_Fix_V2_t;
56 
57 
58 typedef struct RK_Bayernr_3D_Fix_V2_s{
59 
60 	// BAY3D_BAY3D_CTRL
61 	uint8_t bay3d_exp_sel;
62 	uint8_t bay3d_bypass_en;
63 	uint8_t bay3d_pk_en;
64 	uint8_t bay3d_en_i;
65 
66 	// BAY3D_BAY3D_KALRATIO
67 	uint16_t bay3d_softwgt;
68 	uint16_t bay3d_sigratio;
69 
70 	// BAY3D_BAY3D_GLBPK2
71 	uint32_t bay3d_glbpk2;
72 
73 	// BAY3D_BAY3D_KALSTR
74 	uint16_t bay3d_exp_str;
75 	uint16_t bay3d_str;
76 
77 	// BAY3D_BAY3D_WGTLMT
78 	uint16_t bay3d_wgtlmt_h;
79 	uint16_t bay3d_wgtlmt_l;
80 
81 	// BAY3D_BAY3D_SIG_X0
82 	uint16_t bay3d_sig_x[16];
83 
84 	// BAY3D_BAY3D_SIG_Y0
85 	uint16_t bay3d_sig_y[16];
86 
87 }RK_Bayernr_3D_Fix_V2_t;
88 
89 
90 typedef struct RK_Bayernr_Fix_V2_s{
91 	RK_Bayernr_2D_Fix_V2_t st2DParam;
92 	RK_Bayernr_3D_Fix_V2_t st3DParam;
93 
94 }RK_Bayernr_Fix_V2_t;
95 
96 
97 
98 #endif
99 
100 
101 
102