• Home
  • Raw
  • Download

Lines Matching refs:colour

64 	Pixel32 colour;  in getColourA()  local
69 colour.red = (PVRTuint8)((u32ColourData & 0x7c00) >> 10); // 5->5 bits in getColourA()
70 colour.green = (PVRTuint8)((u32ColourData & 0x3e0) >> 5); // 5->5 bits in getColourA()
71 colour.blue = (PVRTuint8)(u32ColourData & 0x1e) | ((u32ColourData & 0x1e) >> 4); // 4->5 bits in getColourA()
72 colour.alpha = (PVRTuint8)0xf;// 0->4 bits in getColourA()
77colour.red = (PVRTuint8)((u32ColourData & 0xf00) >> 7) | ((u32ColourData & 0xf00) >> 11); // 4-… in getColourA()
78colour.green = (PVRTuint8)((u32ColourData & 0xf0) >> 3) | ((u32ColourData & 0xf0) >> 7); // 4->… in getColourA()
79colour.blue = (PVRTuint8)((u32ColourData & 0xe) << 1) | ((u32ColourData & 0xe) >> 2); // 3->… in getColourA()
80 colour.alpha = (PVRTuint8)((u32ColourData & 0x7000) >> 11);// 3->4 bits - note 0 at right in getColourA()
83 return colour; in getColourA()
94 Pixel32 colour; in getColourB() local
99 colour.red = (PVRTuint8)((u32ColourData & 0x7c000000) >> 26); // 5->5 bits in getColourB()
100 colour.green = (PVRTuint8)((u32ColourData & 0x3e00000) >> 21); // 5->5 bits in getColourB()
101 colour.blue = (PVRTuint8)((u32ColourData & 0x1f0000) >> 16); // 5->5 bits in getColourB()
102 colour.alpha = (PVRTuint8)0xf;// 0 bits in getColourB()
107colour.red = (PVRTuint8)(((u32ColourData & 0xf000000) >> 23) | ((u32ColourData & 0xf000000) >> … in getColourB()
108colour.green = (PVRTuint8)(((u32ColourData & 0xf00000) >> 19) | ((u32ColourData & 0xf00000) >> … in getColourB()
109colour.blue = (PVRTuint8)(((u32ColourData & 0xf0000) >> 15) | ((u32ColourData & 0xf0000) >> … in getColourB()
110 colour.alpha = (PVRTuint8)((u32ColourData & 0x70000000) >> 27);// 3->4 bits - note 0 at right in getColourB()
113 return colour; in getColourB()