CHDK_DE Vorschauversion  Trunk Rev. 5429
 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 set_quality (int *x)
 
void change_video_tables (int a, int b)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

int * video_quality = &conf.video_quality
 
int * video_mode = &conf.video_mode
 

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

Definiert in Zeile 28 der Datei movie_rec.c.

29 {
30  asm volatile (
31 " STMFD SP!, {R2-R8,LR} \n"
32 
33 " LDR R8, =0x2710 \n"
34 " LDR R4, =0x7128 \n"
35 " MOV R7, #1 \n"
36 " LDR R6, =0xFF98611C \n"
37 " MOV R5, #0 \n"
38 "loc_FF986444:\n"
39 " LDR R0, [R4, #0x24] \n"
40 " MOV R2, #0 \n"
41 " ADD R1, SP, #4 \n"
42 " BL sub_FF83A2F8 \n"
43 " LDR R0, [R4, #0x2C] \n"
44 " CMP R0, #0 \n"
45 " LDRNE R0, [R4, #0xC] \n"
46 " CMPNE R0, #2 \n"
47 " LDRNE R0, [R4, #0x44] \n"
48 " CMPNE R0, #6 \n"
49 " BNE loc_FF98655C \n"
50 " LDR R0, [SP, #4] \n"
51 " LDR R1, [R0] \n"
52 " SUB R1, R1, #2 \n"
53 " CMP R1, #0xA \n"
54 " ADDLS PC, PC, R1, LSL #2 \n"
55 " B loc_FF98655C \n"
56 " B loc_FF986510 \n"
57 " B loc_FF986530 \n"
58 " B loc_FF986540 \n"
59 " B loc_FF986548 \n"
60 " B loc_FF986518 \n"
61 " B loc_FF986550 \n"
62 " B loc_FF986520 \n"
63 " B loc_FF98655C \n"
64 " B loc_FF986558 \n"
65 " B loc_FF9864E0 \n"
66 " B loc_FF9864B4 \n"
67 
68 "loc_FF9864B4:\n"
69 " STR R5, [R4, #0x40] \n"
70 " STR R5, [R4, #0x30] \n"
71 " STR R5, [R4, #0x34] \n"
72 " STRH R5, [R4, #6] \n"
73 " STR R6, [R4, #0xB4] \n"
74 " LDR R0, [R4, #0xC] \n"
75 " ADD R0, R0, #1 \n"
76 " STR R0, [R4, #0xC] \n"
77 " MOV R0, #6 \n"
78 " STR R0, [R4, #0x44] \n"
79 " B loc_FF9864FC \n"
80 
81 "loc_FF9864E0:\n"
82 " STR R5, [R4, #0x40] \n"
83 " STR R5, [R4, #0x30] \n"
84 " STR R6, [R4, #0xB4] \n"
85 " LDR R0, [R4, #0xC] \n"
86 " ADD R0, R0, #1 \n"
87 " STR R0, [R4, #0xC] \n"
88 " STR R7, [R4, #0x44] \n"
89 "loc_FF9864FC:\n"
90 " LDR R2, =0xFF985334 \n"
91 " LDR R1, =0xB45D0 \n"
92 
93 //" LDR R0, =sub_FF985430 \n"
94 " LDR R0, =0xFF985430 \n"
95 
96 " BL sub_FF8530D0 \n"
97 " B loc_FF98655C \n"
98 
99 "loc_FF986510:\n"
100 " BL unlock_optical_zoom\n" // added to unlock the zoom
101 " BL sub_FF986244 \n"
102 " B loc_FF98655C \n"
103 
104 "loc_FF986518:\n"
105 //" BL sub_FF985B84 \n"
106 " BL sub_FF985B84_my \n" // patched
107 " B loc_FF98655C \n"
108 
109 "loc_FF986520:\n"
110 " LDR R1, [R0, #0x18] \n"
111 " LDR R0, [R0, #4] \n"
112 " BL sub_FFAF2B4C \n"
113 " B loc_FF98655C \n"
114 
115 "loc_FF986530:\n"
116 " LDR R0, [R4, #0x44] \n"
117 " CMP R0, #5 \n"
118 " STRNE R7, [R4, #0x34] \n"
119 " B loc_FF98655C \n"
120 
121 "loc_FF986540:\n"
122 " BL sub_FF9857CC \n"
123 " B loc_FF98655C \n"
124 
125 "loc_FF986548:\n"
126 " BL sub_FF98547C \n"
127 " B loc_FF98655C \n"
128 
129 "loc_FF986550:\n"
130 " BL sub_FF9852C0 \n"
131 " B loc_FF98655C \n"
132 
133 "loc_FF986558:\n"
134 " BL sub_FF98698C \n"
135 
136 "loc_FF98655C:\n"
137 " LDR R1, [SP, #4] \n"
138 " MOV R3, #0x5F0 \n"
139 " STR R5, [R1] \n"
140 " STR R3, [SP] \n"
141 " LDR R0, [R4, #0x28] \n"
142 " LDR R3, =0xFF985124 \n"
143 " MOV R2, R8 \n"
144 " BL sub_FF83AC4C \n"
145 " B loc_FF986444 \n"
146  );
147 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 20 der Datei movie_rec.c.

21 {
22 }
void set_quality ( int *  x)

Definiert in Zeile 10 der Datei movie_rec.c.

11 {
12  if (conf.video_mode)
13  *x = 12 - ((conf.video_quality-1) * (12+17) / (99-1));
14 }

Variablen-Dokumentation

int* video_mode = &conf.video_mode

Definiert in Zeile 4 der Datei movie_rec.c.

int* video_quality = &conf.video_quality

Definiert in Zeile 3 der Datei movie_rec.c.