PSX/TIM format
Jump to navigation
Jump to search
Introduction
A TIM file is a standard image file format for the Sony PlayStation. The file structure closely mimics the way textures are managed in the frame buffer by the GPU. TIM files are little endian-based.
File layout
A TIM file is made up of three conceptual blocks; the header, the color lookup table (CLUT) and the image data. The CLUT block and the image data block have the same basic layout and are also treated the same way when loading a TIM file into the PlayStation frame buffer.
Header
CLUT (color lookup table)
Image data
<cpp> // C++ code:
- include <stdio.h>
- include "tim.h"
class TIMFile { public:
TIMFile() { return; } ~TIMFile() { return; }
/* Multi line comment */
protected:
int m_data;
}; </cpp>