Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkXfermode.cpp381 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in srcover_modeproc()
385 return src + SkAlphaMulQ(dst, 256 - SkGetPackedA32(src)); in srcover_modeproc()
393 return dst + SkAlphaMulQ(src, 256 - SkGetPackedA32(dst)); in dstover_modeproc()
398 return SkAlphaMulQ(src, SkAlpha255To256(SkGetPackedA32(dst))); in srcin_modeproc()
403 return SkAlphaMulQ(dst, SkAlpha255To256(SkGetPackedA32(src))); in dstin_modeproc()
408 return SkAlphaMulQ(src, SkAlpha255To256(255 - SkGetPackedA32(dst))); in srcout_modeproc()
413 return SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in dstout_modeproc()
418 unsigned sa = SkGetPackedA32(src); in srcatop_modeproc()
419 unsigned da = SkGetPackedA32(dst); in srcatop_modeproc()
433 unsigned sa = SkGetPackedA32(src); in dstatop_modeproc()
[all …]
DSkUnPreMultiply.cpp11 const unsigned a = SkGetPackedA32(c); in PMColorToColor()
20 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.h74 unsigned sa = SkGetPackedA32(c); in SkDitherARGB32For565()
157 unsigned a = SkGetPackedA32(c); in SkDitherARGB32To4444()
DSkBlitRow_D32.cpp114 switch (SkGetPackedA32(color)) { in Color32()
DSkPixmap.cpp348 return 0xFF == SkGetPackedA32(c); in computeIsOpaque()
375 if (0xFF != SkGetPackedA32(c)) { in computeIsOpaque()
DSkColorShader.cpp71 memset(alpha, SkGetPackedA32(fPMColor), count); in shadeSpanAlpha()
189 memset(alpha, SkGetPackedA32(fPMColor), count); in shadeSpanAlpha()
DSkBlitter_A8.cpp262 unsigned srcA = SkGetPackedA32(span[i]); in blitH()
275 int sa = SkGetPackedA32(src); in aa_blend8()
/external/skia/tools/skdiff/
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.cpp124 REPORTER_ASSERT(reporter, SkGetPackedA32(out) == i); in DEF_TEST()
142 REPORTER_ASSERT(reporter, SkGetPackedA32(out) <= i); in DEF_TEST()
228 REPORTER_ASSERT(reporter, 0xFF == SkGetPackedA32(storage[b])); in DEF_TEST()
DReadPixelsTest.cpp145 *alpha = SkGetPackedA32(initColor); in fill_dst_bmp_with_init_data()
158 int32_t aA = static_cast<int32_t>(SkGetPackedA32(a)); in check_read_pixel()
163 int32_t bA = static_cast<int32_t>(SkGetPackedA32(b)); in check_read_pixel()
206 uint8_t canvasAlpha = SkGetPackedA32(get_src_color(devx, devy)); in check_read()
214 uint32_t origDstAlpha = SkGetPackedA32(get_dst_bmp_init_color(bx, by, bw)); in check_read()
DBlitRowTest.cpp52 if (SkGetPackedA32(addr[x]) != expected) { in proc_8()
53 *bad = SkGetPackedA32(addr[x]); in proc_8()
DWritePixelsTest.cpp135 unsigned a = SkGetPackedA32(color); in premul()
168 int32_t aA = static_cast<int32_t>(SkGetPackedA32(a)); in check_pixel()
173 int32_t bA = static_cast<int32_t>(SkGetPackedA32(b)); in check_pixel()
DGrGetCoeffBlendKnownComponentsTest.cpp23 SkGetPackedA32(c)); in SkPMColorToGrColor()
DColorSpaceXformTest.cpp100 SkGetPackedA32(dstPixels[i]))); in test_identity_xform()
136 SkGetPackedA32(dstPixels[i]))); in test_identity_xform_A2B()
/external/skia/include/core/
DSkColorPriv.h365 #define SkGetPackedA32(packed) ((uint32_t)((packed) << (24 - SK_A32_SHIFT)) >> 24) macro
379 uint32_t alpha_color_value = SkGetPackedA32(pm_color_value); \
390 auto a = SkGetPackedA32(c); in SkPMColorValid()
416 return SkPackARGB_as_RGBA(SkGetPackedA32(c), SkGetPackedR32(c), in SkPackPMColor_as_RGBA()
421 return SkPackARGB_as_BGRA(SkGetPackedA32(c), SkGetPackedR32(c), in SkPackPMColor_as_BGRA()
434 unsigned a = SkAlphaBlend(SkGetPackedA32(src), SkGetPackedA32(dst), scale); in SkFourByteInterp256()
576 return src + SkAlphaMulQ(dst, SkAlpha255To256(255 - SkGetPackedA32(src))); in SkPMSrcOver()
590 unsigned dst_scale = SkAlphaMulInv256(SkGetPackedA32(src), src_scale); in SkBlendARGB32()
695 unsigned isa = 255 - SkGetPackedA32(src); in SkSrcOver32To16()
933 return SkDitherARGB32To4444(SkGetPackedA32(c), SkGetPackedR32(c), in SkDitherPixel32To4444()
/external/skia/src/effects/
DSkOverdrawColorFilter.cpp12 uint8_t alpha = SkGetPackedA32(src[x]); in filterSpan()
99 SkGetPackedA32(colors[i]))); in Make()
DSkDisplacementMapEffect.cpp43 return SkUnPreMultiply::ApplyScale(table[SkGetPackedA32(l)], SkGetPackedR32(l)); in getValue()
48 return SkUnPreMultiply::ApplyScale(table[SkGetPackedA32(l)], SkGetPackedG32(l)); in getValue()
53 return SkUnPreMultiply::ApplyScale(table[SkGetPackedA32(l)], SkGetPackedB32(l)); in getValue()
58 return SkGetPackedA32(l); in getValue()
/external/skia/src/images/
DSkPNGImageEncoder.cpp140 uint8_t alpha = SkGetPackedA32(colors[i]); in pack_palette()
165 uint8_t alpha = SkGetPackedA32(colors[i]); in pack_palette()
/external/skia/src/opts/
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()
1147 unsigned a = SkGetPackedA32(c); in S32A_D565_Opaque_Dither_neon()
1256 SkASSERT(SkGetPackedA32(c) == 255); in S32_D565_Opaque_Dither_neon()
DSkBlurImageFilter_opts.h203 sumA += SkGetPackedA32(c); \
208 sumA -= SkGetPackedA32(c); \
/external/skia/gm/
Dgammaencodedpremul.cpp16 uint8_t a = SkGetPackedA32(pixels[i]); in clamp_to_alpha()
/external/skia/samplecode/
DSampleUnpremul.cpp32 U8CPU a = SkGetPackedA32(c); in premultiply_unpmcolor()
DSampleDither.cpp85 unsigned a = SkGetPackedA32(c); in pre_dither()

12