Home
last modified time | relevance | path

Searched refs:dstPixels (Results 1 – 23 of 23) sorted by relevance

/external/skia/src/core/
DSkConfig8888.cpp170 bool SkPixelInfo::CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in CopyPixels() argument
184 memcpy(dstPixels, srcPixels, bytes); in CopyPixels()
186 dstPixels = (char*)dstPixels + dstRB; in CopyPixels()
196 dstPI.fPixels = dstPixels; in CopyPixels()
225 SkRectMemcpy(dstPixels, dstRB, srcPixels, srcRB, width * srcInfo.bytesPerPixel(), height); in CopyPixels()
235 copy_g8_to_32(dstPixels, dstRB, srcPixels, srcRB, width, height); in CopyPixels()
239 copy_32_to_g8(dstPixels, dstRB, srcPixels, srcRB, srcInfo); in CopyPixels()
261 SkPMColor16* SK_RESTRICT dstRow = (SkPMColor16*)dstPixels; in CopyPixels()
273 dstPixels = (char*)dstPixels + dstRB; in CopyPixels()
293 SkAutoTUnref<SkCanvas> canvas(SkCanvas::NewRasterDirect(dstInfo, dstPixels, dstRB)); in CopyPixels()
DSkPixmap.cpp76 bool SkPixmap::readPixels(const SkImageInfo& requestedDstInfo, void* dstPixels, size_t dstRB, in readPixels() argument
81 if (nullptr == dstPixels || dstRB < requestedDstInfo.minRowBytes()) { in readPixels()
104 dstPixels = ((char*)dstPixels - y * dstRB - x * dstInfo.bytesPerPixel()); in readPixels()
108 return SkPixelInfo::CopyPixels(dstInfo, dstPixels, dstRB, in readPixels()
DSkBitmapDevice.cpp170 void* dstPixels = fBitmap.getAddr(x, y); in onWritePixels() local
173 if (SkPixelInfo::CopyPixels(dstInfo, dstPixels, dstRowBytes, srcInfo, srcPixels, srcRowBytes)) { in onWritePixels()
180 bool SkBitmapDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
182 return fBitmap.readPixels(dstInfo, dstPixels, dstRowBytes, x, y); in onReadPixels()
DSkConfig8888.h20 static bool CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkImageCacherator.h66 bool directGeneratePixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB,
DSkBitmap.cpp823 bool SkBitmap::readPixels(const SkImageInfo& requestedDstInfo, void* dstPixels, size_t dstRB, in readPixels() argument
829 return src.pixmap().readPixels(requestedDstInfo, dstPixels, dstRB, x, y); in readPixels()
/external/skia/src/image/
DSkImage_Generator.cpp42 bool SkImage_Generator::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in onReadPixels() argument
47 return bm.readPixels(dstInfo, dstPixels, dstRB, srcX, srcY); in onReadPixels()
52 if (fCache->directGeneratePixels(dstInfo, dstPixels, dstRB, srcX, srcY)) { in onReadPixels()
60 return bm.readPixels(dstInfo, dstPixels, dstRB, srcX, srcY); in onReadPixels()
DSkImage.cpp51 bool SkImage::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() argument
53 SkReadPixelsRec rec(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in readPixels()
225 bool SkImage_Base::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
232 bm.installPixels(dstInfo, dstPixels, dstRowBytes); in onReadPixels()
DSkSurface.cpp189 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() argument
191 return this->getCanvas()->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in readPixels()
DSkImage_Gpu.h44 bool onReadPixels(const SkImageInfo&, void* dstPixels, size_t dstRowBytes,
DSkImage_Base.h32 virtual bool onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkImage_Raster.cpp137 bool SkImage_Raster::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
140 return shallowCopy.readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in onReadPixels()
/external/skia/platform_tools/android/examples/hello_skia_app/jni/
Dhelloskia.cpp25 void* dstPixels; in Java_com_example_HelloSkiaActivity_drawIntoBitmap() local
27 AndroidBitmap_lockPixels(env, dstBitmap, &dstPixels); in Java_com_example_HelloSkiaActivity_drawIntoBitmap()
32 SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterDirect(info, dstPixels, dstInfo.stride)); in Java_com_example_HelloSkiaActivity_drawIntoBitmap()
/external/skia/tests/
DCopySurfaceTest.cpp33 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
35 dstPixels.get()[i] = ~i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
76 dstPixels.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
146 uint32_t d = dstPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBitmapCopyTest.cpp587 SkPMColor dstPixels[16]; in DEF_TEST() local
605 clear_4x4_pixels(dstPixels); in DEF_TEST()
609 bool success = srcBM.readPixels(dstInfo, dstPixels, rowBytes, in DEF_TEST()
620 SkPMColor dstC = dstPixels[y*4+x]; in DEF_TEST()
/external/skia/include/core/
DSkPixmap.h151 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
153 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const { in readPixels() argument
154 return this->readPixels(dstInfo, dstPixels, dstRowBytes, 0, 0); in readPixels()
DSkSurface.h292 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkImage.h245 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkBitmap.h630 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkCanvas.h244 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
/external/skia/src/effects/
DSkBlurMask.cpp905 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth() local
906 SkAutoTCallVProc<uint8_t, SkMask_FreeImage> autoCall(dstPixels); in BlurGroundTruth()
960 uint8_t *outPixel = dstPixels + (x-pad)*dstWidth + y; // transposed output in BlurGroundTruth()
966 dst->fImage = dstPixels; in BlurGroundTruth()
978 dstPixels + pad*dst->fRowBytes + pad, in BlurGroundTruth()
980 SkMask::FreeImage(dstPixels); in BlurGroundTruth()
982 clamp_with_orig(dstPixels + pad*dst->fRowBytes + pad, in BlurGroundTruth()
/external/skia/include/utils/mac/
DSkCGUtils.h41 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* dstPixels,
/external/skia/src/gpu/
DSkGpuDevice.cpp230 bool SkGpuDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
244 return fRenderTarget->readPixels(x, y, dstInfo.width(), dstInfo.height(), config, dstPixels, in onReadPixels()