Mercurial > ~darius > hgwebdir.cgi > splitbrain
comparison shore/log_lookup.h @ 0:fe0a2f223e10
Initial commit of split brain code for the Sea Dragon.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sat, 11 Jul 2015 15:20:05 +0930 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fe0a2f223e10 |
---|---|
1 // Logarithmic transfer function | |
2 // Generated using.. | |
3 // map(lambda x: int(math.log(x) * 255 / 2.2), numpy.linspace(1, math.exp(2.2), 256)) | |
4 | |
5 const uint8_t log_lookup[] PROGMEM = { | |
6 0, | |
7 3, | |
8 7, | |
9 10, | |
10 13, | |
11 16, | |
12 20, | |
13 23, | |
14 26, | |
15 28, | |
16 31, | |
17 34, | |
18 37, | |
19 39, | |
20 42, | |
21 44, | |
22 47, | |
23 49, | |
24 52, | |
25 54, | |
26 56, | |
27 58, | |
28 60, | |
29 63, | |
30 65, | |
31 67, | |
32 69, | |
33 71, | |
34 73, | |
35 75, | |
36 77, | |
37 78, | |
38 80, | |
39 82, | |
40 84, | |
41 86, | |
42 87, | |
43 89, | |
44 91, | |
45 92, | |
46 94, | |
47 96, | |
48 97, | |
49 99, | |
50 100, | |
51 102, | |
52 103, | |
53 105, | |
54 106, | |
55 108, | |
56 109, | |
57 110, | |
58 112, | |
59 113, | |
60 115, | |
61 116, | |
62 117, | |
63 119, | |
64 120, | |
65 121, | |
66 122, | |
67 124, | |
68 125, | |
69 126, | |
70 127, | |
71 129, | |
72 130, | |
73 131, | |
74 132, | |
75 133, | |
76 134, | |
77 136, | |
78 137, | |
79 138, | |
80 139, | |
81 140, | |
82 141, | |
83 142, | |
84 143, | |
85 144, | |
86 145, | |
87 146, | |
88 147, | |
89 148, | |
90 149, | |
91 150, | |
92 151, | |
93 152, | |
94 153, | |
95 154, | |
96 155, | |
97 156, | |
98 157, | |
99 158, | |
100 159, | |
101 160, | |
102 161, | |
103 162, | |
104 163, | |
105 163, | |
106 164, | |
107 165, | |
108 166, | |
109 167, | |
110 168, | |
111 169, | |
112 170, | |
113 170, | |
114 171, | |
115 172, | |
116 173, | |
117 174, | |
118 174, | |
119 175, | |
120 176, | |
121 177, | |
122 178, | |
123 178, | |
124 179, | |
125 180, | |
126 181, | |
127 182, | |
128 182, | |
129 183, | |
130 184, | |
131 185, | |
132 185, | |
133 186, | |
134 187, | |
135 187, | |
136 188, | |
137 189, | |
138 190, | |
139 190, | |
140 191, | |
141 192, | |
142 192, | |
143 193, | |
144 194, | |
145 194, | |
146 195, | |
147 196, | |
148 196, | |
149 197, | |
150 198, | |
151 198, | |
152 199, | |
153 200, | |
154 200, | |
155 201, | |
156 202, | |
157 202, | |
158 203, | |
159 204, | |
160 204, | |
161 205, | |
162 205, | |
163 206, | |
164 207, | |
165 207, | |
166 208, | |
167 208, | |
168 209, | |
169 210, | |
170 210, | |
171 211, | |
172 211, | |
173 212, | |
174 213, | |
175 213, | |
176 214, | |
177 214, | |
178 215, | |
179 215, | |
180 216, | |
181 217, | |
182 217, | |
183 218, | |
184 218, | |
185 219, | |
186 219, | |
187 220, | |
188 220, | |
189 221, | |
190 222, | |
191 222, | |
192 223, | |
193 223, | |
194 224, | |
195 224, | |
196 225, | |
197 225, | |
198 226, | |
199 226, | |
200 227, | |
201 227, | |
202 228, | |
203 228, | |
204 229, | |
205 229, | |
206 230, | |
207 230, | |
208 231, | |
209 231, | |
210 232, | |
211 232, | |
212 233, | |
213 233, | |
214 234, | |
215 234, | |
216 235, | |
217 235, | |
218 236, | |
219 236, | |
220 237, | |
221 237, | |
222 238, | |
223 238, | |
224 238, | |
225 239, | |
226 239, | |
227 240, | |
228 240, | |
229 241, | |
230 241, | |
231 242, | |
232 242, | |
233 243, | |
234 243, | |
235 243, | |
236 244, | |
237 244, | |
238 245, | |
239 245, | |
240 246, | |
241 246, | |
242 247, | |
243 247, | |
244 247, | |
245 248, | |
246 248, | |
247 249, | |
248 249, | |
249 250, | |
250 250, | |
251 250, | |
252 251, | |
253 251, | |
254 252, | |
255 252, | |
256 252, | |
257 253, | |
258 253, | |
259 254, | |
260 254, | |
261 255 | |
262 }; |