| 1 | <body> |
| 2 | <h3>The IMG file format</h3> |
| 3 | |
| 4 | <p>The IMG file is internally structured like a file-system containing |
| 5 | a number of files and a directory. It is common to refer to the whole |
| 6 | thing as a file and the contained files as sub-files. However I use the |
| 7 | terms file system and file respectively, because it is more descriptive of |
| 8 | what is going on I think.</p> |
| 9 | |
| 10 | <p>There are two main sub-packages here.</p> |
| 11 | <dl> |
| 12 | <dt>fs</dt> |
| 13 | <dd>This deals with filesystem as a whole. The individual files are just |
| 14 | blobs of data. You could handle any filename at this level. |
| 15 | </dd> |
| 16 | |
| 17 | <dt>app</dt> |
| 18 | <dd>Code for actual application files that are used. Code in here knows |
| 19 | about the internal structure of individual files. |
| 20 | </dd> |
| 21 | </dl> |
| 22 | |
| 23 | <p>As the purpose of this application is to write IMG files (there are plenty |
| 24 | of programs that read it), the focus is on writing and not reading. The |
| 25 | code to read at the filesystem level will probably be implemented at some |
| 26 | stage so that we can combine several .img files into one gmapsupp.img |
| 27 | file.</p> |
| 28 | </body> |