26.09.2007, 02:53
Hier eben was, das ich in den Riva Sourcen auf die Schnelle gefunden habe...
Code:
// NVF-Format (only for crunchmode 1 !)
//
// +--------------------------------------------------+
// | byte crunchmode; | Header
// | uword blockcount; | 3 byte
// +--------------------------------------------------+
// | uword block 1 ->width | Blocksizes
// | uword block 1 ->height |
// | .... | n * 4 byte
// | uword block n ->width |
// | uword block n ->height; |
// +--------------------------------------------------+
// | Data block 1 (width*height of block 1 bytes) | ? bytes
// | .... |
// | Data block n (width*height of block n bytes) |
// +--------------------------------------------------+
// | uword # Colors; | 2 bytes
// +--------------------------------------------------+
// | byte Palette[# Colors][3] | # Colors * 3 bytes
// +--------------------------------------------------+