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

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 15 der Datei movie_rec.c.

15  {
16 asm volatile (
17 " STMFD SP!, {R2-R10,LR} \n"
18 " LDR R6, =0xFF187060 \n"
19 " LDR R7, =0xFF187D48 \n"
20 " LDR R4, =0x8550 \n"
21 " LDR R9, =0x67F \n"
22 " LDR R10, =0x2710 \n"
23 " MOV R8, #1 \n"
24 " MOV R5, #0 \n"
25 
26 "loc_FF188310:\n"
27 " LDR R0, [R4, #0x24] \n"
28 " MOV R2, #0 \n"
29 " ADD R1, SP, #4 \n"
30 " BL sub_FF02AD50 /*_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_FF18844C \n"
38 " LDR R0, [SP, #4] \n"
39 " LDR R1, [R0] \n"
40 " SUB R1, R1, #2 \n"
41 " CMP R1, #0xD \n"
42 " ADDCC PC, PC, R1, LSL#2 \n"
43 " B loc_FF18844C \n"
44 " B loc_FF1883EC \n"
45 " B loc_FF188410 \n"
46 " B loc_FF188420 \n"
47 " B loc_FF188428 \n"
48 " B loc_FF188430 \n"
49 " B loc_FF188438 \n"
50 " B loc_FF1883F4 \n"
51 " B loc_FF188440 \n"
52 " B loc_FF188400 \n"
53 " B loc_FF18844C \n"
54 " B loc_FF188448 \n"
55 " B loc_FF1883B8 \n"
56 " B loc_FF188388 \n"
57 
58 "loc_FF188388:\n"
59 " STR R5, [R4, #0x40] \n"
60 " STR R5, [R4, #0x30] \n"
61 " STR R5, [R4, #0x34] \n"
62 " STRH R5, [R4, #6] \n"
63 " STR R6, [R4, #0xD8] \n"
64 " STR R7, [R4, #0xF0] \n"
65 " LDR R0, [R4, #0xC] \n"
66 " ADD R0, R0, #1 \n"
67 " STR R0, [R4, #0xC] \n"
68 " MOV R0, #6 \n"
69 " STR R0, [R4, #0x44] \n"
70 " B loc_FF1883D8 \n"
71 
72 "loc_FF1883B8:\n"
73 " STR R5, [R4, #0x40] \n"
74 " STR R5, [R4, #0x30] \n"
75 " STR R6, [R4, #0xD8] \n"
76 " STR R7, [R4, #0xF0] \n"
77 " LDR R0, [R4, #0xC] \n"
78 " ADD R0, R0, #1 \n"
79 " STR R0, [R4, #0xC] \n"
80 " STR R8, [R4, #0x44] \n"
81 
82 "loc_FF1883D8:\n"
83 " LDR R2, =0xFF18669C \n"
84 " LDR R1, =0xC2E08 \n"
85 " LDR R0, =0xFF1867B0 \n"
86 " BL sub_FF044E3C \n"
87 " B loc_FF18844C \n"
88 
89 "loc_FF1883EC:\n"
90 );
91 if (conf.ext_video_time == 1)
92 {
93 asm volatile (
94 " BL sub_FF18792C_my \n" // --> Patched. Old value = 0xFF18792C.
95 );
96 }
97 else
98 {
99 asm volatile (
100 " BL sub_FF18792C \n"
101 );
102 }
103 asm volatile (
104 " B loc_FF18844C \n"
105 
106 "loc_FF1883F4:\n"
107 " LDR R1, [R4, #0xF0] \n"
108 " BLX R1 \n"
109 //begin patch
110 " LDR R0, =video_compression_rate\n" //added
111 " BL set_quality\n" //added
112 //end patch
113 " B loc_FF18844C \n"
114 
115 "loc_FF188400:\n"
116 " LDR R1, [R0, #0x18] \n"
117 " LDR R0, [R0, #4] \n"
118 " BL sub_FF2FC9F0 \n"
119 " B loc_FF18844C \n"
120 
121 "loc_FF188410:\n"
122 " LDR R0, [R4, #0x44] \n"
123 " CMP R0, #5 \n"
124 " STRNE R8, [R4, #0x34] \n"
125 " B loc_FF18844C \n"
126 
127 "loc_FF188420:\n"
128 " BL sub_FF186D3C \n"
129 " B loc_FF18844C \n"
130 
131 "loc_FF188428:\n"
132 " BL sub_FF186A50 \n"
133 " B loc_FF18844C \n"
134 
135 "loc_FF188430:\n"
136 " BL sub_FF186808 \n"
137 " B loc_FF18844C \n"
138 
139 "loc_FF188438:\n"
140 " BL sub_FF186430 \n"
141 " B loc_FF18844C \n"
142 
143 "loc_FF188440:\n"
144 " BL sub_FF1863B0 \n"
145 " B loc_FF18844C \n"
146 
147 "loc_FF188448:\n"
148 " BL sub_FF18899C \n"
149 
150 "loc_FF18844C:\n"
151 " LDR R1, [SP, #4] \n"
152 " LDR R3, =0xFF186114 /*'MovieRecorder.c'*/ \n"
153 " STR R5, [R1] \n"
154 " STR R9, [SP] \n"
155 " LDR R0, [R4, #0x28] \n"
156 " MOV R2, R10 \n"
157 " BL sub_FF02B6C8 /*_PostMessageQueueStrictly*/ \n"
158 " B loc_FF188310 \n"
159 );
160 }
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 }