This source file includes following definitions.
- get_file_next_counter
- get_target_file_num
- get_target_dir_num
1
2 #define PARAM_FILE_COUNTER 0x34
3
4 #include "platform.h"
5
6 const ApertureSize aperture_sizes_table[] = {
7
8 { 8, 277, "2.6" },
9 { 9, 308, "3.2" },
10 { 10, 336, "3.5" },
11 { 11, 387, "4.0" },
12 { 12, 411, "4.5" },
13 { 13, 439, "5.0" },
14 { 14, 480, "5.5" },
15 { 15, 457, "5.6" },
16 { 16, 488, "6.3" },
17 { 17, 516, "7.1" },
18 { 18, 568, "8.0" },
19 { 19, 591, "9.0" },
20 { 20, 619, "10.0" },
21 { 21, 660, "11.0" },
22
23 };
24
25 const ShutterSpeed shutter_speeds_table[] = {
26 { -12, -384, "15", 15000000 },
27 { -11, -352, "13", 13000000 },
28 { -10, -320, "10", 10000000 },
29 { -9, -288, "8", 8000000 },
30 { -8, -256, "6", 6000000 },
31 { -7, -224, "5", 5000000 },
32 { -6, -192, "4", 4000000 },
33 { -5, -160, "3.2", 3200000 },
34 { -4, -128, "2.5", 2500000 },
35 { -3, -96, "2", 2000000 },
36 { -2, -64, "1.6", 1600000 },
37 { -1, -32, "1.3", 1300000 },
38 { 0, 0, "1", 1000000 },
39 { 1, 32, "0.8", 800000 },
40 { 2, 64, "0.6", 600000 },
41 { 3, 96, "0.5", 500000 },
42 { 4, 128, "0.4", 400000 },
43 { 5, 160, "0.3", 300000 },
44 { 6, 192, "1/4", 250000 },
45 { 7, 224, "1/5", 200000 },
46 { 8, 256, "1/6", 166667 },
47 { 9, 288, "1/8", 125000 },
48 { 10, 320, "1/10", 100000 },
49 { 11, 352, "1/13", 76923 },
50 { 12, 384, "1/15", 66667 },
51 { 13, 416, "1/20", 50000 },
52 { 14, 448, "1/25", 40000 },
53 { 15, 480, "1/30", 33333 },
54 { 16, 512, "1/40", 25000 },
55 { 17, 544, "1/50", 20000 },
56 { 18, 576, "1/60", 16667 },
57 { 19, 608, "1/80", 12500 },
58 { 20, 640, "1/100", 10000 },
59 { 21, 672, "1/125", 8000 },
60 { 22, 704, "1/160", 6250 },
61 { 23, 736, "1/200", 5000 },
62 { 24, 768, "1/250", 4000 },
63 { 25, 800, "1/320", 3125 },
64 { 26, 832, "1/400", 2500 },
65 { 27, 864, "1/500", 2000 },
66 { 28, 896, "1/640", 1563 },
67 { 29, 928, "1/800", 1250 },
68 { 30, 960, "1/1000", 1000 },
69 { 31, 992, "1/1250", 800 },
70 { 32, 1021, "1/1600", 625 },
71 { 33, 1053, "1/2000", 500 },
72 };
73
74 const ISOTable iso_table[] = {
75
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
83 };
84
85
86
87
88
89
90
91
92
93
94
95
96
97 const CapturemodeMap modemap[] = {
98 { MODE_AUTO, 32768 },
99 { MODE_P, 32772 },
100 { MODE_M, 32769 },
101 { MODE_VIDEO_COLOR_ACCENT, 2591 },
102 { MODE_VIDEO_COLOR_SWAP, 2592 },
103 { MODE_VIDEO_STD, 2593 },
104 { MODE_VIDEO_COMPACT, 2595 },
105 { MODE_NIGHT_SNAPSHOT, 16395 },
106 { MODE_COLOR_ACCENT, 16920 },
107 { MODE_COLOR_SWAP, 16921 },
108 { MODE_FOLIAGE, 16401 },
109 { MODE_SNOW, 16402 },
110 { MODE_BEACH, 16403 },
111 { MODE_FIREWORK, 16404 },
112 { MODE_INDOOR, 16400 },
113 { MODE_KIDS_PETS, 16399 },
114 { MODE_NIGHT_SCENE, 32782 },
115 { MODE_LANDSCAPE, 32780 },
116 { MODE_PORTRAIT, 32781 },
117 { MODE_STITCH, 33290 },
118 };
119
120 #include "../generic/shooting.c"
121
122
123
124 long get_file_next_counter() {
125 return ((get_file_counter()>>4)+1)<<4;
126 }
127
128 long get_target_file_num() {
129 long n;
130
131 n = get_file_next_counter();
132 n = (n>>4)&0x3FFF;
133 return n;
134 }
135
136 long get_target_dir_num() {
137 long n;
138
139 n = get_file_next_counter();
140 n = (n>>18)&0x3FF;
141 return n;
142 }