0
.ptf
Type | Description |
---|---|
"Header" | File header |
"Data" | Image data |
Type | Value | Description |
---|---|---|
char[3] | {'P', 'T', 'F'} | Header magic |
u8 | 0 | Revision |
u8 | Header info byte | Flags and resolution |
Bit | Value | Description |
---|---|---|
1-3 | 0 | Unused |
4 | – | Has alpha |
5-8 | – | Resolution |
Type | Description |
---|---|
Compressed {"RGB pixel"|"RGBA pixel"}[0...] | Compressed pixels |
Type | Description |
---|---|
u8[3] | RGB |
Type | Description |
---|---|
u8[4] | RGBA |