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))
 *-------------------------------------------------------------------— 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 R9, =0x5AA \n"
19 " LDR R8, =0x2710 \n"
20 " LDR R4, =0x34E0 \n"
21 " LDR R7, =0xFF882FC4 \n"
22 " MOV R6, #0 \n"
23 " MOV R5, #1 \n"
24 " ADD R10, R9, #0x44 \n"
25 
26 "loc_FF883368:\n"
27 " LDR R0, [R4, #0x24] \n"
28 " MOV R2, #0 \n"
29 " ADD R1, SP, #4 \n"
30 " BL sub_FF83A4C8 /*_ReceiveMessageQueue*/ \n"
31 " LDR R2, =0xFF881594 /*'MovieRecorder.c'*/ \n"
32 " LDR R0, [R4, #0xD0] \n"
33 " MOV R3, R9 \n"
34 " MOV R1, R8 \n"
35 " BL sub_FF83ADC4 /*_TakeSemaphoreStrictly*/ \n"
36 " LDR R0, [R4, #0x2C] \n"
37 " CMP R0, #0 \n"
38 " LDRNE R0, [R4, #0xC] \n"
39 " CMPNE R0, #2 \n"
40 " LDRNE R0, [R4, #0x44] \n"
41 " CMPNE R0, #6 \n"
42 " BNE loc_FF8834B0 \n"
43 " LDR R0, [SP, #4] \n"
44 " LDR R1, [R0] \n"
45 " SUB R1, R1, #2 \n"
46 " CMP R1, #0xC \n"
47 " ADDLS PC, PC, R1, LSL#2 \n"
48 " B loc_FF8834B0 \n"
49 " B loc_FF883458 \n"
50 " B loc_FF883470 \n"
51 " B loc_FF883480 \n"
52 " B loc_FF883488 \n"
53 " B loc_FF883460 \n"
54 " B loc_FF883490 \n"
55 " B loc_FF883468 \n"
56 " B loc_FF8834B0 \n"
57 " B loc_FF8834A0 \n"
58 " B loc_FF8834A8 \n"
59 " B loc_FF883498 \n"
60 " B loc_FF883420 \n"
61 " B loc_FF8833F4 \n"
62 
63 "loc_FF8833F4:\n"
64 " STR R6, [R4, #0x40] \n"
65 " STR R6, [R4, #0x30] \n"
66 " STR R6, [R4, #0x34] \n"
67 " STRH R6, [R4, #6] \n"
68 " STR R7, [R4, #0xB4] \n"
69 " LDR R0, [R4, #0xC] \n"
70 " ADD R0, R0, #1 \n"
71 " STR R0, [R4, #0xC] \n"
72 " MOV R0, #6 \n"
73 " STR R0, [R4, #0x44] \n"
74 " B loc_FF883444 \n"
75 
76 "loc_FF883420:\n"
77 " LDR R0, =0xFF881AD8 \n"
78 " STR R6, [R4, #0x40] \n"
79 " STR R0, [R4, #0xBC] \n"
80 " STR R6, [R4, #0x30] \n"
81 " STR R7, [R4, #0xB4] \n"
82 " LDR R0, [R4, #0xC] \n"
83 " ADD R0, R0, #1 \n"
84 " STR R0, [R4, #0xC] \n"
85 " STR R5, [R4, #0x44] \n"
86 
87 "loc_FF883444:\n"
88 " LDR R2, =0xFF881ADC \n"
89 " LDR R1, =0x3B7E8 \n"
90 " LDR R0, =0xFF881C04 \n"
91 " BL sub_FF852E4C \n"
92 " B loc_FF8834B0 \n"
93 
94 "loc_FF883458:\n"
95 " BL sub_FF883104 \n"
96 " B loc_FF8834B0 \n"
97 
98 "loc_FF883460:\n"
99 " BL sub_FF8829D4 \n"
100 
101 " LDR R0, =video_compression_rate\n" //added
102 " BL set_quality\n" //added
103 
104 " B loc_FF8834B0 \n"
105 
106 "loc_FF883468:\n"
107 " BL sub_FF8839C0 \n"
108 " B loc_FF8834B0 \n"
109 
110 "loc_FF883470:\n"
111 " LDR R0, [R4, #0x44] \n"
112 " CMP R0, #5 \n"
113 " STRNE R5, [R4, #0x34] \n"
114 " B loc_FF8834B0 \n"
115 
116 "loc_FF883480:\n"
117 " BL sub_FF882670 \n"
118 " B loc_FF8834B0 \n"
119 
120 "loc_FF883488:\n"
121 " BL sub_FF8822E4 \n"
122 " B loc_FF8834B0 \n"
123 
124 "loc_FF883490:\n"
125 " BL sub_FF881A64 \n"
126 " B loc_FF8834B0 \n"
127 
128 "loc_FF883498:\n"
129 " BL sub_FF883914 \n"
130 " B loc_FF8834B0 \n"
131 
132 "loc_FF8834A0:\n"
133 " BL sub_FF8821A8 \n"
134 " B loc_FF8834B0 \n"
135 
136 "loc_FF8834A8:\n"
137 " BL sub_FF88208C \n"
138 " STR R5, [R4, #0xF8] \n"
139 
140 "loc_FF8834B0:\n"
141 " LDR R1, [SP, #4] \n"
142 " LDR R3, =0xFF881594 /*'MovieRecorder.c'*/ \n"
143 " STR R6, [R1] \n"
144 " STR R10, [SP] \n"
145 " LDR R0, [R4, #0x28] \n"
146 " MOV R2, R8 \n"
147 " BL sub_FF83AE1C /*_PostMessageQueueStrictly*/ \n"
148 " LDR R0, [R4, #0xD0] \n"
149 " BL _GiveSemaphore \n"
150 " B loc_FF883368 \n"
151 );
152 }
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 }