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_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)  )

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

!!

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

23  {
24 asm volatile (
25 " STMFD SP!, {R2-R8,LR} \n"
26 " LDR R8, =0x32B \n"
27 " LDR R7, =0x2710 \n"
28 " LDR R4, =0x5368 \n"
29 " MOV R6, #0 \n"
30 " MOV R5, #1 \n"
31 
32 "loc_FF859E40:\n"
33 " LDR R0, [R4, #0x1C] \n"
34 " MOV R2, #0 \n"
35 " ADD R1, SP, #4 \n"
36 " BL sub_FF827E54 /*_ReceiveMessageQueue*/ \n"
37 " LDR R0, [R4, #0x24] \n"
38 " CMP R0, #0 \n"
39 " BNE loc_FF859F10 \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_FF859F10 \n"
46 " B loc_FF859EC4 \n"
47 " B loc_FF859EE4 \n"
48 " B loc_FF859EF4 \n"
49 " B loc_FF859EFC \n"
50 " B loc_FF859ECC \n"
51 " B loc_FF859F04 \n"
52 " B loc_FF859ED4 \n"
53 " B loc_FF859F10 \n"
54 " B loc_FF859F0C \n"
55 " B loc_FF859E9C \n"
56 
57 "loc_FF859E9C:\n"
58 " STR R6, [R4, #0x38] \n"
59 " LDR R0, =0xFF859AFC \n"
60 " LDR R2, =0xFF85942C \n"
61 " LDR R1, =0x1979C \n"
62 " STR R0, [R4, #0xA4] \n"
63 " LDR R0, =0xFF859510 \n"
64 " STR R6, [R4, #0x28] \n"
65 " BL sub_FF8C5714 \n"
66 " STR R5, [R4, #0x3C] \n"
67 " B loc_FF859F10 \n"
68 
69 "loc_FF859EC4:\n"
70 " BL unlock_optical_zoom\n"
71 " BL sub_FF859BF4 \n"
72 " B loc_FF859F10 \n"
73 
74 "loc_FF859ECC:\n"
75 " BL sub_FF8598C0_my \n" // --> Patched. Old value = 0xFF8598C0.
76 " B loc_FF859F10 \n"
77 
78 "loc_FF859ED4:\n"
79 " LDR R1, [R0, #0x10] \n"
80 " LDR R0, [R0, #4] \n"
81 " BL sub_FF935104 \n"
82 " B loc_FF859F10 \n"
83 
84 "loc_FF859EE4:\n"
85 " LDR R0, [R4, #0x3C] \n"
86 " CMP R0, #5 \n"
87 " STRNE R5, [R4, #0x2C] \n"
88 " B loc_FF859F10 \n"
89 
90 "loc_FF859EF4:\n"
91 " BL sub_FF8596C4 \n"
92 " B loc_FF859F10 \n"
93 
94 "loc_FF859EFC:\n"
95 " BL sub_FF85955C \n"
96 " B loc_FF859F10 \n"
97 
98 "loc_FF859F04:\n"
99 " BL sub_FF8593B8 \n"
100 " B loc_FF859F10 \n"
101 
102 "loc_FF859F0C:\n"
103 " BL sub_FF85A078 \n"
104 
105 "loc_FF859F10:\n"
106 " LDR R1, [SP, #4] \n"
107 " LDR R3, =0xFF8591BC /*'MovieRecorder.c'*/ \n"
108 " STR R6, [R1] \n"
109 " STR R8, [SP] \n"
110 " LDR R0, [R4, #0x20] \n"
111 " MOV R2, R7 \n"
112 " BL sub_FF81BCF8 /*_PostMessageQueueStrictly*/ \n"
113 " B loc_FF859E40 \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.