https://github.com/targetdisk/td-img
Target Disk Imaging (.tdi) format
https://github.com/targetdisk/td-img
Last synced: over 1 year ago
JSON representation
Target Disk Imaging (.tdi) format
- Host: GitHub
- URL: https://github.com/targetdisk/td-img
- Owner: targetdisk
- License: agpl-3.0
- Created: 2023-10-15T03:19:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T02:52:42.000Z (over 2 years ago)
- Last Synced: 2025-02-06T04:11:25.579Z (over 1 year ago)
- Language: C
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Target Disk Image
This repository contains a library and utilities for encoding and decoding
Target Disk Image (`.TDI`) files.
### Building the Utilities
#### Dependencies
- A sane libC
- A recent C compiler
- GNU Make
#### Steps
Build with make:
```
make all
```
### Target Disk Image RIFF File Format
Target Disk Image (`.TDI`) files are RIFF files that can contain `RLE` and
`RLE1` data.
#### RIFF Descriptor Chunk
|Endian| Data Type | Name |Size|
|------|-------------|----------------|----|
| big | `char *` | Chunk ID | 4 |
|little| `uint32_t` | Chunk size | 4 |
| big | `char *` | Format | 4 |
#### "fmt" Chunk
|Endian| Data Type | Name |Size|
|------|-------------|----------------|----|
| big | `char *` | Chunk ID | 4 |
|little| `uint32_t` | Sub-chunk size | 4 |
|little| `uint32_t` | Width | 4 |
|little| `uint32_t` | Height | 4 |
|little| `uint32_t` |Foreground Color| 4 |
#### "data" Chunk
|Endian| Data Type | Name |Size|
|------|-------------|----------------|----|
| big | `char *` | Chunk ID | 4 |
|little| `uint32_t` | Sub-chunk size | 4 |
|little| `uint32_t *`| Data | * |