CHDK_DE Vorschauversion  Trunk Rev. 5426
 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 28 der Datei movie_rec.c.

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

Definiert in Zeile 20 der Datei movie_rec.c.

21 {
22 }
void set_quality ( int *  x)

Definiert in Zeile 10 der Datei movie_rec.c.

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

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.