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))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

int * video_quality = &conf.video_quality
 
int * video_mode = &conf.video_mode
 
long def_table1 [56]
 
long def_table2 [12] ={0xE666,0xACCD,0x4F33,0x1CCD,-0x170A,-0x1148,-0x7EB,-0x2E1,-0x2BC6,-0x20D5,-0xF0C,-0x579}
 
long table1 [56]
 
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)  )

*-------------------------------------------------------------------—

!!

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

Definiert in Zeile 26 der Datei movie_rec.c.

26  {
27  asm volatile(
28  "STMFD SP!, {R4,LR}\n"
29  "SUB SP, SP, #4\n"
30  "MOV R4, SP\n"
31  "B loc_FF947234\n"
32 "loc_FF947184:\n"
33  "LDR R3, =0x6F668\n"
34  "LDR R2, [R3]\n"
35  "CMP R2, #0\n"
36  "BNE loc_FF947220\n"
37  "SUB R3, R12, #1\n"
38  "CMP R3, #0xA\n"
39  "LDRLS PC, [PC,R3,LSL#2]\n"
40  "B loc_FF947220\n"
41  ".long loc_FF9471D0\n"
42  ".long loc_FF9471D8\n"
43  ".long loc_FF9471F0\n"
44  ".long loc_FF9471F8\n"
45  ".long loc_FF947200\n"
46  ".long loc_FF9471E0\n"
47  ".long loc_FF947208\n"
48  ".long loc_FF9471E8\n"
49  ".long loc_FF947220\n"
50  ".long loc_FF947218\n"
51  ".long loc_FF947210\n"
52 "loc_FF9471D0:\n"
53 
54  "BL sub_FF9472B4\n"
55  "B loc_FF94721C\n"
56 "loc_FF9471D8:\n"
57 
58  "BL sub_FF9474E8\n"
59  "BL unlock_optical_zoom\n"
60  "B loc_FF94721C\n"
61 "loc_FF9471E0:\n"
62 
63  "BL sub_FF947874_my\n" //--------------------->
64  "B loc_FF94721C\n"
65 "loc_FF9471E8:\n"
66 
67  "BL sub_FF947CF8\n"
68  "B loc_FF94721C\n"
69 "loc_FF9471F0:\n"
70 
71  "BL sub_FF947ADC\n"
72  "BL sub_FF94EFF4\n" // + (UnlockAF)
73  "B loc_FF94721C\n"
74 "loc_FF9471F8:\n"
75 
76  "BL sub_FF947F04\n"
77  "B loc_FF94721C\n"
78 "loc_FF947200:\n"
79 
80  "BL sub_FF9480C8\n"
81  "B loc_FF94721C\n"
82 "loc_FF947208:\n"
83 
84  "BL sub_FF947DB8\n"
85  "B loc_FF94721C\n"
86 "loc_FF947210:\n"
87 
88  "BL sub_FF947E98\n"
89  "B loc_FF94721C\n"
90 "loc_FF947218:\n"
91 
92  "BL sub_FF947B2C\n"
93 "loc_FF94721C:\n"
94 
95  "LDR R1, [SP]\n"
96 "loc_FF947220:\n"
97 
98  "LDR R3, =0x6F598\n"
99  "MOV R2, #0\n"
100  "STR R2, [R1]\n"
101  "LDR R0, [R3]\n"
102  "BL sub_FF8209C0\n"
103 "loc_FF947234:\n"
104  "LDR R3, =0x6F594\n"
105  "MOV R1, R4\n"
106  "LDR R0, [R3]\n"
107  "MOV R2, #0\n"
108  "BL sub_FF8205A8\n"
109  "LDR R0, [SP]\n"
110  "LDR R12, [R0]\n"
111  "CMP R12, #0xC\n"
112  "MOV R1, R0\n"
113  "BNE loc_FF947184\n"
114  "LDR R3, =0x6F58C\n"
115  "LDR R0, [R3]\n"
116  "BL sub_FF8213C8\n"
117  "BL sub_FF821DD0\n"
118  "ADD SP, SP, #4\n"
119  "LDMFD SP!, {R4,PC}\n"
120 
121  );
122 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 17 der Datei movie_rec.c.

17  {
18  int i;
19  for (i=0;i<56;i++) table1[i]=(def_table1[i]*a)/b;
20  for (i=0;i<12;i++) table2[i]=(def_table2[i]*a)/b;
21 }

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

long def_table1[56]
Initialisierung:
={
0x10000,0xC000,0x5800, 0x2000, 0x1C6A, 0x1550,0x9C5, 0x38D, 0x3C45, 0x2D34, 0x14B8, 0x788, 0x5F60, 0x4788,
0x20C9, 0xBE1, 0x8661, 0x64C9, 0x2E31, 0x10CB,0xB21A, 0x8594, 0x3D39, 0x1642, 0xE249, 0xA9B8, 0x4DC9, 0x1C48,
0x117D2,0xD1DF,0x6030, 0x22F9, 0x153D5,0xFEE1,0x74D1, 0x2A79, 0x195F8,0x1307C,0x8B8D, 0x32AA, 0x1E01C,0x16817,
0xA509, 0x3C01,0x2328E,0x1A5ED,0xC160, 0x4637,0x28C99,0x1E975,0xE054, 0x5190, 0x2F08B,0x2346B,0x102AF,0x5E0E
}

Definiert in Zeile 6 der Datei movie_rec.c.

long def_table2[12] ={0xE666,0xACCD,0x4F33,0x1CCD,-0x170A,-0x1148,-0x7EB,-0x2E1,-0x2BC6,-0x20D5,-0xF0C,-0x579}

Definiert in Zeile 13 der Datei movie_rec.c.

long table1[56]

Definiert in Zeile 15 der Datei movie_rec.c.

long table2[12]

Definiert in Zeile 15 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.