Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkConvertPixels.cpp55 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in swizzle_and_multiply() argument
83 proc((uint32_t*) dstPixels, srcPixels, dstInfo.width()); in swizzle_and_multiply()
85 srcPixels = SkTAddOffset<const void>(srcPixels, srcRB); in swizzle_and_multiply()
121 const SkImageInfo& srcInfo, const void* srcPixels, in apply_color_xform() argument
154 SkAssertResult(xform->apply(dstFormat, dstPixels, srcFormat, srcPixels, dstInfo.width(), in apply_color_xform()
157 srcPixels = SkTAddOffset<const void>(srcPixels, srcRB); in apply_color_xform()
164 const SkImageInfo& srcInfo, const uint8_t* srcPixels, size_t srcRB, in do_index8() argument
176 dstPixels[x] = dstCTable[srcPixels[x]]; in do_index8()
179 srcPixels = SkTAddOffset<const uint8_t>(srcPixels, srcRB); in do_index8()
184 const SkImageInfo& srcInfo, const uint8_t* srcPixels, size_t srcRB, in convert_from_index8() argument
[all …]
DSkConvertPixels.h17 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes,
DSkPixmap.cpp98 const void* srcPixels = this->addr(rec.fX, rec.fY); in readPixels() local
100 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes(), in readPixels()
DSkBitmapDevice.cpp165 bool SkBitmapDevice::onWritePixels(const SkImageInfo& srcInfo, const void* srcPixels, in onWritePixels() argument
172 if (fBitmap.writePixels(SkPixmap(srcInfo, srcPixels, srcRowBytes), x, y)) { in onWritePixels()
/external/skia/tests/
DColorSpaceXformTest.cpp78 constexpr uint32_t srcPixels[width] = { in test_identity_xform() local
86 SkColorSpaceXform::kBGRA_8888_ColorFormat, srcPixels, width, in test_identity_xform()
93 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 0) & 0xFF), in test_identity_xform()
95 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 8) & 0xFF), in test_identity_xform()
97 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 16) & 0xFF), in test_identity_xform()
99 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 24) & 0xFF), in test_identity_xform()
114 constexpr uint32_t srcPixels[width] = { in test_identity_xform_A2B() local
122 SkColorSpaceXform::kBGRA_8888_ColorFormat, srcPixels, width, in test_identity_xform_A2B()
129 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 0) & 0xFF), in test_identity_xform_A2B()
131 REPORTER_ASSERT(r, almost_equal(((srcPixels[i] >> 8) & 0xFF), in test_identity_xform_A2B()
[all …]
DApplyGammaTest.cpp87 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
89 srcPixels.get()[i] = i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 bm.installPixels(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
132 uint32_t s = srcPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DCopySurfaceTest.cpp32 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
34 srcPixels.get()[i] = i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
79 srcPixels.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
149 uint32_t s = srcPixels.get()[sy * kW + sx]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBitmapCopyTest.cpp610 SkPMColor srcPixels[16]; in DEF_TEST() local
611 fill_4x4_pixels(srcPixels); in DEF_TEST()
613 srcBM.installPixels(srcInfo, srcPixels, rowBytes); in DEF_TEST()
DReadPixelsTest.cpp571 const void* srcPixels = five_reference_pixels(srcInfo.colorType()); in test_conversion() local
572 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes(), srcColorTable.get()); in test_conversion()
/external/skia/src/image/
DSkImage_Raster.cpp364 const void* srcPixels = src.addr(); in do_color_xform_non_linear_blending() local
371 srcPixels = dstPixels; in do_color_xform_non_linear_blending()
379 const void* srcRow = srcPixels; in do_color_xform_non_linear_blending()
/external/skia/src/effects/
DSkBlurMask.cpp903 const uint8_t* srcPixels = src.fImage; in BlurGroundTruth() local
919 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
976 srcPixels, src.fRowBytes, in BlurGroundTruth()
982 dst->fRowBytes, srcPixels, src.fRowBytes, srcWidth, srcHeight, style); in BlurGroundTruth()
DSkRRectsGaussianEdgeMaskFilter.cpp159 const uint8_t* srcPixels = src.fImage; in filterMask() local
165 const uint8_t* srcRow = srcPixels + y * dst->fRowBytes; in filterMask()
/external/skia/src/gpu/
DSkGpuDevice.cpp212 bool SkGpuDevice::onWritePixels(const SkImageInfo& srcInfo, const void* srcPixels, in onWritePixels() argument
220 SkWritePixelsRec rec(srcInfo, srcPixels, srcRowBytes, x, y); in onWritePixels()