CHDK_DE Vorschauversion  Trunk Rev. 5426
 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 12 der Datei movie_rec.c.

12  {
13 asm volatile (
14  "STMFD SP!, {R2-R10,LR}\n"
15  "LDR R6, =0xFF95ABA4\n"
16  "LDR R7, =0xFF95B0D0\n" //This function was used to take values for set_quality -->
17  "LDR R4, =0x6318\n"
18  "LDR R9, =0x69B\n"
19  "LDR R10, =0x2710\n"
20  "MOV R8, #1\n"
21  "MOV R5, #0\n"
22 "loc_FF95B72C:\n"
23  "LDR R0, [R4, #0x24]\n"
24  "MOV R2, #0\n"
25  "ADD R1, SP, #4\n"
26  "BL sub_003F7218\n"
27  "LDR R0, [R4, #0x2C]\n"
28  "CMP R0, #0\n"
29  "LDRNE R0, [R4, #0xC]\n"
30  "CMPNE R0, #2\n"
31  "LDRNE R0, [R4, #0x44]\n"
32  "CMPNE R0, #6\n"
33  "BNE loc_FF95B850\n"
34  "LDR R0, [SP, #4]\n"
35  "LDR R1, [R0]\n"
36  "SUB R1, R1, #2\n"
37  "CMP R1, #0xB\n"
38  "ADDCC PC, PC, R1, LSL #2\n"
39  "B loc_FF95B850\n"
40  "B loc_FF95B800\n" //(01)
41  "B loc_FF95B824\n" //(02)
42  "B loc_FF95B834\n" //(03)
43  "B loc_FF95B83C\n" //(04)
44  "B loc_FF95B808\n" //(05)
45  "B loc_FF95B844\n" //(06)
46  "B loc_FF95B814\n" //(07)
47  "B loc_FF95B850\n" //(08)
48  "B loc_FF95B84C\n" //(09)
49  "B loc_FF95B7CC\n" //(10)
50  "B loc_FF95B79C\n" //(11)
51 "loc_FF95B79C:\n" //Jump Table entry 11
52  "STR R5, [R4, #0x40]\n"
53  "STR R5, [R4, #0x30]\n"
54  "STR R5, [R4, #0x34]\n"
55  "STRH R5, [R4, #6]\n"
56  "STR R6, [R4, #0xB4]\n"
57  "STR R7, [R4, #0xD0]\n"
58  "LDR R0, [R4, #0xC]\n"
59  "ADD R0, R0, #1\n"
60  "STR R0, [R4, #0xC]\n"
61  "MOV R0, #6\n"
62  "STR R0, [R4, #0x44]\n"
63  "B loc_FF95B7EC\n"
64 "loc_FF95B7CC:\n" //Jump Table entry 10
65  "STR R5, [R4, #0x40]\n"
66  "STR R5, [R4, #0x30]\n"
67  "STR R6, [R4, #0xB4]\n"
68  "STR R7, [R4, #0xD0]\n"
69  "LDR R0, [R4, #0xC]\n"
70  "ADD R0, R0, #1\n"
71  "STR R0, [R4, #0xC]\n"
72  "STR R8, [R4, #0x44]\n"
73 "loc_FF95B7EC:\n"
74  "LDR R2, =0xFF95A304\n"
75  "LDR R1, =0xAD018\n"
76  "LDR R0, =0xFF95A418\n"
77  "BL sub_FF84B05C\n"
78  "B loc_FF95B850\n"
79 "loc_FF95B800:\n" //Jump Table entry 01
80  "BL unlock_optical_zoom \n" //added
81  "BL sub_FF95AD04\n"
82  "B loc_FF95B850\n"
83 "loc_FF95B808:\n" //Jump Table entry 05
84  "LDR R1, [R4, #0xD0]\n"
85  "BLX R1\n"
86 //begin patch
87  "LDR R0, =0x639C \n" // added, 0x63A0-0x4 taken from "loc_FF95B5F4" see commented function below.
88  "BL set_quality \n" // added
89 //end patch
90  "B loc_FF95B850\n"
91 "loc_FF95B814:\n" //Jump Table entry 07
92  "LDR R1, [R0, #0x18]\n"
93  "LDR R0, [R0, #4]\n"
94  "BL sub_FFA6B050\n"
95  "B loc_FF95B850\n"
96 "loc_FF95B824:\n" //Jump Table entry 02
97  "LDR R0, [R4, #0x44]\n"
98  "CMP R0, #5\n"
99  "STRNE R8, [R4, #0x34]\n"
100  "B loc_FF95B850\n"
101 "loc_FF95B834:\n" //Jump Table entry 03
102  "BL sub_FF95A804\n"
103  "B loc_FF95B850\n"
104 "loc_FF95B83C:\n" //Jump Table entry 04
105  "BL sub_FF95A464\n"
106  "B loc_FF95B850\n"
107 "loc_FF95B844:\n" //Jump Table entry 06
108  "BL sub_FF95A290\n"
109  "B loc_FF95B850\n"
110 "loc_FF95B84C:\n" //Jump Table entry 09
111  "BL sub_FF95BD28\n"
112 "loc_FF95B850:\n"
113  "LDR R1, [SP, #4]\n"
114  "LDR R3, =0xFF959FF0\n"
115  "STR R5, [R1]\n"
116  "STR R9, [SP]\n"
117  "LDR R0, [R4, #0x28]\n"
118  "MOV R2, R10\n"
119  "BL sub_003F7B90\n"
120  "B loc_FF95B72C\n"
121  );
122 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 3 der Datei movie_rec.c.

3 {}
void set_quality ( int *  x)

Definiert in Zeile 5 der Datei movie_rec.c.

5  { // -17 highest; +12 lowest
6  if (conf.video_mode)
7  *x=12-((conf.video_quality-1)*(12+17)/(99-1));
8 }