This source file includes following definitions.
- change_video_tables
- set_quality
- movie_record_task
1
2
3
4 #include "conf.h"
5
6 void change_video_tables(__attribute__ ((unused))int a, __attribute__ ((unused))int b) {}
7
8 void set_quality(int *x){
9 if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
10 }
11
12
13
14 void __attribute__((naked,noinline)) movie_record_task() {
15 asm volatile (
16 " STMFD SP!, {R2-R8,LR} \n"
17 " LDR R8, =0x2710 \n"
18 " LDR R4, =0x7290 \n"
19 " MOV R7, #1 \n"
20 " LDR R6, =0xFF986D84 \n"
21 " MOV R5, #0 \n"
22
23 "loc_FF9870AC:\n"
24 " LDR R0, [R4, #0x24] \n"
25 " MOV R2, #0 \n"
26 " ADD R1, SP, #4 \n"
27 " BL sub_FF83A460 /*_ReceiveMessageQueue*/ \n"
28 " LDR R0, [R4, #0x2C] \n"
29 " CMP R0, #0 \n"
30 " LDRNE R0, [R4, #0xC] \n"
31 " CMPNE R0, #2 \n"
32 " LDRNE R0, [R4, #0x44] \n"
33 " CMPNE R0, #6 \n"
34 " BNE loc_FF9871C4 \n"
35 " LDR R0, [SP, #4] \n"
36 " LDR R1, [R0] \n"
37 " SUB R1, R1, #2 \n"
38 " CMP R1, #0xA \n"
39 " ADDLS PC, PC, R1, LSL#2 \n"
40 " B loc_FF9871C4 \n"
41 " B loc_FF987178 \n"
42 " B loc_FF987198 \n"
43 " B loc_FF9871A8 \n"
44 " B loc_FF9871B0 \n"
45 " B loc_FF987180 \n"
46 " B loc_FF9871B8 \n"
47 " B loc_FF987188 \n"
48 " B loc_FF9871C4 \n"
49 " B loc_FF9871C0 \n"
50 " B loc_FF987148 \n"
51 " B loc_FF98711C \n"
52
53 "loc_FF98711C:\n"
54 " STR R5, [R4, #0x40] \n"
55 " STR R5, [R4, #0x30] \n"
56 " STR R5, [R4, #0x34] \n"
57 " STRH R5, [R4, #6] \n"
58 " STR R6, [R4, #0xB4] \n"
59 " LDR R0, [R4, #0xC] \n"
60 " ADD R0, R0, #1 \n"
61 " STR R0, [R4, #0xC] \n"
62 " MOV R0, #6 \n"
63 " STR R0, [R4, #0x44] \n"
64 " B loc_FF987164 \n"
65
66 "loc_FF987148:\n"
67 " STR R5, [R4, #0x40] \n"
68 " STR R5, [R4, #0x30] \n"
69 " STR R6, [R4, #0xB4] \n"
70 " LDR R0, [R4, #0xC] \n"
71 " ADD R0, R0, #1 \n"
72 " STR R0, [R4, #0xC] \n"
73 " STR R7, [R4, #0x44] \n"
74
75 "loc_FF987164:\n"
76 " LDR R2, =0xFF985F9C \n"
77 " LDR R1, =0xB3E0C \n"
78 " LDR R0, =0xFF986098 \n"
79 " BL sub_FF8532D0 \n"
80 " B loc_FF9871C4 \n"
81
82 "loc_FF987178:\n"
83
84 " BL unlock_optical_zoom\n"
85
86 " BL sub_FF986EAC \n"
87 " B loc_FF9871C4 \n"
88
89 "loc_FF987180:\n"
90 " BL sub_FF9867EC \n"
91
92 " LDR R0, =video_compression_rate\n"
93 " BL set_quality\n"
94
95 " B loc_FF9871C4 \n"
96
97 "loc_FF987188:\n"
98 " LDR R1, [R0, #0x18] \n"
99 " LDR R0, [R0, #4] \n"
100 " BL sub_FFB00134 \n"
101 " B loc_FF9871C4 \n"
102
103 "loc_FF987198:\n"
104 " LDR R0, [R4, #0x44] \n"
105 " CMP R0, #5 \n"
106 " STRNE R7, [R4, #0x34] \n"
107 " B loc_FF9871C4 \n"
108
109 "loc_FF9871A8:\n"
110 " BL sub_FF986434 \n"
111 " B loc_FF9871C4 \n"
112
113 "loc_FF9871B0:\n"
114 " BL sub_FF9860E4 \n"
115 " B loc_FF9871C4 \n"
116
117 "loc_FF9871B8:\n"
118 " BL sub_FF985F28 \n"
119 " B loc_FF9871C4 \n"
120
121 "loc_FF9871C0:\n"
122 " BL sub_FF9875F4 \n"
123
124 "loc_FF9871C4:\n"
125 " LDR R1, [SP, #4] \n"
126 " MOV R3, #0x5F0 \n"
127 " STR R5, [R1] \n"
128 " STR R3, [SP] \n"
129 " LDR R0, [R4, #0x28] \n"
130 " LDR R3, =0xFF985D8C /*'MovieRecorder.c'*/ \n"
131 " MOV R2, R8 \n"
132 " BL sub_FF83ADB4 /*_PostMessageQueueStrictly*/ \n"
133 " B loc_FF9870AC \n"
134 );
135 }