Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkConvertPixels.cpp55 void swizzle_and_multiply(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in swizzle_and_multiply() argument
84 proc((uint32_t*) dstPixels, srcPixels, dstInfo.width()); in swizzle_and_multiply()
85 dstPixels = SkTAddOffset<void>(dstPixels, dstRB); in swizzle_and_multiply()
121 static inline void apply_color_xform(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in apply_color_xform() argument
155 SkAssertResult(xform->apply(dstFormat, dstPixels, srcFormat, srcPixels, dstInfo.width(), in apply_color_xform()
157 dstPixels = SkTAddOffset<void>(dstPixels, dstRB); in apply_color_xform()
164 void do_index8(const SkImageInfo& dstInfo, T* dstPixels, size_t dstRB, in do_index8() argument
177 dstPixels[x] = dstCTable[srcPixels[x]]; in do_index8()
179 dstPixels = SkTAddOffset<T>(dstPixels, dstRB); in do_index8()
184 void convert_from_index8(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in convert_from_index8() argument
[all …]
DSkConvertPixels.h16 void SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkBitmap.cpp507 bool SkBitmap::readPixels(const SkImageInfo& requestedDstInfo, void* dstPixels, size_t dstRB, in readPixels() argument
513 return src.readPixels(requestedDstInfo, dstPixels, dstRB, x, y, behavior); in readPixels()
531 void* dstPixels = this->getAddr(rec.fX, rec.fY); in writePixels() local
533 SkConvertPixels(dstInfo, dstPixels, this->rowBytes(), rec.fInfo, rec.fPixels, rec.fRowBytes, in writePixels()
DSkPixmap.cpp75 bool SkPixmap::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, int x, int y, in readPixels() argument
81 SkReadPixelsRec rec(dstInfo, dstPixels, dstRB, x, y); in readPixels()
DSkBitmapDevice.cpp167 bool SkBitmapDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
169 return fBitmap.readPixels(dstInfo, dstPixels, dstRowBytes, x, y); in onReadPixels()
/external/skia/tests/
DColorSpaceXformTest.cpp81 uint32_t dstPixels[width]; in test_identity_xform() local
85 bool result = xform->apply(select_xform_format(kN32_SkColorType), dstPixels, in test_identity_xform()
94 SkGetPackedB32(dstPixels[i]))); in test_identity_xform()
96 SkGetPackedG32(dstPixels[i]))); in test_identity_xform()
98 SkGetPackedR32(dstPixels[i]))); in test_identity_xform()
100 SkGetPackedA32(dstPixels[i]))); in test_identity_xform()
117 uint32_t dstPixels[width]; in test_identity_xform_A2B() local
121 bool result = xform->apply(select_xform_format(kN32_SkColorType), dstPixels, in test_identity_xform_A2B()
130 SkGetPackedB32(dstPixels[i]), tol)); in test_identity_xform_A2B()
132 SkGetPackedG32(dstPixels[i]), tol)); in test_identity_xform_A2B()
[all …]
DCopySurfaceTest.cpp37 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
39 dstPixels.get()[i] = ~i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
85 dstPixels.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
158 uint32_t d = dstPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBitmapCopyTest.cpp169 SkPMColor dstPixels[16]; in DEF_TEST() local
187 clear_4x4_pixels(dstPixels); in DEF_TEST()
191 bool success = srcBM.readPixels(dstInfo, dstPixels, rowBytes, in DEF_TEST()
202 SkPMColor dstC = dstPixels[y*4+x]; in DEF_TEST()
DReadPixelsTest.cpp547 uint64_t dstPixels[kNumPixels]; in test_conversion() local
548 SkPixmap dstPixmap(dstInfo, dstPixels, dstInfo.minRowBytes()); in test_conversion()
561 REPORTER_ASSERT(r, 0 == memcmp(dstPixels, five_reference_pixels(dstInfo.colorType()), in test_conversion()
/external/skia/include/core/
DSkPixmap.h178 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
180 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes) const { in readPixels() argument
181 return this->readPixels(dstInfo, dstPixels, dstRowBytes, 0, 0); in readPixels()
183 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, in readPixels() argument
185 return this->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY, in readPixels()
DSkBitmap.h614 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
616 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() argument
618 return this->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY, in readPixels()
DSkSurface.h326 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkImage.h346 bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
/external/skia/gm/
Dencode-alpha-jpeg.cpp16 static inline void read_into_pixmap(SkPixmap* dst, SkImageInfo dstInfo, void* dstPixels, in read_into_pixmap() argument
18 dst->reset(dstInfo, dstPixels, dstInfo.minRowBytes()); in read_into_pixmap()
/external/skia/src/effects/
DSkBlurMask.cpp925 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth() local
926 SkAutoTCallVProc<uint8_t, SkMask_FreeImage> autoCall(dstPixels); in BlurGroundTruth()
980 uint8_t *outPixel = dstPixels + (x-pad)*dstWidth + y; // transposed output in BlurGroundTruth()
986 dst->fImage = dstPixels; in BlurGroundTruth()
998 dstPixels + pad*dst->fRowBytes + pad, in BlurGroundTruth()
1000 SkMask::FreeImage(dstPixels); in BlurGroundTruth()
1002 clamp_with_orig(dstPixels + pad*dst->fRowBytes + pad, in BlurGroundTruth()
DSkRRectsGaussianEdgeMaskFilter.cpp160 uint8_t* dstPixels = dst->fImage = SkMask::AllocImage(dstSize); in filterMask() local
166 uint8_t* dstRow = dstPixels + y*dst->fRowBytes; in filterMask()
/external/skia/include/utils/mac/
DSkCGUtils.h47 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* dstPixels,
/external/skia/src/image/
DSkImage_Lazy.cpp102 bool directGeneratePixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB,
539 bool SkImage_Lazy::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in onReadPixels() argument
548 return bm.readPixels(dstInfo, dstPixels, dstRB, srcX, srcY); in onReadPixels()
553 if (this->directGeneratePixels(genPixelsInfo, dstPixels, dstRB, srcX, srcY, behavior)) { in onReadPixels()
561 return bm.readPixels(dstInfo, dstPixels, dstRB, srcX, srcY); in onReadPixels()
DSkSurface.cpp173 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() argument
175 return this->getCanvas()->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in readPixels()
DSkImage_Gpu.h55 bool onReadPixels(const SkImageInfo&, void* dstPixels, size_t dstRowBytes,
DSkImage_Base.h44 virtual bool onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes,
DSkImage_Raster.cpp156 bool SkImage_Raster::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
159 return shallowCopy.readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); in onReadPixels()
DSkImage.cpp53 bool SkImage::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in readPixels() argument
55 return as_IB(this)->onReadPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY, chint); in readPixels()
DSkImage_Gpu.cpp187 bool SkImage_Gpu::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, in onReadPixels() argument
193 SkReadPixelsRec rec(dstInfo, dstPixels, dstRB, srcX, srcY); in onReadPixels()
/external/skia/src/gpu/
DSkGpuDevice.cpp197 bool SkGpuDevice::onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, in onReadPixels() argument
205 SkReadPixelsRec rec(dstInfo, dstPixels, dstRowBytes, x, y); in onReadPixels()

12