File Hosting Not logged in.
Login Register Emblem CTGP-Nitro
243 users
User list
 
Online users
 
 
News
 

NCLR (File Format)



The NCLR format is a format for storing colors (Nitro CoLor Runtime), and is the runtime version of NCL. It can store palettes as 4-bit or 8-bit palettes.

File Structure


Header
The NCLR file uses the generic Nitro header. It can have one or two sections.

PLTT Section
The PLTT section is the section of the file that actually stores the colors. The format is as follows:
OfffsetSizeDescription
0x00000x0004Section magic "TTLP"
0x00040x0004Section size, including headers
0x00080x0004Bit depth. A value of 3 indicates 4-bit depth, and a value of 4 indicates 8-bit depth.
0x000C0x0004Boolean value indicating whether an extended palette is used (usually 0).
0x00100x0004Palette data size.
0x00140x0004Offset to the start of the palette data from the beginning of the PLTT section (Add 0x8)


Following the header is raw color data, encoded as 0BBBBBGGGGGRRRRR.

PCMP Section
The PCMP section is used for compression. It stores palette numbers.

OfffsetSizeDescription
0x00000x0004Section magic "PMCP"
0x00040x0004Section size, including headers
0x00080x0002Number of palettes
0x000A0x0002Padding (0x0000)
0x000CvariableA list of palette numbers.




Last edit by Garhoogin on Tue Jun 09 23:36:24 CDT 2020