CHDK_DE Vorschauversion  Trunk Rev. 5428
 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-R8,LR} \n"
18 " LDR R8, =0x2710 \n"
19 " LDR R4, =0x7290 \n"
20 " MOV R7, #1 \n"
21 " LDR R6, =0xFF986D84 \n"
22 " MOV R5, #0 \n"
23 
24 "loc_FF9870AC:\n"
25 " LDR R0, [R4, #0x24] \n"
26 " MOV R2, #0 \n"
27 " ADD R1, SP, #4 \n"
28 " BL sub_FF83A460 /*_ReceiveMessageQueue*/ \n"
29 " LDR R0, [R4, #0x2C] \n"
30 " CMP R0, #0 \n"
31 " LDRNE R0, [R4, #0xC] \n"
32 " CMPNE R0, #2 \n"
33 " LDRNE R0, [R4, #0x44] \n"
34 " CMPNE R0, #6 \n"
35 " BNE loc_FF9871C4 \n"
36 " LDR R0, [SP, #4] \n"
37 " LDR R1, [R0] \n"
38 " SUB R1, R1, #2 \n"
39 " CMP R1, #0xA \n"
40 " ADDLS PC, PC, R1, LSL#2 \n"
41 " B loc_FF9871C4 \n"
42 " B loc_FF987178 \n"
43 " B loc_FF987198 \n"
44 " B loc_FF9871A8 \n"
45 " B loc_FF9871B0 \n"
46 " B loc_FF987180 \n"
47 " B loc_FF9871B8 \n"
48 " B loc_FF987188 \n"
49 " B loc_FF9871C4 \n"
50 " B loc_FF9871C0 \n"
51 " B loc_FF987148 \n"
52 " B loc_FF98711C \n"
53 
54 "loc_FF98711C:\n"
55 " STR R5, [R4, #0x40] \n"
56 " STR R5, [R4, #0x30] \n"
57 " STR R5, [R4, #0x34] \n"
58 " STRH R5, [R4, #6] \n"
59 " STR R6, [R4, #0xB4] \n"
60 " LDR R0, [R4, #0xC] \n"
61 " ADD R0, R0, #1 \n"
62 " STR R0, [R4, #0xC] \n"
63 " MOV R0, #6 \n"
64 " STR R0, [R4, #0x44] \n"
65 " B loc_FF987164 \n"
66 
67 "loc_FF987148:\n"
68 " STR R5, [R4, #0x40] \n"
69 " STR R5, [R4, #0x30] \n"
70 " STR R6, [R4, #0xB4] \n"
71 " LDR R0, [R4, #0xC] \n"
72 " ADD R0, R0, #1 \n"
73 " STR R0, [R4, #0xC] \n"
74 " STR R7, [R4, #0x44] \n"
75 
76 "loc_FF987164:\n"
77 " LDR R2, =0xFF985F9C \n"
78 " LDR R1, =0xB3E0C \n"
79 " LDR R0, =0xFF986098 \n"
80 " BL sub_FF8532D0 \n"
81 " B loc_FF9871C4 \n"
82 
83 "loc_FF987178:\n"
84 
85 " BL unlock_optical_zoom\n" // added to unlock the zoom
86 
87 " BL sub_FF986EAC \n"
88 " B loc_FF9871C4 \n"
89 
90 "loc_FF987180:\n"
91 " BL sub_FF9867EC \n"
92 
93 " LDR R0, =video_compression_rate\n" //added
94 " BL set_quality\n" //added
95 
96 " B loc_FF9871C4 \n"
97 
98 "loc_FF987188:\n"
99 " LDR R1, [R0, #0x18] \n"
100 " LDR R0, [R0, #4] \n"
101 " BL sub_FFB00140 \n"
102 " B loc_FF9871C4 \n"
103 
104 "loc_FF987198:\n"
105 " LDR R0, [R4, #0x44] \n"
106 " CMP R0, #5 \n"
107 " STRNE R7, [R4, #0x34] \n"
108 " B loc_FF9871C4 \n"
109 
110 "loc_FF9871A8:\n"
111 " BL sub_FF986434 \n"
112 " B loc_FF9871C4 \n"
113 
114 "loc_FF9871B0:\n"
115 " BL sub_FF9860E4 \n"
116 " B loc_FF9871C4 \n"
117 
118 "loc_FF9871B8:\n"
119 " BL sub_FF985F28 \n"
120 " B loc_FF9871C4 \n"
121 
122 "loc_FF9871C0:\n"
123 " BL sub_FF9875F4 \n"
124 
125 "loc_FF9871C4:\n"
126 " LDR R1, [SP, #4] \n"
127 " MOV R3, #0x5F0 \n"
128 " STR R5, [R1] \n"
129 " STR R3, [SP] \n"
130 " LDR R0, [R4, #0x28] \n"
131 " LDR R3, =0xFF985D8C /*'MovieRecorder.c'*/ \n"
132 " MOV R2, R8 \n"
133 " BL sub_FF83ADB4 /*_PostMessageQueueStrictly*/ \n"
134 " B loc_FF9870AC \n"
135 );
136 }
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 }