Home
last modified time | relevance | path

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

/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()
54 ret.val[NEON_R] = vshl_n_u8(vr, 8 - SK_R16_BITS) | vshr_n_u8(vr, 2 * SK_R16_BITS - 8); in SkPixel16ToPixel32_neon8()
70 ret = vsriq_n_u16(ret, vshll_n_u8(vsrc.val[NEON_G], 8), SK_R16_BITS); in SkPixel32ToPixel16_neon8()
71 ret = vsriq_n_u16(ret, vshll_n_u8(vsrc.val[NEON_B], 8), SK_R16_BITS + SK_G16_BITS); in SkPixel32ToPixel16_neon8()
DSkBlitMask_opts_arm_neon.cpp46 vmaskG = vshrq_n_u16(vshlq_n_u16(vmask, SK_R16_BITS), in SkBlitLCD16OpaqueRow_neon()
47 SK_B16_BITS + SK_R16_BITS + 1); in SkBlitLCD16OpaqueRow_neon()
109 vmaskG = vshrq_n_u16(vshlq_n_u16(vmask, SK_R16_BITS), in SkBlitLCD16Row_neon()
110 SK_B16_BITS + SK_R16_BITS + 1); in SkBlitLCD16Row_neon()
DSkColor_opts_SSE2.h174 r = _mm_or_si128(_mm_slli_epi32(r, (8 - SK_R16_BITS)), in SkPacked16ToR32_SSE2()
175 _mm_srli_epi32(r, (2 * SK_R16_BITS - 8))); in SkPacked16ToR32_SSE2()
210 SK_R32_SHIFT + (8 - SK_R16_BITS)); in SkPixel32ToPixel16_ToU16_SSE2()
213 SK_R32_SHIFT + (8 - SK_R16_BITS)); in SkPixel32ToPixel16_ToU16_SSE2()
DSkBlitRow_opts_arm_neon.cpp555 … vdst1_g = vshlq_n_u16(vdst1, SK_R16_BITS); // shift green to top of lanes in Color32A_D565_neon()
558 vdst1_g = vshrq_n_u16(vdst1_g, SK_R16_BITS + SK_B16_BITS); // extract green in Color32A_D565_neon()
560 … vdst2_g = vshlq_n_u16(vdst2, SK_R16_BITS); // shift green to top of lanes in Color32A_D565_neon()
563 vdst2_g = vshrq_n_u16(vdst2_g, SK_R16_BITS + SK_B16_BITS); // extract green in Color32A_D565_neon()
664 vdst_g = vshlq_n_u16(vdst, SK_R16_BITS); // shift green to top of lanes in S32A_D565_Blend_neon()
667 vdst_g = vshrq_n_u16(vdst_g, SK_R16_BITS + SK_B16_BITS); // extract green in S32A_D565_Blend_neon()
670 vsrc.val[NEON_R] = vshr_n_u8(vsrc.val[NEON_R], 8 - SK_R16_BITS); in S32A_D565_Blend_neon()
1114 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.cpp138 __m128i pixel_G = _mm_slli_epi16(pixels, SK_R16_BITS); in Color32A_D565_SSE2()
139 pixel_G = _mm_srli_epi16(pixel_G, SK_R16_BITS + SK_B16_BITS); in Color32A_D565_SSE2()
178 #define SK_R16x5_R32x5_SHIFT (SK_R32_SHIFT - SK_R16_SHIFT - SK_R16_BITS + 5)
651 dr = _mm_add_epi16(sr, SkMul16ShiftRound_SSE2(dr, isa, SK_R16_BITS)); in S32A_D565_Opaque_SSE2()
652 dr = _mm_srli_epi16(dr, 8 - SK_R16_BITS); in S32A_D565_Opaque_SSE2()
743 sr = _mm_srli_epi16(sr, SK_R32_BITS - SK_R16_BITS); in S32_D565_Opaque_Dither_SSE2()
/external/skia/include/core/
DSkColorPriv.h238 #define SK_R16_BITS 5 macro
246 #define SK_R16_MASK ((1 << SK_R16_BITS) - 1)
606 #define SkR32ToR16_MACRO(r) ((unsigned)(r) >> (SK_R32_BITS - SK_R16_BITS))
629 #define SkPacked32ToR16(c) (((unsigned)(c) >> (SK_R32_SHIFT + SK_R32_BITS - SK_R16_BITS)) & SK_R16…
634 unsigned r = ((c >> (SK_R32_SHIFT + (8 - SK_R16_BITS))) & SK_R16_MASK) << SK_R16_SHIFT; in SkPixel32ToPixel16()
654 …r = ((r << 1) - ((r >> (8 - SK_R16_BITS) << (8 - SK_R16_BITS)) | (r >> SK_R16_BITS))) >> (8 - SK_R… in SkDitherPack888ToRGB16()
697 dr = (sr + SkMul16ShiftRound(dr, isa, SK_R16_BITS)) >> (8 - SK_R16_BITS); in SkSrcOver32To16()
708 return (r << (8 - SK_R16_BITS)) | (r >> (2 * SK_R16_BITS - 8)); in SkR16ToR32()
730 SkASSERT((r >> (8 - SK_R16_BITS)) == SkGetPackedR16(src)); in SkPixel16ToPixel32()
745 SkASSERT((r >> (8 - SK_R16_BITS)) == SkGetPackedR16(src)); in SkPixel16ToColor()
[all …]
/external/skia/tests/
DColorTest.cpp15 #define GetPackedR16As32(packed) (SkGetPackedR16(dc) << (8 - SK_R16_BITS))
/external/skia/src/core/
DSkBlitMask_D32.cpp213 int maskR = SkGetPackedR16(m) >> (SK_R16_BITS - 5); in LCD16_RowProc_Blend()
253 int maskR = SkGetPackedR16(m) >> (SK_R16_BITS - 5); in LCD16_RowProc_Opaque()
DSkPixmap.cpp169 v = SkPackRGB16(r >> (8 - SK_R16_BITS), in erase()
DSkBlitter_RGB16.cpp525 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), in SkRGB16_Blitter()
/external/skia/samplecode/
DSampleColorFilter.cpp23 #define SK_R16_BITS 5 macro