/external/skia/src/opts/ |
D | SkXfermode_opts.h | 34 XFERMODE(SrcIn) { return s.approxMulDiv255(d.alphas() ); } in XFERMODE() 35 XFERMODE(SrcOut) { return s.approxMulDiv255(d.alphas().inv()); } in XFERMODE() 36 XFERMODE(SrcOver) { return s + d.approxMulDiv255(s.alphas().inv()); } in XFERMODE() 42 XFERMODE(SrcATop) { return (s * d.alphas() + d * s.alphas().inv()).div255(); } in XFERMODE() 45 XFERMODE(Xor) { return (s * d.alphas().inv() + d * s.alphas().inv()).div255(); } in XFERMODE()
|
D | Sk4px_SSE2.h | 37 inline Sk4px Sk4px::alphas() const { in alphas() function 50 inline Sk4px Sk4px::alphas() const { in alphas() function 69 uint16_t alphas; in Load2Alphas() local 70 memcpy(&alphas, a, 2); in Load2Alphas() 71 uint32_t alphas_and_two_zeros = alphas; // Aa -> Aa00 in Load2Alphas()
|
/external/skqp/src/opts/ |
D | SkXfermode_opts.h | 34 XFERMODE(SrcIn) { return s.approxMulDiv255(d.alphas() ); } in XFERMODE() 35 XFERMODE(SrcOut) { return s.approxMulDiv255(d.alphas().inv()); } in XFERMODE() 36 XFERMODE(SrcOver) { return s + d.approxMulDiv255(s.alphas().inv()); } in XFERMODE() 42 XFERMODE(SrcATop) { return (s * d.alphas() + d * s.alphas().inv()).div255(); } in XFERMODE() 45 XFERMODE(Xor) { return (s * d.alphas().inv() + d * s.alphas().inv()).div255(); } in XFERMODE()
|
D | Sk4px_SSE2.h | 37 inline Sk4px Sk4px::alphas() const { in alphas() function 50 inline Sk4px Sk4px::alphas() const { in alphas() function 69 uint16_t alphas; in Load2Alphas() local 70 memcpy(&alphas, a, 2); in Load2Alphas() 71 uint32_t alphas_and_two_zeros = alphas; // Aa -> Aa00 in Load2Alphas()
|
/external/webp/src/enc/ |
D | analysis_enc.c | 133 const int alphas[MAX_ALPHA + 1]) { in AssignSegments() 151 for (n = 0; n <= MAX_ALPHA && alphas[n] == 0; ++n) {} in AssignSegments() 153 for (n = MAX_ALPHA; n > min_a && alphas[n] == 0; --n) {} in AssignSegments() 174 if (alphas[a]) { in AssignSegments() 180 dist_accum[n] += a * alphas[a]; in AssignSegments() 181 accum[n] += alphas[a]; in AssignSegments() 308 int alphas[MAX_ALPHA + 1], in MBAnalyze() 327 alphas[best_alpha]++; in MBAnalyze() 370 int alphas[MAX_ALPHA + 1]; member 387 MBAnalyze(it, job->alphas, &job->alpha, &job->uv_alpha); in DoSegmentsJob() [all …]
|
/external/skia/docs/examples/ |
D | Difference.cpp | 13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Multiply.cpp | 13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Exclusion.cpp | 13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Dst_Over.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Screen.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Src_Atop.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Src_Out.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Dst_Out.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Src_In.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Overlay.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Dst_Atop.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Dst_In.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Src_Over.cpp | 14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local 16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
|
D | Bitmap_setAlphaType.cpp | 10 const char* alphas[] = {"Unknown ", "Opaque ", "Premul ", "Unpremul"}; in draw() local 24 SkDebugf("%12s %9s ", colors[(int) colorType], alphas[(int) canonicalAlphaType ]); in draw() 28 SkDebugf("%s %s ", result ? "true " : "false", alphas[(int) bitmap.alphaType()]); in draw()
|
D | ColorTypeValidateAlphaType.cpp | 10 const char* alphas[] = {"Unknown ", "Opaque ", "Premul ", "Unpremul"}; in draw() local 28 string.printf("%13s %10s %10s", colors[(int) colorType], alphas[(int) alphaType], in draw() 29 result ? alphas[(int) canonicalAlphaType] : "------ "); in draw()
|
D | ImageInfo_alphaType.cpp | 7 const char* alphas[] = {"Unknown", "Opaque", "Premul", "Unpremul"}; in draw() local 9 SkDebugf("alpha type: k" "%s" "_SkAlphaType\n", alphas[info.alphaType()]); in draw()
|
/external/skia/src/core/ |
D | SkScan_AAAPath.cpp | 596 static void compute_alpha_above_line(SkAlpha* alphas, in compute_alpha_above_line() argument 607 alphas[0] = get_partial_alpha(((R << 17) - l - r) >> 9, fullAlpha); in compute_alpha_above_line() 612 alphas[0] = SkFixedMul(first, firstH) >> 9; // triangle alpha in compute_alpha_above_line() 615 alphas[i] = alpha16 >> 8; in compute_alpha_above_line() 618 alphas[R - 1] = fullAlpha - partial_triangle_to_alpha(last, dY); in compute_alpha_above_line() 623 static void compute_alpha_below_line(SkAlpha* alphas, in compute_alpha_below_line() argument 634 alphas[0] = get_partial_alpha(trapezoid_to_alpha(l, r), fullAlpha); in compute_alpha_below_line() 639 alphas[R - 1] = SkFixedMul(last, lastH) >> 9; // triangle alpha in compute_alpha_below_line() 642 alphas[i] = (alpha16 >> 8) & 0xFF; in compute_alpha_below_line() 645 alphas[0] = fullAlpha - partial_triangle_to_alpha(first, dY); in compute_alpha_below_line() [all …]
|
/external/skqp/docs/ |
D | SkBlendMode_Reference.bmh | 317 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; 319 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), 341 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; 343 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), 365 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; 367 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), 390 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; 392 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), 415 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; 417 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), [all …]
|
/external/skqp/src/core/ |
D | SkScan_AAAPath.cpp | 599 static inline void computeAlphaAboveLine(SkAlpha* alphas, SkFixed l, SkFixed r, in computeAlphaAboveLine() argument 607 alphas[0] = getPartialAlpha(((R << 17) - l - r) >> 9, fullAlpha); in computeAlphaAboveLine() 612 alphas[0] = SkFixedMul(first, firstH) >> 9; // triangle alpha in computeAlphaAboveLine() 615 alphas[i] = alpha16 >> 8; in computeAlphaAboveLine() 618 alphas[R - 1] = fullAlpha - partialTriangleToAlpha(last, dY); in computeAlphaAboveLine() 624 SkAlpha* alphas, SkFixed l, SkFixed r, SkFixed dY, SkAlpha fullAlpha) { in computeAlphaBelowLine() argument 631 alphas[0] = getPartialAlpha(trapezoidToAlpha(l, r), fullAlpha); in computeAlphaBelowLine() 636 alphas[R-1] = SkFixedMul(last, lastH) >> 9; // triangle alpha in computeAlphaBelowLine() 639 alphas[i] = alpha16 >> 8; in computeAlphaBelowLine() 642 alphas[0] = fullAlpha - partialTriangleToAlpha(first, dY); in computeAlphaBelowLine() [all …]
|
/external/webp/src/dsp/ |
D | alpha_processing_neon.c | 96 const uint8x8_t alphas = vld1_u8(alpha + i); in DispatchAlpha_NEON() local 97 rgbX.val[0] = alphas; in DispatchAlpha_NEON() 99 mask8 = vand_u8(mask8, alphas); in DispatchAlpha_NEON() 147 const uint8x8_t alphas = rgbX.val[0]; in ExtractAlpha_NEON() local 148 vst1_u8((uint8_t*)(alpha + i), alphas); in ExtractAlpha_NEON() 149 mask8 = vand_u8(mask8, alphas); in ExtractAlpha_NEON()
|