Home | History | Annotate | Download | only in cg

Lines Matching refs:basePixel

113     unsigned char* basePixel = (unsigned char*)baseBuffer;
118 float red = (pixel[0] - basePixel[0]) / max<float>(255 - basePixel[0], basePixel[0]);
119 float green = (pixel[1] - basePixel[1]) / max<float>(255 - basePixel[1], basePixel[1]);
120 float blue = (pixel[2] - basePixel[2]) / max<float>(255 - basePixel[2], basePixel[2]);
121 float alpha = (pixel[3] - basePixel[3]) / max<float>(255 - basePixel[3], basePixel[3]);
133 basePixel += 4;