CHDK_DE Vorschauversion  Trunk Rev. 5249
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
movie_rec.c-Dateireferenz
#include "conf.h"
+ Include-Abhängigkeitsdiagramm für movie_rec.c:

gehe zum Quellcode dieser Datei

Funktionen

void set_quality (int *x)
 
void change_video_tables (int a, int b)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

int * video_quality = &conf.video_quality
 
int * video_mode = &conf.video_mode
 

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 29 der Datei movie_rec.c.

30 {
31  asm volatile (
32 " STMFD SP!, {R2-R10,LR} \n"
33 " LDR R9, =0x5EE \n"
34 " LDR R8, =0x2710 \n"
35 " LDR R4, =0x7128 \n"
36 " MOV R7, #1 \n"
37 " LDR R6, =0xFF986128 \n" // nullsub_322
38 " MOV R5, #0 \n"
39 "loc_FF98643C: \n"
40 " LDR R0, [R4,#0x24] \n"
41 " MOV R2, #0 \n"
42 " ADD R1, SP, #4 \n"
43 " BL sub_FF83A2F8 \n"
44 " LDR R0, [R4,#0x2C] \n"
45 " CMP R0, #0 \n"
46 " LDRNE R0, [R4,#0xC] \n"
47 " CMPNE R0, #2 \n"
48 " LDRNE R0, [R4,#0x44] \n"
49 " CMPNE R0, #6 \n"
50 " BNE loc_FF986554 \n"
51 " LDR R0, [SP,#0x4] \n"
52 " LDR R1, [R0] \n"
53 " SUB R1, R1, #2 \n"
54 " CMP R1, #0xA \n"
55 " ADDLS PC, PC, R1,LSL#2 \n"
56 " B loc_FF986554 \n"
57 "loc_FF986480: \n"
58 " B loc_FF986508 \n"
59 "loc_FF986484: \n"
60 " B loc_FF986528 \n"
61 "loc_FF986488: \n"
62 " B loc_FF986538 \n"
63 "loc_FF98648C: \n"
64 " B loc_FF986540 \n"
65 "loc_FF986490: \n"
66 " B loc_FF986510 \n"
67 "loc_FF986494: \n"
68 " B loc_FF986548 \n"
69 "loc_FF986498: \n"
70 " B loc_FF986518 \n"
71 "loc_FF98649C: \n"
72 " B loc_FF986554 \n"
73 "loc_FF9864A0: \n"
74 " B loc_FF986550 \n"
75 "loc_FF9864A4: \n"
76 " B loc_FF9864D8 \n"
77 "loc_FF9864A8: \n"
78 " B loc_FF9864AC \n"
79 
80 "loc_FF9864AC: \n"
81 // jumptable FF986478 entry 10
82 " STR R5, [R4,#0x40] \n"
83 " STR R5, [R4,#0x30] \n"
84 " STR R5, [R4,#0x34] \n"
85 " STRH R5, [R4,#6] \n"
86 " STR R6, [R4,#0xB4] \n"
87 " LDR R0, [R4,#0xC] \n"
88 " ADD R0, R0, #1 \n"
89 " STR R0, [R4,#0xC] \n"
90 " MOV R0, #6 \n"
91 " STR R0, [R4,#0x44] \n"
92 " B loc_FF9864F4 \n"
93 
94 "loc_FF9864D8: \n"
95 // jumptable FF986478 entry 9
96 " STR R5, [R4,#0x40] \n"
97 " STR R5, [R4,#0x30] \n"
98 " STR R6, [R4,#0xB4] \n"
99 " LDR R0, [R4,#0xC] \n"
100 " ADD R0, R0, #1 \n"
101 " STR R0, [R4,#0xC] \n"
102 " STR R7, [R4,#0x44] \n"
103 "loc_FF9864F4: \n"
104 " LDR R2, =0xFF98533C \n"
105 " LDR R1, =0xB45D0 \n"
106 
107 //" LDR R0, =sub_FF985438 \n"
108 " LDR R0, =0xFF985438 \n"
109 
110 " BL sub_FF8530D0 \n"
111 " B loc_FF986554 \n"
112 
113 "loc_FF986508: \n"
114 // jumptable FF986478 entry 0
115 
116 " BL unlock_optical_zoom\n" // added to unlock the zoom
117 
118 " BL sub_FF986238 \n"
119 " B loc_FF986554 \n"
120 
121 "loc_FF986510: \n"
122 // jumptable FF986478 entry 4
123 
124 //" BL sub_FF985B90 \n"
125 " BL sub_FF985B90_my \n" // patched
126 
127 " B loc_FF986554 \n"
128 
129 "loc_FF986518: \n"
130 // jumptable FF986478 entry 6
131 " LDR R1, [R0,#0x18] \n"
132 " LDR R0, [R0,#4] \n"
133 " BL sub_FFAF2974 \n"
134 " B loc_FF986554 \n"
135 
136 "loc_FF986528: \n"
137 // jumptable FF986478 entry 1
138 " LDR R0, [R4,#0x44] \n"
139 " CMP R0, #5 \n"
140 " STRNE R7, [R4,#0x34] \n"
141 " B loc_FF986554 \n"
142 
143 "loc_FF986538: \n"
144 // jumptable FF986478 entry 2
145 " BL sub_FF9857D8 \n"
146 " B loc_FF986554 \n"
147 
148 "loc_FF986540: \n"
149 // jumptable FF986478 entry 3
150 " BL sub_FF985484 \n"
151 " B loc_FF986554 \n"
152 
153 "loc_FF986548: \n"
154 // jumptable FF986478 entry 5
155 " BL sub_FF9852C8 \n"
156 " B loc_FF986554 \n"
157 
158 "loc_FF986550: \n"
159 // jumptable FF986478 entry 8
160 " BL sub_FF98697C \n"
161 
162 "loc_FF986554: \n"
163 // jumptable FF986478 default entry
164 // jumptable FF986478 entry 7
165 " LDR R1, [SP,#0x4] \n"
166 " STR R5, [R1] \n"
167 " LDR R3, =0xFF985124 \n" // MovieRecorder.c
168 " MOV R2, R8 \n"
169 " STR R9, [SP,#0x0] \n"
170 " LDR R0, [R4,#0x28] \n"
171 " BL sub_FF83AC4C \n"
172 " B loc_FF98643C \n"
173  );
174 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 21 der Datei movie_rec.c.

22 {
23 }
void set_quality ( int *  x)

Definiert in Zeile 11 der Datei movie_rec.c.

12 {
13  if (conf.video_mode)
14  *x = 12 - ((conf.video_quality-1) * (12+17) / (99-1));
15 }

Variablen-Dokumentation

int* video_mode = &conf.video_mode

Definiert in Zeile 4 der Datei movie_rec.c.

int* video_quality = &conf.video_quality

Definiert in Zeile 3 der Datei movie_rec.c.