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

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

Definiert in Zeile 14 der Datei movie_rec.c.

14  {
15 asm volatile (
16 " STMFD SP!, {R2-R10,LR} \n"
17 " LDR R8, =0xFF971244 \n"
18 " LDR R4, =0x69A0 \n"
19 " LDR R10, =0x2710 \n"
20 " MVN R7, #0 \n"
21 " MOV R5, #1 \n"
22 " MOV R6, #0 \n"
23 " ADD R9, R7, #0x670 \n"
24 
25 "loc_FF9715E8:\n"
26 " LDR R0, [R4, #0x28] \n"
27 " MOV R2, #0 \n"
28 " ADD R1, SP, #4 \n"
29 " BL sub_003F7418 /*_ReceiveMessageQueue*/ \n"
30 " LDR R0, [R4, #0x30] \n"
31 " CMP R0, #0 \n"
32 " LDRNE R0, [R4, #0x10] \n"
33 " CMPNE R0, #2 \n"
34 " LDRNE R0, [R4, #0x44] \n"
35 " CMPNE R0, #6 \n"
36 " BNE loc_FF971734 \n"
37 " LDR R0, [SP, #4] \n"
38 " LDR R1, [R0] \n"
39 " SUB R1, R1, #2 \n"
40 " CMP R1, #0xD \n"
41 " ADDCC PC, PC, R1, LSL#2 \n"
42 " B loc_FF971734 \n"
43 " B loc_FF9716B0 \n"
44 " B loc_FF9716D4 \n"
45 " B loc_FF9716E4 \n"
46 " B loc_FF9716EC \n"
47 " B loc_FF9716B8 \n"
48 " B loc_FF9716F4 \n"
49 " B loc_FF971720 \n"
50 " B loc_FF971728 \n"
51 " B loc_FF9716C4 \n"
52 " B loc_FF971734 \n"
53 " B loc_FF971730 \n"
54 " B loc_FF97168C \n"
55 " B loc_FF971660 \n"
56 
57 "loc_FF971660:\n"
58 " STR R6, [R4, #0x40] \n"
59 " STR R6, [R4, #0x34] \n"
60 " STR R7, [R4, #0xC4] \n"
61 " STRH R6, [R4, #6] \n"
62 " STR R8, [R4, #0xAC] \n"
63 " LDR R0, [R4, #0x10] \n"
64 " ADD R0, R0, #1 \n"
65 " STR R0, [R4, #0x10] \n"
66 " MOV R0, #6 \n"
67 " STR R0, [R4, #0x44] \n"
68 " B loc_FF9716A8 \n"
69 
70 "loc_FF97168C:\n"
71 " STR R6, [R4, #0x40] \n"
72 " STR R7, [R4, #0xC4] \n"
73 " STR R8, [R4, #0xAC] \n"
74 " LDR R0, [R4, #0x10] \n"
75 " ADD R0, R0, #1 \n"
76 " STR R0, [R4, #0x10] \n"
77 " STR R5, [R4, #0x44] \n"
78 
79 "loc_FF9716A8:\n"
80 " STR R5, [R4, #8] \n"
81 " B loc_FF971734 \n"
82 
83 "loc_FF9716B0:\n"
84 " BL unlock_optical_zoom\n" // added
85 " BL sub_FF970F94 \n"
86 " B loc_FF971734 \n"
87 
88 "loc_FF9716B8:\n"
89 " LDR R1, [R4, #0xAC] \n"
90 " BLX R1 \n"
91 " LDR R0, =video_compression_rate \n" // added
92 " BL set_quality \n" // added
93 " BL mute_on_zoom \n" // added
94 " B loc_FF971734 \n"
95 
96 "loc_FF9716C4:\n"
97 " LDR R1, [R0, #0x18] \n"
98 " LDR R0, [R0, #4] \n"
99 " BL sub_FFA90F1C \n"
100 " B loc_FF971734 \n"
101 
102 "loc_FF9716D4:\n"
103 " LDR R0, [R4, #0x44] \n"
104 " CMP R0, #5 \n"
105 " STRNE R5, [R4, #0x34] \n"
106 " B loc_FF971734 \n"
107 
108 "loc_FF9716E4:\n"
109 " BL sub_FF970C10 \n"
110 " B loc_FF971734 \n"
111 
112 "loc_FF9716EC:\n"
113 " BL sub_FF970AE0 \n"
114 " B loc_FF971734 \n"
115 
116 "loc_FF9716F4:\n"
117 " LDR R0, =0xC1C40 \n"
118 " LDR R0, [R0, #8] \n"
119 " CMP R0, #0 \n"
120 " LDRNE R2, =0xFF970A34 \n"
121 " LDRNE R0, =0xFF970A88 \n"
122 " MOVNE R3, #0 \n"
123 " MOVNE R1, R3 \n"
124 " BLNE sub_FF86264C \n"
125 " MOV R0, #3 \n"
126 " STR R0, [R4, #0x44] \n"
127 " B loc_FF971734 \n"
128 
129 "loc_FF971720:\n"
130 " BL sub_FF9709C0 \n"
131 " B loc_FF971734 \n"
132 
133 "loc_FF971728:\n"
134 " BL sub_FF97203C \n"
135 " B loc_FF971734 \n"
136 
137 "loc_FF971730:\n"
138 " BL sub_FF971F64 \n"
139 
140 "loc_FF971734:\n"
141 " LDR R1, [SP, #4] \n"
142 " LDR R3, =0xFF97073C /*'MovieRecorder.c'*/ \n"
143 " STR R6, [R1] \n"
144 " STR R9, [SP] \n"
145 " LDR R0, [R4, #0x2C] \n"
146 " MOV R2, R10 \n"
147 " BL sub_003F7D90 /*_PostMessageQueueStrictly*/ \n"
148 " B loc_FF9715E8 \n"
149 );
150 }
void change_video_tables ( __attribute__((unused)) int  a,
__attribute__((unused)) int  b 
)

Definiert in Zeile 6 der Datei movie_rec.c.

6 {}
void set_quality ( int *  x)

Definiert in Zeile 8 der Datei movie_rec.c.

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