Home
last modified time | relevance | path

Searched refs:SkMask (Results 1 – 25 of 154) sorted by relevance

1234567

/external/skia/src/core/
DSkBlurMask.cpp102 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()
[all …]
DSkMask.cpp25 size_t SkMask::computeImageSize() const { in computeImageSize()
29 size_t SkMask::computeTotalImageSize() const { in computeTotalImageSize()
31 if (fFormat == SkMask::k3D_Format) { in computeTotalImageSize()
40 uint8_t* SkMask::AllocImage(size_t size, AllocType at) { in AllocImage()
52 void SkMask::FreeImage(void* image) { in FreeImage()
56 SkMask SkMask::PrepareDestination(int radiusX, int radiusY, const SkMask& src) { in PrepareDestination()
59 SkMask dst; in PrepareDestination()
76 dst.fFormat = SkMask::kA8_Format; in PrepareDestination()
81 dst.fImage = SkMask::AllocImage(toAlloc); in PrepareDestination()
99 static int maskFormatToShift(SkMask::Format format) { in maskFormatToShift()
[all …]
DSkBlurMask.h18 static bool SK_WARN_UNUSED_RESULT BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src,
20 SkMask::CreateMode createMode =
21 SkMask::kComputeBoundsAndRenderImage_CreateMode);
22 static bool SK_WARN_UNUSED_RESULT BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src,
24 SkMask::CreateMode createMode =
25 SkMask::kComputeBoundsAndRenderImage_CreateMode);
38 static bool SK_WARN_UNUSED_RESULT BoxBlur(SkMask* dst, const SkMask& src,
44 static bool SK_WARN_UNUSED_RESULT BlurGroundTruth(SkScalar sigma, SkMask* dst,
45 const SkMask& src,
DSkMask.h22 struct SkMask { struct
23 SkMask() : fImage(nullptr) {} in SkMask() function
148 static SkMask PrepareDestination(int radiusX, int radiusY, const SkMask& src);
151 template <> struct SkMask::AlphaIter<SkMask::kBW_Format> {
184 template <> struct SkMask::AlphaIter<SkMask::kA8_Format> {
198 template <> struct SkMask::AlphaIter<SkMask::kARGB32_Format> {
212 template <> struct SkMask::AlphaIter<SkMask::kLCD16_Format> {
241 std::unique_ptr<uint8_t, SkFunctionWrapper<decltype(SkMask::FreeImage), SkMask::FreeImage>>;
DSkBlurMF.cpp49 SkMask::Format getFormat() const override;
50 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
86 bool filterRectMask(SkMask* dstM, const SkRect& r, const SkMatrix& matrix,
87 SkIPoint* margin, SkMask::CreateMode createMode) const;
88 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix,
89 SkIPoint* margin, SkMask::CreateMode createMode) const;
130 SkMask::Format SkBlurMaskFilterImpl::getFormat() const { in getFormat()
131 return SkMask::kA8_Format; in getFormat()
146 bool SkBlurMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
153 bool SkBlurMaskFilterImpl::filterRectMask(SkMask* dst, const SkRect& r, in filterRectMask()
[all …]
DSkGlyph.cpp17 SkMask SkGlyph::mask() const { in mask()
18 SkMask mask; in mask()
26 SkMask SkGlyph::mask(SkPoint position) const { in mask()
27 SkMask answer = this->mask(); in mask()
45 static size_t format_alignment(SkMask::Format format) { in format_alignment()
47 case SkMask::kBW_Format: in format_alignment()
48 case SkMask::kA8_Format: in format_alignment()
49 case SkMask::k3D_Format: in format_alignment()
50 case SkMask::kSDF_Format: in format_alignment()
52 case SkMask::kARGB32_Format: in format_alignment()
[all …]
/external/skqp/src/core/
DSkBlurMask.cpp101 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()
[all …]
DSkGlyph.cpp14 void SkGlyph::toMask(SkMask* mask) const { in toMask()
20 mask->fFormat = static_cast<SkMask::Format>(fMaskFormat); in toMask()
36 static size_t format_alignment(SkMask::Format format) { in format_alignment()
38 case SkMask::kBW_Format: in format_alignment()
39 case SkMask::kA8_Format: in format_alignment()
40 case SkMask::k3D_Format: in format_alignment()
41 case SkMask::kSDF_Format: in format_alignment()
43 case SkMask::kARGB32_Format: in format_alignment()
45 case SkMask::kLCD16_Format: in format_alignment()
54 static size_t format_rowbytes(int width, SkMask::Format format) { in format_rowbytes()
[all …]
DSkMask.cpp25 size_t SkMask::computeImageSize() const { in computeImageSize()
29 size_t SkMask::computeTotalImageSize() const { in computeTotalImageSize()
31 if (fFormat == SkMask::k3D_Format) { in computeTotalImageSize()
40 uint8_t* SkMask::AllocImage(size_t size, AllocType at) { in AllocImage()
52 void SkMask::FreeImage(void* image) { in FreeImage()
56 SkMask SkMask::PrepareDestination(int radiusX, int radiusY, const SkMask& src) { in PrepareDestination()
59 SkMask dst; in PrepareDestination()
76 dst.fFormat = SkMask::kA8_Format; in PrepareDestination()
81 dst.fImage = SkMask::AllocImage(toAlloc); in PrepareDestination()
99 static int maskFormatToShift(SkMask::Format format) { in maskFormatToShift()
[all …]
DSkBlurMask.h18 static bool SK_WARN_UNUSED_RESULT BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src,
20 SkMask::CreateMode createMode =
21 SkMask::kComputeBoundsAndRenderImage_CreateMode);
22 static bool SK_WARN_UNUSED_RESULT BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src,
24 SkMask::CreateMode createMode =
25 SkMask::kComputeBoundsAndRenderImage_CreateMode);
38 static bool SK_WARN_UNUSED_RESULT BoxBlur(SkMask* dst, const SkMask& src,
44 static bool SK_WARN_UNUSED_RESULT BlurGroundTruth(SkScalar sigma, SkMask* dst,
45 const SkMask& src,
DSkMaskFilter.cpp34 SkMask::FreeImage(fMask.fImage); in ~NinePatch()
42 static void extractMaskSubset(const SkMask& src, SkMask* dst) { in extractMaskSubset()
52 static void blitClippedMask(SkBlitter* blitter, const SkMask& mask, in blitClippedMask()
68 static void dump(const SkMask& mask) {
79 static void draw_nine_clipped(const SkMask& mask, const SkIRect& outerR, in draw_nine_clipped()
84 SkMask m; in draw_nine_clipped()
172 SkMask m; in draw_nine_clipped()
177 m.fFormat = SkMask::kA8_Format; in draw_nine_clipped()
183 SkMask m; in draw_nine_clipped()
188 m.fFormat = SkMask::kA8_Format; in draw_nine_clipped()
[all …]
DSkMask.h22 struct SkMask { struct
23 SkMask() : fImage(nullptr) {} in SkMask() function
146 static SkMask PrepareDestination(int radiusX, int radiusY, const SkMask& src);
149 template <> struct SkMask::AlphaIter<SkMask::kBW_Format> {
182 template <> struct SkMask::AlphaIter<SkMask::kA8_Format> {
196 template <> struct SkMask::AlphaIter<SkMask::kARGB32_Format> {
210 template <> struct SkMask::AlphaIter<SkMask::kLCD16_Format> {
238 using SkAutoMaskFreeImage = std::unique_ptr<uint8_t,SkFunctionWrapper<void,void,SkMask::FreeImage>>;
/external/skia/src/gpu/text/
DGrSDFMaskFilter.cpp22 SkMask::Format getFormat() const override;
24 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
42 SkMask::Format GrSDFMaskFilterImpl::getFormat() const { in getFormat()
43 return SkMask::kSDF_Format; in getFormat()
46 bool GrSDFMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
48 if (src.fFormat != SkMask::kA8_Format in filterMask()
49 && src.fFormat != SkMask::kBW_Format in filterMask()
50 && src.fFormat != SkMask::kLCD16_Format) { in filterMask()
54 *dst = SkMask::PrepareDestination(SK_DistanceFieldPad, SK_DistanceFieldPad, src); in filterMask()
55 dst->fFormat = SkMask::kSDF_Format; in filterMask()
[all …]
/external/skqp/src/gpu/text/
DGrSDFMaskFilter.cpp22 SkMask::Format getFormat() const override;
24 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
42 SkMask::Format GrSDFMaskFilterImpl::getFormat() const { in getFormat()
43 return SkMask::kSDF_Format; in getFormat()
46 bool GrSDFMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
48 if (src.fFormat != SkMask::kA8_Format in filterMask()
49 && src.fFormat != SkMask::kBW_Format in filterMask()
50 && src.fFormat != SkMask::kLCD16_Format) { in filterMask()
54 *dst = SkMask::PrepareDestination(SK_DistanceFieldPad, SK_DistanceFieldPad, src); in filterMask()
55 dst->fFormat = SkMask::kSDF_Format; in filterMask()
[all …]
/external/skia/src/gpu/
DGrGlyph.h18 static GrMaskFormat FormatFromSkGlyph(SkMask::Format format) { in FormatFromSkGlyph()
20 case SkMask::kBW_Format: in FormatFromSkGlyph()
21 case SkMask::kSDF_Format: in FormatFromSkGlyph()
23 case SkMask::kA8_Format: in FormatFromSkGlyph()
25 case SkMask::k3D_Format: in FormatFromSkGlyph()
27 case SkMask::kLCD16_Format: in FormatFromSkGlyph()
29 case SkMask::kARGB32_Format: in FormatFromSkGlyph()
/external/skqp/src/ports/
DSkFontHost_FreeType_common.cpp57 FT_Pixel_Mode compute_pixel_mode(SkMask::Format format) { in compute_pixel_mode()
59 case SkMask::kBW_Format: in compute_pixel_mode()
61 case SkMask::kA8_Format: in compute_pixel_mode()
100 void copyFT2LCD16(const FT_Bitmap& bitmap, const SkMask& mask, int lcdIsBGR, in copyFT2LCD16()
103 SkASSERT(SkMask::kLCD16_Format == mask.fFormat); in copyFT2LCD16()
202 void copyFTBitmap(const FT_Bitmap& srcFTBitmap, SkMask& dstMask) { in copyFTBitmap()
223 const SkMask::Format dstFormat = static_cast<SkMask::Format>(dstMask.fFormat); in copyFTBitmap()
229 if (SkMask::kLCD16_Format == dstFormat) { in copyFTBitmap()
234 if ((FT_PIXEL_MODE_MONO == srcFormat && SkMask::kBW_Format == dstFormat) || in copyFTBitmap()
235 (FT_PIXEL_MODE_GRAY == srcFormat && SkMask::kA8_Format == dstFormat)) in copyFTBitmap()
[all …]
/external/skqp/src/gpu/
DGrGlyph.h26 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in FormatFromSkGlyph()
28 case SkMask::kBW_Format: in FormatFromSkGlyph()
29 case SkMask::kSDF_Format: in FormatFromSkGlyph()
31 case SkMask::kA8_Format: in FormatFromSkGlyph()
33 case SkMask::k3D_Format: in FormatFromSkGlyph()
35 case SkMask::kLCD16_Format: in FormatFromSkGlyph()
37 case SkMask::kARGB32_Format: in FormatFromSkGlyph()
53 return (SkMask::Format)skGlyph.fMaskFormat == SkMask::kSDF_Format in MaskStyleFromSkGlyph()
/external/skqp/src/effects/
DSkTableMaskFilter.cpp18 SkMask::Format getFormat() const override;
19 bool filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*) const override;
48 bool SkTableMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
50 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
56 dst->fFormat = SkMask::kA8_Format; in filterMask()
60 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask()
90 SkMask::Format SkTableMaskFilterImpl::getFormat() const { in getFormat()
91 return SkMask::kA8_Format; in getFormat()
DSkShaderMaskFilter.cpp19 SkMask::Format getFormat() const override { return SkMask::kA8_Format; } in getFormat()
21 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
66 bool SkShaderMF::filterMask(SkMask* dst, const SkMask& src, const SkMatrix& ctm, in filterMask()
68 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
77 dst->fFormat = SkMask::kA8_Format; in filterMask()
89 dst->fImage = SkMask::AllocImage(size); in filterMask()
DSkEmbossMaskFilter.cpp69 SkMask::Format SkEmbossMaskFilter::getFormat() const { in getFormat()
70 return SkMask::k3D_Format; in getFormat()
73 bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src, in filterMask()
75 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
85 dst->fFormat = SkMask::k3D_Format; in filterMask()
102 dst->fImage = SkMask::AllocImage(planeSize * 3); in filterMask()
104 SkMask::FreeImage(alphaPlane); in filterMask()
/external/skia/src/effects/
DSkTableMaskFilter.cpp19 SkMask::Format getFormat() const override;
20 bool filterMask(SkMask*, const SkMask&, const SkMatrix&, SkIPoint*) const override;
49 bool SkTableMaskFilterImpl::filterMask(SkMask* dst, const SkMask& src, in filterMask()
51 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
57 dst->fFormat = SkMask::kA8_Format; in filterMask()
61 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask()
91 SkMask::Format SkTableMaskFilterImpl::getFormat() const { in getFormat()
92 return SkMask::kA8_Format; in getFormat()
DSkShaderMaskFilter.cpp20 SkMask::Format getFormat() const override { return SkMask::kA8_Format; } in getFormat()
22 bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
67 bool SkShaderMF::filterMask(SkMask* dst, const SkMask& src, const SkMatrix& ctm, in filterMask()
69 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
78 dst->fFormat = SkMask::kA8_Format; in filterMask()
90 dst->fImage = SkMask::AllocImage(size); in filterMask()
DSkEmbossMaskFilter.cpp70 SkMask::Format SkEmbossMaskFilter::getFormat() const { in getFormat()
71 return SkMask::k3D_Format; in getFormat()
74 bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src, in filterMask()
76 if (src.fFormat != SkMask::kA8_Format) { in filterMask()
86 dst->fFormat = SkMask::k3D_Format; in filterMask()
103 dst->fImage = SkMask::AllocImage(planeSize * 3); in filterMask()
105 SkMask::FreeImage(alphaPlane); in filterMask()
/external/skia/bench/
DBlurRectBench.cpp92 SkMask mask; in makeBlurryRect()
97 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
109 SkMask::FreeImage(fSrcMask.fImage); in ~BlurRectSeparableBench()
114 SkMask::FreeImage(fSrcMask.fImage); in preBenchSetup()
117 fSrcMask.fFormat = SkMask::kA8_Format; in preBenchSetup()
119 fSrcMask.fImage = SkMask::AllocImage(fSrcMask.computeTotalImageSize()); in preBenchSetup()
124 SkMask fSrcMask;
146 SkMask mask; in makeBlurryRect()
151 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
174 SkMask mask; in makeBlurryRect()
[all …]
/external/skqp/bench/
DBlurRectBench.cpp92 SkMask mask; in makeBlurryRect()
97 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
109 SkMask::FreeImage(fSrcMask.fImage); in ~BlurRectSeparableBench()
114 SkMask::FreeImage(fSrcMask.fImage); in preBenchSetup()
117 fSrcMask.fFormat = SkMask::kA8_Format; in preBenchSetup()
119 fSrcMask.fImage = SkMask::AllocImage(fSrcMask.computeTotalImageSize()); in preBenchSetup()
124 SkMask fSrcMask;
146 SkMask mask; in makeBlurryRect()
151 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
174 SkMask mask; in makeBlurryRect()
[all …]

1234567