CHDK_DE Vorschauversion  Trunk Rev. 5279
 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 change_video_tables (int a, int b)
 
void set_quality (int *x)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

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

15  {
16 asm volatile (
17 " STMFD SP!, {R2-R10,LR} \n"
18 " LDR R8, =sub_F8235A14_my \n" // --> Patched. Old value = 0xF8235A14.
19 " LDR R4, =0x9C78 \n"
20 " LDR R9, =0x65B \n"
21 " LDR R10, =0x2710 \n"
22 " MVN R7, #0 \n"
23 " MOV R5, #1 \n"
24 " MOV R6, #0 \n"
25 
26 "loc_F8235E04:\n"
27 " LDR R0, [R4, #0x28] \n"
28 " MOV R2, #0 \n"
29 " ADD R1, SP, #4 \n"
30 " BL sub_0068F164 /*_ReceiveMessageQueue*/ \n"
31 " LDR R0, [R4, #0x30] \n"
32 " CMP R0, #0 \n"
33 " LDRNE R0, [R4, #0x10] \n"
34 " CMPNE R0, #2 \n"
35 " LDRNE R0, [R4, #0x44] \n"
36 " CMPNE R0, #6 \n"
37 " BNE loc_F8235F8C \n"
38 " LDR R0, [SP, #4] \n"
39 " LDR R1, [R0] \n"
40 " SUB R1, R1, #2 \n"
41 " CMP R1, #0xF \n"
42 " ADDCC PC, PC, R1, LSL#2 \n"
43 " B loc_F8235F8C \n"
44 " B loc_F8235ED4 \n"
45 " B loc_F8235EF8 \n"
46 " B loc_F8235F08 \n"
47 " B loc_F8235F10 \n"
48 " B loc_F8235F18 \n"
49 " B loc_F8235F20 \n"
50 " B loc_F8235EDC \n"
51 " B loc_F8235F4C \n"
52 " B loc_F8235F78 \n"
53 " B loc_F8235F80 \n"
54 " B loc_F8235EE8 \n"
55 " B loc_F8235F8C \n"
56 " B loc_F8235F88 \n"
57 " B loc_F8235EB0 \n"
58 " B loc_F8235E84 \n"
59 
60 "loc_F8235E84:\n"
61 " STR R6, [R4, #0x40] \n"
62 " STR R6, [R4, #0x34] \n"
63 " STR R7, [R4, #0xE4] \n"
64 " STRH R6, [R4, #6] \n"
65 " STR R8, [R4, #0xCC] \n"
66 " LDR R0, [R4, #0x10] \n"
67 " ADD R0, R0, #1 \n"
68 " STR R0, [R4, #0x10] \n"
69 " MOV R0, #6 \n"
70 " STR R0, [R4, #0x44] \n"
71 " B loc_F8235ECC \n"
72 
73 "loc_F8235EB0:\n"
74 " STR R6, [R4, #0x40] \n"
75 " STR R7, [R4, #0xE4] \n"
76 " STR R8, [R4, #0xCC] \n"
77 " LDR R0, [R4, #0x10] \n"
78 " ADD R0, R0, #1 \n"
79 " STR R0, [R4, #0x10] \n"
80 " STR R5, [R4, #0x44] \n"
81 
82 "loc_F8235ECC:\n"
83 " STR R5, [R4, #8] \n"
84 " B loc_F8235F8C \n"
85 
86 "loc_F8235ED4:\n"
87 );
88 if (conf.ext_video_time == 1)
89 {
90 asm volatile (
91 " BL sub_F8235678_my \n" // --> Patched. Old value = 0xF8235678.
92 );
93 }
94 else
95 {
96 asm volatile (
97 " BL sub_F8235678 \n"
98 );
99 }
100 asm volatile (
101 " B loc_F8235F8C \n"
102 
103 "loc_F8235EDC:\n"
104 " LDR R1, [R4, #0xCC] \n"
105 " BLX R1 \n"
106 //begin patch
107 " LDR R0, =video_compression_rate\n" //added
108 " BL set_quality\n" //added
109 //end patch
110 " B loc_F8235F8C \n"
111 
112 "loc_F8235EE8:\n"
113 " LDR R1, [R0, #0x18] \n"
114 " LDR R0, [R0, #4] \n"
115 " BL sub_F84330BC \n"
116 " B loc_F8235F8C \n"
117 
118 "loc_F8235EF8:\n"
119 " LDR R0, [R4, #0x44] \n"
120 " CMP R0, #5 \n"
121 " STRNE R5, [R4, #0x34] \n"
122 " B loc_F8235F8C \n"
123 
124 "loc_F8235F08:\n"
125 " BL sub_F8234BD0 \n"
126 " B loc_F8235F8C \n"
127 
128 "loc_F8235F10:\n"
129 " BL sub_F8234AB8 \n"
130 " B loc_F8235F8C \n"
131 
132 "loc_F8235F18:\n"
133 " BL sub_F8234770 \n"
134 " B loc_F8235F8C \n"
135 
136 "loc_F8235F20:\n"
137 " LDR R1, [R4, #0x94] \n"
138 " LDR R0, =0x4840F640 \n"
139 " CMP R1, #0 \n"
140 " LDREQ R1, =0xF8234734 \n"
141 " LDREQ R0, [R4, #0x98] \n"
142 " BEQ loc_F8235F44 \n"
143 " BL sub_F8433D78 \n"
144 " LDR R1, =0xF8234734 \n"
145 " MOV R0, #0 \n"
146 
147 "loc_F8235F44:\n"
148 " BL sub_F843221C \n"
149 " B loc_F8235F8C \n"
150 
151 "loc_F8235F4C:\n"
152 " LDR R0, =0x141774 \n"
153 " LDR R0, [R0, #8] \n"
154 " CMP R0, #0 \n"
155 " LDRNE R2, =0xF82346BC \n"
156 " LDRNE R0, =0xF8234710 \n"
157 " MOVNE R3, #0 \n"
158 " MOVNE R1, R3 \n"
159 " BLNE sub_F807E8E4 \n"
160 " MOV R0, #3 \n"
161 " STR R0, [R4, #0x44] \n"
162 " B loc_F8235F8C \n"
163 
164 "loc_F8235F78:\n"
165 " BL sub_F823463C \n"
166 " B loc_F8235F8C \n"
167 
168 "loc_F8235F80:\n"
169 " BL sub_F82369E0 \n"
170 " B loc_F8235F8C \n"
171 
172 "loc_F8235F88:\n"
173 " BL sub_F8236900 \n"
174 
175 "loc_F8235F8C:\n"
176 " LDR R1, [SP, #4] \n"
177 " LDR R3, =0xF82342D4 /*'MovieRecorder.c'*/ \n"
178 " STR R6, [R1] \n"
179 " STR R9, [SP] \n"
180 " LDR R0, [R4, #0x2C] \n"
181 " MOV R2, R10 \n"
182 " BL sub_0068B044 /*_PostMessageQueueStrictly*/ \n"
183 " B loc_F8235E04 \n"
184 );
185 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 6 der Datei movie_rec.c.

6  {
7 }
void set_quality ( int *  x)

Definiert in Zeile 9 der Datei movie_rec.c.

9  { // -17 highest; +12 lowest
10  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
11 }