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 change_video_tables (int a, int b)
 
void set_quality (int *x)
 
void __attribute__ ((naked, noinline))
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 15 der Datei movie_rec.c.

15  {
16 asm volatile (
17 " STMFD SP!, {R2-R10,LR} \n"
18 " LDR R8, =sub_FF1DEF40_my \n" // --> Patched. Old value = 0xFF1DEF40.
19 " LDR R4, =0x9408 \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_FF1DF330:\n"
27 " LDR R0, [R4, #0x28] \n"
28 " MOV R2, #0 \n"
29 " ADD R1, SP, #4 \n"
30 " BL sub_0068BDE0 /*_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_FF1DF4B8 \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_FF1DF4B8 \n"
44 " B loc_FF1DF400 \n"
45 " B loc_FF1DF424 \n"
46 " B loc_FF1DF434 \n"
47 " B loc_FF1DF43C \n"
48 " B loc_FF1DF444 \n"
49 " B loc_FF1DF44C \n"
50 " B loc_FF1DF408 \n"
51 " B loc_FF1DF478 \n"
52 " B loc_FF1DF4A4 \n"
53 " B loc_FF1DF4AC \n"
54 " B loc_FF1DF414 \n"
55 " B loc_FF1DF4B8 \n"
56 " B loc_FF1DF4B4 \n"
57 " B loc_FF1DF3DC \n"
58 " B loc_FF1DF3B0 \n"
59 
60 "loc_FF1DF3B0:\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_FF1DF3F8 \n"
72 
73 "loc_FF1DF3DC:\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_FF1DF3F8:\n"
83 " STR R5, [R4, #8] \n"
84 " B loc_FF1DF4B8 \n"
85 
86 "loc_FF1DF400:\n"
87 );
88 if (conf.ext_video_time == 1)
89 {
90 asm volatile (
91 " BL sub_FF1DEBA4_my \n" // --> Patched. Old value = 0xFF1DEBA4.
92 );
93 }
94 else
95 {
96 asm volatile (
97 " BL sub_FF1DEBA4 \n"
98 );
99 }
100 asm volatile (
101 " B loc_FF1DF4B8 \n"
102 
103 "loc_FF1DF408:\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_FF1DF4B8 \n"
111 
112 "loc_FF1DF414:\n"
113 " LDR R1, [R0, #0x18] \n"
114 " LDR R0, [R0, #4] \n"
115 " BL sub_FF386CF8 \n"
116 " B loc_FF1DF4B8 \n"
117 
118 "loc_FF1DF424:\n"
119 " LDR R0, [R4, #0x44] \n"
120 " CMP R0, #5 \n"
121 " STRNE R5, [R4, #0x34] \n"
122 " B loc_FF1DF4B8 \n"
123 
124 "loc_FF1DF434:\n"
125 " BL sub_FF1DE0FC \n"
126 " B loc_FF1DF4B8 \n"
127 
128 "loc_FF1DF43C:\n"
129 " BL sub_FF1DDFE4 \n"
130 " B loc_FF1DF4B8 \n"
131 
132 "loc_FF1DF444:\n"
133 " BL sub_FF1DDC9C \n"
134 " B loc_FF1DF4B8 \n"
135 
136 "loc_FF1DF44C:\n"
137 " LDR R1, [R4, #0x94] \n"
138 " LDR R0, =0x4840F640 \n"
139 " CMP R1, #0 \n"
140 " LDREQ R1, =0xFF1DDC60 \n"
141 " LDREQ R0, [R4, #0x98] \n"
142 " BEQ loc_FF1DF470 \n"
143 " BL sub_FF3879B4 \n"
144 " LDR R1, =0xFF1DDC60 \n"
145 " MOV R0, #0 \n"
146 
147 "loc_FF1DF470:\n"
148 " BL sub_FF385E58 \n"
149 " B loc_FF1DF4B8 \n"
150 
151 "loc_FF1DF478:\n"
152 " LDR R0, =0xDF4FC \n"
153 " LDR R0, [R0, #8] \n"
154 " CMP R0, #0 \n"
155 " LDRNE R2, =0xFF1DDBE8 \n"
156 " LDRNE R0, =0xFF1DDC3C \n"
157 " MOVNE R3, #0 \n"
158 " MOVNE R1, R3 \n"
159 " BLNE sub_FF0616E0 \n"
160 " MOV R0, #3 \n"
161 " STR R0, [R4, #0x44] \n"
162 " B loc_FF1DF4B8 \n"
163 
164 "loc_FF1DF4A4:\n"
165 " BL sub_FF1DDB68 \n"
166 " B loc_FF1DF4B8 \n"
167 
168 "loc_FF1DF4AC:\n"
169 " BL sub_FF1DFF0C \n"
170 " B loc_FF1DF4B8 \n"
171 
172 "loc_FF1DF4B4:\n"
173 " BL sub_FF1DFE2C \n"
174 
175 "loc_FF1DF4B8:\n"
176 " LDR R1, [SP, #4] \n"
177 " LDR R3, =0xFF1DD800 /*'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_FF1DF330 \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 }