root/platform/a495/sub/filewrite_hdr.c

/* [<][>][^][v][top][bottom][index][help] */
   1 #include "lolevel.h"
   2 #include "platform.h"
   3 
   4 typedef struct {
   5     unsigned int address;
   6     unsigned int length;
   7 } cam_ptp_data_chunk; //camera specific structure
   8 
   9 #define MAX_CHUNKS_FOR_JPEG 4 // filewritetask is prepared for this many chunks
  10 /*
  11  * fwt_data_struct: defined here as it's camera dependent
  12  * unneeded members are designated with unkn
  13  * file_offset, full_size, seek_flag only needs to be defined for DryOS>=r50 generation cameras
  14  * cameras with possible multipass JPEG writes need oflags
  15  * pdc is always required
  16  * name is not currently used
  17  */
  18 typedef struct
  19 {
  20     int unkn1[2];
  21     int oflags;
  22     int unkn2[2];
  23     cam_ptp_data_chunk pdc[MAX_CHUNKS_FOR_JPEG];
  24     int unkn6;
  25     char name[32];                               // open stage: sub_FFDE69C0 (1.00f) --> "ADD     R0, R0, #0x38"
  26                                                  // offset of 'name' from start = 0x38 = 56 bytes = 14 words
  27 } fwt_data_struct;
  28 
  29 #define OFLAG_NOFLUSH 0x8000
  30 
  31 #include "../../../generic/filewrite.c"

/* [<][>][^][v][top][bottom][index][help] */