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-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 (__attribute__((unused)) int a, __attribute__((unused)) 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_FF961794:\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_FF961864\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_FF961864\n"
32 "loc_FF9617C8:\n"
33  "B loc_FF961818\n"
34 "loc_FF9617CC:\n"
35  "B loc_FF961838\n"
36 "loc_FF9617D0:\n"
37  "B loc_FF961848\n"
38 "loc_FF9617D4:\n"
39  "B loc_FF961850\n"
40 "loc_FF9617D8:\n"
41  "B loc_FF961820\n"
42 "loc_FF9617DC:\n"
43  "B loc_FF961858\n"
44 "loc_FF9617E0:\n"
45  "B loc_FF961828\n"
46 "loc_FF9617E4:\n"
47  "B loc_FF961864\n"
48 "loc_FF9617E8:\n"
49  "B loc_FF961860\n"
50 "loc_FF9617EC:\n"
51  "B loc_FF9617F0\n"
52 "loc_FF9617F0:\n" // ; jumptable FF9617C0 entry 9
53  "STR R6, [R4,#0x34]\n"
54  //"ADR R0, sub_FF961498\n"
55  "LDR R0, =0xFF961498\n"
56  //"ADR R2, sub_FF960A20\n"
57  "LDR R2, =0xFF960A20\n"
58  "LDR R1, =0x8E094\n"
59  "STR R0, [R4,#0x9C]\n"
60  "LDR R0, =0xFF960B04\n"
61  "STR R6, [R4,#0x24]\n"
62  "BL sub_FF84ED58\n"
63  "STR R5, [R4,#0x38]\n"
64  "B loc_FF961864\n"
65 "loc_FF961818:\n" // ; jumptable FF9617C0 entry 0
66  "BL unlock_optical_zoom\n" //+-----> inserted to unlock the zoom
67  "BL sub_FF9615A0\n"
68  "B loc_FF961864\n"
69 "loc_FF961820:\n" // ; jumptable FF9617C0 entry 4
70  //"BL sub_FF961118\n"
71  "BL sub_FF961118_my\n" // +----------------->
72  "B loc_FF961864\n"
73 "loc_FF961828:\n" // ; jumptable FF9617C0 entry 6
74  "LDR R1, [R0,#0x18]\n"
75  "LDR R0, [R0,#4]\n"
76  "BL sub_FFA96E98 \n"
77  "B loc_FF961864\n"
78 "loc_FF961838:\n" //; jumptable FF9617C0 entry 1
79  "LDR R0, [R4,#0x38]\n"
80  "CMP R0, #5\n"
81  "STRNE R5, [R4,#0x28]\n"
82  "B loc_FF961864\n"
83 "loc_FF961848:\n"
84  "BL sub_FF960E64\n"
85  "B loc_FF961864\n"
86 "loc_FF961850:\n"
87  "BL sub_FF960B50\n"
88  "B loc_FF961864\n"
89 "loc_FF961858:\n"
90  "BL sub_FF9609AC\n"
91  "B loc_FF961864\n"
92 "loc_FF961860:\n"
93  "BL sub_FF9619D0\n"
94 "loc_FF961864:\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, =0xFF96080C\n"
101  "MOV R2, R7\n"
102  "BL sub_FF838C50\n"
103  "B loc_FF961794\n"
104  );
105 }
void change_video_tables ( __attribute__((unused)) int  a,
__attribute__((unused)) int  b 
)

Definiert in Zeile 372 der Datei movie_rec.c.

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