Home
last modified time | relevance | path

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

/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()
182 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in SkConvertPixels() argument
190 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels()
194 convert_with_pipeline(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps); in SkConvertPixels()
DSkBlurMask.cpp563 const uint8_t* srcPixels = src.fImage; in BlurGroundTruth() local
579 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
632 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
638 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
649 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
DSkConvertPixels.h17 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes);
DSkPixmap.cpp146 const void* srcPixels = this->addr(rec.fX, rec.fY); in readPixels() local
148 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes()); in readPixels()
/external/skqp/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()
194 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in SkConvertPixels() argument
202 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels()
206 convert_with_pipeline(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps); in SkConvertPixels()
DSkBlurMask.cpp563 const uint8_t* srcPixels = src.fImage; in BlurGroundTruth() local
579 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth()
632 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
638 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
649 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
DSkConvertPixels.h17 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes);
DSkPixmap.cpp145 const void* srcPixels = this->addr(rec.fX, rec.fY); in readPixels() local
147 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes()); in readPixels()
/external/skqp/tests/
DApplyGammaTest.cpp109 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
112 srcPixels.get()[y*kW+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
117 bm.installPixels(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
156 uint32_t s = srcPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DCopySurfaceTest.cpp35 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
37 srcPixels.get()[i] = i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
78 srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
163 uint32_t s = srcPixels.get()[sy * kW + sx]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBitmapCopyTest.cpp169 SkPMColor srcPixels[16]; in DEF_TEST() local
170 fill_4x4_pixels(srcPixels); in DEF_TEST()
172 srcBM.installPixels(srcInfo, srcPixels, rowBytes); in DEF_TEST()
DReadPixelsTest.cpp616 const void* srcPixels = five_reference_pixels(srcInfo.colorType()); in test_conversion() local
617 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion()
/external/skia/tests/
DApplyGammaTest.cpp109 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
112 srcPixels.get()[y*kW+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
117 bm.installPixels(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
156 uint32_t s = srcPixels.get()[y * kW + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DCopySurfaceTest.cpp35 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
37 srcPixels.get()[i] = i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
78 srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
161 uint32_t s = srcPixels.get()[sy * kW + sx]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBitmapCopyTest.cpp169 SkPMColor srcPixels[16]; in DEF_TEST() local
170 fill_4x4_pixels(srcPixels); in DEF_TEST()
172 srcBM.installPixels(srcInfo, srcPixels, rowBytes); in DEF_TEST()
DReadPixelsTest.cpp616 const void* srcPixels = five_reference_pixels(srcInfo.colorType()); in test_conversion() local
617 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion()
/external/skqp/docs/
DSkColor_Reference.bmh305 std::vector<int32_t> srcPixels;
306 srcPixels.resize(source.height() * source.rowBytes());
308 &srcPixels.front(), source.rowBytes());
312 int32_t* blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16;
322 blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16;
346 std::vector<int32_t> srcPixels;
347 srcPixels.resize(source.height() * source.rowBytes());
349 &srcPixels.front(), source.rowBytes());
353 SkPMColor pixel = srcPixels[y * source.width() + x];
356 srcPixels[y * source.width() + x] = SK_ColorGREEN;
[all …]
DSkPixmap_Reference.bmh1299 std::vector<int32_t> srcPixels;
1301 srcPixels.resize(image->height() * rowBytes);
1302 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes);
1353 std::vector<int32_t> srcPixels;
1355 srcPixels.resize(image->height() * rowBytes);
1356 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes);
1384 std::vector<int32_t> srcPixels;
1386 srcPixels.resize(image->height() * rowBytes);
1387 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes);
1418 std::vector<int32_t> srcPixels;
[all …]
DSkBitmap_Reference.bmh2328 std::vector<int32_t> srcPixels;
2329 srcPixels.resize(source.height() * source.rowBytes());
2333 &srcPixels.front() + x * source.height() * source.width() / 4 +
2341 &srcPixels.front(), source.rowBytes());
2379 std::vector<int32_t> srcPixels;
2380 srcPixels.resize(source.height() * source.width() * 8);
2384 &srcPixels.front() + i * source.width(), source.rowBytes() * 2);
2390 &srcPixels.front(), source.rowBytes() * 2);
2434 std::vector<int32_t> srcPixels;
2437 srcPixels.resize(height * width * 4);
[all …]
DSkImage_Reference.bmh1307 std::vector<int32_t> srcPixels;
1311 srcPixels.resize(image->height() * rowBytes);
1315 &srcPixels.front() + x * image->height() * quarterWidth +
1323 &srcPixels.front(), rowBytes);
1342 std::vector<int32_t> srcPixels;
1346 srcPixels.resize(quarterHeight * rowBytes);
1348 &srcPixels.front(), rowBytes);
/external/skia/docs/
DSkColor_Reference.bmh305 std::vector<int32_t> srcPixels;
306 srcPixels.resize(source.height() * source.rowBytes());
308 &srcPixels.front(), source.rowBytes());
312 int32_t* blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16;
322 blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16;
346 std::vector<int32_t> srcPixels;
347 srcPixels.resize(source.height() * source.rowBytes());
349 &srcPixels.front(), source.rowBytes());
353 SkPMColor pixel = srcPixels[y * source.width() + x];
356 srcPixels[y * source.width() + x] = SK_ColorGREEN;
[all …]
DSkPixmap_Reference.bmh1299 std::vector<int32_t> srcPixels;
1301 srcPixels.resize(image->height() * rowBytes);
1302 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes);
1353 std::vector<int32_t> srcPixels;
1355 srcPixels.resize(image->height() * rowBytes);
1356 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes);
1384 std::vector<int32_t> srcPixels;
1386 srcPixels.resize(image->height() * rowBytes);
1387 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes);
1418 std::vector<int32_t> srcPixels;
[all …]
DSkBitmap_Reference.bmh2328 std::vector<int32_t> srcPixels;
2329 srcPixels.resize(source.height() * source.rowBytes());
2333 &srcPixels.front() + x * source.height() * source.width() / 4 +
2341 &srcPixels.front(), source.rowBytes());
2379 std::vector<int32_t> srcPixels;
2380 srcPixels.resize(source.height() * source.width() * 8);
2384 &srcPixels.front() + i * source.width(), source.rowBytes() * 2);
2390 &srcPixels.front(), source.rowBytes() * 2);
2434 std::vector<int32_t> srcPixels;
2437 srcPixels.resize(height * width * 4);
[all …]
DSkImage_Reference.bmh1287 std::vector<int32_t> srcPixels;
1291 srcPixels.resize(image->height() * rowBytes);
1295 &srcPixels.front() + x * image->height() * quarterWidth +
1303 &srcPixels.front(), rowBytes);
1322 std::vector<int32_t> srcPixels;
1326 srcPixels.resize(quarterHeight * rowBytes);
1328 &srcPixels.front(), rowBytes);