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 0x3B
3 #define PARAM_EXPOSURE_COUNTER 0x02
4
5 #include "platform.h"
6
7 const ApertureSize aperture_sizes_table[] = {
8 { 9, 295, "2.8" },
9 { 10, 319, "3.2" },
10 { 11, 338, "3.5" },
11 { 12, 366, "3.5" },
12 { 13, 393, "4.0" },
13 { 14, 423, "4.5" },
14 { 15, 456, "5.0" },
15 { 16, 501, "5.9" },
16
17 { 17, 572, "8.0" },
18 { 18, 596, "9.0" },
19 { 19, 615, "10.0" },
20 { 20, 643, "10.0" },
21 { 21, 670, "11.0" },
22 { 22, 700, "13.0" },
23 { 22, 733, "14.0" },
24 { 23, 778, "17.0" },
25 };
26
27 const ShutterSpeed shutter_speeds_table[] = {
28 { -12, -384, "15", 15000000 },
29 { -11, -352, "13", 13000000 },
30 { -10, -320, "10", 10000000 },
31 { -9, -288, "8", 8000000 },
32 { -8, -256, "6", 6000000 },
33 { -7, -224, "5", 5000000 },
34 { -6, -192, "4", 4000000 },
35 { -5, -160, "3.2", 3200000 },
36 { -4, -128, "2.5", 2500000 },
37 { -3, -96, "2", 2000000 },
38 { -2, -64, "1.6", 1600000 },
39 { -1, -32, "1.3", 1300000 },
40 { 0, 0, "1", 1000000 },
41 { 1, 32, "0.8", 800000 },
42 { 2, 64, "0.6", 600000 },
43 { 3, 96, "0.5", 500000 },
44 { 4, 128, "0.4", 400000 },
45 { 5, 160, "0.3", 300000 },
46 { 6, 192, "1/4", 250000 },
47 { 7, 224, "1/5", 200000 },
48 { 8, 256, "1/6", 166667 },
49 { 9, 288, "1/8", 125000 },
50 { 10, 320, "1/10", 100000 },
51 { 11, 352, "1/13", 76923 },
52 { 12, 384, "1/15", 66667 },
53 { 13, 412, "1/20", 50000 },
54 { 14, 448, "1/25", 40000 },
55 { 15, 480, "1/30", 33333 },
56 { 16, 512, "1/40", 25000 },
57 { 17, 544, "1/50", 20000 },
58 { 18, 576, "1/60", 16667 },
59 { 19, 608, "1/80", 12500 },
60 { 20, 640, "1/100", 10000 },
61 { 21, 672, "1/125", 8000 },
62 { 22, 704, "1/160", 6250 },
63 { 23, 736, "1/200", 5000 },
64 { 24, 768, "1/250", 4000 },
65 { 25, 800, "1/320", 3125 },
66 { 26, 832, "1/400", 2500 },
67 { 27, 864, "1/500", 2000 },
68 { 28, 896, "1/640", 1563 },
69 { 29, 928, "1/800", 1250 },
70 { 30, 960, "1/1000", 1000 },
71 { 31, 992, "1/1250", 800 },
72 { 32, 1024, "1/1600", 625 },
73 };
74
75 const ISOTable iso_table[] = {
76 { 0, 0, "Auto", -1},
77 { 1, 80, "80", -1},
78 { 2, 100, "100", -1},
79 { 3, 200, "200", -1},
80 { 4, 400, "400", -1},
81 { 5, 800, "800", -1},
82 { 6, 1600, "1600", -1},
83 };
84
85 const CapturemodeMap modemap[] = {
86 { MODE_P, 32772 },
87 { MODE_LIVE, 33332 },
88 { MODE_AUTO, 32768 },
89 { MODE_EASY, 33314 },
90 { MODE_DISCREET, 32817 },
91 { MODE_BLUR_REDUCTION, 16435 },
92 { MODE_PORTRAIT, 16399 },
93 { MODE_LANDSCAPE, 16398 },
94 { MODE_KIDS_PETS, 16402 },
95 { MODE_LOWLIGHT, 16417 },
96 { MODE_BEACH, 16407 },
97 { MODE_FOLIAGE, 16405 },
98 { MODE_SNOW, 16406 },
99 { MODE_FIREWORK, 16408 },
100 { MODE_LONG_SHUTTER, 16390 },
101 { MODE_FACE_SELF_TIMER, 16936 },
102 { MODE_SMART_SHUTTER, 16937 },
103 { MODE_WINK_SELF_TIMER, 16938 },
104 { MODE_FISHEYE, 8747 },
105 { MODE_MINIATURE, 8748 },
106 { MODE_TOY_CAMERA, 8751 },
107 { MODE_MONOCHROME, 8754 },
108 { MODE_SUPER_VIVID, 8742 },
109 { MODE_POSTER_EFFECT, 8743 },
110 { MODE_VIDEO_STD, 2621 },
111 { MODE_VIDEO_MINIATURE, 2627 },
112 } ;
113
114 #include "../generic/shooting.c"
115
116 long get_file_next_counter() {
117
118 return get_file_counter();
119 }
120
121 long get_target_file_num() {
122
123 long n;
124
125 n = get_file_next_counter();
126 n = (n>>4)&0x3FFF;
127 return n;
128 }
129
130 #if defined(CAM_DATE_FOLDER_NAMING)
131 void get_target_dir_name(char *out) {
132
133 extern void _GetImageFolder(char*,int,int,int);
134 _GetImageFolder(out,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL));
135 }
136 #else
137 long get_target_dir_num() {
138
139 long n;
140
141 n = get_file_next_counter();
142 n = (n>>18)&0x3FF;
143 return n;
144 }
145 #endif