Home
last modified time | relevance | path

Searched refs:SK_A32_SHIFT (Results 1 – 25 of 30) sorted by relevance

12

/external/skia/include/core/
DSkPostConfig.h46 #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)
DSkColorPriv.h62 (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 …]
DSkUserConfig.h136 #define SK_A32_SHIFT 24 macro
/external/skia/src/opts/
DSk4px_SSE2.h62 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()
DSk4px_none.h72 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()
DSk4px_NEON.h67 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()
DSkColorCubeFilter_opts.h25 a = input >> SK_A32_SHIFT; in color_cube_filter_span()
78 dstBytes[SK_A32_SHIFT/8] = a; in color_cube_filter_span()
DSkColor_opts_SSE2.h84 #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()
DSkBlitRow_opts_SSE2.cpp162 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()
DSkBlitRow_opts_SSE4.cpp43 const __m128i alphaMask = _mm_set1_epi32(0xFF << SK_A32_SHIFT); in S32A_Opaque_BlitRow32_SSE4()
DSkColor_opts_neon.h16 #define NEON_A (SK_A32_SHIFT / 8)
DSkXfermode_opts.h121 static_assert(SK_A32_SHIFT == 24, ""); in a_rgb()
125 return f[SK_A32_SHIFT/8]; in alphas()
DSkBlitMask_opts.h124 *device = (aa << SK_A32_SHIFT) in blit_mask_d32_a8_black()
DSkOpts_sse41.cpp159 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/
DSkBlitter_ARGB32.cpp264 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()
DSkShader.cpp155 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()
DSkXfermode4f.cpp400 … 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()
DSkPM4f.h18 A = SK_A32_SHIFT/8,
DSkColorMatrixFilterRowMajor255.cpp17 #define SK_PMORDER_INDEX_A (SK_A32_SHIFT / 8)
114 Sk4f a4 = srcf[SK_A32_SHIFT/8]; in filter_span()
DSkXfermode.cpp1065 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/
Dpicture_utils.cpp28 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); in force_all_opaque()
Dskdiff_utils.cpp64 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); in force_all_opaque()
/external/skia/samplecode/
DSampleClip.cpp28 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU()); in show_text()
DClockFaceView.cpp30 return SkPackARGB32(0, x, x, x) | (c & (SK_A32_MASK << SK_A32_SHIFT)); in rgb2gray()
/external/skia/src/effects/
DSkPixelXorXfermode.cpp19 res |= (SK_A32_MASK << SK_A32_SHIFT); // force it to be opaque in xferColor()

12