Home | History | Annotate | Download | only in Tools

Lines Matching full:alpha

37 	PVRTuint8 red,green,blue,alpha;
42 PVRTint32 red,green,blue,alpha;
72 colour.alpha = (PVRTuint8)0xf;// 0->4 bits
80 colour.alpha = (PVRTuint8)((u32ColourData & 0x7000) >> 11);// 3->4 bits - note 0 at right
102 colour.alpha = (PVRTuint8)0xf;// 0 bits
110 colour.alpha = (PVRTuint8)((u32ColourData & 0x70000000) >> 27);// 3->4 bits - note 0 at right
132 Pixel128S hP = {(PVRTint32)P.red,(PVRTint32)P.green,(PVRTint32)P.blue,(PVRTint32)P.alpha};
133 Pixel128S hQ = {(PVRTint32)Q.red,(PVRTint32)Q.green,(PVRTint32)Q.blue,(PVRTint32)Q.alpha};
134 Pixel128S hR = {(PVRTint32)R.red,(PVRTint32)R.green,(PVRTint32)R.blue,(PVRTint32)R.alpha};
135 Pixel128S hS = {(PVRTint32)S.red,(PVRTint32)S.green,(PVRTint32)S.blue,(PVRTint32)S.alpha};
138 Pixel128S QminusP = {hQ.red - hP.red, hQ.green - hP.green, hQ.blue - hP.blue, hQ.alpha - hP.alpha};
139 Pixel128S SminusR = {hS.red - hR.red, hS.green - hR.green, hS.blue - hR.blue, hS.alpha - hR.alpha};
145 hP.alpha *= ui32WordWidth;
149 hR.alpha *= ui32WordWidth;
156 Pixel128S Result={4*hP.red, 4*hP.green, 4*hP.blue, 4*hP.alpha};
157 Pixel128S dY = {hR.red - hP.red, hR.green - hP.green, hR.blue - hP.blue, hR.alpha - hP.alpha};
164 pPixel[y*ui32WordWidth+x].alpha = (PVRTint32)((Result.alpha >> 5) + (Result.alpha >> 1));
169 Result.alpha += dY.alpha;
175 hP.alpha += QminusP.alpha;
180 hR.alpha += SminusR.alpha;
188 Pixel128S Result={4*hP.red, 4*hP.green, 4*hP.blue, 4*hP.alpha};
189 Pixel128S dY = {hR.red - hP.red, hR.green - hP.green, hR.blue - hP.blue, hR.alpha - hP.alpha};
196 pPixel[y*ui32WordWidth+x].alpha = (PVRTint32)((Result.alpha >> 4) + (Result.alpha));
201 Result.alpha += dY.alpha;
207 hP.alpha += QminusP.alpha;
212 hR.alpha += SminusR.alpha;
335 else if (i32ModulationValues[y+offsetY][x+offsetX]==2) { i32ModulationValues[y+offsetY][x+offsetX]=14;} //+10 tells the decompressor to punch through alpha.
466 if (punchthroughAlpha) result.alpha = 0;
467 else result.alpha = (upscaledColourA[y*ui32WordWidth+x].alpha * (8-mod) + upscaledColourB[y*ui32WordWidth+x].alpha * mod) / 8;
475 pColourData[y*ui32WordWidth+x].alpha = (PVRTuint8)result.alpha;
482 pColourData[y+x*ui32WordHeight].alpha = (PVRTuint8)result.alpha;