Home
last modified time | relevance | path

Searched refs:SkPixmap (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/third_party/skia/src/core/
DSkCoreBlitters.h20 SkRasterBlitter(const SkPixmap& device) : fDevice(device) {} in SkRasterBlitter()
23 const SkPixmap fDevice;
36 SkShaderBlitter(const SkPixmap& device, const SkPaint& paint,
57 SkA8_Coverage_Blitter(const SkPixmap& device, const SkPaint& paint);
63 const SkPixmap* justAnOpaqueColor(uint32_t*) override;
73 SkARGB32_Blitter(const SkPixmap& device, const SkPaint& paint);
79 const SkPixmap* justAnOpaqueColor(uint32_t*) override;
98 SkARGB32_Opaque_Blitter(const SkPixmap& device, const SkPaint& paint) in SkARGB32_Opaque_Blitter()
110 SkARGB32_Black_Blitter(const SkPixmap& device, const SkPaint& paint) in SkARGB32_Black_Blitter()
122 SkARGB32_Shader_Blitter(const SkPixmap& device, const SkPaint& paint,
[all …]
DSkSpriteBlitter.h22 SkSpriteBlitter(const SkPixmap& source);
24 virtual bool setup(const SkPixmap& dst, int left, int top, const SkPaint&);
35 static SkSpriteBlitter* ChooseL32(const SkPixmap& source, const SkPaint&, SkArenaAlloc*);
36 static SkSpriteBlitter* ChooseL565(const SkPixmap& source, const SkPaint&, SkArenaAlloc*);
37 static SkSpriteBlitter* ChooseLA8(const SkPixmap& source, const SkPaint&, SkArenaAlloc*);
40 SkPixmap fDst;
41 const SkPixmap fSource;
DSkVMBlitter.h18 static SkVMBlitter* Make(const SkPixmap& dst,
24 static SkVMBlitter* Make(const SkPixmap& dst,
26 const SkPixmap& sprite,
31 SkVMBlitter(const SkPixmap& device,
33 const SkPixmap* sprite,
73 static Params EffectiveParams(const SkPixmap& device,
74 const SkPixmap* sprite,
95 SkPixmap fDevice;
96 const SkPixmap fSprite; // See isSprite().
DSkPixmap.cpp35 void SkPixmap::reset() { in reset()
41 void SkPixmap::reset(const SkImageInfo& info, const void* addr, size_t rowBytes) { in reset()
50 bool SkPixmap::reset(const SkMask& src) { in reset()
60 void SkPixmap::setColorSpace(sk_sp<SkColorSpace> cs) { in setColorSpace()
64 bool SkPixmap::extractSubset(SkPixmap* result, const SkIRect& subset) const { in extractSubset()
88 static const void* fast_getaddr(const SkPixmap& pm, int x, int y) { in fast_getaddr()
93 float SkPixmap::getAlphaf(int x, int y) const { in getAlphaf()
159 bool SkPixmap::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in readPixels()
176 bool SkPixmap::erase(SkColor color, const SkIRect& subset) const { in erase()
180 bool SkPixmap::erase(const SkColor4f& color, SkColorSpace* cs, const SkIRect* subset) const { in erase()
[all …]
DSkPixmapPriv.h21 static bool Orient(const SkPixmap& dst, const SkPixmap& src, SkEncodedOrigin);
36 static bool Orient(const SkPixmap& dst, SkEncodedOrigin origin, Fn&& decode) { in Orient()
38 const SkPixmap* tmp = &dst; in Orient()
58 static void ResetPixmapKeepInfo(SkPixmap* pm, const void* address, size_t rowBytes) { in ResetPixmapKeepInfo()
DSkBlitter_Sprite.cpp20 SkSpriteBlitter::SkSpriteBlitter(const SkPixmap& source) in SkSpriteBlitter()
23 bool SkSpriteBlitter::setup(const SkPixmap& dst, int left, int top, const SkPaint& paint) { in setup()
62 static bool Supports(const SkPixmap& dst, const SkPixmap& src, const SkPaint& paint) { in Supports()
79 SkSpriteBlitter_Memcpy(const SkPixmap& src) in SkSpriteBlitter_Memcpy()
105 SkRasterPipelineSpriteBlitter(const SkPixmap& src, SkArenaAlloc* alloc, in SkRasterPipelineSpriteBlitter()
114 bool setup(const SkPixmap& dst, int left, int top, const SkPaint& paint) override { in setup()
176 SkBlitter* SkBlitter::ChooseSprite(const SkPixmap& dst, const SkPaint& paint, in ChooseSprite()
177 const SkPixmap& source, int left, int top, in ChooseSprite()
DSkBlitter.h23 class SkPixmap; variable
78 virtual const SkPixmap* justAnOpaqueColor(uint32_t* value);
143 static SkBlitter* Choose(const SkPixmap& dst,
150 static SkBlitter* ChooseSprite(const SkPixmap& dst,
152 const SkPixmap& src,
157 static bool UseLegacyBlitter(const SkPixmap&, const SkPaint&, const SkMatrix&);
172 const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
195 const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
229 const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
261 const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
[all …]
DSkBitmapDevice.h28 class SkPixmap; variable
67 const SkPixmap* accessCoverage() const { in accessCoverage()
115 bool onReadPixels(const SkPixmap&, int x, int y) override;
116 bool onWritePixels(const SkPixmap&, int, int) override;
117 bool onPeekPixels(SkPixmap*) override;
118 bool onAccessPixels(SkPixmap*) override;
DSkMipmapAccessor.h24 std::pair<SkPixmap, SkMatrix> level() const { in level()
29 std::pair<SkPixmap, SkMatrix> lowerLevel() const { in lowerLevel()
38 SkPixmap fUpper,
DSkRasterPipelineBlitter.cpp27 static SkBlitter* Create(const SkPixmap&, const SkPaint&, SkArenaAlloc*,
32 SkRasterPipelineBlitter(SkPixmap dst, in SkRasterPipelineBlitter()
57 SkPixmap fDst;
70 void (*fMemset2D)(SkPixmap*, int x,int y, int w,int h, uint64_t color) = nullptr;
88 SkBlitter* SkCreateRasterPipelineBlitter(const SkPixmap& dst, in SkCreateRasterPipelineBlitter()
135 SkBlitter* SkCreateRasterPipelineBlitter(const SkPixmap& dst, in SkCreateRasterPipelineBlitter()
147 SkBlitter* SkRasterPipelineBlitter::Create(const SkPixmap& dst, in Create()
268 case 0: blitter->fMemset2D = [](SkPixmap* dst, int x,int y, int w,int h, uint64_t c) { in Create()
276 case 1: blitter->fMemset2D = [](SkPixmap* dst, int x,int y, int w,int h, uint64_t c) { in Create()
280 case 2: blitter->fMemset2D = [](SkPixmap* dst, int x,int y, int w,int h, uint64_t c) { in Create()
[all …]
/third_party/skia/src/images/
DSkImageEncoder.cpp15 bool SkJpegEncoder::Encode(SkWStream*, const SkPixmap&, const Options&) { return false; } in Encode() argument
16 std::unique_ptr<SkEncoder> SkJpegEncoder::Make(SkWStream*, const SkPixmap&, const Options&) { in Make() argument
22 bool SkPngEncoder::Encode(SkWStream*, const SkPixmap&, const Options&) { return false; } in Encode() argument
23 std::unique_ptr<SkEncoder> SkPngEncoder::Make(SkWStream*, const SkPixmap&, const Options&) { in Make() argument
29 bool SkWebpEncoder::Encode(SkWStream*, const SkPixmap&, const Options&) { return false; } in Encode() argument
33 SkPixmap pixmap; in SkEncodeImage()
37 bool SkEncodeImage(SkWStream* dst, const SkPixmap& src, in SkEncodeImage()
105 sk_sp<SkData> SkEncodePixmap(const SkPixmap& src, SkEncodedImageFormat format, int quality) { in SkEncodePixmap()
111 SkPixmap pixmap; in SkEncodeBitmap()
DSkImageEncoderPriv.h14 static inline bool SkPixmapIsValid(const SkPixmap& src) { in SkPixmapIsValid()
27 bool SkEncodeImageWithCG(SkWStream*, const SkPixmap&, SkEncodedImageFormat);
33 bool SkEncodeImageWithWIC(SkWStream*, const SkPixmap&, SkEncodedImageFormat, int quality);
39 bool SkEncodeImageWithNDK(SkWStream*, const SkPixmap&, SkEncodedImageFormat, int quality);
/third_party/skia/bench/
DEncodeBench.cpp24 using Encoder = bool (*)(SkWStream*, const SkPixmap&);
40 SkPixmap pixmap; in onDraw()
55 static bool encode_jpeg(SkWStream* dst, const SkPixmap& src) { in encode_jpeg()
61 static bool encode_webp_lossy(SkWStream* dst, const SkPixmap& src) { in encode_webp_lossy()
68 static bool encode_webp_lossless(SkWStream* dst, const SkPixmap& src) { in encode_webp_lossless()
76 const SkPixmap& src, in encode_png()
85 #define PNG(FLAG, ZLIBLEVEL) [](SkWStream* d, const SkPixmap& s) { \
/third_party/skia/tools/skqp/src/
Dskqp_model.h41 SkQP::RenderOutcome Check(const SkPixmap& minImg,
42 const SkPixmap& maxImg,
43 const SkPixmap& img,
55 ModelResult CheckAgainstModel(const char* name, const SkPixmap& image,
Dskqp_model.cpp24 static inline uint32_t color(const SkPixmap& pm, SkIPoint p) { in color()
33 SkQP::RenderOutcome skqp::Check(const SkPixmap& minImg, in Check()
34 const SkPixmap& maxImg, in Check()
35 const SkPixmap& img, in Check()
104 const SkPixmap& pm, in CheckAgainstModel()
/third_party/skia/include/core/
DSkBitmap.h124 const SkPixmap& pixmap() const { return fPixmap; } in pixmap()
627 bool installPixels(const SkPixmap& pixmap);
979 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const;
1001 bool readPixels(const SkPixmap& dst) const { in readPixels()
1033 bool writePixels(const SkPixmap& src, int dstX, int dstY);
1055 bool writePixels(const SkPixmap& src) { in writePixels()
1118 bool peekPixels(SkPixmap* pixmap) const;
1188 SkPixmap fPixmap;
DSkPixmap.h30 class SK_API SkPixmap {
40 SkPixmap() in SkPixmap() function
62 SkPixmap(const SkImageInfo& info, const void* addr, size_t rowBytes) in SkPixmap() function
119 bool SK_WARN_UNUSED_RESULT extractSubset(SkPixmap* subset, const SkIRect& area) const;
618 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const { in readPixels()
639 bool readPixels(const SkPixmap& dst) const { in readPixels()
662 bool scalePixels(const SkPixmap& dst, const SkSamplingOptions&) const;
DSkYUVAPixmaps.h148 bool initPixmapsFromSingleAllocation(void* memory, SkPixmap pixmaps[kMaxPlanes]) const;
206 static SkYUVAPixmaps FromExternalPixmaps(const SkYUVAInfo&, const SkPixmap[kMaxPlanes]);
233 const std::array<SkPixmap, kMaxPlanes>& planes() const { return fPlanes; } in planes()
239 const SkPixmap& plane(int i) const { return fPlanes[SkToSizeT(i)]; } in plane()
252 SkYUVAPixmaps(const SkYUVAInfo&, DataType, const SkPixmap[kMaxPlanes]);
254 std::array<SkPixmap, kMaxPlanes> fPlanes = {};
/third_party/skia/tests/
DNdkEncodeTest.cpp40 static sk_sp<SkData> encode_ndk(const SkPixmap& pmap, SkEncodedImageFormat format, int quality) { in encode_ndk()
138 SkPixmap pm(info, nullptr, info.minRowBytes()); in DEF_TEST()
151 std::vector<SkPixmap> pixmaps{ SkPixmap(SkImageInfo::MakeN32Premul(-10, 10), pixels, 1000), in DEF_TEST()
152 SkPixmap(SkImageInfo::MakeN32Premul(10, -10), pixels, 200), in DEF_TEST()
153 SkPixmap(SkImageInfo::MakeN32Premul(10, 10), pixels, 20), in DEF_TEST()
154 SkPixmap(SkImageInfo::MakeN32Premul(10, 10), pixels, 41), in DEF_TEST()
155 SkPixmap(SkImageInfo::MakeN32Premul(10, 10), pixels, 0), in DEF_TEST()
156 SkPixmap(SkImageInfo::MakeN32Premul( 0, 0), pixels, 40)}; in DEF_TEST()
218 SkPixmap pm(info, pixels, rowBytes); in DEF_TEST()
DReadWritePixelsGpuTest.cpp158 template <typename T> using GpuSrcFactory = T(SkPixmap&);
168 using GpuReadSrcFn = Result(const T&, const SkIPoint& offset, const SkPixmap&);
175 using GpuWriteDstFn = Result(const T&, const SkIPoint& offset, const SkPixmap&);
184 SkPixmap make_pixmap_have_valid_alpha_type(SkPixmap pm) { in make_pixmap_have_valid_alpha_type()
242 const SkPixmap& srcPixels, in gpu_read_pixels_test_driver()
260 SkPixmap dstPixels(readInfo, dstData.get(), dstRB); in gpu_read_pixels_test_driver()
346 SkPixmap unpremulRef(refInfo.makeAlphaType(kUnpremul_SkAlphaType), in gpu_read_pixels_test_driver()
349 SkPixmap unpremulSRc(srcPixels.info().makeAlphaType(kUnpremul_SkAlphaType), in gpu_read_pixels_test_driver()
358 SkPixmap actual; in gpu_read_pixels_test_driver()
485 [direct](const Surface& surface, const SkIPoint& offset, const SkPixmap& pixels) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/skia/include/encode/
DSkJpegEncoder.h72 static bool Encode(SkWStream* dst, const SkPixmap& src, const Options& options);
82 static std::unique_ptr<SkEncoder> Make(SkWStream* dst, const SkPixmap& src,
91 SkJpegEncoder(std::unique_ptr<SkJpegEncoderMgr>, const SkPixmap& src);
DSkPngEncoder.h70 static bool Encode(SkWStream* dst, const SkPixmap& src, const Options& options);
80 static std::unique_ptr<SkEncoder> Make(SkWStream* dst, const SkPixmap& src,
88 SkPngEncoder(std::unique_ptr<SkPngEncoderMgr>, const SkPixmap& src);
/third_party/skia/include/utils/mac/
DSkCGUtils.h28 class SkPixmap; variable
31 SK_API CGContextRef SkCreateCGContext(const SkPixmap&);
50 static inline bool SkCopyPixelsFromCGImage(const SkPixmap& dst, CGImageRef src) { in SkCopyPixelsFromCGImage()
/third_party/skia/tools/fiddle/
Ddocumumentation_examples_map.txt181 bool installPixels(const SkPixmap& pixmap);
213 bool peekPixels(SkPixmap* pixmap) const;
225 const SkPixmap& pixmap() const;
233 bool readPixels(const SkPixmap& dst) const;
237 bool readPixels(const SkPixmap& dst, int srcX, int srcY) const;
321 bool writePixels(const SkPixmap& src);
325 bool writePixels(const SkPixmap& src, int dstX, int dstY);
762 bool peekPixels(SkPixmap* pixmap);
783 bool readPixels(const SkPixmap& pixmap, int srcX, int srcY);
1205 static sk_sp<SkImage> MakeCrossContextFromPixmap(GrContext* context, const SkPixmap& pixmap, bool b…
[all …]
/third_party/skia/tools/
DToolUtils.h37 class SkPixmap; variable
90 bool equal_pixels(const SkPixmap&, const SkPixmap&);
256 SkPixmap pm; in PixelIter()
263 void reset(const SkPixmap& pm) { in reset()
289 SkPixmap fPM;

12345678910>>...12