CHDK_DE Vorschauversion  Trunk Rev. 5324
 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 save_original_bitrates ()
 
void modify_bitrate ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

static int bitrate_multiplier = 4
 
static int bitrate_changed = 0
 
int video_target_framesize
 
int video_target_framesize2
 
static int orig_bitrate [2]
 

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 41 der Datei movie_rec.c.

41  {
42 asm volatile (
43 " STMFD SP!, {R2-R10,LR} \n"
44 " LDR R8, =0xFF9A9ACC \n"
45 " LDR R4, =0x7580 \n"
46 " LDR R9, =0x709 \n"
47 " LDR R10, =0x2710 \n"
48 " MVN R7, #0 \n"
49 " MOV R5, #1 \n"
50 " MOV R6, #0 \n"
51 
52 "loc_FF9A9EEC:\n"
53 " LDR R0, [R4, #0x30] \n"
54 " MOV R2, #0 \n"
55 " ADD R1, SP, #4 \n"
56 " BL sub_FF829E30 /*_ReceiveMessageQueue*/ \n"
57 " LDR R0, [R4, #0x38] \n"
58 " CMP R0, #0 \n"
59 " LDRNE R0, [R4, #0x14] \n"
60 " CMPNE R0, #2 \n"
61 " LDRNE R0, [R4, #0x4C] \n"
62 " CMPNE R0, #6 \n"
63 " BNE loc_FF9AA040 \n"
64 " LDR R0, [SP, #4] \n"
65 " LDR R1, [R0] \n"
66 " SUB R1, R1, #2 \n"
67 " CMP R1, #0xD \n"
68 " ADDCC PC, PC, R1, LSL#2 \n"
69 " B loc_FF9AA040 \n"
70 " B loc_FF9A9FB4 \n"
71 " B loc_FF9A9FE0 \n"
72 " B loc_FF9A9FF0 \n"
73 " B loc_FF9A9FF8 \n"
74 " B loc_FF9A9FBC \n"
75 " B loc_FF9AA000 \n"
76 " B loc_FF9AA02C \n"
77 " B loc_FF9AA034 \n"
78 " B loc_FF9A9FC8 \n"
79 " B loc_FF9AA040 \n"
80 " B loc_FF9AA03C \n"
81 " B loc_FF9A9F90 \n"
82 " B loc_FF9A9F64 \n"
83 
84 "loc_FF9A9F64:\n"
85 " STR R6, [R4, #0x48] \n"
86 " STR R6, [R4, #0x3C] \n"
87 " STR R7, [R4, #0xD4] \n"
88 " STRH R6, [R4, #8] \n"
89 " STR R8, [R4, #0xB4] \n"
90 " LDR R0, [R4, #0x14] \n"
91 " ADD R0, R0, #1 \n"
92 " STR R0, [R4, #0x14] \n"
93 " MOV R0, #6 \n"
94 " STR R0, [R4, #0x4C] \n"
95 " B loc_FF9A9FAC \n"
96 
97 "loc_FF9A9F90:\n"
98 " STR R6, [R4, #0x48] \n"
99 " STR R7, [R4, #0xD4] \n"
100 " STR R8, [R4, #0xB4] \n"
101 " LDR R0, [R4, #0x14] \n"
102 " ADD R0, R0, #1 \n"
103 " STR R0, [R4, #0x14] \n"
104 " STR R5, [R4, #0x4C] \n"
105 
106 "loc_FF9A9FAC:\n"
107 " STR R5, [R4, #0xC] \n"
108 " B loc_FF9AA040 \n"
109 
110 "loc_FF9A9FB4:\n"
111 " BL sub_FF9A97B4 \n"
112 " BL save_original_bitrates \n" // + (executed at recording start)
113 " B loc_FF9AA040 \n"
114 
115 "loc_FF9A9FBC:\n"
116 " LDR R1, [R4, #0xB4] \n"
117 " BLX R1 \n"
118 //begin patch (only effective in VGA mode)
119 " LDR R0, =video_compression_rate \n" // +
120 " BL set_quality \n" // +
121 " BL modify_bitrate \n" // + (modifies target bitrate if requested)
122 //end patch
123 " B loc_FF9AA040 \n"
124 
125 "loc_FF9A9FC8:\n"
126 " LDR R1, [R0, #0x18] \n"
127 " LDR R2, [R0, #0x28] \n"
128 " LDR R3, [R0, #0x24] \n"
129 " LDR R0, [R0, #4] \n"
130 " BL sub_FFB011F8 \n"
131 " B loc_FF9AA040 \n"
132 
133 "loc_FF9A9FE0:\n"
134 " LDR R0, [R4, #0x4C] \n"
135 " CMP R0, #5 \n"
136 " STRNE R5, [R4, #0x3C] \n"
137 " B loc_FF9AA040 \n"
138 
139 "loc_FF9A9FF0:\n"
140 " BL sub_FF9A9414 \n"
141 " B loc_FF9AA040 \n"
142 
143 "loc_FF9A9FF8:\n"
144 " BL sub_FF9A92D4 \n"
145 " B loc_FF9AA040 \n"
146 
147 "loc_FF9AA000:\n"
148 " LDR R0, =0x103C34 \n"
149 " LDR R0, [R0, #8] \n"
150 " CMP R0, #0 \n"
151 " LDRNE R2, =0xFF9A91F4 \n"
152 " LDRNE R0, =0xFF9A927C \n"
153 " MOVNE R3, #0 \n"
154 " MOVNE R1, R3 \n"
155 " BLNE sub_FF86E09C \n"
156 " MOV R0, #3 \n"
157 " STR R0, [R4, #0x4C] \n"
158 " B loc_FF9AA040 \n"
159 
160 "loc_FF9AA02C:\n"
161 " BL sub_FF9A9168 \n"
162 " B loc_FF9AA040 \n"
163 
164 "loc_FF9AA034:\n"
165 " BL sub_FF9AA844 \n"
166 " B loc_FF9AA040 \n"
167 
168 "loc_FF9AA03C:\n"
169 " BL sub_FF9A9044 \n"
170 
171 "loc_FF9AA040:\n"
172 " LDR R1, [SP, #4] \n"
173 " LDR R3, =0xFF9A8D20 /*'MovieRecorder.c'*/ \n"
174 " STR R6, [R1] \n"
175 " STR R9, [SP] \n"
176 " LDR R0, [R4, #0x34] \n"
177 " MOV R2, R10 \n"
178 " BL sub_FF826774 /*_PostMessageQueueStrictly*/ \n"
179 " B loc_FF9A9EEC \n"
180 );
181 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 14 der Datei movie_rec.c.

14  {
15  bitrate_multiplier = (a<<2)/b;
16  bitrate_changed = 1;
17 }
void modify_bitrate ( )

Definiert in Zeile 30 der Datei movie_rec.c.

30  {
31  if (bitrate_changed) {
32  bitrate_changed = 0;
35  }
36 }
void save_original_bitrates ( )

Definiert in Zeile 24 der Datei movie_rec.c.

void set_quality ( int *  x)

Definiert in Zeile 20 der Datei movie_rec.c.

20  { // -17 highest; +12 lowest
21  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
22 }

Variablen-Dokumentation

int bitrate_changed = 0
static

Definiert in Zeile 7 der Datei movie_rec.c.

int bitrate_multiplier = 4
static

Definiert in Zeile 6 der Datei movie_rec.c.

int orig_bitrate[2]
static

Definiert in Zeile 12 der Datei movie_rec.c.

int video_target_framesize
int video_target_framesize2