-
Notifications
You must be signed in to change notification settings - Fork 4
/
ov2640_lores_constants.py
132 lines (128 loc) · 2.68 KB
/
ov2640_lores_constants.py
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
# 160x120, 176x144 removed to save memory
OV2640_320x240_JPEG = [
[ 0xff, b'\x01' ],
[ 0x12, b'\x40' ],
[ 0x17, b'\x11' ],
[ 0x18, b'\x43' ],
[ 0x19, b'\x00' ],
[ 0x1a, b'\x4b' ],
[ 0x32, b'\x09' ],
[ 0x4f, b'\xca' ],
[ 0x50, b'\xa8' ],
[ 0x5a, b'\x23' ],
[ 0x6d, b'\x00' ],
[ 0x39, b'\x12' ],
[ 0x35, b'\xda' ],
[ 0x22, b'\x1a' ],
[ 0x37, b'\xc3' ],
[ 0x23, b'\x00' ],
[ 0x34, b'\xc0' ],
[ 0x36, b'\x1a' ],
[ 0x06, b'\x88' ],
[ 0x07, b'\xc0' ],
[ 0x0d, b'\x87' ],
[ 0x0e, b'\x41' ],
[ 0x4c, b'\x00' ],
[ 0xff, b'\x00' ],
[ 0xe0, b'\x04' ],
[ 0xc0, b'\x64' ],
[ 0xc1, b'\x4b' ],
[ 0x86, b'\x35' ],
[ 0x50, b'\x89' ],
[ 0x51, b'\xc8' ],
[ 0x52, b'\x96' ],
[ 0x53, b'\x00' ],
[ 0x54, b'\x00' ],
[ 0x55, b'\x00' ],
[ 0x57, b'\x00' ],
[ 0x5a, b'\x50' ],
[ 0x5b, b'\x3c' ],
[ 0x5c, b'\x00' ],
[ 0xe0, b'\x00' ],
[ 0xff, b'\xff' ]
]
OV2640_352x288_JPEG = [
[ 0xff, b'\x01' ],
[ 0x12, b'\x40' ],
[ 0x17, b'\x11' ],
[ 0x18, b'\x43' ],
[ 0x19, b'\x00' ],
[ 0x1a, b'\x4b' ],
[ 0x32, b'\x09' ],
[ 0x4f, b'\xca' ],
[ 0x50, b'\xa8' ],
[ 0x5a, b'\x23' ],
[ 0x6d, b'\x00' ],
[ 0x39, b'\x12' ],
[ 0x35, b'\xda' ],
[ 0x22, b'\x1a' ],
[ 0x37, b'\xc3' ],
[ 0x23, b'\x00' ],
[ 0x34, b'\xc0' ],
[ 0x36, b'\x1a' ],
[ 0x06, b'\x88' ],
[ 0x07, b'\xc0' ],
[ 0x0d, b'\x87' ],
[ 0x0e, b'\x41' ],
[ 0x4c, b'\x00' ],
[ 0xff, b'\x00' ],
[ 0xe0, b'\x04' ],
[ 0xc0, b'\x64' ],
[ 0xc1, b'\x4b' ],
[ 0x86, b'\x35' ],
[ 0x50, b'\x89' ],
[ 0x51, b'\xc8' ],
[ 0x52, b'\x96' ],
[ 0x53, b'\x00' ],
[ 0x54, b'\x00' ],
[ 0x55, b'\x00' ],
[ 0x57, b'\x00' ],
[ 0x5a, b'\x58' ],
[ 0x5b, b'\x48' ],
[ 0x5c, b'\x00' ],
[ 0xe0, b'\x00' ],
[ 0xff, b'\xff' ]
]
OV2640_640x480_JPEG = [
[ 0xff, b'\x01' ],
[ 0x11, b'\x01' ],
[ 0x12, b'\x00' ],
[ 0x17, b'\x11' ],
[ 0x18, b'\x75' ],
[ 0x32, b'\x36' ],
[ 0x19, b'\x01' ],
[ 0x1a, b'\x97' ],
[ 0x03, b'\x0f' ],
[ 0x37, b'\x40' ],
[ 0x4f, b'\xbb' ],
[ 0x50, b'\x9c' ],
[ 0x5a, b'\x57' ],
[ 0x6d, b'\x80' ],
[ 0x3d, b'\x34' ],
[ 0x39, b'\x02' ],
[ 0x35, b'\x88' ],
[ 0x22, b'\x0a' ],
[ 0x37, b'\x40' ],
[ 0x34, b'\xa0' ],
[ 0x06, b'\x02' ],
[ 0x0d, b'\xb7' ],
[ 0x0e, b'\x01' ],
[ 0xff, b'\x00' ],
[ 0xe0, b'\x04' ],
[ 0xc0, b'\xc8' ],
[ 0xc1, b'\x96' ],
[ 0x86, b'\x3d' ],
[ 0x50, b'\x89' ],
[ 0x51, b'\x90' ],
[ 0x52, b'\x2c' ],
[ 0x53, b'\x00' ],
[ 0x54, b'\x00' ],
[ 0x55, b'\x88' ],
[ 0x57, b'\x00' ],
[ 0x5a, b'\xa0' ],
[ 0x5b, b'\x78' ],
[ 0x5c, b'\x00' ],
[ 0xd3, b'\x04' ],
[ 0xe0, b'\x00' ],
[ 0xff, b'\xff' ]
]