Searched refs:pixelColor (Results 1 – 6 of 6) sorted by relevance
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/blending/ |
D | AbstractTextureBlender.java | 30 …protected void blendPixel(float[] result, float[] materialColor, float[] pixelColor, float blendFa… in blendPixel() argument 35 result[0] = blendFactor * pixelColor[0] + oneMinusFactor * materialColor[0]; in blendPixel() 36 result[1] = blendFactor * pixelColor[1] + oneMinusFactor * materialColor[1]; in blendPixel() 37 result[2] = blendFactor * pixelColor[2] + oneMinusFactor * materialColor[2]; in blendPixel() 40 result[0] = (oneMinusFactor + blendFactor * materialColor[0]) * pixelColor[0]; in blendPixel() 41 result[1] = (oneMinusFactor + blendFactor * materialColor[1]) * pixelColor[1]; in blendPixel() 42 result[2] = (oneMinusFactor + blendFactor * materialColor[2]) * pixelColor[2]; in blendPixel() 45 if (pixelColor[0] != 0.0) { in blendPixel() 46 …result[0] = (oneMinusFactor * materialColor[0] + blendFactor * materialColor[0] / pixelColor[0]) *… in blendPixel() 48 if (pixelColor[1] != 0.0) { in blendPixel() [all …]
|
D | TextureBlenderAWT.java | 43 float[] pixelColor = new float[] { color[0], color[1], color[2], 1.0f }; in blend() local 59 this.setupMaterialColor(data, format, neg, pixelColor); in blend() 60 this.blendPixel(resultPixel, materialColor, pixelColor, affectFactor, blendType, blenderContext); in blend() 64 newData.put(dataIndex++, (byte) (pixelColor[3] * 255.0f)); in blend()
|
D | TextureBlenderDDS.java | 46 float[] pixelColor = new float[4]; in blend() local 75 colors[i].toRGBA(pixelColor); in blend() 76 … this.blendPixel(resultPixel, materialColor, pixelColor, affectFactor, blendType, blenderContext); in blend()
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
D | ImageBufferCairo.cpp | 148 Color pixelColor = colorFromPremultipliedARGB(*pixel); in platformTransformColorSpace() local 149 pixelColor = Color(lookUpTable[pixelColor.red()], in platformTransformColorSpace() 150 lookUpTable[pixelColor.green()], in platformTransformColorSpace() 151 lookUpTable[pixelColor.blue()], in platformTransformColorSpace() 152 pixelColor.alpha()); in platformTransformColorSpace() 153 *pixel = premultipliedARGBFromColor(pixelColor); in platformTransformColorSpace() 202 Color pixelColor; in getImageData() local 204 pixelColor = colorFromPremultipliedARGB(*pixel); in getImageData() 206 pixelColor = Color(*pixel); in getImageData() 207 destRows[basex] = pixelColor.red(); in getImageData() [all …]
|
D | ImageCairo.cpp | 200 unsigned* pixelColor = reinterpret_cast<unsigned*>(cairo_image_surface_get_data(frameSurface)); in checkForSolidColor() local 201 m_solidColor = colorFromPremultipliedARGB(*pixelColor); in checkForSolidColor()
|
/external/webkit/Source/WebCore/platform/graphics/ |
D | Color.cpp | 396 Color colorFromPremultipliedARGB(unsigned pixelColor) in colorFromPremultipliedARGB() argument 400 if (unsigned alpha = (pixelColor & 0xFF000000) >> 24) { in colorFromPremultipliedARGB() 401 rgba = makeRGBA(((pixelColor & 0x00FF0000) >> 16) * 255 / alpha, in colorFromPremultipliedARGB() 402 ((pixelColor & 0x0000FF00) >> 8) * 255 / alpha, in colorFromPremultipliedARGB() 403 (pixelColor & 0x000000FF) * 255 / alpha, in colorFromPremultipliedARGB() 406 rgba = pixelColor; in colorFromPremultipliedARGB() 413 unsigned pixelColor; in premultipliedARGBFromColor() local 416 pixelColor = alpha << 24 | in premultipliedARGBFromColor() 421 pixelColor = color.rgb(); in premultipliedARGBFromColor() 423 return pixelColor; in premultipliedARGBFromColor()
|