/external/webkit/Source/WebCore/platform/graphics/gpu/ |
H A D | SharedGraphicsContext3D.cpp | 396 void SharedGraphicsContext3D::useTextureProgram(const AffineTransform& transform, const AffineTransform& texTransform, float alpha) argument 398 m_texShader->use(transform, texTransform, 0, alpha); 401 void SharedGraphicsContext3D::useBicubicProgram(const AffineTransform& transform, const AffineTransform& texTransform, const float coefficients[16], const float imageIncrement[2], float alpha) argument 403 m_bicubicShader->use(transform, texTransform, coefficients, imageIncrement, alpha);
|
/external/webkit/Source/WebKit2/WebProcess/WebPage/ |
H A D | WebFrame.cpp | 539 bool WebFrame::getDocumentBackgroundColor(double* red, double* green, double* blue, double* alpha) argument 560 color.getRGBA(*red, *green, *blue, *alpha);
|
/external/webp/src/dec/ |
H A D | io.c | 164 const uint8_t* alpha = io->a; local 171 if (alpha != NULL) { 173 memcpy(dst, alpha, mb_w * sizeof(*dst)); 174 alpha += io->width; 178 // the user requested alpha, but there is none, set it to opaque. 188 const uint8_t** alpha, int* const num_rows) { 200 // Fortunately, *alpha data is persistent, so we can go back 201 // one row and finish alpha blending, now that the fancy upscaler 203 *alpha -= io->width; 214 const uint8_t* alpha local 187 GetAlphaSourceRow(const VP8Io* const io, const uint8_t** alpha, int* const num_rows) argument 249 const uint8_t* alpha = io->a; local [all...] |
/external/aac/libAACenc/src/ |
H A D | metadata_compressor.cpp | 777 FIXP_DBL gain, alpha, lvl2smthlvl; local 811 alpha = drcComp->fastAttack[i]; 815 alpha = drcComp->slowAttack[i]; 822 alpha = drcComp->fastDecay[i]; 826 alpha = drcComp->slowDecay[i]; 834 /* drcComp->smoothLevel[i] = (1-alpha) * drcComp->smoothLevel[i] + alpha * level; */ 835 accu = fMult((FL2FXCONST_DBL(1.f)-alpha), drcComp->smoothLevel[i]); 836 accu += fMult(alpha,level); 839 /* drcComp->smoothGain[i] = (1-alpha) * drcCom [all...] |
/external/chromium/chrome/browser/themes/ |
H A D | browser_theme_pack.cc | 681 double alpha; local 683 if (color_list->GetDouble(3, &alpha)) { 684 color = SkColorSetARGB(static_cast<int>(alpha * 255), r, g, b);
|
/external/chromium/chrome/browser/ui/views/autocomplete/ |
H A D | autocomplete_popup_contents_view.cc | 524 // the children since they paint text, and GDI will reset this alpha data if 543 // Now we paint the border, so it will be alpha-blended atop the contents. 609 SkAlpha alpha = GetThemeProvider()->ShouldUseNativeFrame() ? local 613 AutocompleteResultView::BACKGROUND), alpha), SkXfermode::kDstIn_Mode);
|
/external/chromium/chrome/browser/ui/views/tabs/ |
H A D | tab.cc | 463 TabImage* alpha = &tab_alpha_; local 481 SkBitmapOperations::CreateMaskedBitmap(tab_l, *alpha->image_l); 492 SkBitmapOperations::CreateMaskedBitmap(tab_r, *alpha->image_r); 540 TabImage* alpha = &tab_alpha_; local 546 SkBitmapOperations::CreateMaskedBitmap(tab_l, *alpha->image_l); 553 SkBitmapOperations::CreateMaskedBitmap(tab_r, *alpha->image_r);
|
/external/libvpx/vp8/common/ |
H A D | postproc.c | 499 int y1, int u1, int v1, int alpha, int stride) 502 int y1_const = y1*((1<<16)-alpha); 503 int u1_const = u1*((1<<16)-alpha); 504 int v1_const = v1*((1<<16)-alpha); 511 y[j] = (y[j]*alpha + y1_const)>>16; 525 u[j] = (u[j]*alpha + u1_const)>>16; 526 v[j] = (v[j]*alpha + v1_const)>>16; 537 int y1, int u1, int v1, int alpha, int stride) 540 int y1_const = y1*((1<<16)-alpha); 541 int u1_const = u1*((1<<16)-alpha); 498 vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride) argument 536 vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride) argument 600 vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride) argument [all...] |
/external/opencv/cvaux/src/ |
H A D | cvlevmarprojbandle.cpp | 1303 double alpha; local 1338 alpha = 0.001; 1441 /* ========== Solve normal equation for given alpha and Jacobian ============ */ 1445 /* ---- Add alpha to matrices --- */ 1446 /* Add alpha to matrInvVi and make workMatrsInvVi */ 1455 cvmSet(workMatrVi,i,i,cvmGet(matrsVi[currV],i,i)*(1+alpha) ); 1461 /* Add alpha to matrUk and make matrix workMatrsUk */ 1467 cvmSet(workMatrsUk[currImage],i,i,cvmGet(matrsUk[currImage],i,i)*(1+alpha)); 1706 alpha /= 10; 1717 alpha * [all...] |
/external/opencv/cxcore/src/ |
H A D | cxarithm.cpp | 1824 icvAddWeighted_##flavor##_C1R( const arrtype* src1, int step1, double alpha, \ 1836 worktype t0 = cast_macro1(load_macro((src1)[i])*alpha + \ 1838 worktype t1 = cast_macro1(load_macro((src1)[i+1])*alpha + \ 1844 t0 = cast_macro1(load_macro((src1)[i+2])*alpha + \ 1846 t1 = cast_macro1(load_macro((src1)[i+3])*alpha + \ 1855 worktype t0 = cast_macro1(load_macro((src1)[i])*alpha + \ 1869 icvAddWeighted_8u_fast_C1R( const uchar* src1, int step1, double alpha, argument 1877 alpha *= 1 << shift; 1885 t += alpha; 1968 typedef CvStatus (CV_STDCALL *CvAddWeightedFunc)( const void* src1, int step1, double alpha, 1974 cvAddWeighted( const CvArr* srcAarr, double alpha, const CvArr* srcBarr, double beta, double gamma, CvArr* dstarr ) argument [all...] |
/external/qemu/android/ |
H A D | main-common.c | 566 int alpha, rotate; local 568 if ( opts->onion_alpha && 1 == sscanf( opts->onion_alpha, "%d", &alpha ) ) { 569 alpha = (256*alpha)/100; 571 alpha = 128; 579 qemulator_get()->onion_alpha = alpha;
|
/external/qemu/android/skin/ |
H A D | trackball.c | 158 typedef struct { int x, y, offset, alpha; Fix16VectorRec f; } SphereCoordRec, *SphereCoord; member in struct:__anon10294 328 coord->alpha = 256; 333 coord->alpha = 256*(radius - r0); 351 coord->alpha = coord->alpha * scale; 358 coord->alpha = 0; 360 coord->alpha = -256*(r0 - (radius2-1.)); 400 color_blend( unsigned from, unsigned to, int alpha ) 406 unsigned result_ag = (from_ag + (alpha*(to_ag - from_ag) >> 8)) & 0xff00ff; 407 unsigned result_rb = (from_rb + (alpha*(to_r [all...] |
/external/qemu/distrib/sdl-1.2.15/include/ |
H A D | SDL_video.h | 41 * These define alpha as the opacity of a surface 89 /** Alpha value information (per-surface alpha) */ 90 Uint8 alpha; member in struct:SDL_PixelFormat 154 #define SDL_SRCALPHA 0x00010000 /**< Blit uses source alpha blending */ 540 * SDL_SRCALPHA means that the surface will be used for alpha blits and 541 * if the hardware supports hardware acceleration of alpha blits between 619 * This function sets the alpha value for the entire surface, as opposed to 620 * using the alpha component of each pixel. This value measures the range 622 * being completely opaque. An 'alpha' value of 255 causes blits to be 624 * that per-surface alpha ca [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/ |
H A D | SDL_RLEaccel.c | 25 * 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...] |
H A D | SDL_blit_A.c | 63 /* Functions to perform alpha blended blitting */ 65 /* N->1 blending with per-surface alpha */ 79 const unsigned A = srcfmt->alpha; 118 /* N->1 blending with pixel alpha */ 132 /* FIXME: fix alpha bit field expansion here too? */ 171 /* colorkeyed N->1 blending with per-surface alpha */ 186 const int A = srcfmt->alpha; 228 /* fast RGB888->(A)RGB888 blending with surface alpha=128 special case */ 244 movd_m2r(dalpha, mm7); /* dst alpha mask */ 245 punpckldq_r2r(mm7, mm7); /* dst alpha mas 283 unsigned alpha = info->src->alpha; local 506 unsigned alpha = info->src->alpha; local 940 unsigned alpha = info->src->alpha; local 1257 unsigned alpha = info->src->alpha; local 1353 unsigned alpha = info->src->alpha; local 1461 unsigned alpha = info->src->alpha; local 1876 unsigned alpha = info->src->alpha; /* downscale alpha to 5 bits */ local 2015 unsigned alpha = info->src->alpha; /* downscale alpha to 5 bits */ local 2161 unsigned alpha = info->src->alpha; local 2295 unsigned alpha = info->src->alpha; local 2431 unsigned alpha = info->src->alpha; local 2467 unsigned alpha = info->src->alpha; /* downscale alpha to 5 bits */ local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/macdsp/ |
H A D | SDL_dspvideo.c | 103 DSP_TRY_CC_AND_AA - Define if you want to try HWA color-key and alpha blitters 105 but hw alpha is neck-and-neck with SDL's soft bitter. 168 static int DSp_SetHWAlpha(_THIS, SDL_Surface *surface, UInt8 alpha); 209 RGBColor alpha; // alpha color member in struct:private_hwdata 1018 static int DSp_SetHWAlpha(_THIS, SDL_Surface *surface, UInt8 alpha) argument 1020 surface->hwdata->alpha.red = (alpha / 255.0) * 65535; 1021 surface->hwdata->alpha.blue = (alpha / 255. [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/ |
H A D | SDL_dx5video.c | 436 static int DX5_SetHWAlpha(_THIS, SDL_Surface *surface, Uint8 alpha); 881 /* This is only for alpha channel, and DirectX 6 882 doesn't support 2D alpha blits yet, so set it 0 1980 if ( DX5_SetHWAlpha(this, src, src->format->alpha) < 0 ) { 2047 static int DX5_SetHWAlpha(_THIS, SDL_Surface *surface, Uint8 alpha) argument
|
/external/qemu/telephony/ |
H A D | gsm.c | 1073 sim_adn_alpha_to_utf8( cbytes_t alpha, cbytes_t end, bytes_t dst ) argument 1078 while (alpha < end && end[-1] == 0xff) 1081 if (alpha >= end) 1084 if (alpha[0] == 0x80) { /* UCS/2 source encoding */ 1085 alpha += 1; 1086 result = ucs2_to_utf8( alpha, (end-alpha)/2, dst ); 1093 if (alpha+3 <= end && alpha[0] == 0x81) { 1095 len = alpha[ [all...] |
/external/skia/src/core/ |
H A D | SkBitmap.cpp | 557 isOpaque() for configs that can't support per-pixel alpha. 938 // if the src has alpha, we have to clear the dst first 1224 static bool GetBitmapAlpha(const SkBitmap& src, uint8_t* SK_RESTRICT alpha, argument 1226 SkASSERT(alpha != NULL); 1236 // zero out the alpha buffer and return 1238 memset(alpha, 0, w); 1239 alpha += alphaRowBytes; 1247 memcpy(alpha, s, w); 1249 alpha += alphaRowBytes; 1255 alpha[ [all...] |
H A D | SkBlitter_RGB16.cpp | 60 virtual void blitV(int x, int y, int height, SkAlpha alpha); 87 virtual void blitV(int x, int y, int height, SkAlpha alpha); 211 const uint8_t* SK_RESTRICT alpha = mask.getAddr8(clip.fLeft, clip.fTop); local 225 unsigned aa = *alpha++; 230 alpha += maskRB; 381 const uint8_t* SK_RESTRICT alpha = mask.getAddr8(clip.fLeft, clip.fTop); local 404 /* alpha is 8x8, widen and split to get pair of 16x4's */ 405 alpha_full = vmovl_u8(vld1_u8(alpha)); 452 alpha += UNROLL; 460 SkAlpha255To256(*alpha 482 blitV(int x, int y, int height, SkAlpha alpha) argument 641 const uint8_t* SK_RESTRICT alpha = mask.getAddr8(clip.fLeft, clip.fTop); local 663 blitV(int x, int y, int height, SkAlpha alpha) argument 704 int alpha = shader->getSpan16Alpha(); local 718 int alpha = shader->getSpan16Alpha(); local 766 int alpha = shader->getSpan16Alpha(); local [all...] |
H A D | SkScan_Path.cpp | 348 virtual void blitV(int x, int y, int height, SkAlpha alpha) { argument
|
/external/skia/src/opts/ |
H A D | SkBlitRow_opts_arm.cpp | 21 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/speex/libspeex/ |
H A D | mdf.c | 704 spx_float_t alpha, alpha_1; local 1083 alpha = FLOAT_DIV32(tmp32, See); 1084 alpha_1 = FLOAT_SUB(FLOAT_ONE, alpha); 1086 st->Pey = FLOAT_ADD(FLOAT_MULT(alpha_1,st->Pey) , FLOAT_MULT(alpha,Pey)); 1087 st->Pyy = FLOAT_ADD(FLOAT_MULT(alpha_1,st->Pyy) , FLOAT_MULT(alpha,Pyy));
|
/external/webkit/Source/WebCore/platform/graphics/android/context/ |
H A D | GraphicsContextAndroid.cpp | 439 void GraphicsContext::setAlpha(float alpha) argument 443 platformContext()->setAlpha(alpha);
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
H A D | PlatformContextSkia.cpp | 106 // Helper function for applying the state's alpha value to the given input 457 void PlatformContextSkia::setAlpha(float alpha) argument 459 m_state->m_alpha = alpha; 538 int alpha = roundf(m_state->m_alpha * 256); local 539 if (alpha > 255) 540 alpha = 255; 541 else if (alpha < 0) 542 alpha = 0; 543 return alpha; 651 // only look at the alpha whe [all...] |