This source file includes following definitions.
- get_file_next_counter
- get_target_file_num
- get_target_dir_name
- get_target_dir_num
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4 #include "conf.h"
5 #include "keyboard.h"
6
7 #define PARAM_FILE_COUNTER 0x1
8
9
10
11 const ApertureSize aperture_sizes_table[] = {
12 { 9, 352, "3.5" },
13 { 10, 384, "4.0" },
14 { 11, 416, "4.5" },
15 { 12, 448, "5.0" },
16 { 13, 480, "5.6" },
17 { 14, 512, "6.3" },
18 { 15, 544, "7.1" },
19 { 16, 576, "8.0" }
20 };
21
22 const ShutterSpeed shutter_speeds_table[] = {
23 { -12, -384, "15", 15000000 },
24 { -11, -352, "13", 13000000 },
25 { -10, -320, "10", 10000000 },
26 { -9, -288, "8", 8000000 },
27 { -8, -256, "6", 6000000 },
28 { -7, -224, "5", 5000000 },
29 { -6, -192, "4", 4000000 },
30 { -5, -160, "3.2", 3200000 },
31 { -4, -128, "2.5", 2500000 },
32 { -3, -96, "2", 2000000 },
33 { -2, -64, "1.6", 1600000 },
34 { -1, -32, "1.3", 1300000 },
35 { 0, 0, "1", 1000000 },
36 { 1, 32, "0.8", 800000 },
37 { 2, 64, "0.6", 600000 },
38 { 3, 96, "0.5", 500000 },
39 { 4, 128, "0.4", 400000 },
40 { 5, 160, "0.3", 300000 },
41 { 6, 192, "1/4", 250000 },
42 { 7, 224, "1/5", 200000 },
43 { 8, 256, "1/6", 166667 },
44 { 9, 288, "1/8", 125000 },
45 { 10, 320, "1/10", 100000 },
46 { 11, 352, "1/13", 76923 },
47 { 12, 384, "1/15", 66667 },
48 { 13, 416, "1/20", 50000 },
49 { 14, 448, "1/25", 40000 },
50 { 15, 480, "1/30", 33333 },
51 { 16, 512, "1/40", 25000 },
52 { 17, 544, "1/50", 20000 },
53 { 18, 576, "1/60", 16667 },
54 { 19, 608, "1/80", 12500 },
55 { 20, 640, "1/100", 10000 },
56 { 21, 672, "1/125", 8000 },
57 { 22, 704, "1/160", 6250 },
58 { 23, 736, "1/200", 5000 },
59 { 24, 768, "1/250", 4000 },
60 { 25, 800, "1/320", 3125 },
61 { 26, 832, "1/400", 2500 },
62 { 27, 864, "1/500", 2000 },
63 { 28, 896, "1/640", 1563 },
64 { 29, 928, "1/800", 1250 },
65 { 30, 960, "1/1000", 1000 },
66 { 31, 992, "1/1250", 800 },
67 { 32, 1024, "1/1600", 625 },
68 { 33, 1056, "1/2000", 500 },
69 { 34, 1088, "1/2500", 400 },
70 { 35, 1120, "1/3200", 313 },
71 };
72
73 const ISOTable iso_table[] = {
74 { 0, 0, "Auto", -1},
75 { 1, 100, "100", -1},
76 { 2, 200, "200", -1},
77 { 3, 400, "400", -1},
78 { 4, 800, "800", -1},
79 { 5, 1600, "1600", -1},
80 { 6, 3200, "3200", -1},
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 const CapturemodeMap modemap[] = {
125
126 { MODE_VIDEO_STD ,2628 },
127 { MODE_VIDEO_SUPER_SLOW ,2633 },
128 { MODE_SUPER_VIVID ,8748 },
129 { MODE_POSTER_EFFECT ,8749 },
130 { MODE_FISHEYE ,8753 },
131 { MODE_MINIATURE ,8754 },
132 { MODE_TOY_CAMERA ,8757 },
133 { MODE_SOFTFOCUS ,8758 },
134 { MODE_MONOCHROME ,8760 },
135 { MODE_HIGHSPEED_BURST | MODE_DISABLE_RAW ,16393 },
136 { MODE_PORTRAIT ,16403 },
137 { MODE_SNOW ,16411 },
138 { MODE_FIREWORK ,16413 },
139 { MODE_UNDERWATER ,16414 },
140 { MODE_FACE_SELF_TIMER ,16942 },
141 { MODE_SMART_SHUTTER ,16943 },
142 { MODE_WINK_SELF_TIMER ,16944 },
143 { MODE_NIGHT_SCENE | MODE_DISABLE_RAW ,16947 },
144 { MODE_AUTO | MODE_DISABLE_RAW ,32768 },
145 { MODE_M ,32769 },
146 { MODE_AV ,32770 },
147 { MODE_TV ,32771 },
148 { MODE_P ,32772 },
149 { MODE_HYBRID_AUTO | MODE_DISABLE_RAW ,32784 },
150 { MODE_DISCREET ,32823 },
151 { MODE_SPORTS | MODE_DISABLE_RAW ,33287 },
152 { MODE_STITCH ,33293 },
153
154 { MODE_SMOOTH_SKIN ,33300 },
155 { MODE_COLOR_ACCENT ,33315 },
156 { MODE_COLOR_SWAP ,33316 },
157 { MODE_LIVE ,33338 },
158 { MODE_VIDEO_MOVIE_DIGEST ,33339 }
159
160 };
161
162 #include "../generic/shooting.c"
163
164 long get_file_next_counter() {
165 return get_file_counter();
166 }
167
168 long get_target_file_num() {
169 return get_exposure_counter();
170 }
171 #if defined(CAM_DATE_FOLDER_NAMING)
172
173
174
175
176 void get_target_dir_name(char *out)
177 {
178 extern void _GetImageFolder(char*,int,int,int);
179 _GetImageFolder(out,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL));
180 }
181 #else
182 long get_target_dir_num()
183 {
184 return 0;
185 }
186 #endif