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 R6, =0xFF969014 \n"
19 " LDR R7, =0xFF96950C \n"
20 " LDR R4, =0x66E0 \n"
21 " LDR R9, =0x67F \n"
22 " LDR R10, =0x2710 \n"
23 " MOV R8, #1 \n"
24 " MOV R5, #0 \n"
25 
26 "loc_FF969B04:\n"
27 " LDR R0, [R4, #0x24] \n"
28 " MOV R2, #0 \n"
29 " ADD R1, SP, #4 \n"
30 " BL sub_FF839B84 /*_ReceiveMessageQueue*/ \n"
31 " LDR R0, [R4, #0x2C] \n"
32 " CMP R0, #0 \n"
33 " LDRNE R0, [R4, #0xC] \n"
34 " CMPNE R0, #2 \n"
35 " LDRNE R0, [R4, #0x44] \n"
36 " CMPNE R0, #6 \n"
37 " BNE loc_FF969C28 \n"
38 " LDR R0, [SP, #4] \n"
39 " LDR R1, [R0] \n"
40 " SUB R1, R1, #2 \n"
41 " CMP R1, #0xB \n"
42 " ADDCC PC, PC, R1, LSL#2 \n"
43 " B loc_FF969C28 \n"
44 " B loc_FF969BD8 \n"
45 " B loc_FF969BFC \n"
46 " B loc_FF969C0C \n"
47 " B loc_FF969C14 \n"
48 " B loc_FF969BE0 \n"
49 " B loc_FF969C1C \n"
50 " B loc_FF969BEC \n"
51 " B loc_FF969C28 \n"
52 " B loc_FF969C24 \n"
53 " B loc_FF969BA4 \n"
54 " B loc_FF969B74 \n"
55 
56 "loc_FF969B74:\n"
57 " STR R5, [R4, #0x40] \n"
58 " STR R5, [R4, #0x30] \n"
59 " STR R5, [R4, #0x34] \n"
60 " STRH R5, [R4, #6] \n"
61 " STR R6, [R4, #0xB4] \n"
62 " STR R7, [R4, #0xCC] \n"
63 " LDR R0, [R4, #0xC] \n"
64 " ADD R0, R0, #1 \n"
65 " STR R0, [R4, #0xC] \n"
66 " MOV R0, #6 \n"
67 " STR R0, [R4, #0x44] \n"
68 " B loc_FF969BC4 \n"
69 
70 "loc_FF969BA4:\n"
71 " STR R5, [R4, #0x40] \n"
72 " STR R5, [R4, #0x30] \n"
73 " STR R6, [R4, #0xB4] \n"
74 " STR R7, [R4, #0xCC] \n"
75 " LDR R0, [R4, #0xC] \n"
76 " ADD R0, R0, #1 \n"
77 " STR R0, [R4, #0xC] \n"
78 " STR R8, [R4, #0x44] \n"
79 
80 "loc_FF969BC4:\n"
81 " LDR R2, =0xFF968830 \n"
82 " LDR R1, =0xACE28 \n"
83 " LDR R0, =0xFF968944 \n"
84 " BL sub_FF852C24 \n"
85 " B loc_FF969C28 \n"
86 
87 "loc_FF969BD8:\n"
88 " BL unlock_optical_zoom\n" // added to unlock the zoom
89 );
90 if (conf.ext_video_time == 1)
91 {
92 asm volatile (
93 " BL sub_FF96916C_my \n" // --> Patched. Old value = 0xFF96916C.
94 );
95 }
96 else
97 {
98 asm volatile (
99 " BL sub_FF96916C \n"
100 );
101 }
102 asm volatile (
103 " B loc_FF969C28 \n"
104 
105 "loc_FF969BE0:\n"
106 " LDR R1, [R4, #0xCC] \n"
107 " BLX R1 \n"
108 " LDR R0, =video_compression_rate\n" //added
109 " BL set_quality\n" //added
110 " BL mute_on_zoom\n" // added
111 " B loc_FF969C28 \n"
112 
113 "loc_FF969BEC:\n"
114 " LDR R1, [R0, #0x18] \n"
115 " LDR R0, [R0, #4] \n"
116 " BL sub_FFAAC970 \n"
117 " B loc_FF969C28 \n"
118 
119 "loc_FF969BFC:\n"
120 " LDR R0, [R4, #0x44] \n"
121 " CMP R0, #5 \n"
122 " STRNE R8, [R4, #0x34] \n"
123 " B loc_FF969C28 \n"
124 
125 "loc_FF969C0C:\n"
126 " BL sub_FF968CD4 \n"
127 " B loc_FF969C28 \n"
128 
129 "loc_FF969C14:\n"
130 " BL sub_FF968990 \n"
131 " B loc_FF969C28 \n"
132 
133 "loc_FF969C1C:\n"
134 " BL sub_FF9687BC \n"
135 " B loc_FF969C28 \n"
136 
137 "loc_FF969C24:\n"
138 " BL sub_FF96A068 \n"
139 
140 "loc_FF969C28:\n"
141 " LDR R1, [SP, #4] \n"
142 " LDR R3, =0xFF968604 /*'MovieRecorder.c'*/ \n"
143 " STR R5, [R1] \n"
144 " STR R9, [SP] \n"
145 " LDR R0, [R4, #0x28] \n"
146 " MOV R2, R10 \n"
147 " BL sub_FF83A4FC /*_PostMessageQueueStrictly*/ \n"
148 " B loc_FF969B04 \n"
149 );
150 }
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 }