CHDK_DE Vorschauversion  Trunk Rev. 5298
 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 R8, =0x332 \n"
27 " LDR R7, =0x2710 \n"
28 " LDR R4, =0x5068 \n"
29 " MOV R6, #0 \n"
30 " MOV R5, #1 \n"
31 
32 "loc_FFC47F74:\n"
33 " LDR R0, [R4, #0x18] \n"
34 " MOV R2, #0 \n"
35 " ADD R1, SP, #4 \n"
36 " BL sub_FFC1693C /*_ReceiveMessageQueue*/ \n"
37 " LDR R0, [R4, #0x20] \n"
38 " CMP R0, #0 \n"
39 " BNE loc_FFC48044 \n"
40 " LDR R0, [SP, #4] \n"
41 " LDR R1, [R0] \n"
42 " SUB R1, R1, #2 \n"
43 " CMP R1, #9 \n"
44 " ADDLS PC, PC, R1, LSL#2 \n"
45 " B loc_FFC48044 \n"
46 " B loc_FFC47FF8 \n"
47 " B loc_FFC48018 \n"
48 " B loc_FFC48028 \n"
49 " B loc_FFC48030 \n"
50 " B loc_FFC48000 \n"
51 " B loc_FFC48038 \n"
52 " B loc_FFC48008 \n"
53 " B loc_FFC48044 \n"
54 " B loc_FFC48040 \n"
55 " B loc_FFC47FD0 \n"
56 
57 "loc_FFC47FD0:\n"
58 " STR R6, [R4, #0x34] \n"
59 " LDR R0, =0xFFC47C58 \n"
60 " LDR R2, =0xFFC475F0 \n"
61 " LDR R1, =0x18918 \n"
62 " STR R0, [R4, #0xA0] \n"
63 " LDR R0, =0xFFC476D4 \n"
64 " STR R6, [R4, #0x24] \n"
65 " BL sub_FFCA1E2C \n"
66 " STR R5, [R4, #0x38] \n"
67 " B loc_FFC48044 \n"
68 
69 "loc_FFC47FF8:\n"
70 " BL unlock_optical_zoom\n" // added
71 " BL sub_FFC47D50 \n"
72 " B loc_FFC48044 \n"
73 
74 "loc_FFC48000:\n"
75 " BL sub_FFC47A58_my \n" // --> Patched. Old value = 0xFFC47A58.
76 " B loc_FFC48044 \n"
77 
78 "loc_FFC48008:\n"
79 " LDR R1, [R0, #0x10] \n"
80 " LDR R0, [R0, #4] \n"
81 " BL sub_FFD07A18 \n"
82 " B loc_FFC48044 \n"
83 
84 "loc_FFC48018:\n"
85 " LDR R0, [R4, #0x38] \n"
86 " CMP R0, #5 \n"
87 " STRNE R5, [R4, #0x28] \n"
88 " B loc_FFC48044 \n"
89 
90 "loc_FFC48028:\n"
91 " BL sub_FFC47864 \n"
92 " B loc_FFC48044 \n"
93 
94 "loc_FFC48030:\n"
95 " BL sub_FFC47720 \n"
96 " B loc_FFC48044 \n"
97 
98 "loc_FFC48038:\n"
99 " BL sub_FFC4757C \n"
100 " B loc_FFC48044 \n"
101 
102 "loc_FFC48040:\n"
103 " BL sub_FFC481AC \n"
104 
105 "loc_FFC48044:\n"
106 " LDR R1, [SP, #4] \n"
107 " LDR R3, =0xFFC473DC /*'MovieRecorder.c'*/ \n"
108 " STR R6, [R1] \n"
109 " STR R8, [SP] \n"
110 " LDR R0, [R4, #0x1C] \n"
111 " MOV R2, R7 \n"
112 " BL sub_FFC0BCD8 /*_PostMessageQueueStrictly*/ \n"
113 " B loc_FFC47F74 \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.