MipTex
This is the file type used by world textures and is the typical type of file you find in WAD3 archives. The structure is similar to what's used to describe textures in the BSP format.
File Structure
FileName <string> (32 bytes)
File name, with up to 16 characters. The unused trailing characters are null.
Width <uint32> (4 bytes)
Image width, in pixels. Must be divisible by 16.
Height <uint32> (4 bytes)
Image height, in pixels. Must be divisible by 16.
MipOffsets <uint32[4]> (16 bytes)
Offset from start of this struct to each mipmap level's image.
MipData <byte[]> (? bytes)
One MipMap for each mipmap level.
ColorsUsed <uint16> (2 bytes)
Number of colors used in the palette (always 256 for GoldSrc).
Pallete <color[]> (256 * 3 bytes)
Up to 256 RGB colors used in the texture. Each group of 3 uint32 form a R G B color.