Home
last modified time | relevance | path

Searched refs:alphas (Results 1 – 25 of 76) sorted by relevance

1234

/external/skia/src/opts/
DSkXfermode_opts.h34 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()
DSk4px_SSE2.h37 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/
DSkXfermode_opts.h34 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()
DSk4px_SSE2.h37 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/
Danalysis_enc.c133 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/
DDifference.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DMultiply.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DExclusion.cpp13 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
15 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Over.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DScreen.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Atop.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Out.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Out.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_In.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DOverlay.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Atop.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_In.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Over.cpp14 SkColor alphas[] = { SK_ColorBLACK, SK_ColorTRANSPARENT }; in draw() local
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DBitmap_setAlphaType.cpp10 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()
DColorTypeValidateAlphaType.cpp10 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()
DImageInfo_alphaType.cpp7 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/
DSkScan_AAAPath.cpp596 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/
DSkBlendMode_Reference.bmh317 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/
DSkScan_AAAPath.cpp599 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/
Dalpha_processing_neon.c96 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()

1234