1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
|
#ifndef BF3A03_H
#define BF3A03_H
// Scene Mode
uint8_t bf3a03_scene_mode_auto[] = {
0x89, 0x6d,
};
uint8_t bf3a03_scene_mode_night[] = {
0x89, 0x9d,
};
// White Balance
uint8_t bf3a03_wb_auto [] = {
0x13,0x07,
0x01, 0x12,
0x02, 0x22,
};
uint8_t bf3a03_wb_incandescent [] = {
0x13,0x05,
0x01, 0x1f,
0x02, 0x20,
};
uint8_t bf3a03_wb_fluorescent [] = {
0x13,0x05,
0x01, 0x1a,
0x02, 0x15,
};
uint8_t bf3a03_wb_daylight [] = {
0x13,0x05,
0x01, 0x15,
0x02, 0x20,
};
uint8_t bf3a03_wb_cloudy [] = {
0x13,0x05,
0x01, 0x10,
0x02, 0x2c,
};
// Exposure
uint8_t bf3a03_exposure_neg6[] = {
0x55, 0xb8,
};
uint8_t bf3a03_exposure_neg3[] = {
0x55, 0x98,
};
uint8_t bf3a03_exposure_zero[] = {
0x55, 0x00,
};
uint8_t bf3a03_exposure_pos3[] = {
0x55, 0x18,
};
uint8_t bf3a03_exposure_pos6[] = {
0x55, 0x38,
};
// Resolution
uint8_t bf3a03_320x240[]= {
0xda, 0x00,
0xdb, 0xa2,
0xdc, 0x00,
0xdd, 0x7a,
0xde, 0x00,
0x4a, 0x98,
0x0a, 0x21,
0x10, 0x21,
0x3d, 0x59,
0x6b, 0x02,
0x17, 0x00,
0x18, 0xa0,
0x19, 0x00,
0x1a, 0x78,
0x03, 0x00,
0x12, 0x10,
};
uint8_t bf3a03_640x480[] = {
0xda, 0x00,
0xdb, 0xa2,
0xdc, 0x00,
0xdd, 0x7a,
0xde, 0x00,
0x4a, 0x98,
0x0a, 0x21,
0x10, 0x21,
0x3d, 0x59,
0x6b, 0x02,
0x17, 0x00,
0x18, 0xa0,
0x19, 0x00,
0x1a, 0x78,
0x03, 0x00,
0x12, 0x00,
};
uint8_t bf3a03_default_regs_init[] = {
//0x12,0x80,
0x09,0x55,
0x15,0x00,
0x1e,0x70,//HV mirror
//Analog signals
0x06,0x78,
0x21,0x00,
0x3e,0x37,
0x29,0x2b,
0x27,0x98,
0x16,0x25,
0x20,0x00,
//Clock
0x2f,0x42,//ÓÐÂÌÉ«Ñ©»¨µãʱ£¬Ð´Îª0x4e;
0x11,0x10,//·ÖƵ[1:0]
0x1b,0x09,//±¶Æµ PLLʹÄÜÓë0x2f[1]¡¢0x1b[3]
//Êý¾ÝÊä³ö¸ñʽ
0x4a,0x98,//Sub¡¢Win
0x12,0x00,//YUV¡¢subʱÐò
0x3a,0x00,//YUVʱÐò
//Manual
0x13,0x08,//ÊÖдbit[3]GLB GAIN0
0x01,0x14,
0x02,0x20,
0x8c,0x02,
0x8d,0x4c,
0x87,0x16,//GLB GAIN0
///Auto
0x13,0x07,
//Denoise
0x70,0x0f,//²åֵģ¿é¿ª¹Ø
0x3b,0x00,//È¥¸ñ×ÓÔëÉù
0x71,0x0c,//²åֵģ¿é¿ª¹Ø
0x73,0x27,//Denoise
0x75,0x88,//Outdoor denoise
0x76,0xd8,
0x77,0x0a,//Low light denoise
0x78,0xff,
0x79,0x14,
0x7a,0x24,//±ßÔµÔöÇ¿
0x9e,0x04,
0x7d,0x2a,//È¥×ϱß
//Gamma default
0x39,0xa0,//Gamma offset
0x3f,0xa0,
/*
0x90,0x20,
0x5f,0x03,//Dark_sel gamma
0x40,0x22,
0x41,0x23,
0x42,0x28,
0x43,0x25,
0x44,0x1d,
0x45,0x17,
0x46,0x13,
0x47,0x12,
0x48,0x10,
0x49,0x0d,
0x4b,0x0b,
0x4c,0x0b,
0x4e,0x09,
0x4f,0x07,
0x50,0x06,
//Gamma low noise
0x40,0x24,
0x41,0x30,
0x42,0x24,
0x43,0x1d,
0x44,0x1a,
0x45,0x14,
0x46,0x11,
0x47,0x0e,
0x48,0x0d,
0x49,0x0c,
0x4b,0x0b,
0x4c,0x09,
0x4e,0x09,
0x4f,0x08,
0x50,0x07, */
//Gamma smooth under over-ex
0x40,0x18,
0x41,0x2c,
0x42,0x28,
0x43,0x20,
0x44,0x16,
0x45,0x10,
0x46,0x0f,
0x47,0x0f,
0x48,0x0e,
0x49,0x0a,
0x4b,0x0b,
0x4c,0x09,
0x4e,0x09,
0x4f,0x08,
0x50,0x06,
/*
//Gamma sharp and pretty ÇåÎúÁÁÀö
0x40,0x19,
0x41,0x1e,
0x42,0x1f,
0x43,0x20,
0x44,0x1d,
0x45,0x19,
0x46,0x17,
0x47,0x17,
0x48,0x14,
0x49,0x12,
0x4b,0x0f,
0x4c,0x0c,
0x4e,0x08,
0x4f,0x06,
0x50,0x03,
*/
//AE
0x24,0x48,//·ÇA¹âY_target 0x50
0x97,0x40,//A¹âY_target
0x25,0x88,//AE_LOC
0x81,0x00,//AE speed
0x82,0x18,
0x83,0x30,
0x84,0x20,
0x85,0x38,
0x86,0x55,
0x94,0x82,//¶ÔAEÁÁ¶ÈȨÖص÷½Ú
0x80,0x92,//¶Ô¹ýÆصãÊýµ÷½Ú,bit[1]choose 50HZ or 60HZ step;
0x98,0xbb,//¶Ô´°¿ÚȨÖص÷½Ú 0x8a
0x89,0x6d,//Ö¡Âʵ÷½Úbit[7:3]
0x8e,0x2c,
0x8f,0x86,
//Banding
0x2b,0x20,
0x8a,0x93,//50HZ
0x8b,0x7a,//60HZ
0x92,0x6D,
//Color
0x5a,0xec,//Outdoor color
0x51,0x90,
0x52,0x10,
0x53,0x8d,
0x54,0x88,
0x57,0x82,
0x58,0x8d,
0x5a,0x7c,//A light color
0x51,0x80,
0x52,0x04,
0x53,0x8d,
0x54,0x88,
0x57,0x82,
0x58,0x8d,
//Color default
0x5a,0x6c,//Indoor color
0x51,0x93,
0x52,0x04,
0x53,0x8a,
0x54,0x88,
0x57,0x02,
0x58,0x8d,
/*//ColorÉ«²ÊÑÞÀö
0x5a,0x6c,//Indoor color
0x51,0xa0,
0x52,0x01,
0x53,0x8d,
0x54,0x85,
0x57,0x01,
0x58,0x90,
//Color·ôÉ«½ÏºÃ
0x5a,0x6c,//Indoor color
0x51,0x90,
0x52,0x0a,
0x53,0x84,
0x54,0x05,
0x57,0x05,
0x58,0x87,
//ColorÉ«²Êµ
0x5a,0x6c,//Indoor color
0x51,0x85,
0x52,0x06,
0x53,0x8a,
0x54,0x81,
0x57,0x02,
0x58,0x8a,
*/
//Saturation
0xb0,0xa0,//A¹â±¥ºÍ¶È
0xb1,0x26,
0xb2,0x1c,
0xb4,0xfd,
0xb0,0x30,//·ÇA¹â±¥ºÍ¶È
0xb1,0xc0, ///0xd8
0xb2,0xa0, ///0xb0
0xb4,0xf1,
//Contrast
0x3c,0x40,//K1
0x56,0x48,//K2 0xb4[4]Ñ¡Ôñnew or old
0x4d,0x40,//K3
0x59,0x40,//K4
/*//G gain´óһЩ
0x35,0x56,//shading R
0x65,0x36,//shading G
0x66,0x44,//shading B
//AWB
0x6a,0x91,
0x23,0x44,
0xa2,0x04,
0xa3,0x26,
0xa4,0x04,
0xa5,0x26,
0xa7,0x1a,
0xa8,0x10,
0xa9,0x1f,
0xaa,0x16,
0xab,0x16,
0xac,0x30,
0xad,0xf0,
0xae,0x57,
0xc5,0xaa,
0xc7,0x38,
0xc8,0x0d,
0xc9,0x16,
0xd3,0x09,
0xd4,0x15,
0xd0,0x00,
0xd1,0x01,
0xd2,0x18,
*/
//G gainСһЩ
0x35,0x46,//shading R
0x65,0x38,//shading G
0x66,0x42,//shading B
//AWB
0x6a,0xd1,//AWB
0x23,0x11,//G GAIN
0xa2,0x0b,//·Ç»§Íâ BÉÏÏÂÏß
0xa3,0x26,
0xa4,0x04,//·Ç»§Íâ RÉÏÏÂÏß
0xa5,0x26,
0xa7,0x13,//B GAIN
0xa8,0x8e,//R GAIN
0xa9,0x16,//°×µã
0xaa,0x16,
0xab,0x16,
0xac,0x30,
0xad,0xf0,
0xae,0x57,
0xc5,0x66,
0xc7,0x38,//»§ÄÚ¡¢Í⿪¹Øbit[4]
0xc8,0x0d,//·Ç»§Íâ BÉÏÏÂÏß
0xc9,0x16,
0xd3,0x09,//·Ç»§Íâ RÉÏÏÂÏß
0xd4,0x15,
0xd0,0x00,//A¹âϵÄoffset
0xd1,0x01,//·ÇA¹âϵÄoffset
0xd2,0x18,
0x20,0x40, ////[6] dependent or not
0x09,0x5c,///0x55 0x57
};
uint8_t bf3a03_default_regs_exit[]={
};
#endif
|