/external/skia/src/core/ |
H A D | SkBlitter_A8.cpp | 143 const uint8_t* alpha = mask.getAddr8(x, y); local 149 // scale our src by the alpha value 151 int aa = alpha[i]; 170 alpha += mask.fRowBytes; 176 void SkA8_Blitter::blitV(int x, int y, int height, SkAlpha alpha) { argument 181 unsigned sa = SkAlphaMul(fSrcA, SkAlpha255To256(alpha)); 333 const uint8_t* alpha = mask.getAddr8(x, y); local 341 fXfermode->xferA8(device, span, width, alpha); 344 device[i] = aa_blend8(span[i], device[i], alpha[i]); 350 alpha 390 blitV(int x, int y, int height, SkAlpha alpha) argument [all...] |
H A D | SkBlitter_ARGB32.cpp | 19 U8CPU alpha = SkGetPackedA32(srcColor); local 21 if (alpha != 255) { 35 proc(dstRow, srcRow, width, alpha); 186 void SkARGB32_Blitter::blitV(int x, int y, int height, SkAlpha alpha) { argument 187 if (alpha == 0 || fSrcA == 0) { 194 if (alpha != 255) { 195 color = SkAlphaMulQ(color, SkAlpha255To256(alpha)); 292 // we call this on the output from the shader + alpha from the aa buffer 544 void SkARGB32_Shader_Blitter::blitV(int x, int y, int height, SkAlpha alpha) { argument 556 if (255 == alpha) { [all...] |
H A D | SkSpriteBlitter_ARGB32.cpp | 22 Sprite_D32_S32(const SkBitmap& src, U8CPU alpha) : INHERITED(src) { argument 26 if (255 != alpha) { 34 fAlpha = alpha; 45 U8CPU alpha = fAlpha; local 48 proc(dst, src, width, alpha); 274 U8CPU alpha = paint.getAlpha(); local 281 if (alpha != 0xFF) { 294 if (255 == alpha) { 295 // this can handle xfermode or filter, but not alpha 299 // this can handle alpha, bu [all...] |
H A D | SkSpriteBlitter_RGB16.cpp | 79 #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...] |
/external/skia/src/opts/ |
H A D | SkBlitRow_opts_mips_dsp.cpp | 16 U8CPU alpha, int /*x*/, int /*y*/) { 20 alpha += 1; 25 "sll %[s4], %[alpha], 8 \n\t" 26 "or %[s4], %[s4], %[alpha] \n\t" 92 : [alpha]"r"(alpha) 102 *dst++ = SkPackRGB16(SkAlphaBlend(SkPacked32ToR16(c), SkGetPackedR16(d), alpha), 103 SkAlphaBlend(SkPacked32ToG16(c), SkGetPackedG16(d), alpha), 104 SkAlphaBlend(SkPacked32ToB16(c), SkGetPackedB16(d), alpha)); 110 int count, U8CPU alpha, in 14 S32_D565_Blend_mips_dsp(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 108 S32A_D565_Opaque_Dither_mips_dsp(uint16_t* __restrict__ dst, const SkPMColor* __restrict__ src, int count, U8CPU alpha, int x, int y) argument 265 S32_D565_Opaque_Dither_mips_dsp(uint16_t* __restrict__ dst, const SkPMColor* __restrict__ src, int count, U8CPU alpha, int x, int y) argument 375 S32_D565_Blend_Dither_mips_dsp(uint16_t* dst, const SkPMColor* src, int count, U8CPU alpha, int x, int y) argument 536 S32A_D565_Opaque_mips_dsp(uint16_t* __restrict__ dst, const SkPMColor* __restrict__ src, int count, U8CPU alpha, int x, int y) argument 658 S32A_D565_Blend_mips_dsp(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha, int , int ) argument 768 S32_Blend_BlitRow32_mips_dsp(SkPMColor* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src, int count, U8CPU alpha) argument [all...] |
H A D | SkColor_opts_SSE2.h | 28 static inline __m128i SkAlpha255To256_SSE2(const __m128i& alpha) { argument 29 return _mm_add_epi32(alpha, _mm_set1_epi32(1));
|
/external/skia/tests/ |
H A D | BlitRowTest.cpp | 233 uint8_t alpha = (k & 2) ? 0x80 : 0xFF; local 235 paint.setAlpha(alpha); 251 " alpha=0x%x src=0x%x", 253 alpha, c);
|
/external/speex/libspeex/ |
H A D | scal.c | 76 float *alpha; member in struct:SpeexDecorrState_ 99 st->alpha = speex_alloc(channels*sizeof(float)); 113 st->alpha[ch] = 0; 160 float alpha; local 166 alpha = st->alpha[ch]; 185 st->y[i] = alpha*(x[i-ALLPASS_ORDER+order]-beta*x[i-ALLPASS_ORDER+order-1])*st->vorbis_win[st->frame_size+i+order] 187 - alpha*(ring[ringID] 204 alpha = alpha [all...] |
/external/stlport/stlport/stl/ |
H A D | _ctype.h | 47 alpha = _Locale_ALPHA, enumerator in enum:ctype_base::mask 51 alnum = alpha | digit,
|
/external/webp/src/dsp/ |
H A D | alpha_processing.c | 35 { // (255u << MFIX) / alpha 79 { // alpha * KINV_255 141 if (argb < 0xff000000u) { // alpha < 255 142 if (argb <= 0x00ffffffu) { // alpha == 0 145 const uint32_t alpha = (argb >> 24) & 0xff; local 146 const uint32_t scale = GetScale(alpha, inverse); 157 static void MultRow(uint8_t* const ptr, const uint8_t* const alpha, argument 161 const uint32_t a = alpha[x]; 178 void (*WebPMultRow)(uint8_t* const ptr, const uint8_t* const alpha, 194 const uint8_t* alpha, in 193 WebPMultRows(uint8_t* ptr, int stride, const uint8_t* alpha, int alpha_stride, int width, int num_rows, int inverse) argument 224 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3); local [all...] |
/external/webp/src/enc/ |
H A D | picture_tools.c | 10 // WebPPicture tools: alpha handling, etc. 150 const int alpha = a_ptr[x]; local 151 if (alpha < 0xff) { 162 // Average four alpha values into a single blending weight. 164 const int alpha = local 167 u[x] = BLEND_10BIT(U0, u[x], alpha); 168 v[x] = BLEND_10BIT(V0, v[x], alpha); 171 const int alpha = 2 * (a_ptr[2 * x + 0] + a_ptr2[2 * x + 0]); local 172 u[x] = BLEND_10BIT(U0, u[x], alpha); 173 v[x] = BLEND_10BIT(V0, v[x], alpha); 183 const int alpha = (argb[x] >> 24) & 0xff; local [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/banners/ |
H A D | SwipableOverlayView.java | 482 * @return The alpha value to use for the View. 531 * @param alpha How opaque the View should be at the end. 536 private void createAnimation(float alpha, float x, float y, long duration) { argument 539 PropertyValuesHolder.ofFloat("alpha", getAlpha(), alpha));
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
H A D | PopupTouchHandleDrawable.java | 361 private void setOpacity(float alpha) { argument
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
H A D | DeviceSensorsTest.java | 195 float alpha = (float) Math.PI / 4; 196 float[] values = {0, 0, (float) Math.sin(alpha / 2), (float) Math.cos(alpha / 2), -1}; 199 mDeviceSensors.verifyValuesEpsilon(Math.toDegrees(alpha), 0, 0); 242 float alpha = (float) Math.PI / 4; 243 float[] values = {0, 0, (float) Math.sin(alpha / 2), (float) Math.cos(alpha / 2), -1}; 246 mDeviceSensors.verifyValuesEpsilon(Math.toDegrees(alpha), 0, 0); 393 protected void gotOrientation(double alpha, double beta, double gamma) { argument 394 mValue1 = alpha; 417 gotRotationRate(double alpha, double beta, double gamma) argument [all...] |
/external/chromium_org/pdf/ |
H A D | draw_utils.cc | 32 inline uint32_t MakePixel(uint8 red, uint8 green, uint8 blue, uint8 alpha) { argument 33 return (static_cast<uint32_t>(alpha) << 24) | 48 inline uint8 ProcessColor(uint8 src_color, uint8 dest_color, uint8 alpha) { argument 49 uint32 processed = static_cast<uint32>(src_color) * alpha + 50 static_cast<uint32>(dest_color) * (0xFF - alpha); 79 uint8 alpha = static_cast<uint8>(static_cast<uint32_t>(alpha_adjustment) * local 81 uint8 red = ProcessColor(GetRed(*src_pixel), GetRed(*dest_pixel), alpha); 83 GetGreen(*dest_pixel), alpha); 85 GetBlue(*dest_pixel), alpha); 258 uint8 alpha local [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
H A D | Shape.cpp | 211 uint8_t alpha = pixelArray->item(pixelArrayOffset); local 212 bool alphaAboveThreshold = alpha > alphaPixelThreshold;
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
H A D | SincResampler.cpp | 91 double alpha = 0.16; local 92 double a0 = 0.5 * (1.0 - alpha); 94 double a2 = 0.5 * alpha;
|
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/ |
H A D | BMPImageReader.h | 230 // For images without alpha, return alpha of 0xff. 246 unsigned alpha) 248 m_buffer->setRGBA(m_coord.x(), m_coord.y(), red, green, blue, alpha); 260 unsigned alpha) 263 setRGBA(red, green, blue, alpha); 335 // Variables that track whether we've seen pixels with alpha values != 0 243 setRGBA(unsigned red, unsigned green, unsigned blue, unsigned alpha) argument 256 fillRGBA(int endCoord, unsigned red, unsigned green, unsigned blue, unsigned alpha) argument
|
/external/chromium_org/third_party/libwebp/enc/ |
H A D | alpha.c | 24 // Encodes the given alpha data via specified compression method 'method'. 29 // 'method = 1' - Use lossless coder on the alpha plane only 36 // 'output' corresponds to the buffer containing compressed alpha data. 39 // 'output_size' corresponds to size of this compressed alpha buffer. 41 // Returns 1 on successfully encoding the alpha and 64 // Transfer the alpha values to the green channel. 81 // Set a low default quality for encoding alpha. Ensure that Alpha quality at 126 // TODO(skal): have a common function and #define's to validate alpha params. 192 static uint32_t GetFilterMap(const uint8_t* alpha, int width, int height, argument 200 const int num_colors = GetNumColors(alpha, widt 223 ApplyFiltersAndEncode(const uint8_t* alpha, int width, int height, size_t data_size, int method, int filter, int reduce_levels, int effort_level, uint8_t** const output, size_t* const output_size, WebPAuxStats* const stats) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/ |
H A D | sp_quad_blend.c | 291 const float *alpha = quadColor[3]; local 292 VEC4_MUL(source[0], quadColor[0], alpha); /* R */ 293 VEC4_MUL(source[1], quadColor[1], alpha); /* G */ 294 VEC4_MUL(source[2], quadColor[2], alpha); /* B */ 304 const float *alpha = dest[3]; local 305 VEC4_MUL(source[0], quadColor[0], alpha); /* R */ 306 VEC4_MUL(source[1], quadColor[1], alpha); /* G */ 307 VEC4_MUL(source[2], quadColor[2], alpha); /* B */ 312 const float *alpha = quadColor[3]; local 315 VEC4_MIN(temp, alpha, dif 334 float alpha[4]; local 348 const float *alpha = quadColor2[3]; local 457 const float *alpha = quadColor[3]; local 514 const float *alpha = quadColor2[3]; local 567 const float *alpha = quadColor[3]; local 1045 const float *alpha = quadColor[3]; local [all...] |
H A D | sp_quad_depth_test.c | 679 const float ref = qs->softpipe->depth_stencil->alpha.ref_value; \ 680 const uint cbuf = 0; /* only output[0].alpha is tested */ \ 718 switch (qs->softpipe->depth_stencil->alpha.func) { 778 if (qs->softpipe->depth_stencil->alpha.enabled) { 886 boolean alpha = qs->softpipe->depth_stencil->alpha.enabled; local 905 if (!alpha && 911 else if (!alpha &&
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
H A D | s_renderbuffer.c | 487 GLboolean alpha, 482 _swrast_add_soft_renderbuffers(struct gl_framebuffer *fb, GLboolean color, GLboolean depth, GLboolean stencil, GLboolean accum, GLboolean alpha, GLboolean aux) argument
|
/external/chromium_org/third_party/skia/bench/ |
H A D | BitmapBench.cpp | 66 - src depth (32 w+w/o alpha), 565, 4444, index, a8 67 - paint options: filtering, dither, alpha 263 /** Verify optimizations that test source alpha values. */ 273 SourceAlphaBitmapBench(SourceAlpha alpha, SkColorType ct, argument 276 , fSourceAlpha(alpha) { 375 // source alpha tests -> S32A_Opaque_BlitRow32_{arm,neon}
|
H A D | GradientBench.cpp | 350 fName.printf("gradient_create_%s", hasAlpha ? "alpha" : "opaque"); 371 const int alpha = fHasAlpha ? gray : 0xFF; local 374 SkColorSetARGB(alpha, gray, gray, gray),
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkConvolver.cpp | 234 unsigned char alpha = ClampTo8(accum[3]); local 236 // Make sure the alpha channel doesn't come out smaller than any of the 237 // color channels. We use premultipled alpha channels, so this should 246 if (alpha < maxColorChannel) { 249 outRow[byteOffset + 3] = alpha; 252 // No alpha channel, the image is opaque.
|