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, =0x442 \n"
18 " LDR R7, =0x2710 \n"
19 " LDR R4, =0x5FC8 \n"
20 " MOV R6, #0 \n"
21 " MOV R5, #1 \n"
22
23 "loc_FF921120:\n"
24 " LDR R0, [R4, #0x18] \n"
25 " MOV R2, #0 \n"
26 " ADD R1, SP, #4 \n"
27 " BL sub_FF8269D4 /*_ReceiveMessageQueue*/ \n"
28 " LDR R0, [R4, #0x20] \n"
29 " CMP R0, #0 \n"
30 " BNE loc_FF9211F0 \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_FF9211F0 \n"
37 " B loc_FF9211A4 \n"
38 " B loc_FF9211C4 \n"
39 " B loc_FF9211D4 \n"
40 " B loc_FF9211DC \n"
41 " B loc_FF9211AC \n"
42 " B loc_FF9211E4 \n"
43 " B loc_FF9211B4 \n"
44 " B loc_FF9211F0 \n"
45 " B loc_FF9211EC \n"
46 " B loc_FF92117C \n"
47
48 "loc_FF92117C:\n"
49 " LDR R0, =0xFF920E2C \n"
50 " STR R6, [R4, #0x34] \n"
51 " STR R0, [R4, #0x9C] \n"
52 " LDR R0, =0xFF920454 \n"
53 " LDR R2, =0xFF920370 \n"
54 " LDR R1, =0x2CC28 \n"
55 " STR R6, [R4, #0x24] \n"
56 " BL sub_FF8B6290 \n"
57 " STR R5, [R4, #0x38] \n"
58 " B loc_FF9211F0 \n"
59
60 "loc_FF9211A4:\n"
61 " BL unlock_optical_zoom\n"
62 " BL sub_FF920F24 \n"
63 " B loc_FF9211F0 \n"
64
65 "loc_FF9211AC:\n"
66 " BL sub_FF920AD0 \n"
67 " LDR R0, =video_compression_rate \n"
68 " BL set_quality \n"
69 " B loc_FF9211F0 \n"
70
71 "loc_FF9211B4:\n"
72 " LDR R1, [R0, #0x18] \n"
73 " LDR R0, [R0, #4] \n"
74 " BL sub_FFA51CC4 \n"
75 " B loc_FF9211F0 \n"
76
77 "loc_FF9211C4:\n"
78 " LDR R0, [R4, #0x38] \n"
79 " CMP R0, #5 \n"
80 " STRNE R5, [R4, #0x28] \n"
81 " B loc_FF9211F0 \n"
82
83 "loc_FF9211D4:\n"
84 " BL sub_FF9207BC \n"
85 " B loc_FF9211F0 \n"
86
87 "loc_FF9211DC:\n"
88 " BL sub_FF9204A0 \n"
89 " B loc_FF9211F0 \n"
90
91 "loc_FF9211E4:\n"
92 " BL sub_FF9202FC \n"
93 " B loc_FF9211F0 \n"
94
95 "loc_FF9211EC:\n"
96 " BL sub_FF921358 \n"
97
98 "loc_FF9211F0:\n"
99 " LDR R1, [SP, #4] \n"
100 " LDR R3, =0xFF920160 /*'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_FF827328 /*_PostMessageQueueStrictly*/ \n"
106 " B loc_FF921120 \n"
107 );
108 }