| 11 | Block *mDataPtr; |
| 12 | |
| 13 | u32 getColor(void *bmcPtr, int index) |
| 14 | { |
| 15 | #line 35 |
| 16 | JUT_ASSERT(bmcPtr != 0); |
| 17 | |
| 18 | BMC *ptr = (BMC *)bmcPtr; |
| 19 | JUT_ASSERT(ptr->header.signature == 'MGCL'); |
| 20 | JUT_ASSERT(ptr->header.dataType == 'bmc1'); |
| 21 | JUT_ASSERT(ptr->header.dataSize == 1088); |
| 22 | JUT_ASSERT(ptr->header.numBlocks == 1); |
| 23 | JUT_ASSERT(ptr->colorTable.header.kind == 'CLT1'); |
| 24 | JUT_ASSERT(ptr->colorTable.numColors == 256); |
| 25 | JUT_ASSERT(ptr->colorTable.colorFormat == 0); |
| 26 | |
| 27 | JUT_MINMAX_ASSERT(0, index, 256); |
| 28 | return ptr->colorTable.entries[index]; |
| 29 | } |
| 30 | |
| 31 | void readBmg(void *bmgPtr) |
| 32 | { |