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, =0x2710 \n"
18 " LDR R7, =0xFF9858C8 \n"
19 " LDR R4, =0x7898 \n"
20 " MOV R8, #1 \n"
21 " LDR R6, =0xFF986118 \n"
22 " MOV R5, #0 \n"
23
24 "loc_FF986748:\n"
25 " LDR R0, [R4, #0x24] \n"
26 " MOV R2, #0 \n"
27 " ADD R1, SP, #4 \n"
28 " BL sub_FF83AE20 /*_ReceiveMessageQueue*/ \n"
29 " LDR R0, [R4, #0x2C] \n"
30 " CMP R0, #0 \n"
31 " LDRNE R0, [R4, #0xC] \n"
32 " CMPNE R0, #2 \n"
33 " LDRNE R0, [R4, #0x44] \n"
34 " CMPNE R0, #6 \n"
35 " BNE loc_FF98686C \n"
36 " LDR R0, [SP, #4] \n"
37 " LDR R1, [R0] \n"
38 " SUB R1, R1, #2 \n"
39 " CMP R1, #0xA \n"
40 " ADDLS PC, PC, R1, LSL#2 \n"
41 " B loc_FF98686C \n"
42 " B loc_FF98681C \n"
43 " B loc_FF986840 \n"
44 " B loc_FF986850 \n"
45 " B loc_FF986858 \n"
46 " B loc_FF986824 \n"
47 " B loc_FF986860 \n"
48 " B loc_FF986830 \n"
49 " B loc_FF98686C \n"
50 " B loc_FF986868 \n"
51 " B loc_FF9867E8 \n"
52 " B loc_FF9867B8 \n"
53
54 "loc_FF9867B8:\n"
55 " STR R5, [R4, #0x40] \n"
56 " STR R5, [R4, #0x30] \n"
57 " STR R5, [R4, #0x34] \n"
58 " STRH R5, [R4, #6] \n"
59 " STR R6, [R4, #0xCC] \n"
60 " STR R7, [R4, #0xB4] \n"
61 " LDR R0, [R4, #0xC] \n"
62 " ADD R0, R0, #1 \n"
63 " STR R0, [R4, #0xC] \n"
64 " MOV R0, #6 \n"
65 " STR R0, [R4, #0x44] \n"
66 " B loc_FF986808 \n"
67
68 "loc_FF9867E8:\n"
69 " STR R5, [R4, #0x40] \n"
70 " STR R5, [R4, #0x30] \n"
71 " STR R6, [R4, #0xCC] \n"
72 " STR R7, [R4, #0xB4] \n"
73 " LDR R0, [R4, #0xC] \n"
74 " ADD R0, R0, #1 \n"
75 " STR R0, [R4, #0xC] \n"
76 " STR R8, [R4, #0x44] \n"
77
78 "loc_FF986808:\n"
79 " LDR R2, =0xFF9850A4 \n"
80 " LDR R1, =0xB0300 \n"
81 " LDR R0, =0xFF9851B8 \n"
82 " BL sub_FF8530AC \n"
83 " B loc_FF98686C \n"
84
85 "loc_FF98681C:\n"
86 " BL sub_FF985DF4 \n"
87 " B loc_FF98686C \n"
88
89 "loc_FF986824:\n"
90 " LDR R1, [R4, #0xCC] \n"
91 " BLX R1 \n"
92
93 " LDR R0, =video_compression_rate\n"
94 " BL set_quality\n"
95
96 " B loc_FF98686C \n"
97
98 "loc_FF986830:\n"
99 " LDR R1, [R0, #0x18] \n"
100 " LDR R0, [R0, #4] \n"
101 " BL sub_FFAD9C48 \n"
102 " B loc_FF98686C \n"
103
104 "loc_FF986840:\n"
105 " LDR R0, [R4, #0x44] \n"
106 " CMP R0, #5 \n"
107 " STRNE R8, [R4, #0x34] \n"
108 " B loc_FF98686C \n"
109
110 "loc_FF986850:\n"
111 " BL sub_FF985574 \n"
112 " B loc_FF98686C \n"
113
114 "loc_FF986858:\n"
115 " BL sub_FF985204 \n"
116 " B loc_FF98686C \n"
117
118 "loc_FF986860:\n"
119 " BL sub_FF985030 \n"
120 " B loc_FF98686C \n"
121
122 "loc_FF986868:\n"
123 " BL sub_FF986C60 \n"
124
125 "loc_FF98686C:\n"
126 " LDR R1, [SP, #4] \n"
127 " MOV R3, #0x5F0 \n"
128 " STR R5, [R1] \n"
129 " STR R3, [SP] \n"
130 " LDR R0, [R4, #0x28] \n"
131 " LDR R3, =0xFF984CFC /*'MovieRecorder.c'*/ \n"
132 " MOV R2, R9 \n"
133 " BL sub_FF83B774 /*_PostMessageQueueStrictly*/ \n"
134 " B loc_FF986748 \n"
135 );
136 }