Searched refs:alpha (Results 51 - 75 of 548) sorted by relevance

1234567891011>>

/external/webkit/Source/WebCore/platform/graphics/filters/
H A DFEColorMatrix.cpp76 inline void matrix(double& red, double& green, double& blue, double& alpha, const Vector<float>& values) argument
78 double r = values[0] * red + values[1] * green + values[2] * blue + values[3] * alpha + values[4] * 255;
79 double g = values[5] * red + values[6] * green + values[7] * blue + values[8] * alpha + values[9] * 255;
80 double b = values[10] * red + values[11] * green + values[12] * blue + values[13] * alpha + values[14] * 255;
81 double a = values[15] * red + values[16] * green + values[17] * blue + values[18] * alpha + values[19] * 255;
86 alpha = a;
119 inline void luminance(double& red, double& green, double& blue, double& alpha) argument
121 alpha = 0.2125 * red + 0.7154 * green + 0.0721 * blue;
135 double alpha = pixelArray->get(pixelByteOffset + 3); local
139 matrix(red, green, blue, alpha, value
[all...]
H A DFilterEffect.cpp188 int alpha = sourceComponent[3]; local
189 if (alpha) {
190 destinationComponent[0] = static_cast<int>(sourceComponent[0]) * 255 / alpha;
191 destinationComponent[1] = static_cast<int>(sourceComponent[1]) * 255 / alpha;
192 destinationComponent[2] = static_cast<int>(sourceComponent[2]) * 255 / alpha;
198 destinationComponent[3] = alpha;
222 int alpha = sourceComponent[3]; local
223 destinationComponent[0] = static_cast<int>(sourceComponent[0]) * alpha / 255;
224 destinationComponent[1] = static_cast<int>(sourceComponent[1]) * alpha / 255;
225 destinationComponent[2] = static_cast<int>(sourceComponent[2]) * alpha / 25
[all...]
/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/
H A Dnon-kerned-drawing.cpp61 CGFloat red, green, blue, alpha; local
62 graphicsContext->fillColor().getRGBA(red, green, blue, alpha);
63 CGContextSetRGBFillColor(cgContext, red, green, blue, alpha);
/external/webkit/Source/WebKit/chromium/public/
H A DWebDeviceOrientation.h38 WebDeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma) argument
41 m_alpha(alpha),
53 double alpha() { return m_alpha; } function in class:WebKit::WebDeviceOrientation
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DGLES2Canvas.h66 void setAlpha(float alpha);
92 void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha, ColorSpace, CompositeOperator, bool clip);
105 void drawTexturedRectTile(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
106 void drawTexturedQuad(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
107 void drawTexturedQuadMitchell(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
H A DShaderChromium.cpp162 m_alphaLocation = context->getUniformLocation(program, "alpha");
173 uniform float alpha; local
177 gl_FragColor = vec4(texColor.x, texColor.y, texColor.z, texColor.w) * alpha;
188 uniform float alpha; local
192 gl_FragColor = texColor * alpha;
203 uniform float alpha; local
207 gl_FragColor = vec4(texColor.z, texColor.y, texColor.x, texColor.w) * alpha;
223 m_alphaLocation = context->getUniformLocation(program, "alpha");
235 uniform float alpha; local
240 gl_FragColor = vec4(texColor.x, texColor.y, texColor.z, texColor.w) * alpha * maskColo
278 uniform float alpha; local
[all...]
/external/skia/src/core/
H A DSkSpriteBlitter_RGB16.cpp79 #define SkSPRITE_ARGS , uint8_t alpha
81 #define SkSPRITE_INIT fSrcAlpha = alpha;
122 #define SkSPRITE_ARGS , uint8_t alpha
124 #define SkSPRITE_INIT fSrcAlpha = alpha;
152 #define SkSPRITE_ARGS , uint8_t alpha
154 #define SkSPRITE_INIT fSrcAlpha = alpha;
244 #define SkSPRITE_ARGS , uint8_t alpha
246 #define SkSPRITE_INIT fSrcAlpha = alpha;
291 U8CPU alpha = fPaint->getAlpha(); local
294 proc(dst, src, width, alpha,
325 unsigned alpha = paint.getAlpha(); local
[all...]
H A DSkScan_AntiPath.cpp61 virtual void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE {
162 *accumulates* SCALE pixels worth of "alpha" in [0,(256/SCALE)]
164 itself, with the same (alpha - (alpha >> 8)) correction as
181 int alpha = (256 >> SHIFT) * aa; local
183 return alpha - (alpha >> 8);
322 // xrite/SCALE should give us alpha.
439 static void add_aa_span(uint8_t* alpha, U8CPU startAlpha) { argument
440 /* I should be able to just add alpha[
458 add_aa_span(uint8_t* alpha, U8CPU startAlpha, int middleCount, U8CPU stopAlpha, U8CPU maxValue) argument
[all...]
/external/skia/src/opts/
H A DSkBlitRow_opts_SSE2.cpp20 int count, U8CPU alpha) {
21 SkASSERT(alpha <= 255);
26 uint32_t src_scale = SkAlpha255To256(alpha);
67 // Get alpha and green pixels into higher byte of each word.
113 int count, U8CPU alpha) {
114 SkASSERT(alpha == 255);
142 __m128i alpha = _mm_srli_epi32(src_pixel, 24); local
144 // Copy alpha to upper 3rd byte of each quad
145 alpha = _mm_or_si128(alpha, _mm_slli_epi3
18 S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
111 S32A_Opaque_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
191 __m128i alpha = _mm_srli_epi16(src_pixel, 8); local
236 S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
[all...]
H A DSkBlitRow_opts_arm.cpp21 U8CPU alpha, int /*x*/, int /*y*/) {
22 SkASSERT(255 == alpha);
75 // intentionally don't calculate alpha
155 // intentionally don't calculate alpha
195 U8CPU alpha, int /*x*/, int /*y*/) {
197 U8CPU alpha_for_asm = alpha;
215 "add %[alpha], %[alpha], #1 \n\t" // adjust range of alpha 0-256
217 "add %[alpha],
19 S32A_D565_Opaque_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument
193 S32A_D565_Blend_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument
316 S32_D565_Blend_Dither_neon(uint16_t *dst, const SkPMColor *src, int count, U8CPU alpha, int x, int y) argument
408 S32A_D565_Opaque_v7(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument
492 S32A_Opaque_BlitRow32_neon_test_alpha(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
666 S32A_Opaque_BlitRow32_neon(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
794 S32A_Opaque_BlitRow32_arm_test_alpha(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
1097 S32A_Opaque_BlitRow32_arm(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
1197 S32A_Blend_BlitRow32_arm(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
1331 S32_Blend_BlitRow32_neon(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument
1446 S32A_D565_Opaque_Dither_neon(uint16_t * SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int x, int y) argument
1661 unsigned alpha = SkAlpha255To256(a); local
1700 S32_D565_Opaque_Dither_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int x, int y) argument
[all...]
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
H A DTGALoader.java187 entry.alpha = (byte)255;
189 entry.alpha = (byte)(int)(getBitsAsByte(cMapData, offset+(3*bitsPerColor), alphaSize) * alphaScalar);
214 byte alpha = 0;
231 // create an alpha channel
232 alpha = getBitsAsByte(data, 0, 1);
233 if (alpha == 1) alpha = (byte)255;
234 rawData[rawDataIndex++] = alpha;
268 alpha = dis.readByte();
272 rawData[rawDataIndex++] = alpha;
510 byte red, green, blue, alpha; field in class:TGALoader.ColorMapEntry
[all...]
/external/webp/src/enc/
H A Danalysis.c26 static int ClipAlpha(int alpha) { argument
27 return alpha < 0 ? 0 : alpha > 255 ? 255 : alpha;
137 const int alpha = 255 * (centers[n] - mid) / (max - min); local
139 enc->dqm_[n].alpha_ = clip(alpha, -127, 127);
145 // Simplified k-Means, to assign Nb segments based on alpha-histogram
211 const int alpha = mb->alpha_; local
212 mb->segment_ = map[alpha];
213 mb->alpha_ = centers[map[alpha]]; // jus
244 const int alpha = VP8CollectHistogram(it->yuv_in_ + Y_OFF, local
269 const int alpha = VP8CollectHistogram(src, local
295 const int alpha = VP8CollectHistogram(it->yuv_in_ + U_OFF, local
[all...]
/external/webkit/Source/WebCore/platform/audio/
H A DBiquad.cpp203 double alpha = 0.25 * (0.5 + beta - gamma);
205 m_a0 = 2.0 * alpha;
206 m_a1 = 2.0 * 2.0*alpha;
207 m_a2 = 2.0 * alpha;
224 double alpha = 0.25 * (0.5 + beta + gamma);
226 m_a0 = 2.0 * alpha;
227 m_a1 = 2.0 * -2.0*alpha;
228 m_a2 = 2.0 * alpha;
239 double alpha = 0.5 * sin(theta) * sqrt((A + 1.0 / A) * (1.0 / S - 1.0) + 2.0);
242 double k2 = 2.0 * sqrt(A) * alpha;
[all...]
/external/chromium/chrome/common/extensions/docs/examples/extensions/imageinfo/imageinfo/
H A Dimageinfo.js73 var alpha = data.getByteAt(25) >= 4;
81 alpha : alpha,
99 alpha : false,
136 alpha : false,
151 alpha : false,
/external/skia/samplecode/
H A DSampleXfermodes.cpp56 for (int alpha = 0; alpha <= 255; alpha++) {
57 SkPMColor pm = SkPreMultiplyARGB(alpha, rgb, rgb, rgb);
59 sk_memset16(bm1.getAddr16(0, alpha), newdst, bm1.width());
61 int ia = 255 - alpha;
66 sk_memset16(bm2.getAddr16(0, alpha), SkPackRGB16(dr, dg, dr), bm2.width());
68 int dr2 = (SkMulDiv255Round(alpha, rgb) + newscale(r, ia, 5)) >> 3;
69 int dg2 = (SkMulDiv255Round(alpha, rgb) + newscale(g, ia, 6)) >> 2;
71 sk_memset16(bm3.getAddr16(0, alpha), SkPackRGB1
124 draw_mode(SkCanvas* canvas, SkXfermode* mode, int alpha, SkScalar x, SkScalar y) argument
[all...]
/external/webkit/Source/WebCore/dom/
H A DDeviceMotionData.h63 static PassRefPtr<RotationRate> create(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma);
69 double alpha() const { return m_alpha; } function in class:WebCore::DeviceMotionData::RotationRate
74 RotationRate(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma);
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DImageBufferWinCE.cpp159 int alpha = *src++; local
161 *dst++ = static_cast<unsigned char>((red * alpha + 254) / 255);
162 *dst++ = static_cast<unsigned char>((green * alpha + 254) / 255);
163 *dst++ = static_cast<unsigned char>((blue * alpha + 254) / 255);
164 *dst++ = static_cast<unsigned char>(alpha);
169 *dst++ = static_cast<unsigned char>(alpha);
217 int alpha = *src++; local
219 *dst++ = static_cast<unsigned char>(blue * 255 / alpha);
220 *dst++ = static_cast<unsigned char>(green * 255 / alpha);
221 *dst++ = static_cast<unsigned char>(red * 255 / alpha);
[all...]
/external/webkit/Source/WebCore/svg/
H A DSVGFEComponentTransferElement.cpp91 ComponentTransferFunction alpha; local
101 alpha = static_cast<SVGFEFuncAElement*>(node)->transferFunction();
104 RefPtr<FilterEffect> effect = FEComponentTransfer::create(filter, red, green, blue, alpha);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DWTauNafMultiplier.java53 ZTauElement[] alpha;
56 alpha = Tnaf.alpha0;
61 alpha = Tnaf.alpha1;
67 BigInteger.valueOf(Tnaf.POW_2_WIDTH), tw, alpha);
/external/skia/include/pdf/
H A DSkPDFImage.h35 * @param paint Used to calculate alpha, masks, etc.
45 /** Add a Soft Mask (alpha or shape channel) to the image. Refs mask.
63 * @param alpha Is this the alpha channel of the bitmap.
64 * @param paint Used to calculate alpha, masks, etc.
67 const SkIRect& srcRect, bool alpha, const SkPaint& paint);
/external/webkit/Source/WebKit/qt/WebCoreSupport/
H A DDeviceOrientationClientMockQt.h45 void setOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma);
/external/webkit/Source/WebCore/platform/gtk/
H A DGtkVersioning.c158 guint alpha = src[x] >> 24; local
160 if (!alpha) {
165 destData[x * 4 + 0] = (((src[x] & 0xff0000) >> 16) * 255 + alpha / 2) / alpha;
166 destData[x * 4 + 1] = (((src[x] & 0x00ff00) >> 8) * 255 + alpha / 2) / alpha;
167 destData[x * 4 + 2] = (((src[x] & 0x0000ff) >> 0) * 255 + alpha / 2) / alpha;
169 destData[x * 4 + 3] = alpha;
214 * will contain an alpha channe
[all...]
/external/qemu/android/skin/
H A Dsurface.c448 uint32_t alpha = (color >> 24); local
450 if (alpha == 255)
459 alpha = 255 - alpha;
460 alpha += (alpha >> 7);
469 ARGB_MULSHIFT(dst_c,dst_c,alpha,8);
490 uint32_t alpha; local
493 alpha = 256 - (dst[0] >> 24);
494 ARGB_MULSHIFT(val,src_c,alpha,
545 uint32_t alpha; local
569 uint32_t alpha; local
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_RLEaccel.c25 * RLE encoding for software colorkey and alpha-channel acceleration
30 * decoder. Added per-surface alpha blitter. Added per-pixel alpha
49 * binary transparency and for per-surface alpha blending, and for surfaces
50 * with per-pixel alpha. The details differ, however:
62 * Encoding of surfaces with per-pixel alpha:
69 * partially transparent (translucent) pixels (where 1 <= alpha <= 254),
73 * the alpha value occupying the highest 8 bits. The <skip> and <run>
78 * and the hole filled with the 5 most significant bits of the alpha value.
121 * Various colorkey blit methods, for opaque and per-surface alpha
783 RLEClipBlit(int w, Uint8 *srcbuf, SDL_Surface *dst, Uint8 *dstbuf, SDL_Rect *srcrect, unsigned alpha) argument
847 unsigned alpha; local
1293 unsigned alpha = dfmt->Amask ? 255 : 0; local
[all...]
/external/webkit/Source/WebCore/platform/graphics/gstreamer/
H A DVideoSinkGStreamer.cpp168 // Cairo's ARGB has pre-multiplied alpha while GStreamer's doesn't.
190 unsigned short alpha; local
197 alpha = source[3];
198 destination[0] = (source[0] * alpha + 128) / 255;
199 destination[1] = (source[1] * alpha + 128) / 255;
200 destination[2] = (source[2] * alpha + 128) / 255;
201 destination[3] = alpha;
203 alpha = source[0];
204 destination[0] = alpha;
205 destination[1] = (source[1] * alpha
[all...]

Completed in 3185 milliseconds

1234567891011>>