/external/skia/docs/examples/ |
D | Alpha_Constants_b.cpp | 7 std::vector<int32_t> srcPixels; in draw() local 8 srcPixels.resize(source.height() * source.rowBytes()); in draw() 10 &srcPixels.front(), source.rowBytes()); in draw() 14 SkPMColor pixel = srcPixels[y * source.width() + x]; in draw() 17 srcPixels[y * source.width() + x] = SK_ColorGREEN; in draw()
|
D | Alpha_Constants_a.cpp | 7 std::vector<int32_t> srcPixels; in draw() local 8 srcPixels.resize(source.height() * source.rowBytes()); in draw() 10 &srcPixels.front(), source.rowBytes()); in draw() 14 int32_t* blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16; in draw() 24 blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16; in draw()
|
D | Bitmap_readPixels_3.cpp | 7 std::vector<int32_t> srcPixels; in draw() local 8 srcPixels.resize(source.height() * source.width() * 8); in draw() 12 &srcPixels.front() + i * source.width(), source.rowBytes() * 2); in draw() 18 &srcPixels.front(), source.rowBytes() * 2); in draw()
|
D | Bitmap_readPixels_2.cpp | 7 std::vector<int32_t> srcPixels; in draw() local 8 srcPixels.resize(source.height() * source.rowBytes()); in draw() 12 &srcPixels.front() + x * source.height() * source.width() / 4 + in draw() 20 &srcPixels.front(), source.rowBytes()); in draw()
|
D | Image_readPixels_2.cpp | 7 std::vector<int32_t> srcPixels; in draw() local 11 srcPixels.resize(image->height() * rowBytes); in draw() 15 &srcPixels.front() + x * image->height() * quarterWidth + in draw() 23 &srcPixels.front(), rowBytes); in draw()
|
D | Color_Constants_d.cpp | 7 std::vector<uint32_t> srcPixels; in draw() local 10 srcPixels.resize(width * height); in draw() 12 SkPixmap pixmap(imageInfo, &srcPixels.front(), imageInfo.minRowBytes()); in draw()
|
D | Color_Constants_b.cpp | 7 std::vector<uint32_t> srcPixels; in draw() local 10 srcPixels.resize(width * height); in draw() 12 SkPixmap pixmap(imageInfo, &srcPixels.front(), imageInfo.minRowBytes()); in draw()
|
D | Color_Constants_c.cpp | 7 std::vector<uint32_t> srcPixels; in draw() local 10 srcPixels.resize(width * height); in draw() 12 SkPixmap pixmap(imageInfo, &srcPixels.front(), imageInfo.minRowBytes()); in draw()
|
D | Bitmap_writePixels.cpp | 7 std::vector<int32_t> srcPixels; in draw() local 10 srcPixels.resize(height * width * 4); in draw() 11 SkPixmap pixmap(SkImageInfo::MakeN32Premul(width, height), (const void*) &srcPixels.front(), in draw()
|
D | Pixmap_readPixels_3.cpp | 8 std::vector<int32_t> srcPixels; in draw() local 10 srcPixels.resize(image->height() * rowBytes); in draw() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in draw()
|
D | Pixmap_readPixels_4.cpp | 8 std::vector<int32_t> srcPixels; in draw() local 10 srcPixels.resize(image->height() * rowBytes); in draw() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in draw()
|
D | Image_scalePixels.cpp | 7 std::vector<int32_t> srcPixels; in draw() local 11 srcPixels.resize(quarterHeight * rowBytes); in draw() 13 &srcPixels.front(), rowBytes); in draw()
|
D | Pixmap_readPixels_2.cpp | 8 std::vector<int32_t> srcPixels; in draw() local 10 srcPixels.resize(image->height() * rowBytes); in draw() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in draw()
|
D | Pixmap_scalePixels.cpp | 8 std::vector<int32_t> srcPixels; in draw() local 10 srcPixels.resize(image->height() * rowBytes); in draw() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in draw()
|
/external/skia/src/core/ |
D | SkConvertPixels.cpp | 18 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, in rect_memcpy() argument 30 srcPixels, srcRB, dstInfo.minRowBytes(), dstInfo.height()); in rect_memcpy() 35 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, in swizzle_or_premul() argument 63 fn((uint32_t*)dstPixels, (const uint32_t*)srcPixels, dstInfo.width()); in swizzle_or_premul() 65 srcPixels = SkTAddOffset<const void>(srcPixels, srcRB); in swizzle_or_premul() 224 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in SkConvertPixels() argument 239 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels() 243 convert_with_pipeline(dstInfo, dstPixels, dstStride, srcInfo, srcPixels, srcStride, steps); in SkConvertPixels()
|
D | SkBlurMask.cpp | 558 const uint8_t* srcPixels = src.fImage; in BlurGroundTruth() local 574 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth() 627 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth() 633 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth() 644 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
|
D | SkConvertPixels.h | 18 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes);
|
D | SkPixmap.cpp | 171 const void* srcPixels = this->addr(rec.fX, rec.fY); in readPixels() local 173 return SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, in readPixels()
|
/external/skia/tests/ |
D | ApplyGammaTest.cpp | 103 SkAutoTMalloc<uint32_t> srcPixels(kBaseSize.area()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 106 srcPixels.get()[y*kBaseSize.fWidth+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 111 bm.installPixels(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 151 uint32_t s = srcPixels.get()[y * kBaseSize.fWidth + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ReadWritePixelsGpuTest.cpp | 244 const SkPixmap& srcPixels, in gpu_read_pixels_test_driver() 248 !SkColorSpace::Equals(readInfo.colorSpace(), srcPixels.info().colorSpace()); in gpu_read_pixels_test_driver() 251 const auto srcCT = srcPixels.info().colorType(); in gpu_read_pixels_test_driver() 252 const auto srcAT = srcPixels.info().alphaType(); in gpu_read_pixels_test_driver() 254 const auto surfBounds = SkIRect::MakeWH(srcPixels.width(), srcPixels.height()); in gpu_read_pixels_test_driver() 351 SkPixmap unpremulSRc(srcPixels.info().makeAlphaType(kUnpremul_SkAlphaType), in gpu_read_pixels_test_driver() 352 srcPixels.addr(), in gpu_read_pixels_test_driver() 353 srcPixels.rowBytes()); in gpu_read_pixels_test_driver() 357 srcPixels.readPixels(ref, srcReadRect.x(), srcReadRect.y()); in gpu_read_pixels_test_driver() 427 SkAutoPixmapStorage srcPixels = make_ref_data(refInfo, forceOpaque); in gpu_read_pixels_test_driver() local [all …]
|
D | CopySurfaceTest.cpp | 39 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 41 srcPixels.get()[i] = i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 80 GrCPixmap srcPM(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 178 uint32_t s = srcPixels.get()[sy * kW + sx]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | PremulAlphaRoundTripTest.cpp | 122 uint32_t* srcPixels = (uint32_t*)src.addr(); in DEF_TEST() local 125 srcPixels[y * 256 + x] = pack_unpremul_rgba(SkColorSetARGB(y, x, x, x)); in DEF_TEST() 178 uint32_t* srcPixels = src.getAddr32(0, 0); in DEF_TEST() local 181 srcPixels[y * 256 + x] = pack_unpremul_rgba(SkColorSetARGB(y, x, x, x)); in DEF_TEST()
|
D | BitmapCopyTest.cpp | 166 SkPMColor srcPixels[16]; in DEF_TEST() local 167 fill_4x4_pixels(srcPixels); in DEF_TEST() 169 srcBM.installPixels(srcInfo, srcPixels, rowBytes); in DEF_TEST()
|
D | ReadPixelsTest.cpp | 439 const void* srcPixels = five_reference_pixels(srcInfo.colorType()); in test_conversion() local 440 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion()
|
/external/angle/src/libANGLE/renderer/metal/ |
D | TextureMtl.mm | 1748 const uint8_t *srcPixels = usablePixels + slice * sourceDepthPitch; 1751 unpackBuffer, srcPixels, image));
|