/external/skia/include/core/ |
D | SkPostConfig.h | 46 #ifdef SK_A32_SHIFT 130 # ifndef SK_A32_SHIFT 131 # define SK_A32_SHIFT 24 macro 162 #ifndef SK_A32_SHIFT 167 # define SK_A32_SHIFT 0 macro 172 # define SK_A32_SHIFT 24 macro 182 (SK_A32_SHIFT == 24 && SK_R32_SHIFT == 16 && SK_G32_SHIFT == 8 && SK_B32_SHIFT == 0)
|
D | SkColorPriv.h | 62 (SK_A32_SHIFT == SK_RGBA_A32_SHIFT && \ 68 (SK_A32_SHIFT == SK_BGRA_A32_SHIFT && \ 74 #define SK_A_INDEX (SK_A32_SHIFT/8) 357 #define SkGetPackedA32(packed) ((uint32_t)((packed) << (24 - SK_A32_SHIFT)) >> 24) 403 return (a << SK_A32_SHIFT) | (r << SK_R32_SHIFT) | in SkPackARGB32() 538 return (a << SK_A32_SHIFT) | (r << SK_R32_SHIFT) | in SkPackARGB32NoCheck() 878 uint32_t d = (SkGetPackedA4444(c) << SK_A32_SHIFT) | in SkPixel4444ToPixel32() 886 return (((c >> (SK_A32_SHIFT + 4)) & 0xF) << SK_A4444_SHIFT) | in SkPixel32ToPixel4444() 922 (((c >> SK_A32_SHIFT) & 0xFF) << 0); in SkExpand_8888() 932 (((c >> 0) & 0xFF) << SK_A32_SHIFT); in SkCompact_8888() [all …]
|
D | SkUserConfig.h | 136 #define SK_A32_SHIFT 24 macro
|
/external/skia/src/opts/ |
D | Sk4px_SSE2.h | 62 static_assert(SK_A32_SHIFT == 24, "Intel's always little-endian."); in alphas() 74 static_assert(SK_A32_SHIFT == 24, "Intel's always little-endian."); in alphas() 96 return Sk16b(_mm_and_si128(_mm_set1_epi32(0xFF << SK_A32_SHIFT), this->fVec)); in zeroColors() 101 return Sk16b(_mm_andnot_si128(_mm_set1_epi32(0xFF << SK_A32_SHIFT), this->fVec)); in zeroAlphas()
|
D | Sk4px_none.h | 72 static_assert(SK_A32_SHIFT == 24, "This method assumes little-endian."); in alphas() 94 static_assert(SK_A32_SHIFT == 24, "This method assumes little-endian."); in zeroAlphas() 102 static_assert(SK_A32_SHIFT == 24, "This method assumes little-endian."); in zeroColors()
|
D | Sk4px_NEON.h | 67 auto as = vshrq_n_u32((uint32x4_t)fVec, SK_A32_SHIFT); // ___3 ___2 ___1 ___0 in alphas() 90 return Sk16b(vandq_u8(this->fVec, (uint8x16_t)vdupq_n_u32(0xFF << SK_A32_SHIFT))); in zeroColors() 95 return Sk16b(vbicq_u8(this->fVec, (uint8x16_t)vdupq_n_u32(0xFF << SK_A32_SHIFT))); in zeroAlphas()
|
D | SkColorCubeFilter_opts.h | 25 a = input >> SK_A32_SHIFT; in color_cube_filter_span() 78 dstBytes[SK_A32_SHIFT/8] = a; in color_cube_filter_span()
|
D | SkColor_opts_SSE2.h | 84 #if SK_A32_SHIFT == 24 // It's very common (universal?) that alpha is the top byte. in SkGetPackedA32_SSE2() 87 __m128i a = _mm_slli_epi32(src, (24 - SK_A32_SHIFT)); in SkGetPackedA32_SSE2() 129 __m128i da = _mm_slli_epi32(a, SK_A32_SHIFT); in SkPackARGB32_SSE2()
|
D | SkBlitRow_opts_SSE2.cpp | 162 const __m128i alphaMask = _mm_set1_epi32(0xFF << SK_A32_SHIFT); in S32A_Opaque_BlitRow32_SSE2() 502 _mm_set1_epi32(SK_A32_MASK << SK_A32_SHIFT)); in SkBlendLCD16Opaque_SSE2() 744 __m128i sa1 = _mm_slli_epi32(src_pixel1, (24 - SK_A32_SHIFT)); in S32A_D565_Opaque_SSE2() 746 __m128i sa2 = _mm_slli_epi32(src_pixel2, (24 - SK_A32_SHIFT)); in S32A_D565_Opaque_SSE2() 1003 __m128i sa1 = _mm_slli_epi32(src_pixel1, (24 - SK_A32_SHIFT)); in S32A_D565_Opaque_Dither_SSE2() 1005 __m128i sa2 = _mm_slli_epi32(src_pixel2, (24 - SK_A32_SHIFT)); in S32A_D565_Opaque_Dither_SSE2()
|
D | SkBlitRow_opts_SSE4.cpp | 43 const __m128i alphaMask = _mm_set1_epi32(0xFF << SK_A32_SHIFT); in S32A_Opaque_BlitRow32_SSE4()
|
D | SkColor_opts_neon.h | 16 #define NEON_A (SK_A32_SHIFT / 8)
|
D | SkXfermode_opts.h | 121 static_assert(SK_A32_SHIFT == 24, ""); in a_rgb() 125 return f[SK_A32_SHIFT/8]; in alphas()
|
D | SkBlitMask_opts.h | 124 *device = (aa << SK_A32_SHIFT) in blit_mask_d32_a8_black()
|
D | SkOpts_sse41.cpp | 159 const int a = 2 * (SK_A32_SHIFT/8); // SK_A32_SHIFT is typically 24, so this is typically 6. in alphas()
|
/external/skia/src/core/ |
D | SkBlitter_ARGB32.cpp | 264 SkPMColor black = (SkPMColor)(SK_A32_MASK << SK_A32_SHIFT); in blitAntiH() 277 SkPMColor src = aa << SK_A32_SHIFT; in blitAntiH() 296 device[0] = (a0 << SK_A32_SHIFT) + SkAlphaMulQ(device[0], 256 - a0); in blitAntiH2() 297 device[1] = (a1 << SK_A32_SHIFT) + SkAlphaMulQ(device[1], 256 - a1); in blitAntiH2() 304 device[0] = (a0 << SK_A32_SHIFT) + SkAlphaMulQ(device[0], 256 - a0); in blitAntiV2() 306 device[0] = (a1 << SK_A32_SHIFT) + SkAlphaMulQ(device[0], 256 - a1); in blitAntiV2()
|
D | SkShader.cpp | 155 const uint8_t* srcA = (const uint8_t*)colors + SkU32BitShiftToByteOffset(SK_A32_SHIFT); in shadeSpanAlpha() 174 const uint8_t* srcA = (const uint8_t*)colors + SkU32BitShiftToByteOffset(SK_A32_SHIFT); in shadeSpanAlpha() 191 const uint8_t* srcA = (const uint8_t*)colors + SkU32BitShiftToByteOffset(SK_A32_SHIFT); in shadeSpanAlpha()
|
D | SkXfermode4f.cpp | 400 … dst[i] = to_4b(lerp(s4bias, d4bias, lcd16_to_unit_4f(rgb))) | (SK_A32_MASK << SK_A32_SHIFT); in src_1_lcd() 409 … dst[i] = store_dst<D>(lerp(s4, d4, lcd16_to_unit_4f(rgb))) | (SK_A32_MASK << SK_A32_SHIFT); in src_1_lcd() 423 dst[i] = store_dst<D>(lerp(s4, d4, lcd16_to_unit_4f(rgb))) | (SK_A32_MASK << SK_A32_SHIFT); in src_n_lcd() 440 dst[i] = store_dst<D>(r4) | (SK_A32_MASK << SK_A32_SHIFT); in srcover_1_lcd() 456 dst[i] = store_dst<D>(r4) | (SK_A32_MASK << SK_A32_SHIFT); in srcover_n_lcd()
|
D | SkPM4f.h | 18 A = SK_A32_SHIFT/8,
|
D | SkColorMatrixFilterRowMajor255.cpp | 17 #define SK_PMORDER_INDEX_A (SK_A32_SHIFT / 8) 114 Sk4f a4 = srcf[SK_A32_SHIFT/8]; in filter_span()
|
D | SkXfermode.cpp | 1065 SkPMColor res = this->xferColor(src[i], (dst[i] << SK_A32_SHIFT)); in xferA8() 1074 (SkPMColor)(dstA << SK_A32_SHIFT))); in xferA8() 1222 SkPMColor res = proc(src[i], dst[i] << SK_A32_SHIFT); in xferA8() 1230 SkPMColor res = proc(src[i], dstA << SK_A32_SHIFT); in xferA8()
|
/external/skia/tools/ |
D | picture_utils.cpp | 28 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); in force_all_opaque()
|
D | skdiff_utils.cpp | 64 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); in force_all_opaque()
|
/external/skia/samplecode/ |
D | SampleClip.cpp | 28 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU()); in show_text()
|
D | ClockFaceView.cpp | 30 return SkPackARGB32(0, x, x, x) | (c & (SK_A32_MASK << SK_A32_SHIFT)); in rgb2gray()
|
/external/skia/src/effects/ |
D | SkPixelXorXfermode.cpp | 19 res |= (SK_A32_MASK << SK_A32_SHIFT); // force it to be opaque in xferColor()
|