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
|
// Scene Mode
uint8_t bf3703_scene_mode_auto[] = {
0x8e,0x0d, //0x07
0x8f,0xf2 //0x79
};
uint8_t bf3703_scene_mode_night[] = {
0x8e,0x0e,
0x8f,0xf2,
};
// White Balance
uint8_t bf3703_wb_auto [] = {
0x13,0x07,
};
uint8_t bf3703_wb_incandescent [] = {
0x13,0x05,
0x01, 0x1f,
0x02, 0x15,
};
uint8_t bf3703_wb_fluorescent [] = {
0x13,0x05,
0x01, 0x1a,
0x02, 0x1e,
};
uint8_t bf3703_wb_daylight [] = {
0x13,0x05,
0x01, 0x13,
0x02, 0x26,
};
uint8_t bf3703_wb_cloudy [] = {
0x13,0x05,
0x01, 0x10,
0x02, 0x28,
};
// Exposure
uint8_t bf3703_exposure_neg6[] = {
0x55, 0xa8,
};
uint8_t bf3703_exposure_neg3[] = {
0x55, 0x98,
};
uint8_t bf3703_exposure_zero[] = {
0x55, 0x00,
};
uint8_t bf3703_exposure_pos3[] = {
0x55, 0x10,
};
uint8_t bf3703_exposure_pos6[] = {
0x55, 0x20,
};
// Resolution
uint8_t bf3703_320x240[]= {
0x12, 0x10,
};
uint8_t bf3703_640x480[] = {
0x12, 0x00,
};
uint8_t bf3703_default_regs_init[] = {
0xff , 0xff,
// 0x12 , 0x80,
0x15 , 0x00, //byd add 20120628
0x3a , 0x00, //byd add 20120628
0x11 , 0x80, //0x80
0x13 , 0x00,
0x01 , 0x15,
0x02 , 0x24,
0x8c , 0x02,//01 :devided by 2 02 :devided by 1
0x8d , 0x64,//32: devided by 2 64 :devided by 1
0x87 , 0x18,
0x13 , 0x07,
//black level , ¶ÔÉϵçÆ«ÂÌÓиÄÉÆ , Èç¹ûÐèÒªÇëʹÓÃ
0x05 , 0x1f,
0x06 , 0x60,
0x14 , 0x1f,
0x27 , 0x03,
0x06 , 0xe0,
//lens shading
0x35 , 0x68,
0x65 , 0x68,
0x66 , 0x62,
0x36 , 0x05,
0x37 , 0xf6,
0x38 , 0x46,
0x9b , 0xf6,
0x9c , 0x46,
0xbc , 0x01,
0xbd , 0xf6,
0xbe , 0x46,
//AE
0x82 , 0x14,
0x83 , 0x23,
0x9a , 0x23, //the same as 0x83
0x84 , 0x1a,
0x85 , 0x20,
0x89 , 0x04, //02 :devided by 2 04 :devided by 1
0x8a , 0x08, //04: devided by 2 05 :devided by 1
0x86 , 0x28,
0x96 , 0xa6, //AE speed
0x97 , 0x0c, //AE speed
0x98 , 0x18, //AE speed
//AE target
0x24 , 0x6a, //78 //0x6a
0x25 , 0x7a, //88 //0x7a
0x94 , 0x0a, //INT_OPEN
0x80 , 0x55,
//denoise
0x70 , 0xff,//denoise //0x6f
0x72 , 0x6f,//denoise //0x4f
0x73 , 0x4f,//denoise //0x2f
0x74 , 0x38,//denoise //0x27
0x77 , 0x90,//È¥³ý¸ñ×ÓÔëÉù
0x7a , 0x0e,//denoise in low light , 0x8e\0x4e\0x0e
0x7b , 0x28,//the same as 0x86
//black levl
0X1F , 0x20, //G target
0X22 , 0x20, //R target
0X26 , 0x20, //B target
// Ä£Äⲿ·Ö²ÎÊý
0X16 , 0x03, //Èç¹û¾õµÃºÚÉ«ÎïÌå²»¹»ºÚ£¬ÓеãÆ«ºì£¬½«0x16дΪ0x03»áÓеã¸ÄÉÆ
0xbb , 0x20, // deglitch ¶ÔxclkÕûÐÎ
0xeb , 0x30,
0xf5 , 0x21,
0xe1 , 0x3c,
0xbb , 0x20,
0X2f , 0Xf6,
0x06 , 0xe0,
//anti black sun spot
0x61 , 0xd3, //0x61[3]=0 black sun disable
0x79 , 0x48, //0x79[7]=0 black sun disable
//contrast
0x56 , 0x40,
//Gamma
0x3b , 0x58, //auto gamma offset adjust in low light
0x3c , 0x20, //auto gamma offset adjust in low light
//0x56 , 0x48,
0x39 , 0x80,
//gamma 4 low noise
0X3f , 0Xb8, //0xa8
0X40 , 0X48,
0X41 , 0X54,
0X42 , 0X4E,
0X43 , 0X44,
0X44 , 0X3E,
0X45 , 0X39,
0X46 , 0X35,
0X47 , 0X31,
0X48 , 0X2E,
0X49 , 0X2B,
0X4b , 0X29,
0X4c , 0X27,
0X4e , 0X23,
0X4f , 0X20,
0X50 , 0X20,
//ÊÊÖÐ
0x51 , 0x08,
0x52 , 0x0E,
0x53 , 0x06,
0x54 , 0x12,
0x57 , 0x82,
0x58 , 0x70,
0x59 , 0x5C,
0x5a , 0x77,
0x5b , 0x1B,
0x5c , 0x0e, //0x5c[3:0] low light color coefficient£¬smaller , lower noise
0x5d , 0x95,
0x60 , 0x20,//color open in low light
//AWB
0x6a , 0x81,//Èç¹û·ôÉ«Æ«É«£¬½«0x6aдΪ0x81. //0x01
0x23 , 0x66,//Green gain
0xa0 , 0x07,//0xa0д0x03£¬ºÚÉ«ÎïÌå¸üºì£»0xa0д0x07£¬ºÚÉ«ÎïÌå¸üºÚ£»
0xa1 , 0X41,//
0xa2 , 0X0e,
0xa3 , 0X26,
0xa4 , 0X0d,
//ÀäÉ«µ÷
//0xa5 , 0x26,//The upper limit of red gain
0xa5 , 0x2d, ///*ůɫµ÷*/
0xa6 , 0x04,
0xa7 , 0x82,//BLUE Target///0x80
0xa8 , 0x7f,//RED Target
0xa9 , 0x28,
0xaa , 0x28,
0xab , 0x28,
0xac , 0x3c,
0xad , 0xf0,
0xc8 , 0x18,
0xc9 , 0x20,
0xca , 0x17,
0xcb , 0x1f,
0xaf , 0x00,
0xc5 , 0x18,
0xc6 , 0x00,
0xc7 , 0x20,
0xae , 0x83,//Èç¹ûÕÕ»§ÍâÆ«À¶£¬½«´Ë¼Ä´æÆ÷0xaeдΪ0x81¡£
0xcc , 0x30,
0xcd , 0x70,
0xee , 0x4c,// P_TH
// color sauration
0xb0 , 0xd0,
//0xb1 , 0xc0,
//0xb2 , 0xaa,
// ±¥ºÍ¶ÈÑÞÀö
0xb1 , 0xd0,
0xb2 , 0xc0,
0xb3 , 0x88,
//anti webcmera banding
0x9d , 0x82, //0x4c //updata by yang.chunming@byd.com 2013.12.3 16:27
0x9e , 0x6c, //add by yang.chunming@byd.com 2013.12.3 16:27
//switch diection
0x1e , 0x00, //00:normal 10:IMAGE_V_MIRROR 20:IMAGE_H_MIRROR 30:IMAGE_HV_MIRROR
//set max 15fps
0x92 , 0xa0,
0x93 , 0x00,
0x2a , 0x00, //0x10
0x2b , 0x88,
0x8e ,0x0d, //0x07 set fps as auto mode by yang.chunming@byd.com 2013.12.03
0x8f ,0xf2,
//0x8e , 0X03,
//0x8f , 0Xfb, //set min 10fps
0x20 , 0x40,
0x09 , 0xc1,
};
uint8_t bf3703_default_regs_exit[]={
};
//#endif
|