CHDK_DE Vorschauversion  Trunk Rev. 5272
 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, =0xFF1B6F70 \n"
19 " LDR R7, =0xFF1B7CDC \n"
20 " LDR R4, =0xAB38 \n"
21 " LDR R9, =0x69B \n"
22 " LDR R10, =0x2710 \n"
23 " MOV R8, #1 \n"
24 " MOV R5, #0 \n"
25 
26 "loc_FF1B8308:\n"
27 " LDR R0, [R4, #0x24] \n"
28 " MOV R2, #0 \n"
29 " ADD R1, SP, #4 \n"
30 " BL sub_0068BBE4 /*_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_FF1B8444 \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_FF1B8444 \n"
44 " B loc_FF1B83E4 \n"
45 " B loc_FF1B8408 \n"
46 " B loc_FF1B8418 \n"
47 " B loc_FF1B8420 \n"
48 " B loc_FF1B8428 \n"
49 " B loc_FF1B8430 \n"
50 " B loc_FF1B83EC \n"
51 " B loc_FF1B8438 \n"
52 " B loc_FF1B83F8 \n"
53 " B loc_FF1B8444 \n"
54 " B loc_FF1B8440 \n"
55 " B loc_FF1B83B0 \n"
56 " B loc_FF1B8380 \n"
57 
58 "loc_FF1B8380:\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, #0xD4] \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_FF1B83D0 \n"
71 
72 "loc_FF1B83B0:\n"
73 " STR R5, [R4, #0x40] \n"
74 " STR R5, [R4, #0x30] \n"
75 " STR R6, [R4, #0xD4] \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_FF1B83D0:\n"
83 " LDR R2, =0xFF1B6448 \n"
84 " LDR R1, =0xD368C \n"
85 " LDR R0, =0xFF1B655C \n"
86 " BL sub_FF03EF7C \n"
87 " B loc_FF1B8444 \n"
88 
89 "loc_FF1B83E4:\n"
90 );
91 if (conf.ext_video_time == 1)
92 {
93 asm volatile (
94 " BL sub_FF1B7868_my \n" // --> Patched. Old value = 0xFF1B7868.
95 );
96 }
97 else
98 {
99 asm volatile (
100 " BL sub_FF1B7868 \n"
101 );
102 }
103 asm volatile (
104 " B loc_FF1B8444 \n"
105 
106 "loc_FF1B83EC:\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_FF1B8444 \n"
114 
115 "loc_FF1B83F8:\n"
116 " LDR R1, [R0, #0x18] \n"
117 " LDR R0, [R0, #4] \n"
118 " BL sub_FF34F018 \n"
119 " B loc_FF1B8444 \n"
120 
121 "loc_FF1B8408:\n"
122 " LDR R0, [R4, #0x44] \n"
123 " CMP R0, #5 \n"
124 " STRNE R8, [R4, #0x34] \n"
125 " B loc_FF1B8444 \n"
126 
127 "loc_FF1B8418:\n"
128 " BL sub_FF1B6BD8 \n"
129 " B loc_FF1B8444 \n"
130 
131 "loc_FF1B8420:\n"
132 " BL sub_FF1B68BC \n"
133 " B loc_FF1B8444 \n"
134 
135 "loc_FF1B8428:\n"
136 " BL sub_FF1B65C0 \n"
137 " B loc_FF1B8444 \n"
138 
139 "loc_FF1B8430:\n"
140 " BL sub_FF1B6170 \n"
141 " B loc_FF1B8444 \n"
142 
143 "loc_FF1B8438:\n"
144 " BL sub_FF1B60F0 \n"
145 " B loc_FF1B8444 \n"
146 
147 "loc_FF1B8440:\n"
148 " BL sub_FF1B8A1C \n"
149 
150 "loc_FF1B8444:\n"
151 " LDR R1, [SP, #4] \n"
152 " LDR R3, =0xFF1B5D88 /*'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_0068AF18 /*_PostMessageQueueStrictly*/ \n"
158 " B loc_FF1B8308 \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 }