Skip to content
Marco Calautti edited this page Nov 3, 2017 · 2 revisions

General Information

  • Codec Name: IA8
  • Found in: Gamecube/Wii games and possibly other Nintendo related games
  • Type: Color encoding
  • Endianness: Any
  • Rainbow's implementation: ColorCodecIA8
  • Additional info: N/A

Codec Specification

IA8 colors denote grayscale colors with alpha. Each IA8 color is encoded as a uint16 (two bytes) where the first byte is the alpha value and the second byte is the grayscale intensity.

uint16 color = AAAAAAAAIIIIIIII

Decoding to a full 8-bit RGBA color is as follows:

uint8 alpha = AAAAAAAA

uint8 red = green = blue = IIIIIIII