802BT/802R Video Test Generator User Guide 139
// states 0 to 2 are specific for QuantumData
switch (state)
{
// pixel 1
case 0:
pixelvalue=seed;
state++;
#ifdef RGB_TEST
return (0xff0000); // red
#else
return(0);
#endif
break;
// pixel 2
case 1:
temp=((0x007<<7) | (( seed &0x7f000000)>>24)) & 0xffffff;
state++;
#ifdef RGB_TEST
return (0x00ff00); // green
#else
return(temp);
#endif
break;
// pixel 3
case 2:
temp=seed &0x00ffffff;
state++;
#ifdef RGB_TEST
return (0x0000ff); // blue
#else
return(temp);
#endif
break;
default:
pixelvalue= ((pixelvalue & 0x7f)<<24) | ( ((pixelvalue>>4)
& 0xffffff) ^ ((pixelvalue>>7) & 0xffffff) );
#ifdef RGB_TEST
return (0x0); // blank
#else
return(pixelvalue & 0xffffff);
#endif
break;
break;
}