CHDK_DE Vorschauversion  Trunk Rev. 5163
 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_table [24]
 
long table [24]
 
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 23 der Datei movie_rec.c.

23  {
24 asm volatile (
25 " STMFD SP!, {R2-R8,LR} \n"
26 " LDR R7, =0x2710 \n"
27 " LDR R4, =0x55F8 \n"
28 " MOV R6, #0 \n"
29 " MOV R5, #1 \n"
30 
31 "loc_FFCF82E8:\n"
32 " LDR R0, [R4, #0x18] \n"
33 " MOV R2, #0 \n"
34 " ADD R1, SP, #4 \n"
35 " BL sub_FFC16370 /*_ReceiveMessageQueue*/ \n"
36 " LDR R0, [R4, #0x20] \n"
37 " CMP R0, #0 \n"
38 " BNE loc_FFCF83B8 \n"
39 " LDR R0, [SP, #4] \n"
40 " LDR R1, [R0] \n"
41 " SUB R1, R1, #2 \n"
42 " CMP R1, #9 \n"
43 " ADDLS PC, PC, R1, LSL#2 \n"
44 " B loc_FFCF83B8 \n"
45 " B loc_FFCF836C \n"
46 " B loc_FFCF838C \n"
47 " B loc_FFCF839C \n"
48 " B loc_FFCF83A4 \n"
49 " B loc_FFCF8374 \n"
50 " B loc_FFCF83AC \n"
51 " B loc_FFCF837C \n"
52 " B loc_FFCF83B8 \n"
53 " B loc_FFCF83B4 \n"
54 " B loc_FFCF8344 \n"
55 
56 "loc_FFCF8344:\n"
57 " LDR R0, =0xFFCF7FE0 \n"
58 " STR R6, [R4, #0x34] \n"
59 " STR R0, [R4, #0xA0] \n"
60 " LDR R0, =0xFFCF7A64 \n"
61 " LDR R2, =0xFFCF7980 \n"
62 " LDR R1, =0x29710 \n"
63 " STR R6, [R4, #0x24] \n"
64 " BL sub_FFC9548C \n"
65 " STR R5, [R4, #0x38] \n"
66 " B loc_FFCF83B8 \n"
67 
68 "loc_FFCF836C:\n"
69 " BL unlock_optical_zoom\n" // added
70 " BL sub_FFCF80D8 \n"
71 " B loc_FFCF83B8 \n"
72 
73 "loc_FFCF8374:\n"
74 " BL sub_FFCF7DE0_my \n" // --> Patched. Old value = 0xFFCF7DE0.
75 " B loc_FFCF83B8 \n"
76 
77 "loc_FFCF837C:\n"
78 " LDR R1, [R0, #0x10] \n"
79 " LDR R0, [R0, #4] \n"
80 " BL sub_FFDF09A4 \n"
81 " B loc_FFCF83B8 \n"
82 
83 "loc_FFCF838C:\n"
84 " LDR R0, [R4, #0x38] \n"
85 " CMP R0, #5 \n"
86 " STRNE R5, [R4, #0x28] \n"
87 " B loc_FFCF83B8 \n"
88 
89 "loc_FFCF839C:\n"
90 " BL sub_FFCF7BEC \n"
91 " B loc_FFCF83B8 \n"
92 
93 "loc_FFCF83A4:\n"
94 " BL sub_FFCF7AB0 \n"
95 " B loc_FFCF83B8 \n"
96 
97 "loc_FFCF83AC:\n"
98 " BL sub_FFCF790C \n"
99 " B loc_FFCF83B8 \n"
100 
101 "loc_FFCF83B4:\n"
102 " BL sub_FFCF8524 \n"
103 
104 "loc_FFCF83B8:\n"
105 " LDR R1, [SP, #4] \n"
106 " MOV R3, #0x330 \n"
107 " STR R6, [R1] \n"
108 " STR R3, [SP] \n"
109 " LDR R0, [R4, #0x1C] \n"
110 " LDR R3, =0xFFCF776C /*'MovieRecorder.c'*/ \n"
111 " MOV R2, R7 \n"
112 " BL sub_FFC16CC4 /*_PostMessageQueueStrictly*/ \n"
113 " B loc_FFCF82E8 \n"
114 );
115 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 14 der Datei movie_rec.c.

14  {
15  int i;
16  for (i=0;i<24;i++) table[i]=(def_table[i]*a)/b;
17 }

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

long def_table[24]
Initialisierung:
={0x2000, 0x38D, 0x788, 0x5800, 0x9C5, 0x14B8, 0x10000, 0x1C6A, 0x3C45, 0x8000, 0xE35, 0x1E23,
0x1CCD, -0x2E1, -0x579, 0x4F33, -0x7EB, -0xF0C, 0xE666, -0x170A, -0x2BC6, 0x7333, -0xB85, -0x15E3}

Definiert in Zeile 9 der Datei movie_rec.c.

long table[24]

Definiert in Zeile 12 der Datei movie_rec.c.

int* video_mode = &conf.video_mode

Definiert in Zeile 7 der Datei movie_rec.c.

int* video_quality = &conf.video_quality

Definiert in Zeile 6 der Datei movie_rec.c.