CHDK_DE Vorschauversion  Trunk Rev. 5273
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
capt_seq.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "core.h"
#include "conf.h"
#include "../../../generic/capt_seq.c"
+ Include-Abhängigkeitsdiagramm für capt_seq.c:

gehe zum Quellcode dieser Datei

Funktionen

int capt_seq_hook_set_nr_my (int orig)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

static long * nrflag = (long*)0x5CB4
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

*-------------------------------------------------------------------—

!!

IS_ERROR( hSoundHandle )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

__MovieRecorder_c__100

__MovieRecorder_c__100

Definiert in Zeile 38 der Datei capt_seq.c.

39 {
40  // FF87B564
41  asm volatile (
42 " STMFD SP!, {R3-R7,LR} \n"
43 " LDR R6, =0x2C6C \n"
44 " LDR R5, =0x38B44 \n"
45 "loc_FF87B570: \n"
46 " LDR R0, [R6,#4] \n"
47 " MOV R2, #0 \n"
48 " MOV R1, SP \n"
49 " BL sub_FF839B8C \n"
50 " TST R0, #1 \n"
51 " BEQ loc_FF87B59C \n"
52 " LDR R1, =0x43F \n"
53 " LDR R0, =0xFF87B07C \n" // "SsShootTask.c"
54 " BL _DebugAssert \n"
55 " BL sub_FF81EB30 \n" // eventproc_export_ExitTask
56 " LDMFD SP!, {R3-R7,PC} \n"
57 "loc_FF87B59C: \n"
58 " LDR R0, [SP] \n"
59 " LDR R1, [R0] \n"
60 " CMP R1, #0x21 \n"
61 " ADDLS PC, PC, R1,LSL#2 \n"
62 " B loc_FF87B794 \n"
63 "loc_FF87B5B0: \n"
64 " B loc_FF87B638 \n"
65 "loc_FF87B5B4: \n"
66 " B loc_FF87B640 \n"
67 "loc_FF87B5B8: \n"
68 " B loc_FF87B658 \n"
69 "loc_FF87B5BC: \n"
70 " B loc_FF87B66C \n"
71 "loc_FF87B5C0: \n"
72 " B loc_FF87B664 \n"
73 "loc_FF87B5C4: \n"
74 " B loc_FF87B674 \n"
75 "loc_FF87B5C8: \n"
76 " B loc_FF87B67C \n"
77 "loc_FF87B5CC: \n"
78 " B loc_FF87B688 \n"
79 "loc_FF87B5D0: \n"
80 " B loc_FF87B694 \n"
81 "loc_FF87B5D4: \n"
82 " B loc_FF87B66C \n"
83 "loc_FF87B5D8: \n"
84 " B loc_FF87B69C \n"
85 "loc_FF87B5DC: \n"
86 " B loc_FF87B6A8 \n"
87 "loc_FF87B5E0: \n"
88 " B loc_FF87B6B0 \n"
89 "loc_FF87B5E4: \n"
90 " B loc_FF87B6B8 \n"
91 "loc_FF87B5E8: \n"
92 " B loc_FF87B6C0 \n"
93 "loc_FF87B5EC: \n"
94 " B loc_FF87B6C8 \n"
95 "loc_FF87B5F0: \n"
96 " B loc_FF87B6D0 \n"
97 "loc_FF87B5F4: \n"
98 " B loc_FF87B6D8 \n"
99 "loc_FF87B5F8: \n"
100 " B loc_FF87B6E0 \n"
101 "loc_FF87B5FC: \n"
102 " B loc_FF87B6E8 \n"
103 "loc_FF87B600: \n"
104 " B loc_FF87B6F0 \n"
105 "loc_FF87B604: \n"
106 " B loc_FF87B6F8 \n"
107 "loc_FF87B608: \n"
108 " B loc_FF87B700 \n"
109 "loc_FF87B60C: \n"
110 " B loc_FF87B70C \n"
111 "loc_FF87B610: \n"
112 " B loc_FF87B714 \n"
113 "loc_FF87B614: \n"
114 " B loc_FF87B720 \n"
115 "loc_FF87B618: \n"
116 " B loc_FF87B728 \n"
117 "loc_FF87B61C: \n"
118 " B loc_FF87B730 \n"
119 "loc_FF87B620: \n"
120 " B loc_FF87B738 \n"
121 "loc_FF87B624: \n"
122 " B loc_FF87B740 \n"
123 "loc_FF87B628: \n"
124 " B loc_FF87B748 \n"
125 "loc_FF87B62C: \n"
126 " B loc_FF87B750 \n"
127 "loc_FF87B630: \n"
128 " B loc_FF87B75C \n"
129 "loc_FF87B634: \n"
130 " B loc_FF87B7A0 \n"
131 "loc_FF87B638: \n"
132 // jumptable FF87B5A8 entry 0
133 " BL sub_FF87BD1C \n"
134 " BL shooting_expo_param_override \n" // Added ------------>
135 " B loc_FF87B680 \n"
136 "loc_FF87B640: \n"
137 // jumptable FF87B5A8 entry 1
138 " LDRH R1, [R5] \n"
139 " SUB R12, R1, #0x8200 \n"
140 " SUBS R12, R12, #0x2E \n"
141 " LDRNE R0, [R0,#0xC] \n"
142 //" BLNE sub_FF96E09C \n"
143 " BLNE sub_FF96E09C_my \n" // Patched ------------>
144 " B loc_FF87B7A0 \n"
145 "loc_FF87B658: \n"
146 // jumptable FF87B5A8 entry 2
147 " MOV R0, #1 \n"
148 " BL sub_FF87BFA8 \n"
149 " B loc_FF87B7A0 \n"
150 "loc_FF87B664: \n"
151 // jumptable FF87B5A8 entry 4
152 " BL sub_FF87B9CC \n"
153 " B loc_FF87B7A0 \n"
154 "loc_FF87B66C: \n"
155 // jumptable FF87B5A8 entries 3,9
156 " BL sub_FF87BCFC \n"
157 " B loc_FF87B7A0 \n"
158 "loc_FF87B674: \n"
159 // jumptable FF87B5A8 entry 5
160 " BL sub_FF87BD04 \n"
161 " B loc_FF87B7A0 \n"
162 "loc_FF87B67C: \n"
163 // jumptable FF87B5A8 entry 6
164 " BL sub_FF87BEBC \n"
165 "loc_FF87B680: \n"
166 " BL sub_FF879260 \n"
167 " B loc_FF87B7A0 \n"
168 "loc_FF87B688: \n"
169 // jumptable FF87B5A8 entry 7
170 " LDR R0, [R0,#0xC] \n"
171 " BL sub_FF96E20C \n"
172 " B loc_FF87B7A0 \n"
173 "loc_FF87B694: \n"
174 // jumptable FF87B5A8 entry 8
175 " BL sub_FF87BF20 \n"
176 " B loc_FF87B680 \n"
177 "loc_FF87B69C: \n"
178 // jumptable FF87B5A8 entry 10
179 " LDR R0, [R5,#0x4C] \n"
180 " BL sub_FF87C57C \n"
181 " B loc_FF87B7A0 \n"
182 "loc_FF87B6A8: \n"
183 // jumptable FF87B5A8 entry 11
184 " BL sub_FF87C8C8 \n"
185 " B loc_FF87B7A0 \n"
186 "loc_FF87B6B0: \n"
187 // jumptable FF87B5A8 entry 12
188 " BL sub_FF87C92C \n"
189 " B loc_FF87B7A0 \n"
190 "loc_FF87B6B8: \n"
191 // jumptable FF87B5A8 entry 13
192 " BL sub_FF96D5DC \n"
193 " B loc_FF87B7A0 \n"
194 "loc_FF87B6C0: \n"
195 // jumptable FF87B5A8 entry 14
196 " BL sub_FF96D7E8 \n"
197 " B loc_FF87B7A0 \n"
198 "loc_FF87B6C8: \n"
199 // jumptable FF87B5A8 entry 15
200 " BL sub_FF96D86C \n"
201 " B loc_FF87B7A0 \n"
202 "loc_FF87B6D0: \n"
203 // jumptable FF87B5A8 entry 16
204 " BL sub_FF96D958 \n"
205 " B loc_FF87B7A0 \n"
206 "loc_FF87B6D8: \n"
207 // jumptable FF87B5A8 entry 17
208 " BL sub_FF96DA28 \n"
209 " B loc_FF87B7A0 \n"
210 "loc_FF87B6E0: \n"
211 // jumptable FF87B5A8 entry 18
212 " MOV R0, #0 \n"
213 " B loc_FF87B704 \n"
214 "loc_FF87B6E8: \n"
215 // jumptable FF87B5A8 entry 19
216 " BL sub_FF96DE24 \n"
217 " B loc_FF87B7A0 \n"
218 "loc_FF87B6F0: \n"
219 // jumptable FF87B5A8 entry 20
220 " BL sub_FF96DEC8 \n"
221 " B loc_FF87B7A0 \n"
222 "loc_FF87B6F8: \n"
223 // jumptable FF87B5A8 entry 21
224 " BL sub_FF96DFA8 \n"
225 " B loc_FF87B7A0 \n"
226 "loc_FF87B700: \n"
227 // jumptable FF87B5A8 entry 22
228 " MOV R0, #1 \n"
229 "loc_FF87B704: \n"
230 " BL sub_FF96DCC4 \n"
231 " B loc_FF87B7A0 \n"
232 "loc_FF87B70C: \n"
233 // jumptable FF87B5A8 entry 23
234 " BL sub_FF87C178 \n"
235 " B loc_FF87B7A0 \n"
236 "loc_FF87B714: \n"
237 // jumptable FF87B5A8 entry 24
238 " BL sub_FF87C1A4 \n"
239 " BL sub_FF96EE48 \n"
240 " B loc_FF87B7A0 \n"
241 "loc_FF87B720: \n"
242 // jumptable FF87B5A8 entry 25
243 " BL sub_FF96DB9C \n"
244 " B loc_FF87B7A0 \n"
245 "loc_FF87B728: \n"
246 // jumptable FF87B5A8 entry 26
247 " BL sub_FF96DC34 \n"
248 " B loc_FF87B7A0 \n"
249 "loc_FF87B730: \n"
250 // jumptable FF87B5A8 entry 27
251 " BL sub_FF96EF18 \n"
252 " B loc_FF87B7A0 \n"
253 "loc_FF87B738: \n"
254 // jumptable FF87B5A8 entry 28
255 " BL sub_FF83790C \n"
256 " B loc_FF87B7A0 \n"
257 "loc_FF87B740: \n"
258 // jumptable FF87B5A8 entry 29
259 " BL sub_FF87E998 \n"
260 " B loc_FF87B7A0 \n"
261 "loc_FF87B748: \n"
262 // jumptable FF87B5A8 entry 30
263 " BL sub_FF87EA18 \n"
264 " B loc_FF87B7A0 \n"
265 "loc_FF87B750: \n"
266 // jumptable FF87B5A8 entry 31
267 " BL sub_FF87EA74 \n"
268 " BL sub_FF87EA34 \n"
269 " B loc_FF87B7A0 \n"
270 "loc_FF87B75C: \n"
271 // jumptable FF87B5A8 entry 32
272 " MOV R0, #1 \n"
273 " BL sub_FF96E990 \n"
274 " MOV R0, #1 \n"
275 " BL sub_FF96EAB4 \n"
276 " LDRH R0, [R5,#0x94] \n"
277 " CMP R0, #4 \n"
278 " LDRNEH R0, [R5] \n"
279 " SUBNE R12, R0, #0x4200 \n"
280 " SUBNES R12, R12, #0x2A \n"
281 " BNE loc_FF87B7A0 \n"
282 " BL sub_FF87EA18 \n"
283 " BL sub_FF87EF84 \n"
284 " BL sub_FF87EE94 \n"
285 " B loc_FF87B7A0 \n"
286 "loc_FF87B794: \n"
287 // jumptable FF87B5A8 default entry
288 " LDR R1, =0x591 \n"
289 " LDR R0, =0xFF87B07C \n" // "SsShootTask.c"
290 " BL _DebugAssert \n"
291 "loc_FF87B7A0: \n"
292 // jumptable FF87B5A8 entry 33
293 " LDR R0, [SP] \n"
294 " LDR R1, [R0,#4] \n"
295 " LDR R0, [R6] \n"
296 " BL sub_FF8855D8 \n"
297 " LDR R4, [SP] \n"
298 " LDR R0, [R4,#8] \n"
299 " CMP R0, #0 \n"
300 " LDREQ R1, =0x115 \n"
301 " LDREQ R0, =0xFF87B07C \n" // "SsShootTask.c"
302 " BLEQ _DebugAssert \n"
303 " MOV R0, #0 \n"
304 " STR R0, [R4,#8] \n"
305 " B loc_FF87B570 \n"
306  );
307 }
int capt_seq_hook_set_nr_my ( int  orig)

Definiert in Zeile 13 der Datei capt_seq.c.

14 {
15 
18 
19  // Firmware also tests for 3 and 7, meaning unknown, so we don't touch them
20  if (orig!=NR_ON && orig!=NR_OFF)
21  return orig;
22 
23  switch (conf.raw_nr){
25  return NR_OFF;
26  case NOISE_REDUCTION_ON:
27  return NR_ON;
28  case NOISE_REDUCTION_AUTO_CANON: // leave it alone
29  default: // shut up compiler
30  return orig;
31  };
32 }

Variablen-Dokumentation

long* nrflag = (long*)0x5CB4
static

Definiert in Zeile 8 der Datei capt_seq.c.