Home
last modified time | relevance | path

Searched refs:SkGetPackedA32 (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/src/core/
DSkXfermode.cpp374 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in srcover_modeproc()
378 return src + SkAlphaMulQ(dst, 256 - SkGetPackedA32(src)); in srcover_modeproc()
386 return dst + SkAlphaMulQ(src, 256 - SkGetPackedA32(dst)); in dstover_modeproc()
391 return SkAlphaMulQ(src, SkAlpha255To256(SkGetPackedA32(dst))); in srcin_modeproc()
396 return SkAlphaMulQ(dst, SkAlpha255To256(SkGetPackedA32(src))); in dstin_modeproc()
401 return SkAlphaMulQ(src, SkAlpha255To256(255 - SkGetPackedA32(dst))); in srcout_modeproc()
406 return SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in dstout_modeproc()
411 unsigned sa = SkGetPackedA32(src); in srcatop_modeproc()
412 unsigned da = SkGetPackedA32(dst); in srcatop_modeproc()
426 unsigned sa = SkGetPackedA32(src); in dstatop_modeproc()
[all …]
DSkUnPreMultiply.cpp12 const unsigned a = SkGetPackedA32(c); in PMColorToColor()
21 const U8CPU a = SkGetPackedA32(c); in UnPreMultiplyPreservingByteOrder()
DSkBlitRow_D16.cpp145 unsigned a = SkGetPackedA32(c); in S32A_D565_Opaque_Dither()
182 int sa = SkGetPackedA32(c); in S32A_D565_Blend_Dither()
217 unsigned scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; in Color32A_D565()
DSkDither.h75 unsigned sa = SkGetPackedA32(c); in SkDitherARGB32For565()
158 unsigned a = SkGetPackedA32(c); in SkDitherARGB32To4444()
DSkBlitRow_D32.cpp136 switch (SkGetPackedA32(color)) { in Color32()
DSkBlitter_A8.cpp266 unsigned srcA = SkGetPackedA32(span[i]); in blitH()
279 int sa = SkGetPackedA32(src); in aa_blend8()
DSkBitmap.cpp652 return 0xFF == SkGetPackedA32(c); in compute_is_opaque()
679 if (0xFF != SkGetPackedA32(c)) { in compute_is_opaque()
984 alpha[x] = SkGetPackedA32(s[x]); in get_bitmap_alpha()
1005 alpha[x] = SkGetPackedA32(table[s[x]]); in get_bitmap_alpha()
/external/skia/tools/
Dskdiff.cpp144 int da = SkGetPackedA32(c0) - SkGetPackedA32(c1); in colors_match_thresholded()
182 uint32_t thisA = SkAbs32(SkGetPackedA32(c0) - SkGetPackedA32(c1)); in compute_diff()
/external/skia/tests/
DColorPrivTest.cpp33 const int deltaA = SkGetPackedA32(slow) - SkGetPackedA32(fast); in DEF_TEST()
DColorFilterTest.cpp126 REPORTER_ASSERT(reporter, SkGetPackedA32(out) == i); in DEF_TEST()
144 REPORTER_ASSERT(reporter, SkGetPackedA32(out) <= i); in DEF_TEST()
230 REPORTER_ASSERT(reporter, 0xFF == SkGetPackedA32(storage[b])); in DEF_TEST()
DBlitRowTest.cpp50 if (SkGetPackedA32(addr[x]) != expected) { in proc_8()
51 *bad = SkGetPackedA32(addr[x]); in proc_8()
DWritePixelsTest.cpp136 unsigned a = SkGetPackedA32(color); in premul()
169 int32_t aA = static_cast<int32_t>(SkGetPackedA32(a)); in check_pixel()
174 int32_t bA = static_cast<int32_t>(SkGetPackedA32(b)); in check_pixel()
/external/skia/include/core/
DSkColorPriv.h357 #define SkGetPackedA32(packed) ((uint32_t)((packed) << (24 - SK_A32_SHIFT)) >> 24) macro
371 uint32_t alpha_color_value = SkGetPackedA32(pm_color_value); \
382 auto a = SkGetPackedA32(c); in SkPMColorValid()
408 return SkPackARGB_as_RGBA(SkGetPackedA32(c), SkGetPackedR32(c), in SkPackPMColor_as_RGBA()
413 return SkPackARGB_as_BGRA(SkGetPackedA32(c), SkGetPackedR32(c), in SkPackPMColor_as_BGRA()
426 unsigned a = SkAlphaBlend(SkGetPackedA32(src), SkGetPackedA32(dst), scale); in SkFourByteInterp256()
568 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in SkPMSrcOver()
575 unsigned dst_scale = SkAlpha255To256(255 - SkAlphaMul(SkGetPackedA32(src), src_scale)); in SkBlendARGB32()
672 unsigned isa = 255 - SkGetPackedA32(src); in SkSrcOver32To16()
910 return SkDitherARGB32To4444(SkGetPackedA32(c), SkGetPackedR32(c), in SkDitherPixel32To4444()
/external/skia/src/opts/
DSkBlitRow_opts_mips_dsp.cpp100 SkASSERT(SkGetPackedA32(c) == 255); in S32_D565_Blend_mips_dsp()
244 unsigned a = SkGetPackedA32(c); in S32A_D565_Opaque_Dither_mips_dsp()
369 SkASSERT(SkGetPackedA32(c) == 255); in S32_D565_Opaque_Dither_mips_dsp()
518 SkASSERT(SkGetPackedA32(c) == 255); in S32_D565_Blend_Dither_mips_dsp()
755 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_mips_dsp()
DSkBlitRow_opts.h21 unsigned invA = 255 - SkGetPackedA32(color); in blit_row_color32()
DSkBlurImageFilter_opts.h198 sumA += SkGetPackedA32(c); \
203 sumA -= SkGetPackedA32(c); \
DSkBlitRow_opts_arm_neon.cpp500 scale = SkAlpha255To256(0xFF - SkGetPackedA32(src)) >> 3; in Color32A_D565_neon()
529 unsigned sa = SkGetPackedA32(src); in Color32A_D565_neon()
716 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha); in S32A_D565_Blend_neon()
1416 unsigned a = SkGetPackedA32(c); in S32A_D565_Opaque_Dither_neon()
1525 SkASSERT(SkGetPackedA32(c) == 255); in S32_D565_Opaque_Dither_neon()
/external/skia/include/gpu/
DSkGr.h31 unsigned a = SkGetPackedA32(pm); in SkColorToPremulGrColor()
63 SkGetPackedA32(c)); in SkPMColorToGrColor()
/external/skia/src/effects/
DSkArithmeticMode.cpp103 a = arith(k1, k2, k3, k4, SkGetPackedA32(sc), SkGetPackedA32(dc)); in xfer32()
116 a = blend(a, SkGetPackedA32(sc), scale); in xfer32()
DSkDisplacementMapEffect.cpp39 return SkUnPreMultiply::ApplyScale(table[SkGetPackedA32(l)], SkGetPackedR32(l)); in getValue()
44 return SkUnPreMultiply::ApplyScale(table[SkGetPackedA32(l)], SkGetPackedG32(l)); in getValue()
49 return SkUnPreMultiply::ApplyScale(table[SkGetPackedA32(l)], SkGetPackedB32(l)); in getValue()
54 return SkGetPackedA32(l); in getValue()
DSkMatrixConvolutionImageFilter.cpp183 sumA += SkScalarMul(SkIntToScalar(SkGetPackedA32(s)), k); in filterPixels()
197 a = SkGetPackedA32(PixelFetcher::fetch(src, x, y, bounds)); in filterPixels()
/external/skia/src/images/
DSkImageEncoder_argb.cpp29 argb[0] = SkGetPackedA32(c); in ARGB_8888_To_ARGB()
66 argb[0] = SkGetPackedA32(c); in Index8_To_ARGB()
Dtransform_scanline.h94 unsigned a = SkGetPackedA32(c); in transform_scanline_8888()
/external/skia/samplecode/
DSampleUnpremul.cpp34 U8CPU a = SkGetPackedA32(c); in premultiply_unpmcolor()
DSampleDither.cpp90 unsigned a = SkGetPackedA32(c); in pre_dither()

12