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_ASHARP_HW_V3_H_
21 #define _RK_AIQ_TYPE_ASHARP_HW_V3_H_
22 #include "rk_aiq_comm.h"
23 
24 typedef struct RK_SHARP_Fix_V3_s
25 {
26 	// SHARP_SHARP_EN (0x0000)
27 	uint8_t sharp_bypass;
28 	uint8_t sharp_en;
29 
30 	// SHARP_SHARP_RATIO  (0x0004)
31 	uint8_t sharp_sharp_ratio;
32 	uint8_t sharp_bf_ratio;
33 	uint8_t sharp_gaus_ratio;
34 	uint8_t sharp_pbf_ratio;
35 
36 	// SHARP_SHARP_LUMA_DX (0x0008)
37 	uint8_t sharp_luma_dx[7];
38 
39 	// SHARP_SHARP_PBF_SIGMA_INV_0 (0x000c - 0x0014)
40 	uint16_t sharp_pbf_sigma_inv[8];
41 
42 	// SHARP_SHARP_BF_SIGMA_INV_0 (0x0018 -  0x0020)
43 	uint16_t sharp_bf_sigma_inv[8];
44 
45 	// SHARP_SHARP_SIGMA_SHIFT (0x00024)
46 	uint8_t sharp_bf_sigma_shift;
47 	uint8_t sharp_pbf_sigma_shift;
48 
49 	// SHARP_SHARP_EHF_TH_0 (0x0028 -  0x0030)
50 	uint16_t sharp_ehf_th[8];
51 
52 	// SHARP_SHARP_CLIP_HF_0 (0x0034 -  0x003c)
53 	uint16_t sharp_clip_hf[8];
54 
55 	// SHARP_SHARP_PBF_COEF (0x00040)
56 	uint8_t sharp_pbf_coef[3];
57 
58 	// SHARP_SHARP_BF_COEF (0x00044)
59 	uint8_t sharp_bf_coef[3];
60 
61 	// SHARP_SHARP_GAUS_COEF (0x00048)
62 	uint8_t sharp_gaus_coef[3];
63 
64 }RK_SHARP_Fix_V3_t;
65 
66 
67 #endif
68 
69 
70 
71