/external/skia/docs/examples/ |
D | Image_readPixels.cpp | 10 std::vector<int32_t> dstPixels; in draw() local 11 dstPixels.resize(height * width * 4); in draw() 15 if (image->readPixels(nullptr, info, &dstPixels.front(), width * 4, x, y)) { in draw() 16 SkPixmap dstPixmap(info, &dstPixels.front(), width * 4); in draw()
|
D | Pixmap_readPixels_2.cpp | 14 std::vector<int32_t> dstPixels; in draw() local 15 dstPixels.resize(image->height() * rowBytes); in draw() 16 pixmap.readPixels(info, &dstPixels.front(), rowBytes, offset, 0); in draw() 18 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
|
D | Bitmap_readPixels.cpp | 21 std::vector<int16_t> dstPixels; in draw() local 22 dstPixels.resize(height * width); in draw() 23 bitmap.readPixels(dstInfo, &dstPixels.front(), width * 2, 0, 0); in draw() 24 SkPixmap dstPixmap(dstInfo, &dstPixels.front(), width * 2); in draw()
|
D | Pixmap_readPixels.cpp | 23 std::vector<int32_t> dstPixels; in draw() local 24 dstPixels.resize(height * width * 2); in draw() 26 srcPixmap.readPixels(dstInfo, &dstPixels.front(), width * 2); in draw() 27 SkPixmap dstPixmap(dstInfo, &dstPixels.front(), width * 2); in draw()
|
D | Pixmap_readPixels_3.cpp | 14 std::vector<int32_t> dstPixels; in draw() local 15 dstPixels.resize(image->height() * rowBytes); in draw() 16 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
|
D | Pixmap_readPixels_4.cpp | 14 std::vector<int32_t> dstPixels; in draw() local 15 dstPixels.resize(image->height() * rowBytes); in draw() 16 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
|
D | Pixmap_scalePixels.cpp | 16 std::vector<int32_t> dstPixels; in draw() local 17 dstPixels.resize(image->height() * rowBytes); in draw() 18 SkPixmap dstmap(info, &dstPixels.front(), rowBytes); in draw()
|
/external/skia/src/core/ |
D | SkConvertPixels.cpp | 17 static bool rect_memcpy(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in rect_memcpy() argument 29 SkRectMemcpy(dstPixels, dstRB, in rect_memcpy() 34 static bool swizzle_or_premul(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in swizzle_or_premul() argument 63 fn((uint32_t*)dstPixels, (const uint32_t*)srcPixels, dstInfo.width()); in swizzle_or_premul() 64 dstPixels = SkTAddOffset<void>(dstPixels, dstRB); in swizzle_or_premul() 221 bool SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in SkConvertPixels() argument 237 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels() 241 convert_with_pipeline(dstInfo, dstPixels, dstStride, srcInfo, srcPixels, srcStride, steps); in SkConvertPixels()
|
D | SkBlurMask.cpp | 561 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth() local 562 SkAutoMaskFreeImage autoFreeDstPixels(dstPixels); in BlurGroundTruth() 616 uint8_t *outPixel = dstPixels + (x-pad)*dstWidth + y; // transposed output in BlurGroundTruth() 622 dst->fImage = dstPixels; in BlurGroundTruth() 628 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes, in BlurGroundTruth() 634 dstPixels + pad*dst->fRowBytes + pad, dst->fRowBytes, in BlurGroundTruth() 647 dstPixels + pad*dst->fRowBytes + pad, in BlurGroundTruth() 649 SkMask::FreeImage(dstPixels); in BlurGroundTruth()
|
D | SkConvertPixels.h | 17 const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
|
D | SkBitmap.cpp | 480 bool SkBitmap::readPixels(const SkImageInfo& requestedDstInfo, void* dstPixels, size_t dstRB, in readPixels() argument 486 return src.readPixels(requestedDstInfo, dstPixels, dstRB, x, y); in readPixels() 503 void* dstPixels = this->getAddr(rec.fX, rec.fY); in writePixels() local 505 if (!SkConvertPixels(dstInfo, dstPixels, this->rowBytes(), in writePixels()
|
/external/skia/tests/ |
D | CopySurfaceTest.cpp | 54 AutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() local 56 dstPixels.get()[i] = ~i; in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() 91 GrPixmap dstPM(ii, dstPixels.get(), kRowBytes); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS() 197 uint32_t d = dstPixels.get()[y * kW + x]; in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
|
D | BitmapCopyTest.cpp | 175 SkPMColor dstPixels[16]; in DEF_TEST() local 193 clear_4x4_pixels(dstPixels); in DEF_TEST() 196 bool success = srcBM.readPixels(dstInfo, dstPixels, rowBytes, in DEF_TEST() 207 SkPMColor dstC = dstPixels[y*4+x]; in DEF_TEST()
|
D | ReadWritePixelsGpuTest.cpp | 304 SkPixmap dstPixels(readInfo, dstData.get(), dstRB); in gpu_read_pixels_test_driver() local 308 std::fill_n(static_cast<char*>(dstPixels.writable_addr()), in gpu_read_pixels_test_driver() 309 dstPixels.computeByteSize(), in gpu_read_pixels_test_driver() 312 const Result result = read(src, offset, dstPixels); in gpu_read_pixels_test_driver() 403 SkAssertResult(dstPixels.extractSubset(&actual, dstWriteRect)); in gpu_read_pixels_test_driver() 408 guardOk = std::all_of(v, v + dstWriteRect.top() * dstPixels.rowBytes(), guardCheck); in gpu_read_pixels_test_driver() 409 v += dstWriteRect.top() * dstPixels.rowBytes(); in gpu_read_pixels_test_driver() 413 auto rowEnd = std::min(end, v + dstPixels.rowBytes()); in gpu_read_pixels_test_driver()
|
D | ReadPixelsTest.cpp | 469 uint64_t dstPixels[kNumPixels]; in test_conversion() local 470 SkPixmap dstPixmap(dstInfo, dstPixels, dstInfo.minRowBytes()); in test_conversion() 493 REPORTER_ASSERT(r, 0 == memcmp(dstPixels, five_reference_pixels(dstInfo.colorType()), in test_conversion()
|
/external/skia/fuzz/ |
D | FuzzEncoders.cpp | 91 std::vector<int32_t> dstPixels; in DEF_FUZZ() local 93 dstPixels.resize(img->height() * rowBytes); in DEF_FUZZ() 95 &dstPixels.front(), rowBytes); in DEF_FUZZ()
|
/external/skia/tests/graphite/ |
D | ReadWritePixelsGraphiteTest.cpp | 254 SkPixmap dstPixels(readInfo, dstData.get(), dstRB); in graphite_read_pixels_test_driver() local 258 std::fill_n(static_cast<char*>(dstPixels.writable_addr()), in graphite_read_pixels_test_driver() 259 dstPixels.computeByteSize(), in graphite_read_pixels_test_driver() 262 const Result result = read(src, offset, dstPixels); in graphite_read_pixels_test_driver() 351 SkAssertResult(dstPixels.extractSubset(&actual, dstWriteRect)); in graphite_read_pixels_test_driver() 356 guardOk = std::all_of(v, v + dstWriteRect.top() * dstPixels.rowBytes(), guardCheck); in graphite_read_pixels_test_driver() 357 v += dstWriteRect.top() * dstPixels.rowBytes(); in graphite_read_pixels_test_driver() 361 auto rowEnd = std::min(end, v + dstPixels.rowBytes()); in graphite_read_pixels_test_driver()
|
/external/skia/include/core/ |
D | SkPixmap.h | 593 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const { in readPixels() argument 594 return this->readPixels(dstInfo, dstPixels, dstRowBytes, 0, 0); in readPixels() 623 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX,
|
/external/skia/gm/ |
D | encode_alpha_jpeg.cpp | 28 static inline void read_into_pixmap(SkPixmap* dst, SkImageInfo dstInfo, void* dstPixels, in read_into_pixmap() argument 30 dst->reset(dstInfo, dstPixels, dstInfo.minRowBytes()); in read_into_pixmap()
|
/external/skia/src/gpu/ganesh/ |
D | GrDataUtils.h | 51 void GrTwoColorBC1Compress(const SkPixmap& pixmap, SkColor otherColor, char* dstPixels);
|
D | GrDataUtils.cpp | 244 void GrTwoColorBC1Compress(const SkPixmap& pixmap, SkColor otherColor, char* dstPixels) { in GrTwoColorBC1Compress() argument 245 BC1Block* dstBlocks = reinterpret_cast<BC1Block*>(dstPixels); in GrTwoColorBC1Compress() 322 GrMipmapped mipmapped, char* dstPixels, const SkColor4f& colorf) { in GrFillInCompressedData() argument 336 fillin_ETC1_with_color(dimensions, colorf, &dstPixels[offset]); in GrFillInCompressedData() 340 fillin_BC1_with_color(dimensions, colorf, &dstPixels[offset]); in GrFillInCompressedData()
|
/external/skia/include/utils/mac/ |
D | SkCGUtils.h | 48 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* dstPixels,
|
/external/skia/src/gpu/graphite/ |
D | Image_Base_Graphite.h | 29 void* dstPixels, in onReadPixels() argument
|
/external/skia/src/image/ |
D | SkImage_GpuBase.cpp | 211 void* dstPixels, in onReadPixels() argument 230 return sContext->readPixels(dContext, {dstInfo, dstPixels, dstRB}, {srcX, srcY}); in onReadPixels()
|
D | SkImage_GpuBase.h | 48 void* dstPixels,
|