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_ABAYERTNR_HW_V2_H_
21 #define _RK_AIQ_TYPE_ABAYERTNR_HW_V2_H_
22 #include "rk_aiq_comm.h"
23 
24 
25 
26 
27 typedef struct RK_Bayertnr_Fix_V2_s {
28 
29     // BAY3D_BAY3D_CTRL 0x2c00
30     uint8_t bay3d_exp_sel;
31     uint8_t bay3d_soft_st;
32     uint8_t bay3d_soft_mode;
33     uint8_t bay3d_bwsaving_en;
34     uint8_t bay3d_loswitch_protect;
35     uint8_t bay3d_glbpk_en;
36     uint8_t bay3d_logaus3_bypass_en;
37     uint8_t bay3d_logaus5_bypass_en;
38     uint8_t bay3d_lomed_bypass_en;
39     uint8_t bay3d_hichnsplit_en;
40     uint8_t bay3d_hiabs_pssel;
41     uint8_t bay3d_higaus_bypass_en;
42     uint8_t bay3d_himed_bypass_en;
43     uint8_t bay3d_lobypass_en;
44     uint8_t bay3d_hibypass_en;
45     uint8_t bay3d_bypass_en;
46     uint8_t bay3d_en_i;
47 
48     // BAY3D_BAY3D_KALRATIO 0x2c04
49     uint16_t bay3d_softwgt;
50     uint16_t bay3d_hidif_th;
51 
52     // BAY3D_BAY3D_GLBPK2 0x2c08
53     uint32_t bay3d_glbpk2;
54 
55     // BAY3D_BAY3D_WGTLMT 0x2c10
56     uint16_t bay3d_wgtlmt;
57     uint16_t bay3d_wgtratio;
58 
59     // BAY3D_BAY3D_SIG_X0  0x2c14 - 0x2c30
60     uint16_t bay3d_sig0_x[16];
61 
62     // BAY3D_BAY3D_SIG0_Y0 0x2c34 - 0x2c50
63     uint16_t bay3d_sig0_y[16];
64 
65     // BAY3D_BAY3D_SIG_X0  0x2c54 - 0x2c70
66     uint16_t bay3d_sig1_x[16];
67 
68     // BAY3D_BAY3D_SIG1_Y0 0x2c74 - 0x2c90
69     uint16_t bay3d_sig1_y[16];
70 
71     // BAY3D_BAY3D_SIG2_Y0 0x2c94 - 0x2cb0
72     uint16_t bay3d_sig2_y[16];
73 
74     //BAY3D_BAY3D_LODIF_STAT0 0x2cb4 -0x2cb8
75     uint64_t ro_sum_lodif;
76 
77     //BAY3D_BAY3D_LODIF_STAT0 0x2cbc -0x2cc0
78     uint64_t ro_sum_hidif0;
79 
80     //BAY3D_BAY3D_MI_ST 0x2CC8
81     uint8_t sw_bay3dmi_st_linemode;
82     uint8_t sw_bay3d_mi2cur_linecnt;
83 
84 
85 
86 
87 
88 } RK_Bayertnr_Fix_V2_t;
89 
90 
91 
92 #endif
93 
94 
95 
96