b43ffd89c5bc2d684f76c42f407e459a2a0e6d65
[linux.git] /
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #include "ia_css_iefd2_6_types.h"
16
17 const struct ia_css_iefd2_6_config default_iefd2_6_config = {
18         .horver_diag_coeff = 45,
19         .ed_horver_diag_coeff = 64,
20         .dir_smooth_enable = true,
21         .dir_metric_update = 16,
22         .unsharp_c00 = 60,
23         .unsharp_c01 = 30,
24         .unsharp_c02 = 16,
25         .unsharp_c11 = 1,
26         .unsharp_c12 = 2,
27         .unsharp_c22 = 0,
28         .unsharp_weight = 32,
29         .unsharp_amount = 128,
30         .cu_dir_sharp_pow = 20,
31         .cu_dir_sharp_pow_bright = 20,
32         .cu_non_dir_sharp_pow = 24,
33         .cu_non_dir_sharp_pow_bright = 24,
34         .dir_far_sharp_weight = 2,
35         .rad_cu_dir_sharp_x1 = 0,
36         .rad_cu_non_dir_sharp_x1 = 128,
37         .rad_dir_far_sharp_weight = 8,
38         .sharp_nega_lmt_txt = 1024,
39         .sharp_posi_lmt_txt = 1024,
40         .sharp_nega_lmt_dir = 128,
41         .sharp_posi_lmt_dir = 128,
42         .clamp_stitch = 0,
43         .rad_enable = true,
44         .rad_x_origin = 0,
45         .rad_y_origin = 0,
46         .rad_nf = 7,
47         .rad_inv_r2 = 157,
48         .vssnlm_enable = true,
49         .vssnlm_x0 = 24,
50         .vssnlm_x1 = 96,
51         .vssnlm_x2 = 172,
52         .vssnlm_y1 = 1,
53         .vssnlm_y2 = 3,
54         .vssnlm_y3 = 8,
55         .cu_ed_points_x = {
56                 0,
57                 256,
58                 656,
59                 2456,
60                 3272,
61                 4095
62                 },
63         .cu_ed_slopes_a = {
64                 4,
65                 160,
66                 0,
67                 0,
68                 0
69                 },
70         .cu_ed_slopes_b = {
71                 0,
72                 9,
73                 510,
74                 511,
75                 511
76                 },
77         .cu_ed2_points_x = {
78                 218,
79                 308
80                 },
81         .cu_ed2_slopes_a = 11,
82         .cu_ed2_slopes_b = 0,
83         .cu_dir_sharp_points_x = {
84                 247,
85                 298,
86                 342,
87                 448
88                 },
89         .cu_dir_sharp_slopes_a = {
90                 14,
91                 4,
92                 0
93                 },
94         .cu_dir_sharp_slopes_b = {
95                 1,
96                 46,
97                 58
98                 },
99         .cu_non_dir_sharp_points_x = {
100                 26,
101                 45,
102                 81,
103                 500
104                 },
105         .cu_non_dir_sharp_slopes_a = {
106                 39,
107                 7,
108                 0
109                 },
110         .cu_non_dir_sharp_slopes_b = {
111                 1,
112                 47,
113                 63
114                 },
115         .cu_radial_points_x = {
116                 50,
117                 86,
118                 142,
119                 189,
120                 224,
121                 255
122                 },
123         .cu_radial_slopes_a = {
124                 713,
125                 278,
126                 295,
127                 286,
128                 -1
129                 },
130         .cu_radial_slopes_b = {
131                 1,
132                 101,
133                 162,
134                 216,
135                 255
136                 },
137         .cu_vssnlm_points_x = {
138                 100,
139                 141
140                 },
141         .cu_vssnlm_slopes_a = 25,
142         .cu_vssnlm_slopes_b = 0
143 };
144