This source file includes following definitions.
- shooting_expo_param_override
- shooting_expo_iso_override
- register_pt_hooks
1 #include "lolevel.h"
2 #include "platform.h"
3 #include "core.h"
4 #include "keyboard.h"
5 #include "math.h"
6 #include "conf.h"
7
8 #ifndef CAM_FILE_COUNTER_IS_VAR
9 #ifndef PARAM_FILE_COUNTER
10 # error Please define PARAM_FILE_COUNTER in platform/CAMERA/shooting.c!
11 #endif
12 #endif
13
14 #define AV96_MIN (aperture_sizes_table[0].prop_id)
15
16 const unsigned int SS_SIZE = sizeof(shutter_speeds_table)/sizeof(shutter_speeds_table[0]);
17 const unsigned int AS_SIZE = sizeof(aperture_sizes_table)/sizeof(aperture_sizes_table[0]);
18 const unsigned int ISO_SIZE = sizeof(iso_table)/sizeof(iso_table[0]);
19 const unsigned int MODESCNT = sizeof(modemap)/sizeof(modemap[0]);
20
21 #ifndef CAM_FILE_COUNTER_IS_VAR
22 const unsigned int param_file_counter = PARAM_FILE_COUNTER;
23 #endif
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 void __attribute__((naked,noinline)) shooting_expo_param_override(void)
75 {
76
77 asm volatile("STMFD SP!, {R0-R12,LR}\n");
78
79
80 extern void shooting_expo_param_override_thumb();
81 shooting_expo_param_override_thumb();
82
83
84 asm volatile("LDMFD SP!, {R0-R12,PC}\n");
85 }
86
87
88
89 void __attribute__((naked,noinline)) shooting_expo_iso_override(void)
90 {
91
92 asm volatile("STMFD SP!, {R0-R12,LR}\n");
93
94
95 extern void shooting_expo_iso_override_thumb(void);
96 shooting_expo_iso_override_thumb();
97
98
99 asm volatile("LDMFD SP!, {R0-R12,PC}\n");
100 }
101
102
103
104
105 #if 0
106
107 extern int overridden_PT_CompleteFileWrite();
108
109
110
111 int register_pt_hooks() {
112
113
114 if(_ExecuteEventProcedure("SystemEventInit") == -1) {
115 if(_ExecuteEventProcedure("System.Create") == -1) {
116 return 1;
117 }
118 }
119 if(_ExecuteEventProcedure("RegisterProductTestEvent") == -1) {
120 if(_ExecuteEventProcedure("SS.Create") == -1) {
121 return 2;
122 }
123 }
124
125
126
127
128 if(_ExecuteEventProcedure("PT_CompleteFileWrite",0) == -1) {
129 return 4;
130 }
131
132 if(_ExecuteEventProcedure("ExportToEventProcedure","PT_CompleteFileWrite",overridden_PT_CompleteFileWrite) == -1) {
133 return 3;
134 }
135
136 return 0;
137 }
138 #endif