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 | Header info byte | Flags and resolution |
Bits (MSB to LSB) | Value | Description |
---|---|---|
7..5 | 0 | Reserved |
4 | – | Has alpha |
3..0 | – | Resolution |
Type | Value | Description |
---|---|---|
u8[] | Compressed ‘RGB pixel × 1…’ or ‘RGBA pixel × 1…’ | Pixel data |
Type | Description |
---|---|
u8[3] | RGB |
Type | Description |
---|---|
u8[4] | RGBA |