This source file includes following definitions.
- get_file_next_counter
- get_target_file_num
- get_target_dir_name
- get_target_dir_num
1 #define PARAM_FILE_COUNTER 0x3A
2 #define PARAM_EXPOSURE_COUNTER 0x02
3
4 #include "platform.h"
5
6
7
8
9 const ApertureSize aperture_sizes_table[] = {
10 { 9, 293, "2.8" },
11 { 10, 317, "3.2" },
12 { 11, 336, "3.5" },
13 { 12, 364, "3.5" },
14 { 13, 397, "4.0" },
15 { 14, 422, "4.5" },
16 { 15, 454, "5.0" },
17 { 16, 500, "5.9" },
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 const ShutterSpeed shutter_speeds_table[] = {
46 { -12, -384, "15", 15000000 },
47 { -11, -352, "13", 13000000 },
48 { -10, -320, "10", 10000000 },
49 { -9, -288, "8", 8000000 },
50 { -8, -256, "6", 6000000 },
51 { -7, -224, "5", 5000000 },
52 { -6, -192, "4", 4000000 },
53 { -5, -160, "3.2", 3200000 },
54 { -4, -128, "2.5", 2500000 },
55 { -3, -96, "2", 2000000 },
56 { -2, -64, "1.6", 1600000 },
57 { -1, -32, "1.3", 1300000 },
58 { 0, 0, "1", 1000000 },
59 { 1, 32, "0.8", 800000 },
60 { 2, 64, "0.6", 600000 },
61 { 3, 96, "0.5", 500000 },
62 { 4, 128, "0.4", 400000 },
63 { 5, 160, "0.3", 300000 },
64 { 6, 192, "1/4", 250000 },
65 { 7, 224, "1/5", 200000 },
66 { 8, 256, "1/6", 166667 },
67 { 9, 288, "1/8", 125000 },
68 { 10, 320, "1/10", 100000 },
69 { 11, 352, "1/13", 76923 },
70 { 12, 384, "1/15", 66667 },
71 { 13, 416, "1/20", 50000 },
72 { 14, 448, "1/25", 40000 },
73 { 15, 480, "1/30", 33333 },
74 { 16, 512, "1/40", 25000 },
75 { 17, 544, "1/50", 20000 },
76 { 18, 576, "1/60", 16667 },
77 { 19, 608, "1/80", 12500 },
78 { 20, 640, "1/100", 10000 },
79 { 21, 672, "1/125", 8000 },
80 { 22, 704, "1/160", 6250 },
81 { 23, 736, "1/200", 5000 },
82 { 24, 768, "1/250", 4000 },
83 { 25, 800, "1/320", 3125 },
84 { 26, 832, "1/400", 2500 },
85 { 27, 864, "1/500", 2000 },
86 { 28, 896, "1/640", 1563 },
87 { 29, 928, "1/800", 1250 },
88 { 30, 960, "1/1000", 1000 },
89 { 31, 992, "1/1250", 800 },
90 { 32, 1021, "1/1600", 625 },
91 };
92
93 const ISOTable iso_table[] = {
94 { -1, 1, "HI", -1},
95 { 0, 0, "Auto", -1},
96 { 1, 80, "80", -1},
97 { 2, 100, "100", -1},
98 { 3, 200, "200", -1},
99 { 4, 400, "400", -1},
100 { 5, 800, "800", -1},
101 { 6, 1600, "1600", -1},
102 };
103
104
105 const CapturemodeMap modemap[] = {
106 { MODE_AUTO, 32768 },
107
108 { MODE_P, 32772 },
109 { MODE_PORTRAIT, 32783 },
110 { MODE_NIGHT_SNAPSHOT, 32781 },
111 { MODE_KIDS_PETS, 32786 },
112 { MODE_INDOOR, 32787 },
113
114 { MODE_FOLIAGE, 32789 },
115 { MODE_SNOW, 32790 },
116 { MODE_BEACH, 32791 },
117 { MODE_FIREWORK, 32792 },
118 { MODE_NIGHT_SCENE, 32774 },
119 { MODE_UNDERWATER, 32793 },
120
121
122
123 { MODE_COLOR_ACCENT, 33309 },
124 { MODE_COLOR_SWAP, 33310 },
125 { MODE_STITCH, 33292 },
126 { MODE_VIDEO_STD, 2612 },
127 { MODE_VIDEO_COLOR_ACCENT, 2610 },
128 { MODE_VIDEO_COLOR_SWAP, 2611 },
129 { MODE_LOWLIGHT, 32801 },
130
131 { MODE_SMART_SHUTTER, 33321 },
132 { MODE_FISHEYE, 33323 },
133 { MODE_MINIATURE, 33324 },
134 };
135
136 #include "../generic/shooting.c"
137
138 long get_file_next_counter() {
139 return get_file_counter();
140 }
141
142 long get_target_file_num() {
143 long n;
144
145 n = get_file_next_counter();
146 n = (n>>4)&0x3FFF;
147 return n;
148 }
149
150 #if defined(CAM_DATE_FOLDER_NAMING)
151
152 void get_target_dir_name(char *out)
153 {
154 extern void _GetImageFolder(char*,int,int,int);
155 out[0] = 'A';
156 _GetImageFolder(out+1,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL));
157 }
158 #else
159 long get_target_dir_num() {
160 long n;
161
162 n = get_file_next_counter();
163 n = (n>>18)&0x3FF;
164 return n;
165 }
166 #endif
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