Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

NTI specification

Hoffa edited this page Apr 19, 2012 · 15 revisions

NTI images

NTI (Enhanced TI.Image) is an extremely simple array-based image format supported by nSDL.

Header

An NTI image is stored in a single array of unsigned 16-bit values. It always starts with an 8-byte header containing 4 values:

Index Description
0 Magic number (high byte) and version (low byte), should be 0x2A01.
1 Image width.
2 Image height.
3 Reserved, should be 0x0000.

All integers are 2 bytes long in big endian order. Their values can never exceed 216−1 since they are read as unsigned shorts.

Pixel data

Every pixel is stored in 16-bit high color format from array index 4 onward.

Clone this wiki locally