PSX/TIM format

From Final Fantasy Inside
< PSX
Revision as of 20:15, 3 March 2005 by my_wiki>Qhimm

Contents

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

 

Header

CLUT (color lookup table)

Image data

<cpp> // C++ code:

  1. include <stdio.h>
  2. include "tim.h"

class TIMFile { public:

   TIMFile() { return; }
   ~TIMFile() { return; }

/* Multi line comment */

protected:

   int m_data;

}; </cpp>