Lines Matching +full:sub +full:- +full:block
2 #------------------------------------------------------------------------------
7 # Garmin .FIT files https://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
12 # https://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
14 # TZ=GMT date -d '1989-12-31 0:00' +%s
32 # sourceforge.net/projects/garmin-img/files/IMG%20File%20Format/1.0/imgformat-1.0.pdf
37 >>0 use garmin-map
38 0 name garmin-map
40 !:mime application/x-garmin-map
41 # If non-zero, every byte of the entire .img file is to be XORed with this value
43 # goto block before FAT
49 # Deutsch__Yannick_D4481-00_0210.vpm
68 >>>0xB ubyte-100 x 20%.2u
71 # Update month (0-11)
72 >0xA ubyte x \b-%.2u
75 # Mapsource flag, 1 - file created by Mapsource, 0 - Garmin map visible in Basecamp and Homeport
82 >0x39 use garmin-date
85 # Block size exponent, E1; appears to always be 0x09; minimum block size 512 bytes
87 # Block size exponent, E2 ; file blocksize=2**(E1+E2)
102 # First sub-file offset (absolute); sometimes NO/UNKNOWN sub file!
104 # sub-file Header length
107 # sub-file Type[10] like "GARMIN RGN" "GARMIN TRE", "GARMIN TYP", etc.
113 # Block sequence numbers like 0000 0100 0200 ... FFFF
134 # Physical block number of FAT header
135 #>0x40 ubyte x \b, FAT at phy. block %u
138 # 1st FAT block
139 >>>&511 use garmin-fat
140 # 2nd FAT block
141 >>>&1023 use garmin-fat
142 # 3th FAT block
143 >>>&1535 use garmin-fat
144 # 4th FAT block
145 >>>&2047 use garmin-fat
146 # ... xth FAT block
150 # display FileAllocationTable block entry in garmin map
151 0 name garmin-fat
153 # sub file part; 0x0003 seems to be garbage
156 # fat flag 0~dummy block 1~true sub file
159 # sub-file name like MAKEGMAP 12345678
161 # sub-file typ like RGN TRE MDR LBL
163 # size of sub file
165 # 32-bit block sequence numbers
168 # display date stored inside Garmin maps like yyyy-mm-dd h:mm:ss
169 0 name garmin-date
172 # month (0-11)
173 >2 ubyte x \b-%.2u
174 # day (1-31)
175 >3 ubyte x \b-%.2u
176 # hour (0-23)
178 # minute (0-59)
180 # second (0-59)
192 !:mime application/x-garmin-gpm
196 >>>0x0E use garmin-date
200 !:mime application/x-garmin-mdr
206 !:mime application/x-garmin-nod
208 >>>0x0E use garmin-date
218 !:mime application/x-garmin-net
230 !:mime application/x-garmin-lbl
244 !:mime application/x-garmin-srt
246 >>>0x0E use garmin-date
249 !:mime application/x-garmin-tre
254 # 2nd title like Copyright 1995-2018 by GARMIN Corporation.
257 >>>0x0E use garmin-date
268 # URL: https://www.gpspower.net/garmin-tutorials/353310-basecamp-installing-free-desktop-map.html
271 !:mime application/x-garmin-trf
281 !:mime application/x-garmin-typ
283 >>>0x0E use garmin-date
296 !:mime application/x-garmin-rgn
327 >6 use garmin-entry
330 >>&0 use garmin-entry
334 >>>&0 use garmin-entry
341 !:mime image/x-garmin-exe
346 !:mime application/x-garmin-rgn
357 0 name garmin-entry
383 # region size (is record length - 10)