/external/webkit/Source/WebCore/platform/audio/ |
H A D | SincResampler.cpp | 85 double alpha = 0.16; local 86 double a0 = 0.5 * (1.0 - alpha); 88 double a2 = 0.5 * alpha;
|
/external/webkit/Source/WebCore/platform/graphics/ |
H A D | Color.h | 90 // Creates a new color from the specific CMYK and alpha values. 107 bool hasAlpha() const { return alpha() < 255; } 112 int alpha() const { return alphaChannel(m_color); } function in class:WebCore::Color 114 RGBA32 rgb() const { return m_color; } // Preserve the alpha. 134 // We can't sensibly go back to GdkColor without losing the alpha value
|
H A D | Gradient.h | 122 float alpha; member in struct:WebCore::Gradient::ColorStop 124 ColorStop() : stop(0), red(0), green(0), blue(0), alpha(0) { } 125 ColorStop(float s, float r, float g, float b, float a) : stop(s), red(r), green(g), blue(b), alpha(a) { }
|
/external/webkit/Source/WebCore/platform/graphics/android/context/ |
H A D | PlatformGraphicsContext.h | 63 virtual void setAlpha(float alpha); 159 SkColor color; // alpha>0 means valid shadow 163 SkColor c = 0) // by default, alpha=0, so no shadow 172 float alpha; member in class:WebCore::PlatformGraphicsContext::State
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
H A D | ContextShadowCairo.cpp | 133 void ContextShadow::drawRectShadowWithoutTiling(GraphicsContext* context, const IntRect& shadowRect, const IntSize& topLeftRadius, const IntSize& topRightRadius, const IntSize& bottomLeftRadius, const IntSize& bottomRightRadius, float alpha) argument 144 cairo_set_source_rgba(m_layerContext, 0, 0, 0, alpha);
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
H A D | ImageBufferDataCG.cpp | 179 unsigned char alpha = srcRows[basex + 3]; local 180 if (unmultiplied && alpha) { 181 destRows[basex] = (srcRows[basex] * 255) / alpha; 182 destRows[basex + 1] = (srcRows[basex + 1] * 255) / alpha; 183 destRows[basex + 2] = (srcRows[basex + 2] * 255) / alpha; 184 destRows[basex + 3] = alpha; 229 unsigned char alpha = srcRows[basex + 3]; local 230 if (unmultiplied && alpha) { 231 destRows[basex] = (srcRows[basex + 2] * 255) / alpha; 232 destRows[basex + 1] = (srcRows[basex + 1] * 255) / alpha; 316 unsigned char alpha = srcRows[basex + 3]; local 366 unsigned char alpha = srcRows[basex + 3]; local [all...] |
H A D | ImageCG.cpp | 343 CGFloat alpha = 1; local 344 RetainPtr<CGColorRef> color(AdoptCF, CGColorCreateWithPattern(patternSpace.get(), pattern.get(), &alpha));
|
/external/webkit/Source/WebCore/platform/graphics/filters/ |
H A D | FilterEffect.cpp | 188 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/graphics/gstreamer/ |
H A D | VideoSinkGStreamer.cpp | 168 // 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...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
H A D | FontCGWin.cpp | 138 if (!fillColor.alpha()) 141 drawIntoBitmap = fillColor.alpha() != 255 || graphicsContext->inTransparencyLayer(); 289 UInt8 alpha = (255 - buffer[i + 1]) * fillColor.alpha() / 255; local 293 buffer[i + 3] = alpha; 369 Color shadowFillColor(shadowColor.red(), shadowColor.green(), shadowColor.blue(), shadowColor.alpha() * fillColor.alpha() / 255);
|
H A D | GraphicsContextCGWin.cpp | 168 CGFloat red, green, blue, alpha; local 169 color.getRGBA(red, green, blue, alpha); 170 CGContextSetRGBStrokeColor(context, red, green, blue, alpha);
|
/external/webkit/Source/WebCore/platform/graphics/wince/ |
H A D | ImageBufferWinCE.cpp | 159 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...] |
H A D | SharedBitmap.h | 67 void setHasAlpha(bool alpha) { m_hasAlpha = alpha; } argument
|
/external/webkit/Source/WebCore/platform/gtk/ |
H A D | GtkVersioning.c | 158 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/webkit/Source/WebCore/platform/image-decoders/bmp/ |
H A D | BMPImageReader.cpp | 84 // setSize() calls eraseARGB(), which resets the alpha flag, so we force 106 // If the image has an AND mask and there was no alpha data, process the 249 // NOTE: We allow alpha here. Microsoft doesn't really document this well, 255 // *Except the alpha channel. Bizarrely, some RGB bitmaps expect decoders 256 // to pay attention to the alpha mask here, so there's a special case in 389 // For Windows V4+ 32-bit RGB, don't overwrite the alpha mask from the 410 // No alpha in anything other than Windows V4+. 425 // specify a bogus alpha channel in bits that don't exist in the pixel 430 // For empty masks (common on the alpha channel, especially after the 521 // framebuffer that we have alpha 703 int alpha = getAlpha(pixel); local 717 getComponent(pixel, 2), alpha); local [all...] |
/external/webkit/Source/WebCore/webaudio/ |
H A D | RealtimeAnalyser.cpp | 134 double alpha = 0.16; local 135 double a0 = 0.5 * (1.0 - alpha); 137 double a2 = 0.5 * alpha;
|
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/API/c/ |
H A D | WKBundleFrame.cpp | 214 bool WKBundleFrameGetDocumentBackgroundColor(WKBundleFrameRef frameRef, double* red, double* green, double* blue, double* alpha) argument 216 return toImpl(frameRef)->getDocumentBackgroundColor(red, green, blue, alpha);
|
/external/webkit/Tools/DumpRenderTree/cg/ |
H A D | ImageDiffCG.cpp | 121 float alpha = (pixel[3] - basePixel[3]) / max<float>(255 - basePixel[3], basePixel[3]); local 122 float distance = sqrtf(red * red + green * green + blue * blue + alpha * alpha) / 2.0f;
|
/external/webkit/Tools/DumpRenderTree/gtk/ |
H A D | ImageDiff.cpp | 119 float alpha = (actualPixel[3] - basePixel[3]) / max<float>(255 - basePixel[3], basePixel[3]); local 120 float distance = sqrtf(red * red + green * green + blue * blue + alpha * alpha) / 2.0f;
|
/external/webkit/Tools/DumpRenderTree/win/ |
H A D | ImageDiffCairo.cpp | 127 float alpha = pixelDifference(baselinePixel[3], actualPixel[3]); local 129 float distance = sqrtf(red * red + green * green + blue * blue + alpha * alpha) / 2.0;
|
/external/mesa3d/src/pixelflinger2/ |
H A D | llvm_texture.cpp | 91 Value * alpha = builder.CreateAnd(texel, builder.getInt32(0xff00)); local 95 texel = builder.CreateOr(texel, builder.CreateShl(alpha, 16));
|
/external/opencv/cv/src/ |
H A D | cvoptflowhs.cpp | 52 float alpha; /* alpha = 1 / ( 1/lambda + xx + yy ) */ member in struct:__anon9578 266 II[address].alpha = 1 / (Ilambda + II[address].xx + II[address].yy); 289 II[address].alpha = 1 / (Ilambda + II[address].xx + II[address].yy); 313 II[address].alpha = 1 / (Ilambda + II[address].xx + II[address].yy); 371 II[address].xy * averageY + II[address].xt) * II[address].alpha; 375 II[address].yy * averageY + II[address].yt) * II[address].alpha; 398 II[address].xy * averageY + II[address].xt) * II[address].alpha; 402 II[address].yy * averageY + II[address].yt) * II[address].alpha; 427 II[address].xy * averageY + II[address].xt) * II[address].alpha; [all...] |
H A D | cvsnakes.cpp | 58 // alpha - pointer to coefficient of continuity energy, 61 // coeffUsage - if CV_VALUE - alpha, beta, gamma point to single value 76 float *alpha, 129 if( alpha == NULL ) 349 _alpha = *alpha; 355 _alpha = alpha[i]; 410 int length, float *alpha, 433 alpha, beta, gamma, coeffUsage, win, criteria, 71 icvSnake8uC1R( unsigned char *src, int srcStep, CvSize roi, CvPoint * pt, int n, float *alpha, float *beta, float *gamma, int coeffUsage, CvSize win, CvTermCriteria criteria, int scheme ) argument 409 cvSnakeImage( const IplImage* src, CvPoint* points, int length, float *alpha, float *beta, float *gamma, int coeffUsage, CvSize win, CvTermCriteria criteria, int calcGradient ) argument
|
/external/opencv/cvaux/src/ |
H A D | cvbgfg_acmmm2003.cpp | 499 float alpha = stat->is_trained_dyn_model ? model->params.alpha2 : model->params.alpha3; local 504 stat->Pbcc *= (1.f-alpha); 507 stat->Pbcc += alpha; 514 PV_CC(k) *= (1-alpha); 515 PVB_CC(k) *= (1-alpha); 544 PV_CC(indx) = alpha; 545 PVB_CC(indx) = alpha; 555 PV_CC(indx) += alpha; 558 PVB_CC(indx) += alpha; 607 float alpha local [all...] |
/external/qemu/android/skin/ |
H A D | surface.c | 448 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...] |