XIMG - MajickTek/XFF-SPEC GitHub Wiki

The eXtensible Image Format is a bit more complex. It has two new structures, IMAGE and STRING.

IMAGE
{
  id STRING
  width U16
  height U16
  compressed U8
  dataLength U32
  data U8[dataLength]
}

STRING
{
  dataLength U16
  data U8[dataLength]
}

Adding these new structures gives us this brand new FILE structure:

FILE
{
  header HEADER
  imageCount U16
  imageList IMAGE[imageCount]
}

That concludes the basic structures for images.