CHDK_DE Vorschauversion  Trunk Rev. 5401
 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))
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 15 der Datei movie_rec.c.

15  {
16 asm volatile (
17 " STMFD SP!, {R2-R8,LR} \n"
18 " LDR R7, =0x2710 \n"
19 " LDR R4, =0x53E0 \n"
20 " MOV R6, #0 \n"
21 " MOV R5, #1 \n"
22 
23 "loc_FF862C20:\n"
24 " LDR R0, [R4, #0x18] \n"
25 " MOV R2, #0 \n"
26 " ADD R1, SP, #4 \n"
27 " BL sub_FF827D30 /*_ReceiveMessageQueue*/ \n"
28 " LDR R0, [R4, #0x20] \n"
29 " CMP R0, #0 \n"
30 " BNE loc_FF862CF0 \n"
31 " LDR R0, [SP, #4] \n"
32 " LDR R1, [R0] \n"
33 " SUB R1, R1, #2 \n"
34 " CMP R1, #9 \n"
35 " ADDLS PC, PC, R1, LSL#2 \n"
36 " B loc_FF862CF0 \n"
37 " B loc_FF862CA4 \n"
38 " B loc_FF862CC4 \n"
39 " B loc_FF862CD4 \n"
40 " B loc_FF862CDC \n"
41 " B loc_FF862CAC \n"
42 " B loc_FF862CE4 \n"
43 " B loc_FF862CB4 \n"
44 " B loc_FF862CF0 \n"
45 " B loc_FF862CEC \n"
46 " B loc_FF862C7C \n"
47 
48 "loc_FF862C7C:\n"
49 " LDR R0, =0xFF862924 \n"
50 " STR R6, [R4, #0x34] \n"
51 " STR R0, [R4, #0x9C] \n"
52 " LDR R0, =0xFF861FF4 \n"
53 " LDR R2, =0xFF861F10 \n"
54 " LDR R1, =0x1B800 \n"
55 " STR R6, [R4, #0x24] \n"
56 " BL sub_FF83C7A8 \n"
57 " STR R5, [R4, #0x38] \n"
58 " B loc_FF862CF0 \n"
59 
60 "loc_FF862CA4:\n"
61 " BL unlock_optical_zoom\n" // added to unlock the zoom
62 " BL sub_FF862A1C \n"
63 " B loc_FF862CF0 \n"
64 
65 "loc_FF862CAC:\n"
66 " BL sub_FF8625C8_my \n" // --> Patched. Old value = 0xFF8625C8.
67 " B loc_FF862CF0 \n"
68 
69 "loc_FF862CB4:\n"
70 " LDR R1, [R0, #0x10] \n"
71 " LDR R0, [R0, #4] \n"
72 " BL sub_FF942C0C \n"
73 " B loc_FF862CF0 \n"
74 
75 "loc_FF862CC4:\n"
76 " LDR R0, [R4, #0x38] \n"
77 " CMP R0, #5 \n"
78 " STRNE R5, [R4, #0x28] \n"
79 " B loc_FF862CF0 \n"
80 
81 "loc_FF862CD4:\n"
82 " BL sub_FF8622E8 \n"
83 " B loc_FF862CF0 \n"
84 
85 "loc_FF862CDC:\n"
86 " BL sub_FF862040 \n"
87 " B loc_FF862CF0 \n"
88 
89 "loc_FF862CE4:\n"
90 " BL sub_FF861E9C \n"
91 " B loc_FF862CF0 \n"
92 
93 "loc_FF862CEC:\n"
94 " BL sub_FF862E5C \n"
95 
96 "loc_FF862CF0:\n"
97 " LDR R1, [SP, #4] \n"
98 " MOV R3, #0x430 \n"
99 " STR R6, [R1] \n"
100 " STR R3, [SP] \n"
101 " LDR R0, [R4, #0x1C] \n"
102 " LDR R3, =0xFF861D00 /*'MovieRecorder.c'*/ \n"
103 " MOV R2, R7 \n"
104 " BL sub_FF828684 /*_PostMessageQueueStrictly*/ \n"
105 " B loc_FF862C20 \n"
106 );
107 }
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 }