• Home
  • Raw
  • Download

Lines Matching refs:dither

71 static inline SkPMColor SkDitherARGB32For565(SkPMColor c, unsigned dither)  in SkDitherARGB32For565()  argument
73 SkASSERT(dither <= SK_DitherValueMax565); in SkDitherARGB32For565()
76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32For565()
81 sr = SkDITHER_R32_FOR_565(sr, dither); in SkDitherARGB32For565()
82 sg = SkDITHER_G32_FOR_565(sg, dither); in SkDitherARGB32For565()
83 sb = SkDITHER_B32_FOR_565(sb, dither); in SkDitherARGB32For565()
88 static inline SkPMColor SkDitherRGB32For565(SkPMColor c, unsigned dither) in SkDitherRGB32For565() argument
90 SkASSERT(dither <= SK_DitherValueMax565); in SkDitherRGB32For565()
95 sr = SkDITHER_R32_FOR_565(sr, dither); in SkDitherRGB32For565()
96 sg = SkDITHER_G32_FOR_565(sg, dither); in SkDitherRGB32For565()
97 sb = SkDITHER_B32_FOR_565(sb, dither); in SkDitherRGB32For565()
103 unsigned dither) in SkDitherRGBTo565() argument
105 SkASSERT(dither <= SK_DitherValueMax565); in SkDitherRGBTo565()
106 r = SkDITHER_R32To565(r, dither); in SkDitherRGBTo565()
107 g = SkDITHER_G32To565(g, dither); in SkDitherRGBTo565()
108 b = SkDITHER_B32To565(b, dither); in SkDitherRGBTo565()
112 static inline uint16_t SkDitherRGB32To565(SkPMColor c, unsigned dither) in SkDitherRGB32To565() argument
114 SkASSERT(dither <= SK_DitherValueMax565); in SkDitherRGB32To565()
119 sr = SkDITHER_R32To565(sr, dither); in SkDitherRGB32To565()
120 sg = SkDITHER_G32To565(sg, dither); in SkDitherRGB32To565()
121 sb = SkDITHER_B32To565(sb, dither); in SkDitherRGB32To565()
126 static inline uint16_t SkDitherARGB32To565(U8CPU sa, SkPMColor c, unsigned dither) in SkDitherARGB32To565() argument
128 SkASSERT(dither <= SK_DitherValueMax565); in SkDitherARGB32To565()
129 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32To565()
134 sr = SkDITHER_R32To565(sr, dither); in SkDitherARGB32To565()
135 sg = SkDITHER_G32To565(sg, dither); in SkDitherARGB32To565()
136 sb = SkDITHER_B32To565(sb, dither); in SkDitherARGB32To565()
144 U8CPU b, unsigned dither) in SkDitherARGB32To4444() argument
146 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444()
148 a = SkDITHER_A32To4444(a, dither); in SkDitherARGB32To4444()
149 r = SkDITHER_R32To4444(r, dither); in SkDitherARGB32To4444()
150 g = SkDITHER_G32To4444(g, dither); in SkDitherARGB32To4444()
151 b = SkDITHER_B32To4444(b, dither); in SkDitherARGB32To4444()
156 static inline SkPMColor16 SkDitherARGB32To4444(SkPMColor c, unsigned dither) in SkDitherARGB32To4444() argument
163 dither = SkAlphaMul(dither, SkAlpha255To256(a)); in SkDitherARGB32To4444()
165 a = SkDITHER_A32To4444(a, dither); in SkDitherARGB32To4444()
166 r = SkDITHER_R32To4444(r, dither); in SkDitherARGB32To4444()
167 g = SkDITHER_G32To4444(g, dither); in SkDitherARGB32To4444()
168 b = SkDITHER_B32To4444(b, dither); in SkDitherARGB32To4444()