Searched refs:SK_R16_BITS (Results 1 – 8 of 8) sorted by relevance
54 #define SK_R16_BITS 5 macro62 #define SK_R16_MASK ((1 << SK_R16_BITS) - 1)246 #define SkR32ToR16_MACRO(r) ((unsigned)(r) >> (SK_R32_BITS - SK_R16_BITS))269 #define SkPacked32ToR16(c) (((unsigned)(c) >> (SK_R32_SHIFT + SK_R32_BITS - SK_R16_BITS)) & SK_R16…274 unsigned r = ((c >> (SK_R32_SHIFT + (8 - SK_R16_BITS))) & SK_R16_MASK) << SK_R16_SHIFT; in SkPixel32ToPixel16()294 …r = ((r << 1) - ((r >> (8 - SK_R16_BITS) << (8 - SK_R16_BITS)) | (r >> SK_R16_BITS))) >> (8 - SK_R… in SkDitherPack888ToRGB16()337 dr = (sr + SkMul16ShiftRound(dr, isa, SK_R16_BITS)) >> (8 - SK_R16_BITS); in SkSrcOver32To16()348 return (r << (8 - SK_R16_BITS)) | (r >> (2 * SK_R16_BITS - 8)); in SkR16ToR32()370 SkASSERT((r >> (8 - SK_R16_BITS)) == SkGetPackedR16(src)); in SkPixel16ToPixel32()385 SkASSERT((r >> (8 - SK_R16_BITS)) == SkGetPackedR16(src)); in SkPixel16ToColor()[all …]
67 unsigned dg = SkAbs32(SkGetPackedG16(c) - g) >> (SK_G16_BITS - SK_R16_BITS); in color_dist16()177 unsigned opR = SkColorGetR(fOpColor) >> (8 - SK_R16_BITS); in xfer16()179 unsigned opB = SkColorGetB(fOpColor) >> (8 - SK_R16_BITS); in xfer16()181 uint32_t sub = (fDistMul - (1 << 14)) << SK_R16_BITS; in xfer16()
50 packing->RBits = SK_R16_BITS; in anp_getPixelPacking()
17 #define SK_R16_BITS 5 macro
72 int maskR = SkGetPackedR16(mask) >> (SK_R16_BITS - 5); in blit_lcd16_opaque()
544 fColor16 = SkPackRGB16( SkAlphaMul(r, fScale) >> (8 - SK_R16_BITS), in SkRGB16_Blitter()
728 v = SkPackRGB16(r >> (8 - SK_R16_BITS), g >> (8 - SK_G16_BITS), in eraseARGB()
481 if (pos_le(info_ptr->sig_bit.red, SK_R16_BITS) && in getBitmapConfig()