An269 – Cirrus Logic AN269 User Manual
Page 43

AN269
AN269REV1
43
*
* Global Data:
* |>I | O | IO<|, |>dataname<|
*
** END_FUNC ******************************************************************/
{
INT32 x;
unsigned int *GSLUTTable;
switch (iLUT)
{
case 0:
{
GSLUTTable = (unsigned int *)0x80030080;
break;
}
case 1:
{
GSLUTTable = (unsigned int *)0x80030280;
break;
}
default:
{
GSLUTTable = (unsigned int *)0x80030300;
break;
}
}
for(x = 0;x < 32;x++)
{
GSLUTTable[x] = data[x];
}
}
const long int four_bpp_lut_gs[] = {
0x00000000, // Black
0x00202020, // 25% Gray
0x00606060, // 50% Gray
0x00a0a0a0, // 75% Gray
0x00c0c0c0, // White
0x0060c060, // Light Green
0x00602020, // Brown
0x00c060a0, // Pink
0x00c0c0c0, // White
0x00c00000, // Red
0x0000c000, // Green
0x00c08000, // Orange
0x00c0c0c0, // White
0x00c000c0, // Purple
0x0000c0c0, // Cyan
0x00c0c0c0};// White
void RASTER_PartialFillLUT(int *data, int number_of_entries,