1 /*
2  *rk_aiq_types_asharp_hw.h
3  *
4  *  Copyright (c) 2022 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 #ifndef _RK_AIQ_TYPES_ASHARP_HW_V33_H_
20 #define _RK_AIQ_TYPES_ASHARP_HW_V33_H_
21 #include "rk_aiq_comm.h"
22 
23 typedef struct RK_SHARP_Fix_V33_s {
24     // SHARP_SHARP_EN (0X0000)
25     uint8_t sharp_noiseclip_mode;
26     uint8_t sharp_radius_ds_mode;
27     uint8_t sharp_exgain_bypass;
28     uint8_t sharp_center_mode;
29     uint8_t sharp_bypass;
30     uint8_t sharp_en;
31 
32     // SHARP_SHARP_RATIO (0x0004)
33     uint8_t sharp_pbf_ratio;
34     uint8_t sharp_gaus_ratio;
35     uint8_t sharp_bf_ratio;
36     uint8_t sharp_sharp_ratio;
37 
38     // SHARP_SHARP_LUMA_DX (0x0008)
39     uint8_t sharp_luma_dx[7];
40 
41     // SHARP_SHARP_PBF_SIGMA_INV_0 (0x000c - 0x0014)
42     uint16_t sharp_pbf_sigma_inv[8];
43 
44     // SHARP_SHARP_BF_SIGMA_INV (0x0018 -  0x0020)
45     uint16_t sharp_bf_sigma_inv[8];
46 
47     // SHARP_SHARP_SIGMA_SHIFT (0x00024)
48     uint8_t sharp_pbf_sigma_shift;
49     uint8_t sharp_bf_sigma_shift;
50 
51     // SHARP_SHARP_CLIP_HF (0x0034 -  0x003c)
52     uint16_t sharp_clip_hf[8];
53 
54     // SHARP_SHARP_PBF_COEF (0x00040)
55     uint8_t sharp_pbf_coef[3];
56 
57     // SHARP_SHARP_BF_COEF (0x00044)
58     uint8_t sharp_bf_coef[3];
59 
60     // SHARP_SHARP_GAUS_COEF (0x00048)
61     uint8_t sharp_gaus_coef[6];
62 
63     // SHARP_GAIN (0x50)
64     uint16_t sharp_global_gain;
65     uint8_t sharp_global_gain_alpha;
66     uint8_t sharp_local_gainscale;
67 
68     // SHARP_GAIN_ADJUST (0x54)
69     uint16_t sharp_gain_adj[14];
70 
71     // SHARP_CENTER (0x70)
72     uint16_t sharp_center_wid;
73     uint16_t sharp_center_het;
74 
75     // SHARP_GAIN_DIS_STRENGTH (0x74)
76     uint8_t sharp_strength[22];
77 
78     // SHARP_TEXTURE (0x8c)
79     uint16_t sharp_noise_sigma;
80     uint8_t sharp_enhance_bit;
81     uint16_t sharp_noise_strength;
82 
83     //isp32-lite new add
84     uint8_t sharp_clip_hf_mode;
85     uint8_t sharp_add_mode;
86 
87     uint16_t sharp_ehf_th[8];
88     uint16_t sharp_clip_neg[8];
89 
90 } RK_SHARP_Fix_V33_t;
91 
92 #endif
93