Changes
Jump to navigation
Jump to search
m
→File layout
== 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. Also, the CLUT block is optional and technically does not need to be present, even when the image data consists of color indices. Such image data is assumed to refer to ''some'' color lookup table, but not necessarily one stored in the same TIM file -- on the PlayStation, the actual CLUT used for a set of image data is referred to only by its frame buffer coordinates, not by the file it comes from. In almost all cases though, the CLUT is included in the same TIM file as the image data using it and can thus be assumed to be applicable.
<br/><center>[[Image:PSX_TIM_file_layout.png]]</center><br/>