CHDK_DE Vorschauversion  Trunk Rev. 5279
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
filewrite.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "../../../generic/filewrite.c"
+ Include-Abhängigkeitsdiagramm für filewrite.c:

gehe zum Quellcode dieser Datei

Datenstrukturen

struct  cam_ptp_data_chunk
 
struct  fwt_data_struct
 

Makrodefinitionen

#define MAX_CHUNKS_FOR_JPEG   7
 

Funktionen

void _LogCameraEvent (int id, const char *fmt,...)
 
void log_fwt_msg (fwt_data_struct *fwd)
 
void log_fwt_start (void)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 13 der Datei filewrite.c.

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

__MovieRecorder_c__100

__MovieRecorder_c__100

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 108 der Datei filewrite.c.

108  {
109 asm volatile (
110 // task_FileWrite 0xfc065dc7
111 " push {r3, r4, r5, r6, r7, lr}\n"
112 " ldr r6, =0x09200001\n"
113 " movw r7, #0x428\n"
114 " ldr r5, =0x00024cb8\n"
115 " adds r6, #0x12\n"
116 "loc_fc065dd2:\n"
117 " mov r1, sp\n"
118 " movs r2, #0\n"
119 " ldr r0, [r5, #0x10]\n"
120 " blx sub_fc2cf370\n" // j_ReceiveMessageQueue
121 " cbz r0, loc_fc065de8\n"
122 " movs r0, #0\n"
123 " mov r2, r7\n"
124 " ldr r1, =0xfc065efc\n" // *"dwFWrite.c"
125 " blx sub_fc2cf430\n" // j_DebugAssert
126 "loc_fc065de8:\n"
127 " ldr r0, [sp]\n"
128 "bl log_fwt_msg\n"
129 " ldr r0, [sp]\n"
130 " ldr r1, [r0]\n"
131 " cmp r1, #0xd\n"
132 " bhs loc_fc065dd2\n"
133 " tbb [pc, r1]\n" // (jumptable r1 13 elements)
134 "branchtable_fc065df4:\n"
135 " .byte((loc_fc065e36 - branchtable_fc065df4) / 2)\n" // (case 0)
136 " .byte((loc_fc065e36 - branchtable_fc065df4) / 2)\n" // (case 1)
137 " .byte((loc_fc065e36 - branchtable_fc065df4) / 2)\n" // (case 2)
138 " .byte((loc_fc065e36 - branchtable_fc065df4) / 2)\n" // (case 3)
139 " .byte((loc_fc065e36 - branchtable_fc065df4) / 2)\n" // (case 4)
140 " .byte((loc_fc065e36 - branchtable_fc065df4) / 2)\n" // (case 5)
141 " .byte((loc_fc065e36 - branchtable_fc065df4) / 2)\n" // (case 6)
142 " .byte((loc_fc065e3c - branchtable_fc065df4) / 2)\n" // (case 7)
143 " .byte((loc_fc065e02 - branchtable_fc065df4) / 2)\n" // (case 8)
144 " .byte((loc_fc065e14 - branchtable_fc065df4) / 2)\n" // (case 9)
145 " .byte((loc_fc065e30 - branchtable_fc065df4) / 2)\n" // (case 10)
146 " .byte((loc_fc065e08 - branchtable_fc065df4) / 2)\n" // (case 11)
147 " .byte((loc_fc065e0e - branchtable_fc065df4) / 2)\n" // (case 12)
148 ".align 1\n"
149 "loc_fc065e02:\n"
150 " bl sub_fc065fb6\n"
151 " b loc_fc065dd2\n"
152 "loc_fc065e08:\n"
153 " bl sub_fc066002\n"
154 " b loc_fc065dd2\n"
155 "loc_fc065e0e:\n"
156 " bl sub_fc065b7c_my\n"
157 " b loc_fc065dd2\n"
158 "loc_fc065e14:\n"
159 " ldr r1, [r0, #4]\n"
160 " movs r2, #0\n"
161 " mov r4, r0\n"
162 " ldr r0, [r5, #4]\n"
163 " bl _lseek\n" // -> fwt_lseek ?
164 " adds r0, r0, #1\n"
165 " bne loc_fc065dd2\n"
166 " movs r0, #7\n"
167 " mov r1, r4\n"
168 " str r6, [r4, #0x14]\n"
169 " bl sub_fc065b04\n"
170 " b loc_fc065dd2\n"
171 "loc_fc065e30:\n"
172 " bl sub_fc066056\n"
173 " b loc_fc065dd2\n"
174 "loc_fc065e36:\n"
175 " bl sub_fc0660ae_my\n"
176 " b loc_fc065dd2\n"
177 "loc_fc065e3c:\n"
178 " bl sub_fc065ca2_my\n"
179 " b loc_fc065dd2\n"
180 ".ltorg\n"
181  );
182 }
void _LogCameraEvent ( int  id,
const char *  fmt,
  ... 
)
void log_fwt_msg ( fwt_data_struct fwd)

Definiert in Zeile 91 der Datei filewrite.c.

92 {
93  int m=fwd->unkn1;
94  _LogCameraEvent(0x60,"fw m:%d o:0x%08x fs:0x%08x sf:0x%x",m,fwd->file_offset,fwd->maybe_full_size,fwd->maybe_seek_flag);
95  _LogCameraEvent(0x60,"fw %s",fwd->name);
96  if(m >= 0 && m <=6) {
97  _LogCameraEvent(0x60,"fw chunk adr:0x%08x l:0x%08x",fwd->pdc[m].address,fwd->pdc[m].length);
98  }
99  _LogCameraEvent(0x60,"fw u %08x %08x %08x %08x %08x %08x",fwd->unkn2,fwd->unkn3,fwd->unkn4,fwd->unkn5,fwd->unkn6);
100 }
void log_fwt_start ( void  )

Definiert in Zeile 102 der Datei filewrite.c.

103 {
104  _LogCameraEvent(0x60,"fw start");
105 }