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

Makro-Dokumentation

#define MAX_CHUNKS_FOR_JPEG   7

Definiert in Zeile 12 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 72 der Datei filewrite.c.

72  {
73 asm volatile (
74 " push {r3, r4, r5, r6, r7, lr}\n"
75 #ifdef FILEWRITE_DEBUG_LOG
76 "bl log_fwt_start\n"
77 #endif
78 " ldr r6, =0x09200001\n"
79 " movw r7, #0x477\n"
80 " ldr r5, =0x0002008c\n"
81 " adds r6, #0x12\n"
82 "loc_fc3f7ca4:\n"
83 " mov r1, sp\n"
84 " movs r2, #0\n"
85 " ldr r0, [r5, #0x14]\n"
86 " blx sub_fc2c7ca8\n" // j_ReceiveMessageQueue
87 " cbz r0, loc_fc3f7cba\n"
88 " movs r0, #0\n"
89 " mov r2, r7\n"
90 " ldr r1, =0xfc3f7d64\n" // *"dwFWrite.c"
91 " blx sub_fc2c7de8\n" // j_DebugAssert
92 "loc_fc3f7cba:\n"
93 #ifdef FILEWRITE_DEBUG_LOG
94 "ldr r0, [sp]\n"
95 "bl log_fwt_msg\n"
96 #endif
97 " ldr r0, [sp]\n"
98 " ldr r1, [r0]\n"
99 " cmp r1, #0xd\n"
100 " bhs loc_fc3f7ca4\n"
101 " tbb [pc, r1]\n" // (jumptable r1 13 elements)
102 "branchtable_fc3f7cc6:\n"
103 " .byte((loc_fc3f7d08 - branchtable_fc3f7cc6) / 2)\n" // (case 0)
104 " .byte((loc_fc3f7d08 - branchtable_fc3f7cc6) / 2)\n" // (case 1)
105 " .byte((loc_fc3f7d08 - branchtable_fc3f7cc6) / 2)\n" // (case 2)
106 " .byte((loc_fc3f7d08 - branchtable_fc3f7cc6) / 2)\n" // (case 3)
107 " .byte((loc_fc3f7d08 - branchtable_fc3f7cc6) / 2)\n" // (case 4)
108 " .byte((loc_fc3f7d08 - branchtable_fc3f7cc6) / 2)\n" // (case 5)
109 " .byte((loc_fc3f7d08 - branchtable_fc3f7cc6) / 2)\n" // (case 6)
110 " .byte((loc_fc3f7d0e - branchtable_fc3f7cc6) / 2)\n" // (case 7)
111 " .byte((loc_fc3f7cd4 - branchtable_fc3f7cc6) / 2)\n" // (case 8)
112 " .byte((loc_fc3f7ce6 - branchtable_fc3f7cc6) / 2)\n" // (case 9)
113 " .byte((loc_fc3f7d02 - branchtable_fc3f7cc6) / 2)\n" // (case 10)
114 " .byte((loc_fc3f7cda - branchtable_fc3f7cc6) / 2)\n" // (case 11)
115 " .byte((loc_fc3f7ce0 - branchtable_fc3f7cc6) / 2)\n" // (case 12)
116 ".align 1\n"
117 "loc_fc3f7cd4:\n" // case 8 - calls close, not seen in normal shooting (g7x)
118 
119 " bl sub_fc3f7e86\n"
120 " b loc_fc3f7ca4\n"
121 "loc_fc3f7cda:\n" // case 11 - create dir, TODO not patched
122 " bl sub_fc3f7ed2\n"
123 " b loc_fc3f7ca4\n"
124 "loc_fc3f7ce0:\n" // case 12 - patch for open, main hook
125 " bl sub_fc3f7a14_my\n"
126 " b loc_fc3f7ca4\n"
127 "loc_fc3f7ce6:\n" // case 9 - not seen in normal shooting (g7x)
128 " ldr r1, [r0, #4]\n"
129 " movs r2, #0\n"
130 " mov r4, r0\n"
131 " ldr r0, [r5, #8]\n"
132 " bl _lseek\n"
133 " adds r0, r0, #1\n"
134 " bne loc_fc3f7ca4\n"
135 " movs r0, #7\n"
136 " mov r1, r4\n"
137 " str r6, [r4, #0x14]\n"
138 " bl sub_fc3f799a\n"
139 " b loc_fc3f7ca4\n"
140 "loc_fc3f7d02:\n" // case 10 - cache flush
141 " bl sub_fc3f7f30\n"
142 " b loc_fc3f7ca4\n"
143 "loc_fc3f7d08:\n" // case 0-6 - write stage
144 " bl sub_fc3f7fa2_my\n"
145 " b loc_fc3f7ca4\n"
146 "loc_fc3f7d0e:\n" // case 7 - close stage
147 " bl sub_fc3f7b46_my\n"
148 " b loc_fc3f7ca4\n"
149 ".ltorg\n"
150  );
151 }
void _LogCameraEvent ( int  id,
const char *  fmt,
  ... 
)