CHDK_DE Vorschauversion  Trunk Rev. 5549
 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 __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

int * video_quality = &conf.video_quality
 
int * video_mode = &conf.video_mode
 
long def_table1 [56]
 
long def_table2 [12] ={0xE666,0xACCD,0x4F33,0x1CCD,-0x170A,-0x1148,-0x7EB,-0x2E1,-0x2BC6,-0x20D5,-0xF0C,-0x579}
 
long table1 [56]
 
long table2 [12]
 
long CompressionRateTable [] ={0x60, 0x5D, 0x5A, 0x57, 0x54, 0x51, 0x4D, 0x48, 0x42, 0x3B, 0x32, 0x29, 0x22, 0x1D, 0x17, 0x14, 0x10, 0xE, 0xB, 9, 7, 6, 5, 4, 3, 2, 1}
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

*-------------------------------------------------------------------—

!!

IS_ERROR( hSoundHandle )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

Definiert in Zeile 26 der Datei movie_rec.c.

26  {
27  asm volatile(
28  "STMFD SP!, {R4,LR}\n"
29  "SUB SP, SP, #4\n"
30  "MOV R4, SP\n"
31  "B loc_FF9432F4\n"
32 "loc_FF943244:\n"
33  "LDR R3, =0x7CDA0\n"
34  "LDR R2, [R3]\n"
35  "CMP R2, #0\n"
36  "BNE loc_FF9432E0\n"
37  "SUB R3, R12, #1\n"
38  "CMP R3, #0xA\n"
39  "LDRLS PC, [PC,R3,LSL#2]\n"
40  "B loc_FF9432E0\n"
41  ".long loc_FF943290\n"
42  ".long loc_FF943298\n"
43  ".long loc_FF9432B0\n"
44  ".long loc_FF9432B8\n"
45  ".long loc_FF9432C0\n"
46  ".long loc_FF9432A0\n"
47  ".long loc_FF9432C8\n"
48  ".long loc_FF9432A8\n"
49  ".long loc_FF9432E0\n"
50  ".long loc_FF9432D8\n"
51  ".long loc_FF9432D0\n"
52 "loc_FF943290:\n"
53  "BL sub_FF943374\n"
54  "B loc_FF9432DC\n"
55 "loc_FF943298:\n"
56  "BL unlock_optical_zoom\n"
57  "BL sub_FF9435A8\n"
58  "B loc_FF9432DC\n"
59 "loc_FF9432A0:\n"
60  "BL sub_FF943A38_my\n" // redirect ---->
61  "B loc_FF9432DC\n"
62 "loc_FF9432A8:\n"
63  "BL sub_FF943E8C\n"
64  "B loc_FF9432DC\n"
65 "loc_FF9432B0:\n"
66  "BL sub_FF943CB0\n"
67  "B loc_FF9432DC\n"
68 "loc_FF9432B8:\n"
69  "BL sub_FF944098\n"
70  "B loc_FF9432DC\n"
71 "loc_FF9432C0:\n"
72  "BL sub_FF94425C\n"
73  "B loc_FF9432DC\n"
74 "loc_FF9432C8:\n"
75  "BL sub_FF943F4C\n"
76  "B loc_FF9432DC\n"
77 "loc_FF9432D0:\n"
78  "BL sub_FF94402C\n"
79  "B loc_FF9432DC\n"
80 "loc_FF9432D8:\n"
81  "BL sub_FF943D00\n"
82 "loc_FF9432DC:\n"
83  "LDR R1, [SP]\n"
84 "loc_FF9432E0:\n"
85  "LDR R3, =0x7CCD0\n"
86  "MOV R2, #0\n"
87  "STR R2, [R1]\n"
88  "LDR R0, [R3]\n"
89  "BL sub_FF820818\n" // PostMessageQueue
90 "loc_FF9432F4:\n"
91  "LDR R3, =0x7CCCC\n"
92  "MOV R1, R4\n"
93  "LDR R0, [R3]\n"
94  "MOV R2, #0\n"
95  "BL sub_FF820400\n" // ReceiveMessageQueue
96  "LDR R0, [SP]\n"
97  "LDR R12, [R0]\n"
98  "CMP R12, #0xC\n"
99  "MOV R1, R0\n"
100  "BNE loc_FF943244\n"
101  "LDR R3, =0x7CCC4\n"
102  "LDR R0, [R3]\n"
103  "BL sub_FF8211D4\n" // GiveSemaphore
104  "BL sub_FF82199C\n" // ExitTask
105  "ADD SP, SP, #4\n"
106  "LDMFD SP!, {R4,PC}\n"
107  );
108 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 17 der Datei movie_rec.c.

17  {
18  int i;
19  for (i=0;i<56;i++) table1[i]=(def_table1[i]*a)/b;
20  for (i=0;i<12;i++) table2[i]=(def_table2[i]*a)/b;
21 }

Variablen-Dokumentation

long CompressionRateTable[] ={0x60, 0x5D, 0x5A, 0x57, 0x54, 0x51, 0x4D, 0x48, 0x42, 0x3B, 0x32, 0x29, 0x22, 0x1D, 0x17, 0x14, 0x10, 0xE, 0xB, 9, 7, 6, 5, 4, 3, 2, 1}

Definiert in Zeile 23 der Datei movie_rec.c.

long def_table1[56]
Initialisierung:
={
0x10000,0xC000,0x5800, 0x2000, 0x1C6A, 0x1550,0x9C5, 0x38D, 0x3C45, 0x2D34, 0x14B8, 0x788, 0x5F60, 0x4788,
0x20C9, 0xBE1, 0x8661, 0x64C9, 0x2E31, 0x10CB,0xB21A, 0x8594, 0x3D39, 0x1642, 0xE249, 0xA9B8, 0x4DC9, 0x1C48,
0x117D2,0xD1DF,0x6030, 0x22F9, 0x153D5,0xFEE1,0x74D1, 0x2A79, 0x195F8,0x1307C,0x8B8D, 0x32AA, 0x1E01C,0x16817,
0xA509, 0x3C01,0x2328E,0x1A5ED,0xC160, 0x4637,0x28C99,0x1E975,0xE054, 0x5190, 0x2F08B,0x2346B,0x102AF,0x5E0E
}

Definiert in Zeile 6 der Datei movie_rec.c.

long def_table2[12] ={0xE666,0xACCD,0x4F33,0x1CCD,-0x170A,-0x1148,-0x7EB,-0x2E1,-0x2BC6,-0x20D5,-0xF0C,-0x579}

Definiert in Zeile 13 der Datei movie_rec.c.

long table1[56]

Definiert in Zeile 15 der Datei movie_rec.c.

long table2[12]

Definiert in Zeile 15 der Datei movie_rec.c.

int* video_mode = &conf.video_mode

Definiert in Zeile 4 der Datei movie_rec.c.

int* video_quality = &conf.video_quality

Definiert in Zeile 3 der Datei movie_rec.c.