CHDK_DE Vorschauversion  Trunk Rev. 5426
 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))
 
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)  )

!!

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, =0x6D58\n"
16  "MOV R6, #0\n"
17  "MOV R5, #1\n"
18 
19 "loc_FF962B08:\n"
20  "LDR R0, [R4,#0x18]\n"
21  "MOV R2, #0\n"
22  "ADD R1, SP, #0x4\n"
23  "BL sub_FF83894C\n"
24  "LDR R0, [R4,#0x20]\n"
25  "CMP R0, #0\n"
26  "BNE loc_FF962BD8\n"
27  "LDR R0, [SP,#0x4]\n"
28  "LDR R1, [R0]\n"
29  "SUB R1, R1, #2\n"
30  "CMP R1, #9\n"
31  "ADDLS PC, PC, R1,LSL#2\n"
32  "B loc_FF962BD8\n"
33 "loc_FF962B3C:\n"
34  "B loc_FF962B8C\n"
35 "loc_FF962B40:\n"
36  "B loc_FF962BAC\n"
37 "loc_FF962B44:\n"
38  "B loc_FF962BBC\n"
39 "loc_FF962B48:\n"
40  "B loc_FF962BC4\n"
41 "loc_FF962B4C:\n"
42  "B loc_FF962B94\n"
43 "loc_FF962B50:\n"
44  "B loc_FF962BCC\n"
45 "loc_FF962B54:\n"
46  "B loc_FF962B9C\n"
47 "loc_FF962B58:\n"
48  "B loc_FF962BD8\n"
49 "loc_FF962B5C:\n"
50  "B loc_FF962BD4\n"
51 "loc_FF962B60:\n"
52  "B loc_FF962B64\n"
53 "loc_FF962B64:\n"
54 //; jumptable FF9"2B34 entry 9
55  "LDR R0, =0xFF96281C\n" //nullsub_305
56  "STR R6, [R4,#0x34]\n"
57  "STR R0, [R4,#0x9C]\n"
58  "LDR R2, =0xFF961DAC\n"
59  "LDR R1, =0x8D74C\n"
60  "LDR R0, =0xFF961E90\n"
61  "STR R6, [R4,#0x24]\n"
62  "BL sub_FF85049C\n"
63  "STR R5, [R4,#0x38]\n"
64  "B loc_FF962BD8\n"
65 "loc_FF962B8C:\n"
66 //; jumptable FF9"2B34 entry 0
67  "BL unlock_optical_zoom\n" //+-----> inserted to unlock the zoom
68  "BL sub_FF962914\n"
69  "B loc_FF962BD8\n"
70 "loc_FF962B94:\n"
71 //; jumptable FF9"2B34 entry 4
72  //"BL sub_FF96249C\n" // -
73  "BL sub_FF96249C_my\n" // + --------->
74  "B loc_FF962BD8\n"
75 "loc_FF962B9C:\n"
76 //; jumptable FF9"2B34 entry 6
77  "LDR R1, [R0,#0x18]\n"
78  "LDR R0, [R0,#4]\n"
79  "BL sub_FFA9C758\n"
80  "B loc_FF962BD8\n"
81 "loc_FF962BAC:\n"
82 //; jumptable FF9"2B34 entry 1
83  "LDR R0, [R4,#0x38]\n"
84  "CMP R0, #5\n"
85  "STRNE R5, [R4,#0x28]\n"
86  "B loc_FF962BD8\n"
87 "loc_FF962BBC:\n"
88 //; jumptable FF9"2B34 entry 2
89  "BL sub_FF9621EC\n"
90  "B loc_FF962BD8\n"
91 "loc_FF962BC4:\n"
92 //; jumptable FF9"2B34 entry 3
93  "BL sub_FF961EDC\n"
94  "B loc_FF962BD8\n"
95 "loc_FF962BCC:\n"
96 //; jumptable FF9"2B34 entry 5
97  "BL sub_FF961D38\n"
98  "B loc_FF962BD8\n"
99 "loc_FF962BD4:\n"
100 //; jumptable FF9"2B34 entry 8
101  "BL sub_FF962D44\n"
102 "loc_FF962BD8:\n"
103 //; jumptable FF9"2B34 default entry
104 //; jumptable FF9"2B34 entry 7
105  "LDR R1, [SP,#0x4]\n"
106  "MOV R3, #0x460\n"
107  "STR R6, [R1]\n"
108  "STR R3, [SP]\n"
109  "LDR R0, [R4,#0x1C]\n"
110  "LDR R3, =0xFF961B98\n" //aMovierecorder
111  "MOV R2, R7\n"
112  "BL sub_FF8392A0\n"
113  "B loc_FF962B08\n"
114  );
115 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 385 der Datei movie_rec.c.

385  {
386 #if 0
387  int i;
388  for (i=0;i<24;i++) table[i]=(def_table[i]*a)/b;
389 #endif
390 }
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.