Searched refs:SK_R16_MASK (Results 1 – 4 of 4) sorted by relevance
238 #define SK_R16_MASK ((1 << SK_R16_BITS) - 1) macro242 #define SkGetPackedR16(color) (((unsigned)(color) >> SK_R16_SHIFT) & SK_R16_MASK)246 #define SkR16Assert(r) SkASSERT((unsigned)(r) <= SK_R16_MASK)251 SkASSERT(r <= SK_R16_MASK); in SkPackRGB16()258 #define SK_R16_MASK_IN_PLACE (SK_R16_MASK << SK_R16_SHIFT)335 SkASSERT(SkGetPackedR16(a) + SkGetPackedR16(b) <= SK_R16_MASK); in SkRGB16Add()606 …e SkPacked32ToR16(c) (((unsigned)(c) >> (SK_R32_SHIFT + SK_R32_BITS - SK_R16_BITS)) & SK_R16_MASK)611 unsigned r = ((c >> (SK_R32_SHIFT + (8 - SK_R16_BITS))) & SK_R16_MASK) << SK_R16_SHIFT; in SkPixel32ToPixel16()
141 r = _mm_and_si128(r, _mm_set1_epi32(SK_R16_MASK)); in SkPacked16ToR32_SSE2()179 r1 = _mm_and_si128(r1, _mm_set1_epi32(SK_R16_MASK)); in SkPixel32ToPixel16_ToU16_SSE2()182 r2 = _mm_and_si128(r2, _mm_set1_epi32(SK_R16_MASK)); in SkPixel32ToPixel16_ToU16_SSE2()
718 __m128i r16_mask = _mm_set1_epi16(SK_R16_MASK); in S32A_D565_Opaque_SSE2()992 __m128i r16_mask = _mm_set1_epi16(SK_R16_MASK); in S32A_D565_Opaque_Dither_SSE2()
39 SkASSERT(r <= SK_R16_MASK); in color_dist16()