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 change_video_tables (int a, int b)
 
void __attribute__ ((naked, noinline))
 

Variablen

int * video_quality = &conf.video_quality
 
int * video_mode = &conf.video_mode
 
long def_table1 [12] ={0x2000,0x38D,0x788,0x5800,0x9C5,0x14B8,0x10000,0x1C6A,0x3C45,0x20000,0x387A,0x7813}
 
long def_table2 [12] ={0x1CCD,-0x2E1,-0x579,0x4F33,-0x7EB,-0xF0C,0xE666,-0x170A,-0x2BC6,0x1CC39,-0x2F5B,-0x59F0}
 
long table1 [12]
 
long table2 [12]
 
long CompressionRateTable [] ={0x60, 0x5D, 0x5A, 0x57, 0x54, 0x51, 0x4D, 0x48, 0x42, 0x3B, 0x32, 0x29, 0x22, 0x1D, 0x17, 0x14, 0x10, 0xE, 0xB, 9, 7, 6, 5, 4, 3, 2, 1}
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 20 der Datei movie_rec.c.

20  {
21  asm volatile(
22  "STMFD SP!, {R4,R5,LR}\n"
23  "SUB SP, SP, #4\n"
24  "MOV R5, SP\n"
25  "MOV R4, #0\n"
26 "loc_FF9907AC:\n"
27  "LDR R3, =0x770FC\n"
28  "MOV R2, #0\n"
29  "LDR R0, [R3]\n"
30  "MOV R1, R5\n"
31  "BL sub_FF8213F8\n"
32  "LDR R3, =0x771D0\n"
33  "LDR R2, [R3]\n"
34  "CMP R2, #0\n"
35  "BNE loc_FF990858\n"
36  "LDR R1, [SP]\n"
37  "LDR R3, [R1]\n"
38  "SUB R3, R3, #2\n"
39  "MOV R0, R1\n"
40  "CMP R3, #9\n"
41  "LDRLS PC, [PC,R3,LSL#2]\n"
42  "B loc_FF99085C\n"
43  ".long loc_FF99081C\n"
44  ".long loc_FF990834\n"
45  ".long loc_FF99083C\n"
46  ".long loc_FF990844\n"
47  ".long loc_FF990824\n"
48  ".long loc_FF99084C\n"
49  ".long loc_FF99082C\n"
50  ".long loc_FF99085C\n"
51  ".long loc_FF990854\n"
52  ".long loc_FF990814\n"
53 "loc_FF990814:\n"
54 
55  "BL sub_FF9908C8\n"
56  "B loc_FF990858\n"
57 "loc_FF99081C:\n"
58 
59  "BL unlock_optical_zoom\n"
60  "BL sub_FF990AAC\n"
61  "B loc_FF990858\n"
62 "loc_FF990824:\n"
63 
64  "BL sub_FF990F74_my\n" //-------------------->
65  "B loc_FF990858\n"
66 "loc_FF99082C:\n"
67 
68  "BL sub_FF991660\n"
69  "B loc_FF990858\n"
70 "loc_FF990834:\n"
71 
72  "BL sub_FF991244\n"
73  "B loc_FF990858\n"
74 "loc_FF99083C:\n"
75 
76  "BL sub_FF9917FC\n"
77  "B loc_FF990858\n"
78 "loc_FF990844:\n"
79 
80  "BL sub_FF991A2C\n"
81  "B loc_FF990858\n"
82 "loc_FF99084C:\n"
83 
84  "BL sub_FF9916E8\n"
85  "B loc_FF990858\n"
86 "loc_FF990854:\n"
87 
88  "BL sub_FF991294\n"
89 "loc_FF990858:\n"
90 
91  "LDR R1, [SP]\n"
92 "loc_FF99085C:\n"
93 
94  "LDR R3, =0x77100\n"
95  "STR R4, [R1]\n"
96  "LDR R0, [R3]\n"
97  "MOV R2, R4\n"
98  "BL sub_FF821810\n"
99  "B loc_FF9907AC\n"
100  );
101 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 12 der Datei movie_rec.c.

12  {
13  int i;
14  for (i=0;i<12;i++) {table1[i]=(def_table1[i]*a)/b; table2[i]=(def_table2[i]*a)/b;}
15 }

Variablen-Dokumentation

long CompressionRateTable[] ={0x60, 0x5D, 0x5A, 0x57, 0x54, 0x51, 0x4D, 0x48, 0x42, 0x3B, 0x32, 0x29, 0x22, 0x1D, 0x17, 0x14, 0x10, 0xE, 0xB, 9, 7, 6, 5, 4, 3, 2, 1}

Definiert in Zeile 17 der Datei movie_rec.c.

long def_table1[12] ={0x2000,0x38D,0x788,0x5800,0x9C5,0x14B8,0x10000,0x1C6A,0x3C45,0x20000,0x387A,0x7813}

Definiert in Zeile 6 der Datei movie_rec.c.

long def_table2[12] ={0x1CCD,-0x2E1,-0x579,0x4F33,-0x7EB,-0xF0C,0xE666,-0x170A,-0x2BC6,0x1CC39,-0x2F5B,-0x59F0}

Definiert in Zeile 8 der Datei movie_rec.c.

long table1[12]

Definiert in Zeile 10 der Datei movie_rec.c.

long table2[12]

Definiert in Zeile 10 der Datei movie_rec.c.

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.