CHDK_DE Vorschauversion  Trunk Rev. 6014
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
movie_rec.c-Dateireferenz
#include "conf.h"
#include "lolevel.h"
#include "platform.h"
#include "core.h"
#include "dryos31.h"
+ Include-Abhängigkeitsdiagramm für movie_rec.c:

gehe zum Quellcode dieser Datei

Funktionen

void change_video_tables (__attribute__((unused)) int a, __attribute__((unused)) int b)
 
void set_quality (int *x)
 
void __attribute__ ((naked, noinline))
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 19 der Datei movie_rec.c.

19  {
20  asm volatile(
21  // 102B : ROM:FF986714
22 " STMFD SP!, {R2-R10,LR}\n"
23 // " LDR R10, =0x5EE\n" // not in 100F nor 102B
24 " LDR R9, =0x2710\n"
25 " LDR R7, =0xFF9858B0\n" //nullsub_357
26 " LDR R4, =0x7898\n" // not in 100D
27 " MOV R8, #1\n" // not in 100D
28 
29 //looks like it is the one to work with?
30 //" LDR R6, =0xFF986044\n" //__MovieRecorder.c__0 ; LOCATION: MovieRecorder.c:0
31 " LDR R6, =sub_FF986044_my\n" //__MovieRecorder.c__0 ; LOCATION: MovieRecorder.c:0 // sub_FF986100 in 102B
32 
33 // " LDR R4, =0x7898\n" // not in 102B
34 // " MOV R8, #1\n" // not in 102B
35 " MOV R5, #0\n"
36 "loc_FF986670:\n" // 102B: loc_FF986730
37 " LDR R0, [R4,#0x24]\n"
38 " MOV R2, #0\n"
39 " ADD R1, SP, #0x4\n"
40 " BL sub_FF83AE20\n" //__KerQueue.c__0 ; LOCATION: KerQueue.c:0
41 " LDR R0, [R4,#0x2C]\n"
42 " CMP R0, #0\n"
43 " LDRNE R0, [R4,#0xC]\n"
44 " CMPNE R0, #2\n"
45 " LDRNE R0, [R4,#0x44]\n"
46 " CMPNE R0, #6\n"
47 " BNE loc_FF986794\n"
48 " LDR R0, [SP,#0x4]\n"
49 " LDR R1, [R0]\n"
50 " SUB R1, R1, #2\n"
51 " CMP R1, #0xA\n"
52 " ADDLS PC, PC, R1,LSL#2\n"
53 " B loc_FF986794\n"
54 // havent bothered commenting all the 'real' locations below in the 102B fw and left as 100D
55 "loc_FF9866B4:\n"
56 " B loc_FF986744\n"
57 "loc_FF9866B8:\n"
58 " B loc_FF986768\n"
59 "loc_FF9866BC:\n"
60 " B loc_FF986778\n"
61 "loc_FF9866C0:\n"
62 " B loc_FF986780\n"
63 "loc_FF9866C4:\n"
64 " B loc_FF98674C\n"
65 "loc_FF9866C8:\n"
66 " B loc_FF986788\n"
67 "loc_FF9866CC:\n"
68 " B loc_FF986758\n"
69 "loc_FF9866D0:\n"
70 " B loc_FF986794\n"
71 "loc_FF9866D4:\n"
72 " B loc_FF986790\n"
73 "loc_FF9866D8:\n"
74 " B loc_FF986710\n"
75 "loc_FF9866DC:\n"
76 " B loc_FF9866E0\n"
77 "loc_FF9866E0:\n"
78 " STR R5, [R4,#0x40]\n"
79 " STR R5, [R4,#0x30]\n"
80 " STR R5, [R4,#0x34]\n"
81 " STRH R5, [R4,#6]\n"
82 " STR R6, [R4,#0xCC]\n"
83 " STR R7, [R4,#0xB4]\n"
84 " LDR R0, [R4,#0xC]\n"
85 " ADD R0, R0, #1\n"
86 " STR R0, [R4,#0xC]\n"
87 " MOV R0, #6\n"
88 " STR R0, [R4,#0x44]\n"
89 " B loc_FF986730\n"
90 "loc_FF986710:\n"
91 " STR R5, [R4,#0x40]\n"
92 " STR R5, [R4,#0x30]\n"
93 " STR R6, [R4,#0xCC]\n"
94 " STR R7, [R4,#0xB4]\n"
95 " LDR R0, [R4,#0xC]\n"
96 " ADD R0, R0, #1\n"
97 " STR R0, [R4,#0xC]\n"
98 " STR R8, [R4,#0x44]\n"
99 "loc_FF986730:\n"
100 " LDR R2, =0xFF98508C\n"
101 " LDR R1, =0xB0300\n"
102 " LDR R0, =0xFF9851A0\n"
103 " BL sub_FF8530AC\n"
104 " B loc_FF986794\n"
105 "loc_FF986744:\n"
106  // "BL unlock_optical_zoom\n" -----------> inserted to unlock the zoom, dont need in sx210
107 " BL sub_FF985DDC\n" //__MovieRecorder.c__0
108 " B loc_FF986794\n"
109 "loc_FF98674C:\n"
110 " LDR R1, [R4,#0xCC]\n"
111 " BLX R1\n"
112 " B loc_FF986794\n"
113 "loc_FF986758:\n"
114 " LDR R1, [R0,#0x18]\n"
115 " LDR R0, [R0,#4]\n"
116 " BL sub_FFAD9C30\n" //__MovWriter.c__0 ; LOCATION: MovWriter.c:0
117 " B loc_FF986794\n"
118 "loc_FF986768:\n"
119 " LDR R0, [R4,#0x44]\n"
120 " CMP R0, #5\n"
121 " STRNE R8, [R4,#0x34]\n"
122 " B loc_FF986794\n"
123 "loc_FF986778:\n"
124 " BL sub_FF98555C\n" //__MovieRecorder.c__1000
125 " B loc_FF986794\n"
126 "loc_FF986780:\n"
127 " BL sub_FF9851EC\n" //__MovieRecorder.c__0
128 " B loc_FF986794\n"
129 "loc_FF986788:\n"
130 " BL sub_FF985018\n" //__MovieRecorder.c__100
131 " B loc_FF986794\n"
132 "loc_FF986790:\n"
133 " BL sub_FF986C48\n" //__MovieRecorder.c__100
134 "loc_FF986794:\n"
135 " LDR R1, [SP,#0x4]\n"
136 " MOV R3, #0x5F0\n" //Not present in 100D
137 " STR R5, [R1]\n"
138 " STR R3, [SP]\n"
139 " LDR R0, [R4,#0x28]\n"
140 " LDR R3, =0xFF984CE4\n" // MovieRecorder.c Not present in 100D
141 " MOV R2, R9\n"
142 " BL sub_FF83B774\n"
143 " B loc_FF986670\n"
144 
145  );
146 } //asm1989 14.11.10 done
void change_video_tables ( __attribute__((unused)) int  a,
__attribute__((unused)) int  b 
)

Definiert in Zeile 11 der Datei movie_rec.c.

11 {}
void set_quality ( int *  x)

Definiert in Zeile 14 der Datei movie_rec.c.

14  { // -17 highest; +12 lowest
15  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
16 }