/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
H A D | TestWindow.java | 127 @Override public void setFeatureDrawableAlpha(int featureId, int alpha) { argument
|
/external/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 273 /** Verify optimizations that test source alpha values. */ 283 SourceAlphaBitmapBench(SourceAlpha alpha, SkColorType ct, argument 286 , fSourceAlpha(alpha) { 386 // source alpha tests -> S32A_Opaque_BlitRow32_{arm,neon}
|
H A D | GradientBench.cpp | 331 fName.printf("gradient_create_%s", hasAlpha ? "alpha" : "opaque"); 352 const int alpha = fHasAlpha ? gray : 0xFF; local 355 SkColorSetARGB(alpha, gray, gray, gray),
|
/external/skia/gm/ |
H A D | blurrect.cpp | 90 BlurRectGM(const char name[], U8CPU alpha) argument 92 , fAlpha(SkToU8(alpha)) {
|
/external/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.
|
H A D | SkDistanceFieldGen.cpp | 12 float fAlpha; // alpha value of source texel 107 // computes the distance to an edge given an edge normal vector and a pixel's alpha value 109 static float edge_distance(const SkPoint& direction, float alpha) { argument 114 distance = 0.5f - alpha; 128 // we now compute the approximate distance, depending where the alpha falls 131 // if 0 <= alpha < a1 132 if (alpha*dx < a1num) { 134 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha); 135 // if a1 <= alpha <= 1 - a1 136 } else if (alpha*d 433 float alpha = currData->fAlpha; local [all...] |
H A D | SkMaskFilter.cpp | 140 uint8_t* alpha = (uint8_t*)(runs + innerW + 1); local 152 alpha[0] = *mask.getAddr8(cx, mask.fBounds.top() + y); 153 blitter->blitAntiH(r.left(), outerR.top() + y, alpha, runs); 165 alpha[0] = *mask.getAddr8(cx, mask.fBounds.bottom() - y - 1); 166 blitter->blitAntiH(r.left(), outerR.bottom() - y - 1, alpha, runs);
|
H A D | SkShader.cpp | 140 void SkShader::Context::shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) { argument 157 *alpha++ = SkToU8(a0); 158 *alpha++ = SkToU8(a1); 159 *alpha++ = SkToU8(a2); 160 *alpha++ = SkToU8(a3); 170 *alpha++ = *srcA; 187 *alpha++ = *srcA; 296 // we want this before we apply any alpha 323 void SkColorShader::ColorShaderContext::shadeSpanAlpha(int x, int y, uint8_t alpha[], int count) { argument 324 memset(alpha, SkGetPackedA3 [all...] |
/external/skia/src/effects/ |
H A D | SkAlphaThresholdFilter.cpp | 354 U8CPU alpha = SkColorGetA(source); local 355 if (alpha == 0) 356 alpha = 1; 357 float scale = (float)innerThreshold / alpha;
|
H A D | SkColorFilters.cpp | 100 case SkXfermode::kSA_Coeff: /** src alpha */ 102 case SkXfermode::kISA_Coeff: /** inverse src alpha (i.e. 1 - sa) */ 104 case SkXfermode::kDA_Coeff: /** dst alpha */ 106 case SkXfermode::kIDA_Coeff: /** inverse dst alpha (i.e. 1 - da) */ 357 uint8_t alpha = rand->nextULessThan(256); local 358 GrColor color = GrColorPackRGBA(rand->nextRangeU(0, alpha), 359 rand->nextRangeU(0, alpha), 360 rand->nextRangeU(0, alpha), 361 alpha); 414 unsigned alpha local [all...] |
/external/skia/src/opts/ |
H A D | SkBitmapProcState_opts_SSE2.cpp | 160 // ( alpha, alpha, alpha, alpha, alpha, alpha, alpha, alpha ) 161 __m128i alpha = _mm_set1_epi16(s.fAlphaScale); local 222 // Multiply by alpha [all...] |
H A D | SkBitmapProcState_opts_SSSE3.cpp | 27 // In this file, variations for alpha and non alpha versions are implemented 171 // by alpha when has_alpha is true. 178 const __m128i& alpha) { 183 // Multiply by alpha. 184 *pixels = _mm_mullo_epi16(*pixels, alpha); 197 // @param alpha when has_alpha is true, scale all resulting components by this 200 // ((Aa2 * (16 - x1) + Aa3 * x1) * alpha, ..., 201 // (Ra0 * (16 - x0) + Ra1 * x0) * alpha) (when has_alpha is true) 212 const __m128i& alpha) { 177 ScaleFourPixels(__m128i* pixels, const __m128i& alpha) argument 207 ProcessPixelPairZeroSubY(uint32_t pixel0, uint32_t pixel1, uint32_t pixel2, uint32_t pixel3, const __m128i& scale_x, const __m128i& alpha) argument 224 ProcessOnePixelZeroSubY(uint32_t pixel0, uint32_t pixel1, __m128i scale_x, __m128i alpha) argument 288 ProcessTwoPixelPairs(const uint32_t* row0, const uint32_t* row1, const int* x0, const int* x1, const __m128i& scale_x, const __m128i& all_y, const __m128i& neg_y, const __m128i& alpha) argument 317 ProcessTwoPixelPairsDXDY(const uint32_t* row00, const uint32_t* row01, const uint32_t* row10, const uint32_t* row11, const int* xy0, const int* xy1, const __m128i& scale_x, const __m128i& all_y, const __m128i& neg_y, const __m128i& alpha) argument 427 __m128i alpha = _mm_setzero_si128(); local 610 __m128i alpha; local [all...] |
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 811 blitmask_d565_opaque_mips(int width, int height, uint16_t* device, unsigned deviceRB, const uint8_t* alpha, uint32_t expanded32, unsigned maskRB) argument [all...] |
/external/skia/src/pdf/ |
H A D | SkPDFBitmap.cpp | 53 separately re-sample the alpha and color channels when the image is 54 not displayed at its native resolution. Since an alpha of zero 140 U8CPU alpha = SkGetPackedA32(color); local 141 if (alpha != SK_AlphaTRANSPARENT) { 231 SkDEBUGFAIL("color type has no alpha"); 245 // This SkPDFObject only outputs the alpha layer of the given bitmap.
|
/external/svox/pico/tts/ |
H A D | svox_ssml_parser.cpp | 166 int alpha = 1; /* set to 1 if alphabet is ipa */ local 179 alpha = 0; 195 if (alpha)
|
/external/webp/src/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 63 // Transfer the alpha values to the green channel. 80 // 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. 211 static uint32_t GetFilterMap(const uint8_t* alpha, int width, int height, argument 219 const int num_colors = GetNumColors(alpha, widt 242 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/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
H A D | lpc_analysis.c | 81 double sum, alpha; local 83 alpha = 0; //warning -DH 92 alpha = r[0] + r[1] * k[0]; 98 k[m] = -sum / alpha; 99 alpha += k[m] * sum; 109 return alpha;
|
/external/clang/test/CodeGenCXX/ |
H A D | mangle-ms.cpp | 135 static void __stdcall alpha(float a, double b) throw() {} function 139 alpha(0.f, 0.0); 143 // CHECK-DAG: @"\01?alpha@@YGXMN@Z" 144 // X64-DAG: @"\01?alpha@@YAXMN@Z"
|
/external/deqp/modules/egl/ |
H A D | teglGLES2SharingTests.cpp | 773 int alpha = deClamp32((int)(255.0f * color.w()), 0, 255); local 775 reference->setPixel(x, y, tcu::RGBA(red, green, blue, alpha)); 1062 int alpha = deClamp32((int)(255.0f * color.w()), 0, 255); local 1064 reference->setPixel(x, y, tcu::RGBA(red, green, blue, alpha));
|
H A D | teglPreservingSwapTests.cpp | 313 void clearColorScreen (const glw::Functions& gl, float red, float green, float blue, float alpha) argument 315 gl.clearColor(red, green, blue, alpha); 319 void clearColorReference (tcu::Surface* ref, float red, float green, float blue, float alpha) argument 321 tcu::clear(ref->getAccess(), tcu::Vec4(red, green, blue, alpha));
|
/external/drm_hwcomposer/ |
H A D | glworker.cpp | 283 float alpha; member in struct:android::RenderingCommand::TextureSource 347 src.alpha = 1.0f; 353 src.alpha = layer.planeAlpha / 255.0f; 624 glUniform1f(gl_alpha_loc + src_index, src.alpha);
|
/external/eigen/Eigen/src/Core/ |
H A D | GeneralProduct.h | 232 // FIXME not very good if rhs is real and lhs complex while alpha is real too 243 // FIXME not very good if lhs is real and rhs complex while alpha is real too 297 template<typename Dest> void scaleAndAddTo(Dest& dest, const Scalar& alpha) const 299 internal::outer_product_selector_run(*this, dest, adds(alpha), IsRowMajor<Dest>()); 345 template<typename Dest> void scaleAndAddTo(Dest& dst, const Scalar& alpha) const 349 bool(internal::blas_traits<MatrixType>::HasUsableDirectAccess)>::run(*this, dst, alpha); 360 static void run(const ProductType& prod, Dest& dest, const typename ProductType::Scalar& alpha) argument 366 (prod.rhs().transpose(), prod.lhs().transpose()), destT, alpha); local 409 static inline void run(const ProductType& prod, Dest& dest, const typename ProductType::Scalar& alpha) argument 425 ResScalar actualAlpha = alpha * LhsBlasTrait 482 run(const ProductType& prod, Dest& dest, const typename ProductType::Scalar& alpha) argument 533 run(const ProductType& prod, Dest& dest, const typename ProductType::Scalar& alpha) argument 546 run(const ProductType& prod, Dest& dest, const typename ProductType::Scalar& alpha) argument [all...] |
H A D | TriangularMatrix.h | 403 return assignProduct(other.derived(),other.alpha()); 409 return assignProduct(other.derived(),other.alpha()); 415 return assignProduct(other.derived(),-other.alpha()); 421 EIGEN_STRONG_INLINE TriangularView& assignProduct(const ProductBase<ProductDerived, Lhs,Rhs>& prod, const Scalar& alpha); 426 EIGEN_STRONG_INLINE TriangularView& assignProduct(const TriangularProduct<Mode, LhsIsTriangular, Lhs, LhsIsVector, Rhs, RhsIsVector>& prod, const Scalar& alpha) argument 428 lazyAssign(alpha*prod.eval());
|
/external/eigen/Eigen/src/Core/products/ |
H A D | GeneralMatrixMatrix.h | 32 ResScalar alpha, 41 ::run(cols,rows,depth,rhs,rhsStride,lhs,lhsStride,res,resStride,alpha,blocking,info); 59 ResScalar alpha, 125 gebp(res+info[j].rhs_start*resStride, resStride, blockA, blockB+info[j].rhs_start*actual_kc, mc, actual_kc, info[j].rhs_length, alpha, -1,-1,0,0, w); 137 gebp(res+i, resStride, blockA, blockB, actual_mc, actual_kc, cols, alpha, -1,-1,0,0, w); 185 gebp(res+i2, resStride, blockA, blockB, actual_mc, actual_kc, cols, alpha, -1, -1, 0, 0, blockW); 397 template<typename Dest> void scaleAndAddTo(Dest& dst, const Scalar& alpha) const 404 Scalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(m_lhs) 27 run( Index rows, Index cols, Index depth, const LhsScalar* lhs, Index lhsStride, const RhsScalar* rhs, Index rhsStride, ResScalar* res, Index resStride, ResScalar alpha, level3_blocking<RhsScalar,LhsScalar>& blocking, GemmParallelInfo<Index>* info = 0) argument 55 run(Index rows, Index cols, Index depth, const LhsScalar* _lhs, Index lhsStride, const RhsScalar* _rhs, Index rhsStride, ResScalar* res, Index resStride, ResScalar alpha, level3_blocking<LhsScalar,RhsScalar>& blocking, GemmParallelInfo<Index>* info = 0) argument
|
/external/eigen/demos/opengl/ |
H A D | quaternion_demo.cpp | 129 inline static Frame lerpFrame(float alpha, const Frame& a, const Frame& b) argument 131 return Frame(lerp(alpha,a.position,b.position), 132 Quaternionf(lerp(alpha,OrientationType(a.orientation),OrientationType(b.orientation))));
|