CHDK_DE Vorschauversion  Trunk Rev. 5279
 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 set_quality (int *x)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

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

__MovieRecorder_c__100

__MovieRecorder_c__100

Definiert in Zeile 16 der Datei movie_rec.c.

16  {
17 asm volatile (
18 " STMFD SP!, {R2-R8,LR} \n"
19 " LDR R8, =0x442 \n"
20 " LDR R7, =0x2710 \n"
21 " LDR R4, =0x6588 \n"
22 " MOV R6, #0 \n"
23 " MOV R5, #1 \n"
24 
25 "loc_FF9382D0:\n"
26 " LDR R0, [R4, #0x18] \n"
27 " MOV R2, #0 \n"
28 " ADD R1, SP, #4 \n"
29 " BL sub_FF826D3C /*_ReceiveMessageQueue*/ \n"
30 " LDR R0, [R4, #0x20] \n"
31 " CMP R0, #0 \n"
32 " BNE loc_FF9383A0 \n"
33 " LDR R0, [SP, #4] \n"
34 " LDR R1, [R0] \n"
35 " SUB R1, R1, #2 \n"
36 " CMP R1, #9 \n"
37 " ADDLS PC, PC, R1, LSL#2 \n"
38 " B loc_FF9383A0 \n"
39 " B loc_FF938354 \n"
40 " B loc_FF938374 \n"
41 " B loc_FF938384 \n"
42 " B loc_FF93838C \n"
43 " B loc_FF93835C \n"
44 " B loc_FF938394 \n"
45 " B loc_FF938364 \n"
46 " B loc_FF9383A0 \n"
47 " B loc_FF93839C \n"
48 " B loc_FF93832C \n"
49 
50 "loc_FF93832C:\n"
51 " LDR R0, =0xFF937FCC \n"
52 " STR R6, [R4, #0x34] \n"
53 " STR R0, [R4, #0x9C] \n"
54 " LDR R0, =0xFF9375EC \n"
55 " LDR R2, =0xFF937508 \n"
56 " LDR R1, =0x4C6D8 \n"
57 " STR R6, [R4, #0x24] \n"
58 " BL sub_FF838FE4 \n"
59 " STR R5, [R4, #0x38] \n"
60 " B loc_FF9383A0 \n"
61 
62 "loc_FF938354:\n"
63 " BL unlock_optical_zoom\n" // --> inserted to unlock the zoom
64 " BL sub_FF9380D4 \n"
65 " B loc_FF9383A0 \n"
66 
67 "loc_FF93835C:\n"
68 " BL sub_FF937C70_my \n" // --> Patched. Old value = 0xFF937C70.
69 " B loc_FF9383A0 \n"
70 
71 "loc_FF938364:\n"
72 " LDR R1, [R0, #0x18] \n"
73 " LDR R0, [R0, #4] \n"
74 " BL sub_FFA63230 \n"
75 " B loc_FF9383A0 \n"
76 
77 "loc_FF938374:\n"
78 " LDR R0, [R4, #0x38] \n"
79 " CMP R0, #5 \n"
80 " STRNE R5, [R4, #0x28] \n"
81 " B loc_FF9383A0 \n"
82 
83 "loc_FF938384:\n"
84 " BL sub_FF937958 \n"
85 " B loc_FF9383A0 \n"
86 
87 "loc_FF93838C:\n"
88 " BL sub_FF937638 \n"
89 " B loc_FF9383A0 \n"
90 
91 "loc_FF938394:\n"
92 " BL sub_FF937494 \n"
93 " B loc_FF9383A0 \n"
94 
95 "loc_FF93839C:\n"
96 " BL sub_FF938508 \n"
97 
98 "loc_FF9383A0:\n"
99 " LDR R1, [SP, #4] \n"
100 " LDR R3, =0xFF9372F8 /*'MovieRecorder.c'*/ \n"
101 " STR R6, [R1] \n"
102 " STR R8, [SP] \n"
103 " LDR R0, [R4, #0x1C] \n"
104 " MOV R2, R7 \n"
105 " BL sub_FF827690 /*_PostMessageQueueStrictly*/ \n"
106 " B loc_FF9382D0 \n"
107 );
108 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 6 der Datei movie_rec.c.

6  {
7 }
void set_quality ( int *  x)

Definiert in Zeile 9 der Datei movie_rec.c.

9  { // -17 highest; +12 lowest
10  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
11 }