CHDK_DE Vorschauversion  Trunk Rev. 5426
 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 "../../../generic/capt_seq.c"
+ Include-Abhängigkeitsdiagramm für capt_seq.c:

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define USE_STUBS_NRFLAG   1
 
#define NR_AUTO   (-1)
 

Funktionen

void _LogCameraEvent (int id, const char *fmt,...)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

int active_raw_buffer
 

Makro-Dokumentation

#define NR_AUTO   (-1)

Definiert in Zeile 13 der Datei capt_seq.c.

#define USE_STUBS_NRFLAG   1

Definiert in Zeile 12 der Datei capt_seq.c.

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 46 der Datei capt_seq.c.

46  {
47  asm volatile (
48 " push {r3, r4, r5, r6, r7,lr}\n"
49 " ldr r4, =0x059F20\n"
50 " movs r6, #0\n"
51 " ldr r5, =0x0b378\n"
52 "loc_fc0bd90e:\n"
53 " movs r2, #0\n"
54 " mov r1, sp\n"
55 " ldr r0, [r5,#8]\n"
56 " blx sub_FC3022D4\n"
57 " lsls r0, r0, #0x1f\n"
58 " beq loc_fc0bd930\n"
59 " movw r2, #0x455\n"
60 " ldr r1, =0xfc0bd504\n"
61 " movs r0, #0\n"
62 " blx sub_FC302434\n"
63 " blx sub_FC3022EC\n"
64 " pop {r3, r4, r5, r6, r7,pc}\n"
65 "loc_fc0bd930:\n"
66 " ldr r0, [sp]\n"
67 " ldr r0, [r0]\n"
68 " cmp r0, #1\n"
69 " beq loc_fc0bd948\n"
70 " cmp r0, #0x28\n"
71 " beq loc_fc0bd948\n"
72 " cmp r0, #0x1c\n"
73 " beq loc_fc0bd948\n"
74 " cmp r0, #0x20\n"
75 " beq loc_fc0bd948\n"
76 " bl sub_FC18B492\n"
77 "loc_fc0bd948:\n"
78 #ifdef CAPTSEQ_DEBUG_LOG
79 // debug message
80 "ldr r0, [sp]\n"
81 "ldr r0, [r0]\n"
82 "bl log_capt_seq\n"
83 #endif
84 " ldr r0, [sp]\n"
85 " ldr r1, [r0]\n"
86 " cmp r1, #0x2f\n"
87 " bcs loc_fc0bda30\n"
88 " tbb.w [pc,r1]\n"
89 "branchtable_fc0bd950:\n"
90 ".byte((loc_fc0bd984 - branchtable_fc0bd950) / 2)\n"
91 ".byte((loc_fc0bd99a - branchtable_fc0bd950) / 2)\n"
92 ".byte((loc_fc0bd9a2 - branchtable_fc0bd950) / 2)\n"
93 ".byte((loc_fc0bd9b0 - branchtable_fc0bd950) / 2)\n"
94 ".byte((loc_fc0bd9aa - branchtable_fc0bd950) / 2)\n"
95 ".byte((loc_fc0bd9ba - branchtable_fc0bd950) / 2)\n"
96 ".byte((loc_fc0bd9c0 - branchtable_fc0bd950) / 2)\n"
97 ".byte((loc_fc0bda0c - branchtable_fc0bd950) / 2)\n"
98 ".byte((loc_fc0bd9d0 - branchtable_fc0bd950) / 2)\n"
99 ".byte((loc_fc0bd9d8 - branchtable_fc0bd950) / 2)\n"
100 ".byte((loc_fc0bd9de - branchtable_fc0bd950) / 2)\n"
101 ".byte((loc_fc0bd9f4 - branchtable_fc0bd950) / 2)\n"
102 ".byte((loc_fc0bd9fa - branchtable_fc0bd950) / 2)\n"
103 ".byte((loc_fc0bda00 - branchtable_fc0bd950) / 2)\n"
104 ".byte((loc_fc0bda06 - branchtable_fc0bd950) / 2)\n"
105 ".byte((loc_fc0bda14 - branchtable_fc0bd950) / 2)\n"
106 ".byte((loc_fc0bda1a - branchtable_fc0bd950) / 2)\n"
107 ".byte((loc_fc0bda20 - branchtable_fc0bd950) / 2)\n"
108 ".byte((loc_fc0bda26 - branchtable_fc0bd950) / 2)\n"
109 ".byte((loc_fc0bda2c - branchtable_fc0bd950) / 2)\n"
110 ".byte((loc_fc0bda32 - branchtable_fc0bd950) / 2)\n"
111 ".byte((loc_fc0bda38 - branchtable_fc0bd950) / 2)\n"
112 ".byte((loc_fc0bda3e - branchtable_fc0bd950) / 2)\n"
113 ".byte((loc_fc0bda44 - branchtable_fc0bd950) / 2)\n"
114 ".byte((loc_fc0bda4a - branchtable_fc0bd950) / 2)\n"
115 ".byte((loc_fc0bda50 - branchtable_fc0bd950) / 2)\n"
116 ".byte((loc_fc0bda58 - branchtable_fc0bd950) / 2)\n"
117 ".byte((loc_fc0bda5e - branchtable_fc0bd950) / 2)\n"
118 ".byte((loc_fc0bda62 - branchtable_fc0bd950) / 2)\n"
119 ".byte((loc_fc0bda6a - branchtable_fc0bd950) / 2)\n"
120 ".byte((loc_fc0bda70 - branchtable_fc0bd950) / 2)\n"
121 ".byte((loc_fc0bda9a - branchtable_fc0bd950) / 2)\n"
122 ".byte((loc_fc0bdaa0 - branchtable_fc0bd950) / 2)\n"
123 ".byte((loc_fc0bdaa6 - branchtable_fc0bd950) / 2)\n"
124 ".byte((loc_fc0bdaac - branchtable_fc0bd950) / 2)\n"
125 ".byte((loc_fc0bdab2 - branchtable_fc0bd950) / 2)\n"
126 ".byte((loc_fc0bdab8 - branchtable_fc0bd950) / 2)\n"
127 ".byte((loc_fc0bdac0 - branchtable_fc0bd950) / 2)\n"
128 ".byte((loc_fc0bdac6 - branchtable_fc0bd950) / 2)\n"
129 ".byte((loc_fc0bdaea - branchtable_fc0bd950) / 2)\n"
130 ".byte((loc_fc0bdaf0 - branchtable_fc0bd950) / 2)\n"
131 ".byte((loc_fc0bdb28 - branchtable_fc0bd950) / 2)\n"
132 ".byte((loc_fc0bdafc - branchtable_fc0bd950) / 2)\n"
133 ".byte((loc_fc0bdb02 - branchtable_fc0bd950) / 2)\n"
134 ".byte((loc_fc0bdb08 - branchtable_fc0bd950) / 2)\n"
135 ".byte((loc_fc0bdb0e - branchtable_fc0bd950) / 2)\n"
136 ".byte((loc_fc0bdb14 - branchtable_fc0bd950) / 2)\n"
137 ".align 1\n"
138 "loc_fc0bd984:\n" // case 0: preshoot, quick press shoot
139 " ldr r0, [r0,#0xc]\n"
140 " bl sub_fc0d47f2\n"
141 #ifdef CAPTSEQ_DEBUG_LOG
142 "bl log_capt_seq_override\n"
143 #endif
144 "bl shooting_expo_param_override\n" // +
145 " bl sub_fc0d36ac\n"
146 " ldr r0, [r4,#0x28]\n"
147 " cmp r0, #0\n"
148 " beq loc_fc0bd998\n"
149 " bl sub_fc0daf9e_my\n" // -> nr?, remote hook, raw hook (quick, no half press)
150 "loc_fc0bd998:\n"
151 " b loc_fc0bdb28\n"
152 "loc_fc0bd99a:\n" // case 1: (normal shoot)
153 " ldr r0, [r0,#0x10]\n"
154 " bl sub_fc0dae40_my\n" // -> nr?, remote hook, raw hook
155 " b loc_fc0bdb28\n"
156 "loc_fc0bd9a2:\n"
157 " movs r0, #1\n"
158 " bl sub_fc0d4adc\n"
159 " b loc_fc0bdb28\n"
160 "loc_fc0bd9aa:\n"
161 " bl sub_fc0d4534\n"
162 " b loc_fc0bd9b6\n"
163 "loc_fc0bd9b0:\n"
164 " ldr r0, [r0,#0xc]\n"
165 " bl sub_fc0d47da\n"
166 "loc_fc0bd9b6:\n"
167 " str r6, [r4,#0x28]\n"
168 " b loc_fc0bdb28\n"
169 "loc_fc0bd9ba:\n"
170 " bl sub_fc0d47e0\n"
171 " b loc_fc0bdb28\n"
172 "loc_fc0bd9c0:\n"
173 " bl sub_fc0d4a7c\n"
174 " bl sub_fc0d36ac\n"
175 " movs r0, #0\n"
176 " bl sub_fc0a9748\n"
177 " b loc_fc0bdb28\n"
178 "loc_fc0bd9d0:\n"
179 " ldr r0, [r4,#0x54]\n"
180 " bl sub_fc0f8f44\n"
181 " b loc_fc0bdb28\n"
182 "loc_fc0bd9d8:\n"
183 " bl sub_fc0f91d0\n"
184 " b loc_fc0bdb28\n"
185 "loc_fc0bd9de:\n"
186 " ldr r0, [r0,#0xc]\n"
187 " bl sub_fc0f921c\n"
188 " b loc_fc0bdb28\n"
189 ".ltorg\n"
190 //" .byte 0\n"
191 //" .byte 0\n"
192 //" off_fc0bd9e8 dcd dword_5A124\n"
193 //" off_fc0bd9ec dcd word_59F20\n"
194 //" off_fc0bd9f0 dcd 0xB378\n"
195 "loc_fc0bd9f4:\n"
196 " bl sub_fc0f93ee\n"
197 " b loc_fc0bdb28\n"
198 "loc_fc0bd9fa:\n"
199 " bl sub_fc0f9438\n"
200 " b loc_fc0bdb28\n"
201 "loc_fc0bda00:\n"
202 " bl sub_fc0f97ee\n"
203 " b loc_fc0bdb28\n"
204 "loc_fc0bda06:\n"
205 " bl sub_fc0f9884\n"
206 " b loc_fc0bdb28\n"
207 "loc_fc0bda0c:\n"
208 " ldr r0, [r0,#0xc]\n"
209 " bl sub_fc0d47da\n"
210 " b loc_fc0bdb28\n"
211 "loc_fc0bda14:\n"
212 " bl sub_fc0da684\n"
213 " b loc_fc0bdb28\n"
214 "loc_fc0bda1a:\n"
215 " bl sub_fc0da886\n"
216 " b loc_fc0bdb28\n"
217 "loc_fc0bda20:\n"
218 " bl sub_fc0da930\n"
219 " b loc_fc0bdb28\n"
220 "loc_fc0bda26:\n"
221 " bl sub_fc0da9e8\n"
222 " b loc_fc0bdb28\n"
223 "loc_fc0bda2c:\n"
224 " movs r0, #0\n"
225 " b loc_fc0bda52\n"
226 "loc_fc0bda30:\n"
227 " b loc_fc0bdb1a\n"
228 "loc_fc0bda32:\n"
229 " bl sub_fc0dab8c\n"
230 " b loc_fc0bdb28\n"
231 "loc_fc0bda38:\n"
232 " bl sub_fc0dabec\n"
233 " b loc_fc0bdb28\n"
234 "loc_fc0bda3e:\n"
235 " bl sub_fc0dabf0\n"
236 " b loc_fc0bdb28\n"
237 "loc_fc0bda44:\n"
238 " bl sub_fc0dac00\n"
239 " b loc_fc0bdb28\n"
240 "loc_fc0bda4a:\n"
241 " bl sub_fc0dac8c\n"
242 " b loc_fc0bdb28\n"
243 "loc_fc0bda50:\n"
244 " movs r0, #1\n"
245 "loc_fc0bda52:\n"
246 " bl sub_fc0daa6c\n"
247 " b loc_fc0bdb28\n"
248 "loc_fc0bda58:\n"
249 " bl sub_fc0d4bd4\n"
250 " b loc_fc0bdb28\n"
251 "loc_fc0bda5e:\n"
252 " movs r0, #0\n"
253 " b loc_fc0bda64\n"
254 "loc_fc0bda62:\n"
255 " ldr r0, [r0,#0xc]\n"
256 "loc_fc0bda64:\n"
257 " bl sub_fc0d4c08\n"
258 " b loc_fc0bdb28\n"
259 "loc_fc0bda6a:\n"
260 " bl sub_FC110720\n"
261 " b loc_fc0bdb28\n"
262 "loc_fc0bda70:\n"
263 " ldr r1, =0x00059F82\n"
264 " movs r2, #2\n"
265 " movs r0, #0x75\n"
266 " bl sub_FC373808\n"
267 " lsls r0, r0, #0x1f\n"
268 " beq loc_fc0bda8c\n"
269 " movw r2, #0x51a\n"
270 " ldr r1, =0xfc0bd504\n"
271 " movs r0, #0\n"
272 " blx sub_FC302434\n"
273 "loc_fc0bda8c:\n"
274 " ldrh.w r0, [r4,#0x62]\n"
275 " cmp r0, #1\n"
276 " bne loc_fc0bdb28\n"
277 " bl sub_FC11071A\n"
278 " b loc_fc0bdb28\n"
279 "loc_fc0bda9a:\n"
280 " bl sub_FC1107A4\n"
281 " b loc_fc0bdb28\n"
282 "loc_fc0bdaa0:\n"
283 " bl sub_FC1108C0\n"
284 " b loc_fc0bdb28\n"
285 "loc_fc0bdaa6:\n"
286 " bl sub_fc0d3eb8\n"
287 " b loc_fc0bdb28\n"
288 "loc_fc0bdaac:\n"
289 " bl sub_fc0d4f4a\n"
290 " b loc_fc0bdb28\n"
291 "loc_fc0bdab2:\n"
292 " bl sub_fc0d5004\n"
293 " b loc_fc0bdb28\n"
294 "loc_fc0bdab8:\n"
295 " ldr r0, [r0,#0xc]\n"
296 " bl sub_fc0dad6c\n"
297 " b loc_fc0bdb28\n"
298 "loc_fc0bdac0:\n"
299 " bl sub_fc0dadbe\n"
300 " b loc_fc0bdb28\n"
301 "loc_fc0bdac6:\n"
302 " bl sub_fc0d58f8\n"
303 " bl sub_fc0d66b2\n"
304 " ldrh.w r0, [r4,#0x1a4]\n"
305 " cmp r0, #4\n"
306 " beq loc_fc0bdae0\n"
307 " ldrh r0, [r4]\n"
308 " sub.w r1, r0, #0x8200\n"
309 " subs r1, #0x36\n"
310 " bne loc_fc0bdb28\n"
311 "loc_fc0bdae0:\n"
312 " bl sub_fc0d5004\n"
313 " bl sub_fc0d5336\n"
314 " b loc_fc0bdb28\n"
315 "loc_fc0bdaea:\n"
316 " movs r2, #0\n"
317 " movs r1, #0x11\n"
318 " b loc_fc0bdaf4\n"
319 "loc_fc0bdaf0:\n"
320 " movs r2, #0\n"
321 " movs r1, #0x10\n"
322 "loc_fc0bdaf4:\n"
323 " movs r0, #0\n"
324 " bl sub_fc0d4046\n"
325 " b loc_fc0bdb28\n"
326 "loc_fc0bdafc:\n"
327 " bl sub_FC11100C\n"
328 " b loc_fc0bdb28\n"
329 "loc_fc0bdb02:\n"
330 " bl sub_FC111088\n"
331 " b loc_fc0bdb28\n"
332 "loc_fc0bdb08:\n"
333 " bl sub_FC1110C8\n"
334 " b loc_fc0bdb28\n"
335 "loc_fc0bdb0e:\n"
336 " bl sub_FC110F50\n"
337 " b loc_fc0bdb28\n"
338 "loc_fc0bdb14:\n"
339 " bl sub_FC110F52\n"
340 " b loc_fc0bdb28\n"
341 "loc_fc0bdb1a:\n"
342 " movw r2, #0x588\n"
343 " ldr r1, =0xfc0bd504\n" // *"SsShootTask.c"
344 " movs r0, #0\n"
345 " blx sub_FC302434\n" // j_DebugAssert
346 "loc_fc0bdb28:\n"
347 #ifdef CAPTSEQ_DEBUG_LOG
348 // debug after message handled
349 "ldr r0, [sp]\n"
350 "ldr r0, [r0]\n"
351 "bl log_capt_seq2\n"
352 #endif
353 " ldr r0, [sp]\n"
354 " ldr r1, [r0,#4]\n"
355 " ldr r0, [r5,#4]\n"
356 " blx sub_FC302324\n" // j_SetEventFlag
357 " ldr r7, [sp]\n"
358 " ldr r0, [r7,#8]\n"
359 " cbnz r0, loc_fc0bdb46\n"
360 " movw r2, #0x12b\n"
361 " ldr r1, =0xfc0bd504\n" // *"SsShootTask.c"
362 " movs r0, #0\n"
363 " blx sub_FC302434\n" // j_DebugAssert
364 "loc_fc0bdb46:\n"
365 " str r6, [r7,#8]\n"
366 " b loc_fc0bd90e\n"
367 ".ltorg\n"
368  );
369 }
void _LogCameraEvent ( int  id,
const char *  fmt,
  ... 
)

Variablen-Dokumentation

int active_raw_buffer