xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/algos/acnrV30/rk_aiq_types_acnr_hw_v30.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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_ACNR_HW_V30_H_
21 #define _RK_AIQ_TYPE_ACNR_HW_V30_H_
22 #include "rk_aiq_comm.h"
23 
24 typedef struct RK_CNR_Fix_V30_s {
25     /* CNR_CTRL */
26     uint8_t  cnr_en;
27     uint8_t  exgain_bypass;
28     uint8_t  yuv422_mode;
29     uint8_t  thumb_mode;
30     uint8_t  bf3x3_wgt0_sel;
31 
32     /* CNR_EXGAIN */
33     uint8_t  gain_iso;
34     uint8_t  global_gain_alpha;
35     uint16_t global_gain;
36 
37     /* CNR_THUMB1 */
38     uint16_t thumb_sigma_c;
39     uint16_t thumb_sigma_y;
40 
41     /* CNR_THUMB_BF_RATIO */
42     uint16_t thumb_bf_ratio;
43 
44     /* CNR_LBF_WEITD */
45     uint8_t  lbf1x7_weit_d[4];
46 
47     /* CNR_IIR_PARA1 */
48     uint8_t  iir_uvgain;
49     uint8_t  iir_strength;
50     uint8_t  exp_shift;
51     uint16_t wgt_slope;
52 
53     /* CNR_IIR_PARA2 */
54     uint8_t  chroma_ghost;
55     uint8_t  iir_uv_clip;
56 
57     /* CNR_GAUS_COE */
58     uint8_t  gaus_coe[6];
59 
60     /* CNR_GAUS_RATIO */
61     uint16_t gaus_ratio;
62     uint8_t  bf_wgt_clip;
63     uint16_t global_alpha;
64 
65     /* CNR_BF_PARA1 */
66     uint8_t  uv_gain;
67     uint16_t sigma_r;
68     uint8_t  bf_ratio;
69 
70     /* CNR_BF_PARA2 */
71     uint16_t adj_offset;
72     uint16_t adj_ratio;
73 
74     /* CNR_SIGMA */
75     uint8_t  sigma_y[13];
76 
77     /* CNR_IIR_GLOBAL_GAIN */
78     uint8_t  iir_gain_alpha;
79     uint8_t  iir_global_gain;
80 
81 } RK_CNR_Fix_V30_t;
82 
83 
84 
85 #endif
86 
87 
88 
89