/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkPerlinNoiseShader.cpp | 431 if (channel == 3) { // Scale alpha by paint value 551 const SkMatrix& matrix, uint8_t alpha) { 553 permutationsTexture, noiseTexture, matrix, alpha)); 571 uint8_t alpha() const { return fAlpha; } function in class:SkPerlinNoiseShader::PaintingData::GrPerlinNoiseEffect 593 const SkMatrix& matrix, uint8_t alpha) 597 , fAlpha(alpha) 683 kFloat_GrSLType, "alpha"); 957 pdman.set1f(fAlphaUni, SkScalarDiv(SkIntToScalar(turbulence.alpha()), SkIntToScalar(255))); 547 Create(SkPerlinNoiseShader::Type type, int numOctaves, bool stitchTiles, SkPerlinNoiseShader::PaintingData* paintingData, GrTexture* permutationsTexture, GrTexture* noiseTexture, const SkMatrix& matrix, uint8_t alpha) argument 589 GrPerlinNoiseEffect(SkPerlinNoiseShader::Type type, int numOctaves, bool stitchTiles, SkPerlinNoiseShader::PaintingData* paintingData, GrTexture* permutationsTexture, GrTexture* noiseTexture, const SkMatrix& matrix, uint8_t alpha) argument
|
/external/chromium_org/third_party/skia/src/opts/ |
H A D | SkBlitRow_opts_SSE2.cpp | 21 int count, U8CPU alpha) { 22 SkASSERT(alpha <= 255); 27 uint32_t src_scale = SkAlpha255To256(alpha); 68 // Get alpha and green pixels into higher byte of each word. 114 int count, U8CPU alpha) { 115 SkASSERT(alpha == 255); 143 __m128i alpha = _mm_srli_epi32(src_pixel, 24); local 145 // Copy alpha to upper 3rd byte of each quad 146 alpha = _mm_or_si128(alpha, _mm_slli_epi3 19 S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument 112 S32A_Opaque_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument 192 __m128i alpha = _mm_srli_epi16(src_pixel, 8); local 237 S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument 857 S32_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 934 S32A_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 1053 S32_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int x, int y) argument 1170 S32A_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int x, int y) argument [all...] |
H A D | SkBlitRow_opts_arm_neon.cpp | 69 U8CPU alpha, int /*x*/, int /*y*/) { 70 SkASSERT(255 == alpha); 107 U8CPU alpha, int /*x*/, int /*y*/) { 108 SkASSERT(255 > alpha); 113 vscale = vdupq_n_u16(SkAlpha255To256(alpha)); 177 int scale = SkAlpha255To256(alpha); 193 U8CPU alpha, int /*x*/, int /*y*/) { 194 SkASSERT(255 == alpha); 251 // intentionally don't calculate alpha 331 // intentionally don't calculate alpha 67 S32_D565_Opaque_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 105 S32_D565_Blend_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 191 S32A_D565_Opaque_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 371 S32A_D565_Opaque_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 474 S32A_D565_Blend_neon(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 605 S32_D565_Blend_Dither_neon(uint16_t *dst, const SkPMColor *src, int count, U8CPU alpha, int x, int y) argument 740 S32A_Opaque_BlitRow32_neon(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument 843 S32A_Opaque_BlitRow32_neon_src_alpha(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument 1019 S32_Blend_BlitRow32_neon(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument 1084 S32A_Blend_BlitRow32_neon(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument 1211 S32A_D565_Opaque_Dither_neon(uint16_t * SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int x, int y) argument 1412 unsigned alpha = SkAlpha255To256(a); local 1438 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...] |
H A D | SkXfermode_opts_arm_neon.cpp | 16 static inline uint8x8_t SkAlphaMulAlpha_neon8(uint8x8_t color, uint8x8_t alpha) { argument 20 tmp = vmull_u8(color, alpha); 29 static inline uint16x8_t SkAlphaMulAlpha_neon8_16(uint8x8_t color, uint8x8_t alpha) { argument 32 ret = vmull_u8(color, alpha); 338 // First calc alpha
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
H A D | lpc_masking_model.c | 725 int16_t alpha=328; //0.01 in Q15 local 734 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(alpha, tmp); 737 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(WEBRTC_SPL_LSHIFT_W16(alpha, (sh-shMem)), tmp); // Shift alpha the number of times required to get tmp in QdomLO 740 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(WEBRTC_SPL_LSHIFT_W16(alpha, 6), tmp); // Shift alpha as much as possible without overflow the number of times required to get tmp in QdomHI 772 int16_t alpha=328; //0.01 in Q15 local 780 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(alpha, tmp); 787 tmp = WEBRTC_SPL_MUL_16_32_RSFT15(WEBRTC_SPL_LSHIFT_W16(alpha, (sh-shMem)), tmp); // Shift alpha th [all...] |
/external/chromium_org/ui/gfx/ |
H A D | canvas.cc | 186 void Canvas::SaveLayerAlpha(uint8 alpha) { argument 187 canvas_->saveLayerAlpha(NULL, alpha); 190 void Canvas::SaveLayerAlpha(uint8 alpha, const Rect& layer_bounds) { argument 192 canvas_->saveLayerAlpha(&bounds, alpha);
|
H A D | skbitmap_operations.cc | 48 double alpha) { 49 DCHECK((alpha >= 0) && (alpha <= 1)); 58 if (alpha < alpha_min) 60 else if (alpha > alpha_max) 69 double first_alpha = 1 - alpha; 81 (SkColorGetA(second_pixel) * alpha)); 83 (SkColorGetR(second_pixel) * alpha)); 85 (SkColorGetG(second_pixel) * alpha)); 87 (SkColorGetB(second_pixel) * alpha)); 46 CreateBlendedBitmap(const SkBitmap& first, const SkBitmap& second, double alpha) argument 97 CreateMaskedBitmap(const SkBitmap& rgb, const SkBitmap& alpha) argument 120 int alpha = SkAlphaMul(SkColorGetA(rgb_pixel), local [all...] |
/external/chromium_org/ui/gfx/codec/ |
H A D | png_codec.cc | 46 int alpha = SkGetPackedA32(pixel_in); local 47 if (alpha != 0 && alpha != 255) { 112 // pixel with anything other than an alpha of 255. 146 const unsigned char alpha = p[channels - 1]; local 147 if (alpha != 255) { 149 *sk_pixel = SkPreMultiplyARGB(alpha, p[0], p[1], p[2]); 151 *sk_pixel = SkPackARGB32(alpha, p[0], p[1], p[2]); 680 // since alpha is the only thing we have and it needs to be used for
|
/external/chromium_org/ui/message_center/views/ |
H A D | notification_view.cc | 83 // Return true if and only if the image is null or has alpha. 90 // Extract that bitmap's alpha and look for a non-opaque pixel there. 93 SkBitmap alpha; local 94 bitmap.extractAlpha(&alpha); 97 if (alpha.getColor(x, y) != SK_ColorBLACK) {
|
/external/deqp/framework/opengl/simplereference/ |
H A D | sglrContextWrapper.cpp | 249 void ContextWrapper::glClearColor (float red, float green, float blue, float alpha) argument 251 m_curCtx->clearColor(red, green, blue, alpha); 339 void ContextWrapper::glBlendColor (float red, float green, float blue, float alpha) argument 341 m_curCtx->blendColor(red, green, blue, alpha);
|
/external/deqp/modules/egl/ |
H A D | teglGLES2SharingTests.cpp | 812 int alpha = deClamp32((int)(255.0f * color.w()), 0, 255); local 814 reference->setPixel(x, y, tcu::RGBA(red, green, blue, alpha)); 1101 int alpha = deClamp32((int)(255.0f * color.w()), 0, 255); local 1103 reference->setPixel(x, y, tcu::RGBA(red, green, blue, alpha));
|
/external/eigen/Eigen/src/Core/products/ |
H A D | GeneralBlockPanelKernel.h | 211 EIGEN_STRONG_INLINE void acc(const AccPacket& c, const ResPacket& alpha, ResPacket& r) const argument 213 r = pmadd(c,alpha,r); 292 EIGEN_STRONG_INLINE void acc(const AccPacket& c, const ResPacket& alpha, ResPacket& r) const argument 294 r = cj.pmadd(c,alpha,r); 390 EIGEN_STRONG_INLINE void acc(const Scalar& c, const Scalar& alpha, Scalar& r) const { r += alpha * c; } argument 392 EIGEN_STRONG_INLINE void acc(const DoublePacket& c, const ResPacket& alpha, ResPacket& r) const argument 417 r = pmadd(tmp,alpha,r); 497 EIGEN_STRONG_INLINE void acc(const AccPacket& c, const ResPacket& alpha, ResPacket& r) const argument 499 r = cj.pmadd(alpha, 538 operator ()(ResScalar* res, Index resStride, const LhsScalar* blockA, const RhsScalar* blockB, Index rows, Index depth, Index cols, ResScalar alpha, Index strideA, Index strideB, Index offsetA, Index offsetB, RhsScalar* unpackedB) argument [all...] |
/external/libpng/contrib/libtests/ |
H A D | makepng.c | 34 * alpha channel increases in opacity from left to right. 160 unsigned int green, unsigned int blue, unsigned int alpha, 166 *trans = (png_byte)alpha; 238 /* alpha: 0, 102, 204, 255) */ 341 * the alpha channel increases in opacity from left to right. 345 png_uint_32 alpha = (depth_max * y * 2 + size_max) / (2 * size_max); local 353 set_value(row, rowbytes, 2*x+1, bit_depth, alpha, gamma_table, 398 /* x0: the transparent->blue scale (the value of the blue and alpha 401 * components at the end of the row; blue is 0 and alpha is 413 * alpha 159 set_color(png_colorp color, png_bytep trans, unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha, png_const_bytep gamma_table) argument 463 const png_uint_32 alpha = colors[2]; local 500 const png_uint_32 alpha = colors[4]; local [all...] |
/external/libpng/ |
H A D | pngwrite.c | 215 /* Invert the alpha channel (in tRNS) */ 1587 /* Swap location of alpha bytes from ARGB to RGBA */ 1597 * alpha channel. 1644 /* Invert the alpha channel from opacity to transparency */ 1771 const png_uint_16 alpha = in_ptr[aindex]; local 1775 out_ptr[aindex] = alpha; 1778 * component/alpha*65535 << 15. (I.e. 15 bits of precision); this 1782 if (alpha > 0 && alpha < 65535) 1783 reciprocal = ((0xffff<<15)+(alpha>> 1837 png_unpremultiply(png_uint_32 component, png_uint_32 alpha, png_uint_32 reciprocal ) argument 1922 png_uint_16 alpha = in_ptr[aindex]; local 2040 png_uint_16 alpha = entry[afirst ? 0 : channels-1]; local 2135 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA) != 0; local [all...] |
/external/libvpx/libvpx/vp8/common/ |
H A D | postproc.c | 541 int y_1, int u_1, int v_1, int alpha, int stride) 544 int y1_const = y_1*((1<<16)-alpha); 545 int u1_const = u_1*((1<<16)-alpha); 546 int v1_const = v_1*((1<<16)-alpha); 553 y[j] = (y[j]*alpha + y1_const)>>16; 567 u[j] = (u[j]*alpha + u1_const)>>16; 568 v[j] = (v[j]*alpha + v1_const)>>16; 579 int y_1, int u_1, int v_1, int alpha, int stride) 582 int y1_const = y_1*((1<<16)-alpha); 583 int u1_const = u_1*((1<<16)-alpha); 540 vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y_1, int u_1, int v_1, int alpha, int stride) argument 578 vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y_1, int u_1, int v_1, int alpha, int stride) argument 642 vp8_blend_b_c(unsigned char *y, unsigned char *u, unsigned char *v, int y_1, int u_1, int v_1, int alpha, int stride) argument [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_state_fs.c | 36 * - alpha test 212 * Generate the fragment shader, depth/stencil test, and alpha tests. 262 if (key->alpha.enabled || shader->info.base.uses_kill) 263 /* With alpha test and kill, can do the depth test early 347 if (key->alpha.enabled) { 354 LLVMValueRef alpha = LLVMBuildLoad(builder, outputs[color0][3], "alpha"); local 362 lp_build_alpha_test(gallivm, key->alpha.func, type, cbuf_format_desc, 363 &mask, alpha, alpha_ref_value, 439 * Generate the fragment shader, depth/stencil test, and alpha test 593 LLVMValueRef alpha = LLVMBuildLoad(builder, outputs[color0][3], "alpha"); local [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | arc.c | 562 double t, alpha; local 609 alpha = sin(d_eta) * (sqrt(4 + 3 * t * t) - 1) / 3; 636 (float) (xA + alpha * xADot), (float) (yA + alpha * yADot), 637 (float) (x_b - alpha * x_b_dot), (float) (y_b - alpha * y_b_dot),
|
/external/mesa3d/src/mesa/main/ |
H A D | mipmap.c | 536 const GLint alpha = (rowAa0 + rowAa1 + rowBa0 + rowBa1) >> 2; local 537 dst[i] = (alpha << 12) | (blue << 8) | (green << 4) | red; 566 const GLint alpha = (rowAa0 + rowAa1 + rowBa0 + rowBa1) >> 2; local 567 dst[i] = (alpha << 15) | (blue << 10) | (green << 5) | red; 596 const GLint alpha = (rowAa0 + rowAa1 + rowBa0 + rowBa1) >> 2; local 597 dst[i] = (red << 11) | (green << 6) | (blue << 1) | alpha; 674 const GLint alpha = (rowAa0 + rowAa1 + rowBa0 + rowBa1) >> 2; local 675 dst[i] = (alpha << 30) | (blue << 20) | (green << 10) | red;
|
/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/pdfium/core/src/fxge/agg/agg23/ |
H A D | agg_rasterizer_scanline_aa.h | 338 unsigned alpha; local 349 alpha = calculate_alpha((cover << (poly_base_shift + 1)) - area, no_smooth); 350 if(alpha) { 351 sl.add_cell(x, alpha); 356 alpha = calculate_alpha(cover << (poly_base_shift + 1), no_smooth); 357 if(alpha) { 358 sl.add_span(x, cur_cell->x - x, alpha);
|
/external/pdfium/fpdfsdk/src/ |
H A D | fpdfview.cpp | 703 DLLEXPORT FPDF_BITMAP STDCALL FPDFBitmap_Create(int width, int height, int alpha)
argument 706 pBitmap->Create(width, height, alpha ? FXDIB_Argb : FXDIB_Rgb32);
735 int red, int green, int blue, int alpha)
744 if (!((CFX_DIBitmap*)bitmap)->HasAlpha()) alpha = 255;
746 device.FillRect(&rect, FXARGB_MAKE(alpha, red, green, blue));
734 FPDFBitmap_FillRect(FPDF_BITMAP bitmap, int left, int top, int width, int height, int red, int green, int blue, int alpha) argument
|
/external/pixman/pixman/ |
H A D | pixman-bits-image.c | 1470 /* Affine, no alpha */ 1534 uint32_t *alpha; local 1536 if ((alpha = malloc (width * sizeof (uint32_t)))) 1545 x, y, width, alpha, mask); 1550 buffer[i] |= (alpha[i] & 0xff000000); 1553 free (alpha); 1573 argb_t *alpha; local 1575 if ((alpha = malloc (width * sizeof (argb_t)))) 1584 x, y, width, (uint32_t *)alpha, mask); 1587 buffer[i].a = alpha[ [all...] |
/external/qemu/android/skin/ |
H A D | trackball.c | 158 typedef struct { int x, y, offset, alpha; Fix16VectorRec f; } SphereCoordRec, *SphereCoord; member in struct:__anon29198 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...] |