Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkConvertPixels.cpp56 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in swizzle_and_multiply() argument
84 proc((uint32_t*) dstPixels, srcPixels, dstInfo.width()); in swizzle_and_multiply()
86 srcPixels = SkTAddOffset<const void>(srcPixels, srcRB); in swizzle_and_multiply()
122 const SkImageInfo& srcInfo, const void* srcPixels, in apply_color_xform() argument
155 SkAssertResult(xform->apply(dstFormat, dstPixels, srcFormat, srcPixels, dstInfo.width(), in apply_color_xform()
158 srcPixels = SkTAddOffset<const void>(srcPixels, srcRB); in apply_color_xform()
165 const SkImageInfo& srcInfo, const uint8_t* srcPixels, size_t srcRB, in do_index8() argument
177 dstPixels[x] = dstCTable[srcPixels[x]]; in do_index8()
180 srcPixels = SkTAddOffset<const uint8_t>(srcPixels, srcRB); in do_index8()
185 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.cpp86 const void* srcPixels = this->addr(rec.fX, rec.fY); in readPixels() local
88 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes(), in readPixels()
DSkBitmapDevice.cpp153 bool SkBitmapDevice::onWritePixels(const SkImageInfo& srcInfo, const void* srcPixels, in onWritePixels() argument
160 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.cpp95 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
98 srcPixels.get()[y*kW+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
103 bm.installPixels(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
142 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.cpp163 SkPMColor srcPixels[16]; in DEF_TEST() local
164 fill_4x4_pixels(srcPixels); in DEF_TEST()
166 srcBM.installPixels(srcInfo, srcPixels, rowBytes); in DEF_TEST()
DReadPixelsTest.cpp541 const void* srcPixels = five_reference_pixels(srcInfo.colorType()); in test_conversion() local
542 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion()
/external/skia/src/effects/
DSkBlurMask.cpp924 const uint8_t* srcPixels = src.fImage; in BlurGroundTruth() local
940 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
997 srcPixels, src.fRowBytes, in BlurGroundTruth()
1003 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.cpp213 bool SkGpuDevice::onWritePixels(const SkImageInfo& srcInfo, const void* srcPixels, in onWritePixels() argument
221 SkWritePixelsRec rec(srcInfo, srcPixels, srcRowBytes, x, y); in onWritePixels()