Lines Matching refs:g
30 #define SkDITHER_G32_FOR_565_MACRO(g, d) (g + (d >> 1) - (g >> 6)) argument
35 #define SkDITHER_G32_FOR_4444_MACRO(g, d) (g + d - (g >> 4)) argument
47 inline unsigned SkDITHER_G32_FOR_565(unsigned g, unsigned d) in SkDITHER_G32_FOR_565() argument
50 SkG32Assert(g); in SkDITHER_G32_FOR_565()
51 g = SkDITHER_G32_FOR_565_MACRO(g, d); in SkDITHER_G32_FOR_565()
52 SkG32Assert(g); in SkDITHER_G32_FOR_565()
53 return g; in SkDITHER_G32_FOR_565()
65 #define SkDITHER_G32_FOR_565(g, d) SkDITHER_G32_FOR_565_MACRO(g, d) argument
70 #define SkDITHER_G32To565(g, d) SkG32ToG16(SkDITHER_G32_FOR_565(g, d)) argument
75 #define SkDITHER_G32To4444(g, d) SkG32To4444(SkDITHER_G32_FOR_4444_MACRO(g, d)) argument
109 static inline uint16_t SkDitherRGBTo565(U8CPU r, U8CPU g, U8CPU b, in SkDitherRGBTo565() argument
114 g = SkDITHER_G32To565(g, dither); in SkDitherRGBTo565()
116 return SkPackRGB16(r, g, b); in SkDitherRGBTo565()
150 static inline SkPMColor16 SkDitherARGB32To4444(U8CPU a, U8CPU r, U8CPU g, in SkDitherARGB32To4444() argument
157 g = SkDITHER_G32To4444(g, dither); in SkDitherARGB32To4444()
160 return SkPackARGB4444(a, r, g, b); in SkDitherARGB32To4444()
167 unsigned g = SkGetPackedG32(c); in SkDitherARGB32To4444() local
174 g = SkDITHER_G32To4444(g, dither); in SkDitherARGB32To4444()
177 return SkPackARGB4444(a, r, g, b); in SkDitherARGB32To4444()