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 "conf.h"
#include "../../../generic/capt_seq.c"
+ Include-Abhängigkeitsdiagramm für capt_seq.c:

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define PAUSE_FOR_FILE_COUNTER   150
 

Funktionen

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

Variablen

static long * nrflag = (long*)0x5CB4
 

Makro-Dokumentation

#define PAUSE_FOR_FILE_COUNTER   150

Definiert in Zeile 13 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 42 der Datei capt_seq.c.

42  {
43 asm volatile (
44 " STMFD SP!, {R3-R7,LR} \n"
45 " LDR R5, =0x39504 \n"
46 " LDR R6, =0x2DB4 \n"
47 
48 "loc_FF881EC0:\n"
49 " MOV R2, #0 \n"
50 " LDR R0, [R6, #4] \n"
51 " MOV R1, SP \n"
52 " BL sub_FF83A27C /*_ReceiveMessageQueue*/ \n"
53 " TST R0, #1 \n"
54 " BEQ loc_FF881EEC \n"
55 " LDR R1, =0x48B \n"
56 " LDR R0, =0xFF8818B0 /*'SsShootTask.c'*/ \n"
57 " BL _DebugAssert \n"
58 " BL _ExitTask \n"
59 " LDMFD SP!, {R3-R7,PC} \n"
60 
61 "loc_FF881EEC:\n"
62 " LDR R0, [SP] \n"
63 " LDR R1, [R0] \n"
64 " CMP R1, #0x24 \n"
65 " ADDCC PC, PC, R1, LSL#2 \n"
66 " B loc_FF882150 \n"
67 " B loc_FF881F90 \n"
68 " B loc_FF881F98 \n"
69 " B loc_FF881FF0 \n"
70 " B loc_FF882004 \n"
71 " B loc_FF881FFC \n"
72 " B loc_FF88200C \n"
73 " B loc_FF882014 \n"
74 " B loc_FF882020 \n"
75 " B loc_FF88203C \n"
76 " B loc_FF882004 \n"
77 " B loc_FF882044 \n"
78 " B loc_FF882050 \n"
79 " B loc_FF882058 \n"
80 " B loc_FF882060 \n"
81 " B loc_FF882068 \n"
82 " B loc_FF882070 \n"
83 " B loc_FF882078 \n"
84 " B loc_FF882080 \n"
85 " B loc_FF882088 \n"
86 " B loc_FF882090 \n"
87 " B loc_FF882098 \n"
88 " B loc_FF8820A0 \n"
89 " B loc_FF8820A8 \n"
90 " B loc_FF8820B4 \n"
91 " B loc_FF8820BC \n"
92 " B loc_FF8820C8 \n"
93 " B loc_FF8820D0 \n"
94 " B loc_FF8820D8 \n"
95 " B loc_FF8820E0 \n"
96 " B loc_FF8820E8 \n"
97 " B loc_FF8820F0 \n"
98 " B loc_FF8820F8 \n"
99 " B loc_FF882104 \n"
100 " B loc_FF88210C \n"
101 " B loc_FF882118 \n"
102 " B loc_FF88215C \n"
103 
104 "loc_FF881F90:\n"
105 " BL sub_FF882718 \n"
106 " BL shooting_expo_param_override\n"
107 " B loc_FF882018 \n"
108 
109 "loc_FF881F98:\n"
110 " LDR R4, [R0, #0x10] \n"
111 " BL sub_FF883BA4 \n"
112 " MOV R1, R4 \n"
113 " BL sub_FF883BFC \n"
114 " LDR R0, =0x10F \n"
115 " MOV R2, #4 \n"
116 " ADD R1, R4, #0x24 \n"
117 " BL _SetPropertyCase \n"
118 " MOV R2, #4 \n"
119 " ADD R1, R4, #0x28 \n"
120 " MOV R0, #0x2C \n"
121 " BL _SetPropertyCase \n"
122 " MOV R0, R4 \n"
123 " BL sub_FF98C47C_my \n" // --> Patched. Old value = 0xFF98C47C.
124 " BL capt_seq_hook_raw_here \n"
125 " MOV R7, R0 \n"
126 " MOV R2, R4 \n"
127 " MOV R1, #1 \n"
128 " BL sub_FF880050 \n"
129 " TST R7, #1 \n"
130 " MOVEQ R0, R4 \n"
131 " BLEQ sub_FF98BE48 \n"
132 " B loc_FF88215C \n"
133 
134 "loc_FF881FF0:\n"
135 " MOV R0, #1 \n"
136 " BL sub_FF882A08 \n"
137 " B loc_FF88215C \n"
138 
139 "loc_FF881FFC:\n"
140 " BL sub_FF8823B0 \n"
141 " B loc_FF88215C \n"
142 
143 "loc_FF882004:\n"
144 " BL sub_FF8826F8 \n"
145 " B loc_FF88215C \n"
146 
147 "loc_FF88200C:\n"
148 " BL sub_FF882700 \n"
149 " B loc_FF88215C \n"
150 
151 "loc_FF882014:\n"
152 " BL sub_FF8828E0 \n"
153 
154 "loc_FF882018:\n"
155 " BL sub_FF87FA30 \n"
156 " B loc_FF88215C \n"
157 
158 "loc_FF882020:\n"
159 " LDR R4, [R0, #0x10] \n"
160 " MOV R0, R4 \n"
161 " BL sub_FF98C5CC \n"
162 " MOV R2, R4 \n"
163 " MOV R1, #9 \n"
164 " BL sub_FF880050 \n"
165 " B loc_FF88215C \n"
166 
167 "loc_FF88203C:\n"
168 " BL sub_FF882970 \n"
169 " B loc_FF882018 \n"
170 
171 "loc_FF882044:\n"
172 " LDR R0, [R5, #0x50] \n"
173 " BL sub_FF882FDC \n"
174 " B loc_FF88215C \n"
175 
176 "loc_FF882050:\n"
177 " BL sub_FF883384 \n"
178 " B loc_FF88215C \n"
179 
180 "loc_FF882058:\n"
181 " BL sub_FF8833E8 \n"
182 " B loc_FF88215C \n"
183 
184 "loc_FF882060:\n"
185 " BL sub_FF98B078 \n"
186 " B loc_FF88215C \n"
187 
188 "loc_FF882068:\n"
189 " BL sub_FF98B2DC \n"
190 " B loc_FF88215C \n"
191 
192 "loc_FF882070:\n"
193 " BL sub_FF98B398 \n"
194 " B loc_FF88215C \n"
195 
196 "loc_FF882078:\n"
197 " BL sub_FF98B480 \n"
198 " B loc_FF88215C \n"
199 
200 "loc_FF882080:\n"
201 " BL sub_FF98B554 \n"
202 " B loc_FF88215C \n"
203 
204 "loc_FF882088:\n"
205 " MOV R0, #0 \n"
206 " B loc_FF8820AC \n"
207 
208 "loc_FF882090:\n"
209 " BL sub_FF98B97C \n"
210 " B loc_FF88215C \n"
211 
212 "loc_FF882098:\n"
213 " BL sub_FF98BA10 \n"
214 " B loc_FF88215C \n"
215 
216 "loc_FF8820A0:\n"
217 " BL sub_FF98BACC \n"
218 " B loc_FF88215C \n"
219 
220 "loc_FF8820A8:\n"
221 " MOV R0, #1 \n"
222 
223 "loc_FF8820AC:\n"
224 " BL sub_FF98B80C \n"
225 " B loc_FF88215C \n"
226 
227 "loc_FF8820B4:\n"
228 " BL sub_FF882BDC \n"
229 " B loc_FF88215C \n"
230 
231 "loc_FF8820BC:\n"
232 " BL sub_FF882C08 \n"
233 " BL sub_FF98D1A0 \n"
234 " B loc_FF88215C \n"
235 
236 "loc_FF8820C8:\n"
237 " BL sub_FF98B6E0 \n"
238 " B loc_FF88215C \n"
239 
240 "loc_FF8820D0:\n"
241 " BL sub_FF98B778 \n"
242 " B loc_FF88215C \n"
243 
244 "loc_FF8820D8:\n"
245 " BL sub_FF98D26C \n"
246 " B loc_FF88215C \n"
247 
248 "loc_FF8820E0:\n"
249 " BL sub_FF837BC8 \n"
250 " B loc_FF88215C \n"
251 
252 "loc_FF8820E8:\n"
253 " BL sub_FF8858A0 \n"
254 " B loc_FF88215C \n"
255 
256 "loc_FF8820F0:\n"
257 " BL sub_FF885914 \n"
258 " B loc_FF88215C \n"
259 
260 "loc_FF8820F8:\n"
261 " LDR R0, [R0, #0xC] \n"
262 " BL sub_FF98BBF4 \n"
263 " B loc_FF88215C \n"
264 
265 "loc_FF882104:\n"
266 " BL sub_FF98BC64 \n"
267 " B loc_FF88215C \n"
268 
269 "loc_FF88210C:\n"
270 " BL sub_FF88597C \n"
271 " BL sub_FF885934 \n"
272 " B loc_FF88215C \n"
273 
274 "loc_FF882118:\n"
275 " MOV R0, #1 \n"
276 " BL sub_FF98CCB4 \n"
277 " MOV R0, #1 \n"
278 " BL sub_FF98CDDC \n"
279 " LDRH R0, [R5, #0x98] \n"
280 " CMP R0, #4 \n"
281 " LDRNEH R0, [R5] \n"
282 " SUBNE R1, R0, #0x4200 \n"
283 " SUBNES R1, R1, #0x2B \n"
284 " BNE loc_FF88215C \n"
285 " BL sub_FF885914 \n"
286 " BL sub_FF885F3C \n"
287 " BL sub_FF885DA4 \n"
288 " B loc_FF88215C \n"
289 
290 "loc_FF882150:\n"
291 " LDR R1, =0x5EC \n"
292 " LDR R0, =0xFF8818B0 /*'SsShootTask.c'*/ \n"
293 " BL _DebugAssert \n"
294 
295 "loc_FF88215C:\n"
296 " LDR R0, [SP] \n"
297 " LDR R1, [R0, #4] \n"
298 " LDR R0, [R6] \n"
299 " BL sub_FF88C868 /*_SetEventFlag*/ \n"
300 " LDR R4, [SP] \n"
301 " LDR R0, [R4, #8] \n"
302 " CMP R0, #0 \n"
303 " LDREQ R1, =0x117 \n"
304 " LDREQ R0, =0xFF8818B0 /*'SsShootTask.c'*/ \n"
305 " BLEQ _DebugAssert \n"
306 " MOV R0, #0 \n"
307 " STR R0, [R4, #8] \n"
308 " B loc_FF881EC0 \n"
309 );
310 }
int capt_seq_hook_set_nr_my ( int  orig)

Definiert in Zeile 18 der Datei capt_seq.c.

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

Variablen-Dokumentation

long* nrflag = (long*)0x5CB4
static

Definiert in Zeile 11 der Datei capt_seq.c.