Lines Matching refs:SkMask
101 SkMask::FreeImage(image); in SkMask_FreeImage()
104 bool SkBlurMask::BoxBlur(SkMask* dst, const SkMask& src, SkScalar sigma, SkBlurStyle style, in BoxBlur()
106 if (src.fFormat != SkMask::kBW_Format && in BoxBlur()
107 src.fFormat != SkMask::kA8_Format && in BoxBlur()
108 src.fFormat != SkMask::kARGB32_Format && in BoxBlur()
109 src.fFormat != SkMask::kLCD16_Format) in BoxBlur()
122 dst->fFormat = SkMask::kA8_Format; in BoxBlur()
157 case SkMask::kBW_Format: in BoxBlur()
160 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
163 case SkMask::kA8_Format: in BoxBlur()
166 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
169 case SkMask::kARGB32_Format: { in BoxBlur()
173 SkMask::AlphaIter<SkMask::kARGB32_Format>(srcARGB), src.fRowBytes, in BoxBlur()
176 case SkMask::kLCD16_Format: { in BoxBlur()
180 SkMask::AlphaIter<SkMask::kLCD16_Format>(srcLCD), src.fRowBytes, in BoxBlur()
190 case SkMask::kBW_Format: in BoxBlur()
193 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
196 case SkMask::kA8_Format: in BoxBlur()
199 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
202 case SkMask::kARGB32_Format: { in BoxBlur()
206 SkMask::AlphaIter<SkMask::kARGB32_Format>(srcARGB), src.fRowBytes, in BoxBlur()
209 case SkMask::kLCD16_Format: { in BoxBlur()
213 SkMask::AlphaIter<SkMask::kLCD16_Format>(srcLCD), src.fRowBytes, in BoxBlur()
222 SkMask blur = *dst; in BoxBlur()
230 dst->fImage = SkMask::AllocImage(dstSize); in BoxBlur()
233 case SkMask::kBW_Format: in BoxBlur()
236 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
240 case SkMask::kA8_Format: in BoxBlur()
243 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
247 case SkMask::kARGB32_Format: { in BoxBlur()
251 SkMask::AlphaIter<SkMask::kARGB32_Format>(srcARGB), src.fRowBytes, in BoxBlur()
255 case SkMask::kLCD16_Format: { in BoxBlur()
259 SkMask::AlphaIter<SkMask::kLCD16_Format>(srcLCD), src.fRowBytes, in BoxBlur()
394 bool SkBlurMask::BlurRect(SkScalar sigma, SkMask *dst, in BlurRect()
396 SkIPoint *margin, SkMask::CreateMode createMode) { in BlurRect()
413 dst->fFormat = SkMask::kA8_Format; in BlurRect()
419 if (createMode == SkMask::kJustComputeBounds_CreateMode) { in BlurRect()
439 uint8_t* dp = SkMask::AllocImage(dstSize); in BlurRect()
467 dst->fImage = SkMask::AllocImage(srcSize); in BlurRect()
473 SkMask::FreeImage(dp); in BlurRect()
498 bool SkBlurMask::BlurRRect(SkScalar sigma, SkMask *dst, in BlurRRect()
500 SkIPoint *margin, SkMask::CreateMode createMode) { in BlurRRect()
511 bool SkBlurMask::BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src, in BlurGroundTruth()
514 if (src.fFormat != SkMask::kA8_Format) { in BlurGroundTruth()
549 dst->fFormat = SkMask::kA8_Format; in BlurGroundTruth()
564 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth()
632 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
638 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
647 dst->fImage = SkMask::AllocImage(srcSize); in BlurGroundTruth()
649 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
652 SkMask::FreeImage(dstPixels); in BlurGroundTruth()