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-R10,LR} \n"
17 " LDR R9, =0x5AC \n"
18 " LDR R8, =0x2710 \n"
19 " LDR R4, =0x34E0 \n"
20 " LDR R7, =0xFF882FB0 \n"
21 " MOV R6, #0 \n"
22 " MOV R5, #1 \n"
23
24 "loc_FF883368:\n"
25 " LDR R0, [R4, #0x24] \n"
26 " MOV R2, #0 \n"
27 " ADD R1, SP, #4 \n"
28 " BL sub_FF83A4C8 /*_ReceiveMessageQueue*/ \n"
29 " LDR R2, =0xFF881594 /*'MovieRecorder.c'*/ \n"
30 " LDR R0, [R4, #0xD0] \n"
31 " MOV R3, R9 \n"
32 " MOV R1, R8 \n"
33 " BL sub_FF83ADC4 /*_TakeSemaphoreStrictly*/ \n"
34 " LDR R0, [R4, #0x2C] \n"
35 " CMP R0, #0 \n"
36 " LDRNE R0, [R4, #0xC] \n"
37 " CMPNE R0, #2 \n"
38 " LDRNE R0, [R4, #0x44] \n"
39 " CMPNE R0, #6 \n"
40 " BNE loc_FF8834B0 \n"
41 " LDR R0, [SP, #4] \n"
42 " LDR R1, [R0] \n"
43 " SUB R1, R1, #2 \n"
44 " CMP R1, #0xC \n"
45 " ADDLS PC, PC, R1, LSL#2 \n"
46 " B loc_FF8834B0 \n"
47 " B loc_FF883458 \n"
48 " B loc_FF883470 \n"
49 " B loc_FF883480 \n"
50 " B loc_FF883488 \n"
51 " B loc_FF883460 \n"
52 " B loc_FF883490 \n"
53 " B loc_FF883468 \n"
54 " B loc_FF8834B0 \n"
55 " B loc_FF8834A0 \n"
56 " B loc_FF8834A8 \n"
57 " B loc_FF883498 \n"
58 " B loc_FF883420 \n"
59 " B loc_FF8833F4 \n"
60
61 "loc_FF8833F4:\n"
62 " STR R6, [R4, #0x40] \n"
63 " STR R6, [R4, #0x30] \n"
64 " STR R6, [R4, #0x34] \n"
65 " STRH R6, [R4, #6] \n"
66 " STR R7, [R4, #0xB4] \n"
67 " LDR R0, [R4, #0xC] \n"
68 " ADD R0, R0, #1 \n"
69 " STR R0, [R4, #0xC] \n"
70 " MOV R0, #6 \n"
71 " STR R0, [R4, #0x44] \n"
72 " B loc_FF883444 \n"
73
74 "loc_FF883420:\n"
75 " LDR R0, =0xFF881AD0 \n"
76 " STR R6, [R4, #0x40] \n"
77 " STR R0, [R4, #0xBC] \n"
78 " STR R6, [R4, #0x30] \n"
79 " STR R7, [R4, #0xB4] \n"
80 " LDR R0, [R4, #0xC] \n"
81 " ADD R0, R0, #1 \n"
82 " STR R0, [R4, #0xC] \n"
83 " STR R5, [R4, #0x44] \n"
84
85 "loc_FF883444:\n"
86 " LDR R2, =0xFF881AD4 \n"
87 " LDR R1, =0x3B7E8 \n"
88 " LDR R0, =0xFF881BFC \n"
89 " BL sub_FF852E4C \n"
90 " B loc_FF8834B0 \n"
91
92 "loc_FF883458:\n"
93 " BL sub_FF883108 \n"
94 " B loc_FF8834B0 \n"
95
96 "loc_FF883460:\n"
97 " BL sub_FF8829C0 \n"
98
99 " LDR R0, =video_compression_rate\n"
100 " BL set_quality\n"
101
102 " B loc_FF8834B0 \n"
103
104 "loc_FF883468:\n"
105 " BL sub_FF8839C8 \n"
106 " B loc_FF8834B0 \n"
107
108 "loc_FF883470:\n"
109 " LDR R0, [R4, #0x44] \n"
110 " CMP R0, #5 \n"
111 " STRNE R5, [R4, #0x34] \n"
112 " B loc_FF8834B0 \n"
113
114 "loc_FF883480:\n"
115 " BL sub_FF882660 \n"
116 " B loc_FF8834B0 \n"
117
118 "loc_FF883488:\n"
119 " BL sub_FF8822DC \n"
120 " B loc_FF8834B0 \n"
121
122 "loc_FF883490:\n"
123 " BL sub_FF881A5C \n"
124 " B loc_FF8834B0 \n"
125
126 "loc_FF883498:\n"
127 " BL sub_FF88391C \n"
128 " B loc_FF8834B0 \n"
129
130 "loc_FF8834A0:\n"
131 " BL sub_FF8821A0 \n"
132 " B loc_FF8834B0 \n"
133
134 "loc_FF8834A8:\n"
135 " BL sub_FF882084 \n"
136 " STR R5, [R4, #0xF8] \n"
137
138 "loc_FF8834B0:\n"
139 " LDR R1, [SP, #4] \n"
140 " MOV R3, #0x5F0 \n"
141 " STR R6, [R1] \n"
142 " STR R3, [SP] \n"
143 " LDR R0, [R4, #0x28] \n"
144 " LDR R3, =0xFF881594 /*'MovieRecorder.c'*/ \n"
145 " MOV R2, R8 \n"
146 " BL sub_FF83AE1C /*_PostMessageQueueStrictly*/ \n"
147 " LDR R0, [R4, #0xD0] \n"
148 " BL _GiveSemaphore \n"
149 " B loc_FF883368 \n"
150 );
151 }