TIM Image: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| Line 8: | Line 8: | ||
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | <div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | ||
<pre> | <pre> | ||
// TIM file format | // TIM file format (4BPP) | ||
//header | |||
4 bytes (uint32) - magic // "\x10\x00\x00\x00" | |||
4 bytes (uint32) - version // "\x00\x00\x00\x00" 4BPP (no CLUT) | |||
// "\x08\x00\x00\x00" 4BPP | |||
4 bytes (uint32) - size of CLUT + 12 | |||
2 bytes (uint16) - palette org X | |||
2 bytes (uint16) - palette org Y | |||
2 bytes (uint16) - number of colors in each CLUT | |||
2 bytes (uint16) - number of CLUTs | |||
// | //CLUT block | ||
num_of_CLUTs * | |||
{ | |||
CLUT data // 32 bytes per CLUT | |||
} | |||
//second header | |||
4 bytes (uint32) - size of image data + 12 | |||
2 bytes (uint16) - image org X | |||
2 bytes (uint16) - image org Y | |||
2 bytes (uint16) - image width / 4 | |||
2 bytes (uint16) - image height | |||
//data | |||
x bytes - image data | |||
</pre> | </pre> | ||
</div> | </div> | ||
Revision as of 08:41, 19 October 2020
TIM
- Format Type : Image
- Endian Order : Little Endian
Format Specifications
// TIM file format (4BPP)
//header
4 bytes (uint32) - magic // "\x10\x00\x00\x00"
4 bytes (uint32) - version // "\x00\x00\x00\x00" 4BPP (no CLUT)
// "\x08\x00\x00\x00" 4BPP
4 bytes (uint32) - size of CLUT + 12
2 bytes (uint16) - palette org X
2 bytes (uint16) - palette org Y
2 bytes (uint16) - number of colors in each CLUT
2 bytes (uint16) - number of CLUTs
//CLUT block
num_of_CLUTs *
{
CLUT data // 32 bytes per CLUT
}
//second header
4 bytes (uint32) - size of image data + 12
2 bytes (uint16) - image org X
2 bytes (uint16) - image org Y
2 bytes (uint16) - image width / 4
2 bytes (uint16) - image height
//data
x bytes - image data
MultiEx BMS Script
Not written yet.
Notes and Comments
- TIM is graphics file format used in many PlayStation 1 games.
Compatible Programs
- PSXIMGTS
- TIM Collection 1.0
- TIM Utility
- tim2bmp
- TIMConv
- TIMedit
- Semi trans Tool
- tim2view
- TIMmay
- TimRipper
- TimViewer
- GIMP + TIM Plugin
- Adobe Photoshop + TIM Plugin