/third_party/skia/tools/ |
D | imgcvt.cpp | 86 SkPixmap pixmap; in main() local 87 if (!image->peekPixels(&pixmap)) { in main() 110 switch (pixmap.colorType()) { in main() 115 pixmap.colorType()); in main() 119 if (pixmap.alphaType() == kUnpremul_SkAlphaType) { in main() 125 if (pixmap.rowBytes() != (size_t)pixmap.width() * pixmap.info().bytesPerPixel()) { in main() 130 if (!skcms_Transform(pixmap.addr(), fmt,alpha, &src_profile, in main() 131 pixmap.writable_addr(), fmt,alpha, &dst_profile, in main() 132 pixmap.width() * pixmap.height())) { in main() 136 pixmap.setColorSpace(dst_cs); in main() [all …]
|
/third_party/flutter/skia/tools/ |
D | imgcvt.cpp | 86 SkPixmap pixmap; in main() local 87 if (!image->peekPixels(&pixmap)) { in main() 110 switch (pixmap.colorType()) { in main() 115 pixmap.colorType()); in main() 119 if (pixmap.alphaType() == kUnpremul_SkAlphaType) { in main() 125 if (pixmap.rowBytes() != (size_t)pixmap.width() * pixmap.info().bytesPerPixel()) { in main() 130 if (!skcms_Transform(pixmap.addr(), fmt,alpha, &src_profile, in main() 131 pixmap.writable_addr(), fmt,alpha, &dst_profile, in main() 132 pixmap.width() * pixmap.height())) { in main() 136 pixmap.setColorSpace(dst_cs); in main() [all …]
|
/third_party/skia/src/images/ |
D | SkWebpEncoder.cpp | 44 bool SkWebpEncoder::Encode(SkWStream* stream, const SkPixmap& pixmap, const Options& opts) { in Encode() argument 45 if (!SkPixmapIsValid(pixmap)) { in Encode() 49 if (SkColorTypeIsAlphaOnly(pixmap.colorType())) { in Encode() 55 if (nullptr == pixmap.addr()) { in Encode() 67 pic.width = pixmap.width(); in Encode() 68 pic.height = pixmap.height(); in Encode() 90 sk_sp<SkData> icc = icc_from_color_space(pixmap.info()); in Encode() 95 const SkColorType ct = pixmap.colorType(); in Encode() 96 const bool premul = pixmap.alphaType() == kPremul_SkAlphaType; in Encode() 100 const SkPixmap* src = &pixmap; in Encode() [all …]
|
/third_party/skia/src/gpu/ |
D | GrPixmap.h | 93 /* implicit */ GrPixmap(const SkPixmap& pixmap) in GrPixmap() argument 94 : GrPixmapBase(pixmap.info(), pixmap.writable_addr(), pixmap.rowBytes()) {} in GrPixmap() 126 /* implicit*/ GrCPixmap(const GrPixmap& pixmap) { in GrCPixmap() argument 127 if (auto storage = pixmap.pixelStorage()) { in GrCPixmap() 128 *this = GrCPixmap(pixmap.info(), std::move(storage), pixmap.rowBytes()); in GrCPixmap() 130 *this = GrCPixmap(pixmap.info(), pixmap.addr(), pixmap.rowBytes()); in GrCPixmap() 134 /* implicit */ GrCPixmap(const SkPixmap& pixmap) in GrCPixmap() argument 135 : GrPixmapBase(pixmap.info(), pixmap.addr(), pixmap.rowBytes()) {} in GrCPixmap()
|
/third_party/flutter/skia/docs/examples/ |
D | Pixmap_writable_addr32.cpp | 9 SkPixmap pixmap(SkImageInfo::Make(image->width(), image->height(), kN32_SkColorType, in draw() local 11 image->readPixels(pixmap, 0, 0); in draw() 12 for (int y = 0; y < pixmap.height() / 2; ++y) { in draw() 13 for (int x = 0; x < pixmap.width(); ++x) { in draw() 15 *pixmap.writable_addr32(x, y) = in draw() 16 *pixmap.writable_addr32(pixmap.width() - x - 1, pixmap.height() - y - 1); in draw() 21 bitmap.installPixels(pixmap); in draw()
|
D | Pixmap_computeIsOpaque.cpp | 11 SkPixmap pixmap(SkImageInfo::Make(width, height, kN32_SkColorType, in draw() local 14 pixmap.erase(0x00000000); in draw() 15 SkDebugf("computeIsOpaque: %s\n", pixmap.computeIsOpaque() ? "true" : "false"); in draw() 16 pixmap.erase(0xFFFFFFFF); in draw() 17 SkDebugf("computeIsOpaque: %s\n", pixmap.computeIsOpaque() ? "true" : "false"); in draw() 18 pixmap.reset(pixmap.info().makeAlphaType(kOpaque_SkAlphaType), in draw()
|
D | Pixmap_isOpaque.cpp | 11 SkPixmap pixmap(SkImageInfo::Make(width, height, kN32_SkColorType, in draw() local 14 pixmap.erase(0x00000000); in draw() 15 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in draw() 16 pixmap.erase(0xFFFFFFFF); in draw() 17 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in draw() 18 pixmap.reset(pixmap.info().makeAlphaType(kOpaque_SkAlphaType), in draw()
|
D | Bitmap_pixmap.cpp | 15 const SkPixmap& pixmap = bitmap.pixmap(); in draw() local 16 if (pixmap.addr()) { in draw() 17 SkPMColor pmWhite = *pixmap.addr32(0, 0); in draw() 18 for (int y = 0; y < pixmap.height(); ++y) { in draw() 19 for (int x = 0; x < pixmap.width(); ++x) { in draw() 20 SkDebugf("%c", *pixmap.addr32(x, y) == pmWhite ? '-' : 'x'); in draw()
|
D | Pixmap_reset.cpp | 11 SkPixmap pixmap(SkImageInfo::Make(25, 35, kRGBA_8888_SkColorType, kOpaque_SkAlphaType), in draw() local 14 SkDebugf("width: %2d height: %2d", pixmap.width(), pixmap.height()); in draw() 15 SkDebugf(" color: k%s_SkColorType", colors[pixmap.colorType()]); in draw() 16 SkDebugf(" alpha: k%s_SkAlphaType\n", alphas[pixmap.alphaType()]); in draw() 17 pixmap.reset(); in draw()
|
D | Pixmap_empty_constructor.cpp | 11 SkPixmap pixmap; in draw() local 13 SkDebugf("width: %2d height: %2d", pixmap.width(), pixmap.height()); in draw() 14 SkDebugf(" color: k%s_SkColorType", colors[pixmap.colorType()]); in draw() 15 SkDebugf(" alpha: k%s_SkAlphaType\n", alphas[pixmap.alphaType()]); in draw() 16 pixmap.reset(SkImageInfo::Make(25, 35, kRGBA_8888_SkColorType, kOpaque_SkAlphaType), in draw()
|
D | Pixmap_writable_addr_2.cpp | 10 SkPixmap pixmap(SkImageInfo::MakeN32(w, h, kPremul_SkAlphaType), storage, w * 4); in draw() local 12 pixmap.writable_addr() == (void *)storage ? '=' : '!'); in draw() 13 pixmap.erase(0x00000000); in draw() 14 *(SkPMColor*)pixmap.writable_addr(1, 2) = 0xFFFFFFFF; in draw() 16 pixmap.getColor(0, 0) == 0x00000000 ? '=' : '!'); in draw() 18 pixmap.getColor(1, 2) == 0xFFFFFFFF ? '=' : '!'); in draw()
|
D | Pixmap_writable_addr.cpp | 10 SkPixmap pixmap(SkImageInfo::MakeN32(w, h, kPremul_SkAlphaType), storage, w * 4); in draw() local 12 pixmap.writable_addr() == (void *)storage ? '=' : '!'); in draw() 13 pixmap.erase(0x00000000); in draw() 14 *(SkPMColor*)pixmap.writable_addr() = 0xFFFFFFFF; in draw() 16 pixmap.getColor(0, 1) == 0x00000000 ? '=' : '!'); in draw() 18 pixmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!'); in draw()
|
/third_party/skia/docs/examples/ |
D | Pixmap_writable_addr32.cpp | 9 SkPixmap pixmap(SkImageInfo::Make(image->width(), image->height(), kN32_SkColorType, in draw() local 11 image->readPixels(nullptr, pixmap, 0, 0); in draw() 12 for (int y = 0; y < pixmap.height() / 2; ++y) { in draw() 13 for (int x = 0; x < pixmap.width(); ++x) { in draw() 15 *pixmap.writable_addr32(x, y) = in draw() 16 *pixmap.writable_addr32(pixmap.width() - x - 1, pixmap.height() - y - 1); in draw() 21 bitmap.installPixels(pixmap); in draw()
|
D | Pixmap_isOpaque.cpp | 11 SkPixmap pixmap(SkImageInfo::Make(width, height, kN32_SkColorType, in draw() local 14 pixmap.erase(0x00000000); in draw() 15 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in draw() 16 pixmap.erase(0xFFFFFFFF); in draw() 17 SkDebugf("isOpaque: %s\n", pixmap.isOpaque() ? "true" : "false"); in draw() 18 pixmap.reset(pixmap.info().makeAlphaType(kOpaque_SkAlphaType), in draw()
|
D | Pixmap_computeIsOpaque.cpp | 11 SkPixmap pixmap(SkImageInfo::Make(width, height, kN32_SkColorType, in draw() local 14 pixmap.erase(0x00000000); in draw() 15 SkDebugf("computeIsOpaque: %s\n", pixmap.computeIsOpaque() ? "true" : "false"); in draw() 16 pixmap.erase(0xFFFFFFFF); in draw() 17 SkDebugf("computeIsOpaque: %s\n", pixmap.computeIsOpaque() ? "true" : "false"); in draw() 18 pixmap.reset(pixmap.info().makeAlphaType(kOpaque_SkAlphaType), in draw()
|
D | Bitmap_pixmap.cpp | 15 const SkPixmap& pixmap = bitmap.pixmap(); in draw() local 16 if (pixmap.addr()) { in draw() 17 SkPMColor pmWhite = *pixmap.addr32(0, 0); in draw() 18 for (int y = 0; y < pixmap.height(); ++y) { in draw() 19 for (int x = 0; x < pixmap.width(); ++x) { in draw() 20 SkDebugf("%c", *pixmap.addr32(x, y) == pmWhite ? '-' : 'x'); in draw()
|
D | Pixmap_reset.cpp | 11 SkPixmap pixmap(SkImageInfo::Make(25, 35, kRGBA_8888_SkColorType, kOpaque_SkAlphaType), in draw() local 14 SkDebugf("width: %2d height: %2d", pixmap.width(), pixmap.height()); in draw() 15 SkDebugf(" color: k%s_SkColorType", colors[pixmap.colorType()]); in draw() 16 SkDebugf(" alpha: k%s_SkAlphaType\n", alphas[pixmap.alphaType()]); in draw() 17 pixmap.reset(); in draw()
|
D | Pixmap_empty_constructor.cpp | 11 SkPixmap pixmap; in draw() local 13 SkDebugf("width: %2d height: %2d", pixmap.width(), pixmap.height()); in draw() 14 SkDebugf(" color: k%s_SkColorType", colors[pixmap.colorType()]); in draw() 15 SkDebugf(" alpha: k%s_SkAlphaType\n", alphas[pixmap.alphaType()]); in draw() 16 pixmap.reset(SkImageInfo::Make(25, 35, kRGBA_8888_SkColorType, kOpaque_SkAlphaType), in draw()
|
D | Pixmap_writable_addr.cpp | 10 SkPixmap pixmap(SkImageInfo::MakeN32(w, h, kPremul_SkAlphaType), storage, w * 4); in draw() local 12 pixmap.writable_addr() == (void *)storage ? '=' : '!'); in draw() 13 pixmap.erase(0x00000000); in draw() 14 *(SkPMColor*)pixmap.writable_addr() = 0xFFFFFFFF; in draw() 16 pixmap.getColor(0, 1) == 0x00000000 ? '=' : '!'); in draw() 18 pixmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!'); in draw()
|
D | Pixmap_writable_addr_2.cpp | 10 SkPixmap pixmap(SkImageInfo::MakeN32(w, h, kPremul_SkAlphaType), storage, w * 4); in draw() local 12 pixmap.writable_addr() == (void *)storage ? '=' : '!'); in draw() 13 pixmap.erase(0x00000000); in draw() 14 *(SkPMColor*)pixmap.writable_addr(1, 2) = 0xFFFFFFFF; in draw() 16 pixmap.getColor(0, 0) == 0x00000000 ? '=' : '!'); in draw() 18 pixmap.getColor(1, 2) == 0xFFFFFFFF ? '=' : '!'); in draw()
|
/third_party/flutter/skia/src/images/ |
D | SkWebpEncoder.cpp | 106 bool SkWebpEncoder::Encode(SkWStream* stream, const SkPixmap& pixmap, const Options& opts) { in Encode() argument 107 if (!SkPixmapIsValid(pixmap)) { in Encode() 111 const transform_scanline_proc proc = choose_proc(pixmap.info()); in Encode() 117 if (kRGBA_F16_SkColorType == pixmap.colorType()) { in Encode() 120 bpp = pixmap.isOpaque() ? 3 : 4; in Encode() 123 if (nullptr == pixmap.addr()) { in Encode() 135 pic.width = pixmap.width(); in Encode() 136 pic.height = pixmap.height(); in Encode() 158 sk_sp<SkData> icc = icc_from_color_space(pixmap.info()); in Encode() 162 const uint8_t* src = (uint8_t*)pixmap.addr(); in Encode() [all …]
|
/third_party/mesa3d/src/glx/apple/ |
D | apple_glx_pixmap.c | 61 struct apple_glx_pixmap *p = &d->types.pixmap; in pixmap_make_current() 93 struct apple_glx_pixmap *p = &d->types.pixmap; in pixmap_destroy() 119 apple_glx_pixmap_create(Display * dpy, int screen, Pixmap pixmap, in apple_glx_pixmap_create() argument 129 if (apple_glx_drawable_create(dpy, screen, pixmap, &d, &callbacks)) in apple_glx_pixmap_create() 134 p = &d->types.pixmap; in apple_glx_pixmap_create() 136 p->xpixmap = pixmap; in apple_glx_pixmap_create() 139 if (!XAppleDRICreatePixmap(dpy, screen, pixmap, in apple_glx_pixmap_create() 188 apple_glx_pixmap_query(GLXPixmap pixmap, int attr, unsigned int *value) in apple_glx_pixmap_query() argument 194 d = apple_glx_drawable_find_by_type(pixmap, APPLE_GLX_DRAWABLE_PIXMAP, in apple_glx_pixmap_query() 198 p = &d->types.pixmap; in apple_glx_pixmap_query() [all …]
|
/third_party/skia/tests/ |
D | NdkDecodeTest.cpp | 54 REPORTER_ASSERT(r, gen->getPixels(bm.pixmap())); in DEF_TEST() 59 REPORTER_ASSERT(r, gen->getPixels(bm.pixmap())); in DEF_TEST() 135 REPORTER_ASSERT(r, gen->getPixels(bm.pixmap())); in DEF_TEST() 176 REPORTER_ASSERT(r, !gen->getPixels(bm.pixmap())); in DEF_TEST() 209 REPORTER_ASSERT(r, gen->getPixels(orig.pixmap())); in DEF_TEST() 213 REPORTER_ASSERT(r, gen->getPixels(corrected.pixmap())); in DEF_TEST() 219 REPORTER_ASSERT(r, gen->getPixels(reuse.pixmap())); in DEF_TEST() 251 REPORTER_ASSERT(r, !gen->getPixels(bm.pixmap())); in DEF_TEST() 280 REPORTER_ASSERT(r, gen->getPixels(bm.pixmap())); in DEF_TEST() 285 REPORTER_ASSERT(r, gen->getPixels(bm.pixmap())); in DEF_TEST() [all …]
|
/third_party/flutter/engine/flutter/shell/platform/embedder/ |
D | embedder_surface_software.cc | 86 SkPixmap pixmap; in PresentBackingStore() local 87 if (!backing_store->peekPixels(&pixmap)) { in PresentBackingStore() 93 uint64_t expected_pixmap_data_size = pixmap.width() * pixmap.height() * 4; in PresentBackingStore() 95 const size_t pixmap_size = pixmap.computeByteSize(); in PresentBackingStore() 103 pixmap.addr(), // in PresentBackingStore() 104 pixmap.rowBytes(), // in PresentBackingStore() 105 pixmap.height() // in PresentBackingStore()
|
/third_party/flutter/skia/tools/skqp/ |
D | make_skqp_model.cpp | 19 const SkPixmap& pmin = minBitmap->pixmap(); in update() 20 const SkPixmap& pmax = maxBitmap->pixmap(); in update() 21 const SkPixmap& pm = bm.pixmap(); in update() 48 if (SkCodec::kSuccess != codec->getPixels(dst.pixmap())) { in decode_to_srgb_8888_unpremul() 55 bool encode_png(const char* path, const SkPixmap& pixmap) { in encode_png() argument 56 if (!pixmap.addr()) { in encode_png() 62 return o.isValid() && SkPngEncoder::Encode(&o, pixmap, encOpts); in encode_png() 80 encode_png(SkStringPrintf("%s/min.png", dst_dir).c_str(), minBitmap.pixmap()); in main() 81 encode_png(SkStringPrintf("%s/max.png", dst_dir).c_str(), maxBitmap.pixmap()); in main()
|