Searched refs:SK_G16_MASK (Results 1 – 2 of 2) sorted by relevance
63 #define SK_G16_MASK ((1 << SK_G16_BITS) - 1) macro67 #define SkGetPackedG16(color) (((unsigned)(color) >> SK_G16_SHIFT) & SK_G16_MASK)71 #define SkG16Assert(g) SkASSERT((unsigned)(g) <= SK_G16_MASK)76 SkASSERT(g <= SK_G16_MASK); in SkPackRGB16()83 #define SK_G16_MASK_IN_PLACE (SK_G16_MASK << SK_G16_SHIFT)149 SkASSERT(SkGetPackedG16(a) + SkGetPackedG16(b) <= SK_G16_MASK); in SkRGB16Add()270 …e SkPacked32ToG16(c) (((unsigned)(c) >> (SK_G32_SHIFT + SK_G32_BITS - SK_G16_BITS)) & SK_G16_MASK)275 unsigned g = ((c >> (SK_G32_SHIFT + (8 - SK_G16_BITS))) & SK_G16_MASK) << SK_G16_SHIFT; in SkPixel32ToPixel16()
63 SkASSERT(g <= SK_G16_MASK); in color_dist16()