CHDK_DE Vorschauversion  Trunk Rev. 5455
 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
 NOTE: this is not from ixus40! needs to be done! Mehr ...
 
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)  )

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

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

TODO! below is from sd400

Definiert in Zeile 34 der Datei movie_rec.c.

34  {
35  asm volatile(
36  "STMFD SP!, {R4,LR}\n"
37  "SUB SP, SP, #4\n"
38  "MOV R4, SP\n"
39  "B loc_FF936520\n"
40  "loc_FF936488:\n"
41  "LDR R3, =0x670F0\n"
42  "LDR R2, [R3]\n"
43  "CMP R2, #0\n"
44  "BNE loc_FF93650C\n"
45  "LDR R3, [R0]\n"
46  "SUB R3, R3, #1\n"
47  "CMP R3, #7\n"
48  "LDRLS PC, [PC,R3,LSL#2]\n"
49  "B loc_FF93650C\n"
50  ".long loc_FF9364CC\n"
51  ".long loc_FF9364D4\n"
52  ".long loc_FF9364EC\n"
53  ".long loc_FF9364DC\n"
54  ".long loc_FF9364F4\n"
55  ".long loc_FF9364E4\n"
56  ".long loc_FF936504\n"
57  ".long loc_FF9364FC\n"
58 
59  "loc_FF9364CC:\n"
60  "BL sub_FF93659C\n"
61  "B loc_FF936508\n"
62  "loc_FF9364D4:\n"
63  //"BL unlock_optical_zoom\n" //----> unset zoom NOTE: sd300 doesnt have this feature :(
64 
65  "BL sub_FF9367B4\n"
66  "B loc_FF936508\n"
67  "loc_FF9364DC:\n"
68  "BL sub_FF936B64_my\n"
69  "B loc_FF936508\n"
70  "loc_FF9364E4:\n"
71  "BL sub_FF936F10\n"
72  "B loc_FF936508\n"
73  "loc_FF9364EC:\n"
74  "BL sub_FF936DB8\n"
75  "B loc_FF936508\n"
76  "loc_FF9364F4:\n"
77  "BL sub_FF936FC8\n"
78  "B loc_FF936508\n"
79  "loc_FF9364FC:\n"
80  "BL sub_FF937064\n"
81  "B loc_FF936508\n"
82  "loc_FF936504:\n"
83  "BL sub_FF936E08\n"
84  "loc_FF936508:\n"
85  "LDR R1, [SP]\n"
86  "loc_FF93650C:\n"
87  "LDR R3, =0x67074\n"
88  "MOV R2, #0\n"
89  "STR R2, [R1]\n"
90  "LDR R0, [R3]\n"
91  "BL sub_FF822738\n" //PostMessageQueue
92  "loc_FF936520:\n"
93  "LDR R3, =0x67070\n"
94  "MOV R1, R4\n"
95  "LDR R0, [R3]\n"
96  "MOV R2, #0\n"
97  "BL sub_FF822320\n" //ReceiveMessageQueue
98  "LDR R0, [SP]\n"
99  "CMP R0, #0\n"
100  "MOV R1, R0\n"
101  "BNE loc_FF936488\n"
102  "LDR R3, =0x6706C\n"
103  "LDR R0, [R3]\n"
104  "BL sub_FF823144\n" //GiveSemaphore
105  "BL sub_FF823B44\n" //ExitTask
106  "ADD SP, SP, #4\n"
107  "LDMFD SP!, {R4,PC}\n"
108  );
109 }
void change_video_tables ( int  a,
int  b 
)

Definiert in Zeile 25 der Datei movie_rec.c.

25  {
26  int i;
27  for (i=0;i<56;i++) table1[i]=(def_table1[i]*a)/b;
28  for (i=0;i<12;i++) table2[i]=(def_table2[i]*a)/b;
29 }

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 31 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 14 der Datei movie_rec.c.

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

Definiert in Zeile 21 der Datei movie_rec.c.

long table1[56]

Definiert in Zeile 23 der Datei movie_rec.c.

long table2[12]

Definiert in Zeile 23 der Datei movie_rec.c.

int* video_mode = &conf.video_mode

Definiert in Zeile 12 der Datei movie_rec.c.

int* video_quality = &conf.video_quality

NOTE: this is not from ixus40! needs to be done!

this code completely copied from ../100k - no changes so i guess it does not work at all (see note below)

Definiert in Zeile 11 der Datei movie_rec.c.