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_FF961950:\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_FF961A20\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_FF961A20\n"
32 "loc_FF961984:\n"
33  "B loc_FF9619D4\n"
34 "loc_FF961988:\n"
35  "B loc_FF9619F4\n"
36 "loc_FF96198C:\n"
37  "B loc_FF961A04\n"
38 "loc_FF961990:\n"
39  "B loc_FF961A0C\n"
40 "loc_FF961994:\n"
41  "B loc_FF9619DC\n"
42 "loc_FF961998:\n"
43  "B loc_FF961A14\n"
44 "loc_FF96199C:\n"
45  "B loc_FF9619E4\n"
46 "loc_FF9619A0:\n"
47  "B loc_FF961A20\n"
48 "loc_FF9619A4:\n"
49  "B loc_FF961A1C\n"
50 "loc_FF9619A8:\n"
51  "B loc_FF9619AC\n"
52 "loc_FF9619AC:\n"
53  "STR R6, [R4,#0x34]\n"
54  "LDR R0, =0xFF961654\n"
55  "LDR R2, =0xFF960BDC\n"
56  "LDR R1, =0x8E094\n"
57  "STR R0, [R4,#0x9C]\n"
58  "LDR R0, =0xFF960CC0\n"
59  "STR R6, [R4,#0x24]\n"
60  "BL sub_FF84ED58\n"
61  "STR R5, [R4,#0x38]\n"
62  "B loc_FF961A20\n"
63 "loc_FF9619D4:\n"
64  "BL unlock_optical_zoom\n" //+-----> inserted to unlock the zoom
65  "BL sub_FF96175C\n"
66  "B loc_FF961A20\n"
67 "loc_FF9619DC:\n"
68  //"BL sub_FF9612D4\n"
69  "BL sub_FF9612D4_my\n" // ------------------------------>
70  "B loc_FF961A20\n"
71 "loc_FF9619E4:\n"
72  "LDR R1, [R0,#0x18]\n"
73  "LDR R0, [R0,#4]\n"
74  "BL sub_FFA97054 \n"
75  "B loc_FF961A20\n"
76 "loc_FF9619F4:\n"
77  "LDR R0, [R4,#0x38]\n"
78  "CMP R0, #5\n"
79  "STRNE R5, [R4,#0x28]\n"
80  "B loc_FF961A20\n"
81 "loc_FF961A04:\n"
82  "BL sub_FF961020\n"
83  "B loc_FF961A20\n"
84 "loc_FF961A0C:\n"
85  "BL sub_FF960D0C\n"
86  "B loc_FF961A20\n"
87 "loc_FF961A14:\n"
88  "BL sub_FF960B68\n"
89  "B loc_FF961A20\n"
90 "loc_FF961A1C:\n"
91  "BL sub_FF961B8C\n"
92 "loc_FF961A20:\n"
93  "LDR R1, [SP,#4]\n"
94  "MOV R3, #0x460\n"
95  "STR R6, [R1]\n"
96  "STR R3, [SP]\n"
97  "LDR R0, [R4,#0x1C]\n"
98  "LDR R3, =0xFF9609C8\n"
99  "MOV R2, R7\n"
100  "BL sub_FF838C50\n"
101  "B loc_FF961950\n"
102  );
103 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 370 der Datei movie_rec.c.

370  {
371 #if 0
372  int i;
373  for (i=0;i<24;i++) table[i]=(def_table[i]*a)/b;
374 #endif
375 }
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.