This source file includes following definitions.
- get_file_next_counter
- get_target_file_num
- get_target_dir_name
- get_target_dir_num
1
2 #define PARAM_FILE_COUNTER 0x1
3
4 #include "platform.h"
5
6
7
8
9
10
11 const ApertureSize aperture_sizes_table[] = {
12 { 9, 328, "3.2" },
13 { 10, 331, "3.5" },
14 { 11, 379, "4.0" },
15 { 12, 425, "4.5" },
16 { 13, 463, "5.0" },
17 { 14, 474, "5.6" },
18 { 15, 502, "6.3" },
19 { 16, 541, "6.9" },
20
21
22 { 17, 604, "9.0" },
23 { 18, 613, "10.0" },
24 { 19, 657, "11.0" },
25 { 20, 687, "13.0" },
26 { 21, 710, "14.0" },
27 { 22, 750, "16.0" },
28 { 23, 790, "18.0" },
29 { 24, 817, "20.0" },
30 };
31
32
33
34
35
36
37 const ShutterSpeed shutter_speeds_table[] = {
38 { -12, -384, "15", 15000000 },
39 { -11, -352, "13", 13000000 },
40 { -10, -320, "10", 10000000 },
41 { -9, -288, "8", 8000000 },
42 { -8, -256, "6", 6000000 },
43 { -7, -224, "5", 5000000 },
44 { -6, -192, "4", 4000000 },
45 { -5, -160, "3.2", 3200000 },
46 { -4, -128, "2.5", 2500000 },
47 { -3, -96, "2", 2000000 },
48 { -2, -64, "1.6", 1600000 },
49 { -1, -32, "1.3", 1300000 },
50 { 0, 0, "1", 1000000 },
51 { 1, 32, "0.8", 800000 },
52 { 2, 64, "0.6", 600000 },
53 { 3, 96, "0.5", 500000 },
54 { 4, 128, "0.4", 400000 },
55 { 5, 160, "0.3", 300000 },
56 { 6, 192, "1/4", 250000 },
57 { 7, 224, "1/5", 200000 },
58 { 8, 256, "1/6", 166667 },
59 { 9, 288, "1/8", 125000 },
60 { 10, 320, "1/10", 100000 },
61 { 11, 352, "1/13", 76923 },
62 { 12, 384, "1/15", 66667 },
63 { 13, 416, "1/20", 50000 },
64 { 14, 448, "1/25", 40000 },
65 { 15, 480, "1/30", 33333 },
66 { 16, 512, "1/40", 25000 },
67 { 17, 544, "1/50", 20000 },
68 { 18, 576, "1/60", 16667 },
69 { 19, 608, "1/80", 12500 },
70 { 20, 640, "1/100", 10000 },
71 { 21, 672, "1/125", 8000 },
72 { 22, 704, "1/160", 6250 },
73 { 23, 736, "1/200", 5000 },
74 { 24, 768, "1/250", 4000 },
75 { 25, 800, "1/320", 3125 },
76 { 26, 832, "1/400", 2500 },
77 { 27, 864, "1/500", 2000 },
78 { 28, 896, "1/640", 1563 },
79 { 29, 928, "1/800", 1250 },
80 { 30, 960, "1/1000", 1000 },
81 { 31, 992, "1/1250", 800 },
82 { 32, 1021, "1/1600", 625 },
83 };
84
85 const ISOTable iso_table[] = {
86 { 0, 0, "Auto", -1},
87 { 1, 80, "80", -1},
88 { 2, 100, "100", -1},
89 { 3, 200, "200", -1},
90 { 4, 400, "400", -1},
91 { 5, 800, "800", -1},
92 { 6, 1600, "1600", -1},
93 { 7, 3200, "3200", -1},
94 };
95
96
97
98 const CapturemodeMap modemap[] = {
99 { MODE_AUTO, 32768 },
100 { MODE_P, 32773 },
101 { MODE_LONG_SHUTTER, 32775 },
102 { MODE_PORTRAIT, 32790 },
103 { MODE_SNOW, 32798 },
104 { MODE_FIREWORK, 32800 },
105 { MODE_LOWLIGHT, 32813 },
106 { MODE_SUPER_VIVID, 33330 },
107 { MODE_POSTER_EFFECT, 33331 },
108 { MODE_FACE_SELF_TIMER, 33332 },
109 { MODE_FISHEYE, 33335 },
110 { MODE_MINIATURE, 33336 },
111 { MODE_TOY_CAMERA, 33339 },
112 { MODE_MONOCHROME, 33343 },
113 { MODE_LIVE, 33345 },
114 };
115
116 #include "../generic/shooting.c"
117
118 long get_file_next_counter() {
119 return get_file_counter();
120 }
121
122 long get_target_file_num() {
123 return get_exposure_counter();
124 }
125 #if defined(CAM_DATE_FOLDER_NAMING)
126 void get_target_dir_name(char *out)
127 {
128 extern void _GetImageFolder(char*,int,int,int);
129 _GetImageFolder(out,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL));
130 }
131 #else
132 long get_target_dir_num()
133 {
134 return 0;
135 }
136 #endif