Lines Matching refs:SkMask
102 SkMask::FreeImage(image); in SkMask_FreeImage()
105 bool SkBlurMask::BoxBlur(SkMask* dst, const SkMask& src, SkScalar sigma, SkBlurStyle style, in BoxBlur()
107 if (src.fFormat != SkMask::kBW_Format && in BoxBlur()
108 src.fFormat != SkMask::kA8_Format && in BoxBlur()
109 src.fFormat != SkMask::kARGB32_Format && in BoxBlur()
110 src.fFormat != SkMask::kLCD16_Format) in BoxBlur()
123 dst->fFormat = SkMask::kA8_Format; in BoxBlur()
158 case SkMask::kBW_Format: in BoxBlur()
161 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
164 case SkMask::kA8_Format: in BoxBlur()
167 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
170 case SkMask::kARGB32_Format: { in BoxBlur()
174 SkMask::AlphaIter<SkMask::kARGB32_Format>(srcARGB), src.fRowBytes, in BoxBlur()
177 case SkMask::kLCD16_Format: { in BoxBlur()
181 SkMask::AlphaIter<SkMask::kLCD16_Format>(srcLCD), src.fRowBytes, in BoxBlur()
191 case SkMask::kBW_Format: in BoxBlur()
194 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
197 case SkMask::kA8_Format: in BoxBlur()
200 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
203 case SkMask::kARGB32_Format: { in BoxBlur()
207 SkMask::AlphaIter<SkMask::kARGB32_Format>(srcARGB), src.fRowBytes, in BoxBlur()
210 case SkMask::kLCD16_Format: { in BoxBlur()
214 SkMask::AlphaIter<SkMask::kLCD16_Format>(srcLCD), src.fRowBytes, in BoxBlur()
223 SkMask blur = *dst; in BoxBlur()
231 dst->fImage = SkMask::AllocImage(dstSize); in BoxBlur()
234 case SkMask::kBW_Format: in BoxBlur()
237 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
241 case SkMask::kA8_Format: in BoxBlur()
244 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
248 case SkMask::kARGB32_Format: { in BoxBlur()
252 SkMask::AlphaIter<SkMask::kARGB32_Format>(srcARGB), src.fRowBytes, in BoxBlur()
256 case SkMask::kLCD16_Format: { in BoxBlur()
260 SkMask::AlphaIter<SkMask::kLCD16_Format>(srcLCD), src.fRowBytes, in BoxBlur()
395 bool SkBlurMask::BlurRect(SkScalar sigma, SkMask *dst, in BlurRect()
397 SkIPoint *margin, SkMask::CreateMode createMode) { in BlurRect()
414 dst->fFormat = SkMask::kA8_Format; in BlurRect()
420 if (createMode == SkMask::kJustComputeBounds_CreateMode) { in BlurRect()
437 uint8_t* dp = SkMask::AllocImage(dstSize); in BlurRect()
465 dst->fImage = SkMask::AllocImage(srcSize); in BlurRect()
471 SkMask::FreeImage(dp); in BlurRect()
493 bool SkBlurMask::BlurRRect(SkScalar sigma, SkMask *dst, in BlurRRect()
495 SkIPoint *margin, SkMask::CreateMode createMode) { in BlurRRect()
506 bool SkBlurMask::BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src, in BlurGroundTruth()
509 if (src.fFormat != SkMask::kA8_Format) { in BlurGroundTruth()
544 dst->fFormat = SkMask::kA8_Format; in BlurGroundTruth()
559 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth()
627 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
633 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
642 dst->fImage = SkMask::AllocImage(srcSize); in BlurGroundTruth()
644 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
647 SkMask::FreeImage(dstPixels); in BlurGroundTruth()