Home
last modified time | relevance | path

Searched refs:SK_B16_BITS (Results 1 – 11 of 11) sorted by relevance

/external/skia/include/core/
DSkColorPriv.h232 #define SK_B16_BITS 5 macro
234 #define SK_R16_SHIFT (SK_B16_BITS + SK_G16_BITS)
235 #define SK_G16_SHIFT (SK_B16_BITS)
240 #define SK_B16_MASK ((1 << SK_B16_BITS) - 1)
585 #define SkB32ToB16_MACRO(b) ((unsigned)(b) >> (SK_B32_BITS - SK_B16_BITS))
608 #define SkPacked32ToB16(c) (((unsigned)(c) >> (SK_B32_SHIFT + SK_B32_BITS - SK_B16_BITS)) & SK_B16…
613 unsigned b = ((c >> (SK_B32_SHIFT + (8 - SK_B16_BITS))) & SK_B16_MASK) << SK_B16_SHIFT; in SkPixel32ToPixel16()
633 …b = ((b << 1) - ((b >> (8 - SK_B16_BITS) << (8 - SK_B16_BITS)) | (b >> SK_B16_BITS))) >> (8 - SK_B… in SkDitherPack888ToRGB16()
676 db = (sb + SkMul16ShiftRound(db, isa, SK_B16_BITS)) >> (8 - SK_B16_BITS); in SkSrcOver32To16()
693 return (b << (8 - SK_B16_BITS)) | (b >> (2 * SK_B16_BITS - 8)); in SkB16ToB32()
[all …]
/external/skia/src/opts/
DSkColor_opts_neon.h50 vg = vmovn_u16(vshrq_n_u16(vshlq_n_u16(vsrc, SK_R16_BITS), SK_R16_BITS + SK_B16_BITS)); in SkPixel16ToPixel32_neon8()
56 ret.val[NEON_B] = vshl_n_u8(vb, 8 - SK_B16_BITS) | vshr_n_u8(vb, 2 * SK_B16_BITS - 8); in SkPixel16ToPixel32_neon8()
DSkColor_opts_SSE2.h160 b = _mm_or_si128(_mm_slli_epi32(b, (8 - SK_B16_BITS)), in SkPacked16ToB32_SSE2()
161 _mm_srli_epi32(b, (2 * SK_B16_BITS - 8))); in SkPacked16ToB32_SSE2()
196 SK_B32_SHIFT + (8 - SK_B16_BITS)); in SkPixel32ToPixel16_ToU16_SSE2()
199 SK_B32_SHIFT + (8 - SK_B16_BITS)); in SkPixel32ToPixel16_ToU16_SSE2()
DSkBlitMask_opts_arm_neon.cpp47 SK_B16_BITS + SK_R16_BITS + 1); in SkBlitLCD16OpaqueRow_neon()
110 SK_B16_BITS + SK_R16_BITS + 1); in SkBlitLCD16Row_neon()
DSkBlitRow_opts_arm_neon.cpp558 vdst1_g = vshrq_n_u16(vdst1_g, SK_R16_BITS + SK_B16_BITS); // extract green in Color32A_D565_neon()
563 vdst2_g = vshrq_n_u16(vdst2_g, SK_R16_BITS + SK_B16_BITS); // extract green in Color32A_D565_neon()
667 vdst_g = vshrq_n_u16(vdst_g, SK_R16_BITS + SK_B16_BITS); // extract green in S32A_D565_Blend_neon()
672 vsrc.val[NEON_B] = vshr_n_u8(vsrc.val[NEON_B], 8 - SK_B16_BITS); in S32A_D565_Blend_neon()
1383 dst_g = vshrq_n_u16(vshlq_n_u16(dst8, SK_R16_BITS), SK_R16_BITS + SK_B16_BITS); in S32A_D565_Opaque_Dither_neon()
DSkBlitRow_opts_SSE2.cpp271 pixel_G = _mm_srli_epi16(pixel_G, SK_R16_BITS + SK_B16_BITS); in Color32A_D565_SSE2()
312 #define SK_B16x5_B32x5_SHIFT (SK_B32_SHIFT - SK_B16_SHIFT - SK_B16_BITS + 5)
787 db = _mm_add_epi16(sb, SkMul16ShiftRound_SSE2(db, isa, SK_B16_BITS)); in S32A_D565_Opaque_SSE2()
788 db = _mm_srli_epi16(db, 8 - SK_B16_BITS); in S32A_D565_Opaque_SSE2()
901 sb = _mm_srli_epi16(sb, SK_B32_BITS - SK_B16_BITS); in S32_D565_Opaque_Dither_SSE2()
/external/skia/tests/
DColorTest.cpp17 #define GetPackedB16As32(packed) (SkGetPackedB16(dc) << (8 - SK_B16_BITS))
/external/skia/src/core/
DSkBlitMask_D32.cpp215 int maskB = SkGetPackedB16(m) >> (SK_B16_BITS - 5); in LCD16_RowProc_Blend()
255 int maskB = SkGetPackedB16(m) >> (SK_B16_BITS - 5); in LCD16_RowProc_Opaque()
DSkPixmap.cpp178 b >> (8 - SK_B16_BITS)); in erase()
DSkBlitter_RGB16.cpp536 SkAlphaMul(b, fScale) >> (8 - SK_B16_BITS)); in SkRGB16_Blitter()
/external/skia/src/images/
DSkImageDecoder_libpng.cpp495 pos_le(sig_bit->blue, SK_B16_BITS)) { in getBitmapColorType()