Searched refs:SK_G16_BITS (Results 1 – 11 of 11) sorted by relevance
/external/skia/include/core/ |
D | SkColorPriv.h | 231 #define SK_G16_BITS 6 macro 234 #define SK_R16_SHIFT (SK_B16_BITS + SK_G16_BITS) 239 #define SK_G16_MASK ((1 << SK_G16_BITS) - 1) 584 #define SkG32ToG16_MACRO(g) ((unsigned)(g) >> (SK_G32_BITS - SK_G16_BITS)) 607 #define SkPacked32ToG16(c) (((unsigned)(c) >> (SK_G32_SHIFT + SK_G32_BITS - SK_G16_BITS)) & SK_G16… 612 unsigned g = ((c >> (SK_G32_SHIFT + (8 - SK_G16_BITS))) & SK_G16_MASK) << SK_G16_SHIFT; in SkPixel32ToPixel16() 632 …g = ((g << 1) - ((g >> (8 - SK_G16_BITS) << (8 - SK_G16_BITS)) | (g >> SK_G16_BITS))) >> (8 - SK_G… in SkDitherPack888ToRGB16() 675 dg = (sg + SkMul16ShiftRound(dg, isa, SK_G16_BITS)) >> (8 - SK_G16_BITS); in SkSrcOver32To16() 689 return (g << (8 - SK_G16_BITS)) | (g >> (2 * SK_G16_BITS - 8)); in SkG16ToG32() 708 SkASSERT((g >> (8 - SK_G16_BITS)) == SkGetPackedG16(src)); in SkPixel16ToPixel32() [all …]
|
/external/skia/src/opts/ |
D | SkColor_opts_neon.h | 55 ret.val[NEON_G] = vshl_n_u8(vg, 8 - SK_G16_BITS) | vshr_n_u8(vg, 2 * SK_G16_BITS - 8); in SkPixel16ToPixel32_neon8() 71 ret = vsriq_n_u16(ret, vshll_n_u8(vsrc.val[NEON_B], 8), SK_R16_BITS + SK_G16_BITS); in SkPixel32ToPixel16_neon8()
|
D | SkColor_opts_SSE2.h | 151 g = _mm_or_si128(_mm_slli_epi32(g, (8 - SK_G16_BITS)), in SkPacked16ToG32_SSE2() 152 _mm_srli_epi32(g, (2 * SK_G16_BITS - 8))); in SkPacked16ToG32_SSE2() 187 SK_G32_SHIFT + (8 - SK_G16_BITS)); in SkPixel32ToPixel16_ToU16_SSE2() 190 SK_G32_SHIFT + (8 - SK_G16_BITS)); in SkPixel32ToPixel16_ToU16_SSE2()
|
D | SkBlitRow_opts_SSE2.cpp | 311 #define SK_G16x5_G32x5_SHIFT (SK_G32_SHIFT - SK_G16_SHIFT - SK_G16_BITS + 5) 785 dg = _mm_add_epi16(sg, SkMul16ShiftRound_SSE2(dg, isa, SK_G16_BITS)); in S32A_D565_Opaque_SSE2() 786 dg = _mm_srli_epi16(dg, 8 - SK_G16_BITS); in S32A_D565_Opaque_SSE2() 888 sg = _mm_srli_epi16(sg, SK_G32_BITS - SK_G16_BITS); in S32_D565_Opaque_Dither_SSE2()
|
D | SkBlitRow_opts_arm_neon.cpp | 671 vsrc.val[NEON_G] = vshr_n_u8(vsrc.val[NEON_G], 8 - SK_G16_BITS); in S32A_D565_Blend_neon()
|
/external/skia/tests/ |
D | ColorTest.cpp | 16 #define GetPackedG16As32(packed) (SkGetPackedG16(dc) << (8 - SK_G16_BITS))
|
/external/skia/src/core/ |
D | SkBlitMask_D32.cpp | 214 int maskG = SkGetPackedG16(m) >> (SK_G16_BITS - 5); in LCD16_RowProc_Blend() 254 int maskG = SkGetPackedG16(m) >> (SK_G16_BITS - 5); in LCD16_RowProc_Opaque()
|
D | SkPixmap.cpp | 177 g >> (8 - SK_G16_BITS), in erase()
|
D | SkBlitter_RGB16.cpp | 535 SkAlphaMul(g, fScale) >> (8 - SK_G16_BITS), in SkRGB16_Blitter()
|
/external/skia/src/effects/ |
D | SkAvoidXfermode.cpp | 44 unsigned dg = SkAbs32(SkGetPackedG16(c) - g) >> (SK_G16_BITS - SK_R16_BITS); in color_dist16() 126 unsigned opG = SkColorGetG(fOpColor) >> (8 - SK_G16_BITS); in xfer16()
|
/external/skia/src/images/ |
D | SkImageDecoder_libpng.cpp | 494 pos_le(sig_bit->green, SK_G16_BITS) && in getBitmapColorType()
|