Searched refs:pixelColor (Results 1 – 5 of 5) 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/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | Color.cpp | 417 Color colorFromPremultipliedARGB(RGBA32 pixelColor) in colorFromPremultipliedARGB() argument 419 int alpha = alphaChannel(pixelColor); in colorFromPremultipliedARGB() 422 redChannel(pixelColor) * 255 / alpha, in colorFromPremultipliedARGB() 423 greenChannel(pixelColor) * 255 / alpha, in colorFromPremultipliedARGB() 424 blueChannel(pixelColor) * 255 / alpha, in colorFromPremultipliedARGB() 427 return Color(pixelColor); in colorFromPremultipliedARGB() 432 unsigned pixelColor; in premultipliedARGBFromColor() local 436 pixelColor = Color::createUnchecked( in premultipliedARGBFromColor() 442 pixelColor = color.rgb(); in premultipliedARGBFromColor() 444 return pixelColor; in premultipliedARGBFromColor()
|
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/ |
D | Renderer11.cpp | 3414 gl::Color pixelColor; in readTextureData() local 3419 readPixelColor(source, textureDesc.Format, i, j, inputPitch, &pixelColor); in readTextureData() 3420 writePixelColor(pixelColor, format, type, i, j, outputPitch, pixels); in readTextureData()
|