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

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

11  {
12  asm volatile(
13  "STMFD SP!, {R2-R8,LR}\n"
14  "LDR R7, =0x2710\n"
15  "LDR R4, =0x7AB0\n"
16  "MOV R6, #0\n"
17  "MOV R5, #1\n"
18 "loc_FF961740:\n"
19  "LDR R0, [R4,#0x18]\n"
20  "MOV R2, #0\n"
21  "ADD R1, SP, #4\n"
22  "BL sub_FF8382FC\n"
23  "LDR R0, [R4,#0x20]\n"
24  "CMP R0, #0\n"
25  "BNE loc_FF961810\n"
26  "LDR R0, [SP,#4]\n"
27  "LDR R1, [R0]\n"
28  "SUB R1, R1, #2\n"
29  "CMP R1, #9\n"
30  "ADDLS PC, PC, R1,LSL#2\n"
31  "B loc_FF961810\n"
32 "loc_FF961774:\n"
33  "B loc_FF9617C4\n"
34 "loc_FF961778:\n"
35  "B loc_FF9617E4\n"
36 "loc_FF96177C:\n"
37  "B loc_FF9617F4\n"
38 "loc_FF961780:\n"
39  "B loc_FF9617FC\n"
40 "loc_FF961784:\n"
41  "B loc_FF9617CC\n"
42 "loc_FF961788:\n"
43  "B loc_FF961804\n"
44 "loc_FF96178C:\n"
45  "B loc_FF9617D4\n"
46 "loc_FF961790:\n"
47  "B loc_FF961810\n"
48 "loc_FF961794:\n"
49  "B loc_FF96180C\n"
50 "loc_FF961798:\n"
51  "B loc_FF96179C\n"
52 "loc_FF96179C:\n"
53  "STR R6, [R4,#0x34]\n"
54  //"ADR R0, sub_FF961444\n"
55  "LDR R0, =0xFF961444\n"
56  //"ADR R2, sub_FF9609CC\n"
57  "LDR R2, =0xFF9609CC\n"
58  "LDR R1, =0x8E094\n"
59  "STR R0, [R4,#0x9C]\n"
60  "LDR R0, =0xFF960AB0\n"
61  "STR R6, [R4,#0x24]\n"
62  "BL sub_FF84ED58\n"
63  "STR R5, [R4,#0x38]\n"
64  "B loc_FF961810\n"
65 "loc_FF9617C4:\n" //; jumptable FF96176C entry 0
66  "BL unlock_optical_zoom\n" //+-----> inserted to unlock the zoom
67  "BL sub_FF96154C\n"
68  "B loc_FF961810\n"
69 "loc_FF9617CC:\n" // ; jumptable FF96176C entry 4
70  //"BL sub_FF9610C4\n"
71  "BL sub_FF9610C4_my\n" // + ----------------->
72  "B loc_FF961810\n"
73 "loc_FF9617D4:\n"
74  "LDR R1, [R0,#0x18]\n"
75  "LDR R0, [R0,#4]\n"
76  "BL sub_FFA96E44\n"
77  "B loc_FF961810\n"
78 "loc_FF9617E4:\n"
79  "LDR R0, [R4,#0x38]\n"
80  "CMP R0, #5\n"
81  "STRNE R5, [R4,#0x28]\n"
82  "B loc_FF961810\n"
83 "loc_FF9617F4:\n"
84  "BL sub_FF960E10\n"
85  "B loc_FF961810\n"
86 "loc_FF9617FC:\n"
87  "BL sub_FF960AFC\n"
88  "B loc_FF961810\n"
89 "loc_FF961804:\n"
90  "BL sub_FF960958\n"
91  "B loc_FF961810\n"
92 "loc_FF96180C:\n"
93  "BL sub_FF96197C\n"
94 "loc_FF961810:\n"
95  "LDR R1, [SP,#4]\n"
96  "MOV R3, #0x460\n"
97  "STR R6, [R1]\n"
98  "STR R3, [SP]\n"
99  "LDR R0, [R4,#0x1C]\n"
100  "LDR R3, =0xFF9607B8\n"
101  "MOV R2, R7\n"
102  "BL sub_FF838C50\n"
103  "B loc_FF961740\n"
104  );
105 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 372 der Datei movie_rec.c.

372  {
373 #if 0
374  int i;
375  for (i=0;i<24;i++) table[i]=(def_table[i]*a)/b;
376 #endif
377 }
void set_quality ( int *  x)

Definiert in Zeile 6 der Datei movie_rec.c.

6  { // -17 highest; +12 lowest
7  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
8 }

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.