Changes

Jump to navigation Jump to search

PSX/TIM format

815 bytes added, 08:32, 4 March 2005
CLUT (color lookup table)
== CLUT (color lookup table) ==
The CLUT starts with a simple 32-bit word telling the length, in bytes, of the entire CLUT block (including the header). Following that is a set of four 16-bit values telling how the CLUT data should be loaded into the frame buffer. These measurements are in frame buffer pixels, which are 16-bit. Each CLUT is stored in a rectangular portion of the frame buffer, which is typically 16 or 256 pixels wide (corresponding to 4-bit or 8-bit color indices). The rows define one or more 'palettes' which can be selected at runtime to use when drawing a color-indexed image.
 
<br/><center>[[Image:PSX_TIM_file_clut.png]]</center><br/>
 
In the frame buffer, CLUTs need to be stored on even multiples of 16 horizontally, but can be stored freely on any row. Typically they are stored directly under the front/back buffers.
== Image data ==
Anonymous user

Navigation menu