Home
last modified time | relevance | path

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

/external/skia/docs/examples/
DAlpha_Constants_b.cpp7 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()
DAlpha_Constants_a.cpp7 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()
DBitmap_readPixels_3.cpp7 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()
DBitmap_readPixels_2.cpp7 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()
DImage_readPixels_2.cpp7 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()
DColor_Constants_d.cpp7 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()
DColor_Constants_b.cpp7 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()
DColor_Constants_c.cpp7 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()
DBitmap_writePixels.cpp7 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()
DPixmap_readPixels_3.cpp8 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()
DPixmap_readPixels_4.cpp8 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()
DImage_scalePixels.cpp7 std::vector<int32_t> srcPixels; in draw() local
11 srcPixels.resize(quarterHeight * rowBytes); in draw()
13 &srcPixels.front(), rowBytes); in draw()
DPixmap_readPixels_2.cpp8 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()
DPixmap_scalePixels.cpp8 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/
DSkConvertPixels.cpp18 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()
DSkBlurMask.cpp558 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()
DSkConvertPixels.h18 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes);
DSkPixmap.cpp171 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/
DApplyGammaTest.cpp103 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()
DReadWritePixelsGpuTest.cpp244 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 …]
DCopySurfaceTest.cpp39 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()
DPremulAlphaRoundTripTest.cpp122 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()
DBitmapCopyTest.cpp166 SkPMColor srcPixels[16]; in DEF_TEST() local
167 fill_4x4_pixels(srcPixels); in DEF_TEST()
169 srcBM.installPixels(srcInfo, srcPixels, rowBytes); in DEF_TEST()
DReadPixelsTest.cpp439 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/
DTextureMtl.mm1748 const uint8_t *srcPixels = usablePixels + slice * sourceDepthPitch;
1751 unpackBuffer, srcPixels, image));