0.0
.ptf
Type | Description |
---|---|
Header | File header |
Data | Image data |
Type | Value | Description |
---|---|---|
char[3] | {'P', 'T', 'F'} | Header magic |
u8 | 0 | Major version |
u8 | Flags | Flags |
u8 | Resolution info | Resolution |
Bits (MSB to LSB) | Value | Description |
---|---|---|
7..1 | 0 | Reserved |
0 | – | Has alpha |
Bits (MSB to LSB) | Description |
---|---|
7..4 | Height (2^n) |
3..0 | Width (2^n) |
Type | Value | Description |
---|---|---|
u8[] | Compressed ‘RGB pixel × 1…’ or ‘RGBA pixel × 1…’ | Pixel data |
Type | Description |
---|---|
u8[3] | RGB |
Type | Description |
---|---|
u8[4] | RGBA |