Difference between revisions of "PSX/TIM format"
< PSX
Jump to navigation
Jump to search
my_wiki>Qhimm |
my_wiki>Qhimm |
||
Line 1: | Line 1: | ||
− | A TIM file is a standard image file format for the [[PSX|Sony PlayStation]]. The file structure closely mimics the way textures are managed in the [[PSX/frame buffer|frame buffer]] by the [[PSX/GPU|GPU]]. | + | A TIM file is a standard image file format for the [[PSX|Sony PlayStation]]. The file structure closely mimics the way textures are managed in the [[PSX/frame buffer|frame buffer]] by the [[PSX/GPU|GPU]]. TIM files are [[little endian]]-based. |
+ | |||
+ | == File layout == | ||
+ | [[Image:PSX_TIM_file_layout.png]] | ||
+ | |||
+ | == Header == | ||
+ | |||
+ | == CLUT (color lookup table) == | ||
+ | |||
+ | == Image data == | ||
+ | |||
+ | |||
+ | |||
<cpp> | <cpp> | ||
// C++ code: | // C++ code: |
Revision as of 20:15, 3 March 2005
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
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>