/third_party/skia/docs/examples/ |
H A D | Alpha_Constants_b.cpp | 7 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 8 srcPixels.resize(source.height() * source.rowBytes()); in REG_FIDDLE() 10 &srcPixels.front(), source.rowBytes()); in REG_FIDDLE() 14 SkPMColor pixel = srcPixels[y * source.width() + x]; in REG_FIDDLE() 17 srcPixels[y * source.width() + x] = SK_ColorGREEN; in REG_FIDDLE()
|
H A D | Alpha_Constants_a.cpp | 7 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 8 srcPixels.resize(source.height() * source.rowBytes()); in REG_FIDDLE() 10 &srcPixels.front(), source.rowBytes()); in REG_FIDDLE() 14 int32_t* blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16; in REG_FIDDLE() 24 blockStart = &srcPixels.front() + y * source.width() * 16 + x * 16; in REG_FIDDLE()
|
H A D | Bitmap_readPixels_3.cpp | 7 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 8 srcPixels.resize(source.height() * source.width() * 8); in REG_FIDDLE() 12 &srcPixels.front() + i * source.width(), source.rowBytes() * 2); in REG_FIDDLE() 18 &srcPixels.front(), source.rowBytes() * 2); in REG_FIDDLE()
|
H A D | Bitmap_readPixels_2.cpp | 7 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 8 srcPixels.resize(source.height() * source.rowBytes()); in REG_FIDDLE() 12 &srcPixels.front() + x * source.height() * source.width() / 4 + in REG_FIDDLE() 20 &srcPixels.front(), source.rowBytes()); in REG_FIDDLE()
|
H A D | Image_readPixels_2.cpp | 7 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 11 srcPixels.resize(image->height() * rowBytes); in REG_FIDDLE() 15 &srcPixels.front() + x * image->height() * quarterWidth + in REG_FIDDLE() 23 &srcPixels.front(), rowBytes); in REG_FIDDLE()
|
H A D | Color_Constants_c.cpp | 7 std::vector<uint32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(width * height); in REG_FIDDLE() 12 SkPixmap pixmap(imageInfo, &srcPixels.front(), imageInfo.minRowBytes()); in REG_FIDDLE()
|
H A D | Color_Constants_d.cpp | 7 std::vector<uint32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(width * height); in REG_FIDDLE() 12 SkPixmap pixmap(imageInfo, &srcPixels.front(), imageInfo.minRowBytes()); in REG_FIDDLE()
|
H A D | Color_Constants_b.cpp | 7 std::vector<uint32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(width * height); in REG_FIDDLE() 12 SkPixmap pixmap(imageInfo, &srcPixels.front(), imageInfo.minRowBytes()); in REG_FIDDLE()
|
H A D | Pixmap_scalePixels.cpp | 8 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(image->height() * rowBytes); in REG_FIDDLE() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in REG_FIDDLE()
|
H A D | Pixmap_readPixels_2.cpp | 8 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(image->height() * rowBytes); in REG_FIDDLE() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in REG_FIDDLE()
|
H A D | Pixmap_readPixels_3.cpp | 8 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(image->height() * rowBytes); in REG_FIDDLE() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in REG_FIDDLE()
|
H A D | Pixmap_readPixels_4.cpp | 8 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(image->height() * rowBytes); in REG_FIDDLE() 11 SkPixmap pixmap(info, (const void*) &srcPixels.front(), rowBytes); in REG_FIDDLE()
|
H A D | Image_scalePixels.cpp | 7 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 11 srcPixels.resize(quarterHeight * rowBytes); in REG_FIDDLE() 13 &srcPixels.front(), rowBytes); in REG_FIDDLE()
|
H A D | Bitmap_writePixels.cpp | 7 std::vector<int32_t> srcPixels; in REG_FIDDLE() local 10 srcPixels.resize(height * width * 4); in REG_FIDDLE() 11 SkPixmap pixmap(SkImageInfo::MakeN32Premul(width, height), (const void*) &srcPixels.front(), in REG_FIDDLE()
|
/third_party/skia/src/core/ |
H A D | SkConvertPixels.cpp | 18 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, in rect_memcpy() 30 srcPixels, srcRB, dstInfo.minRowBytes(), dstInfo.height()); in rect_memcpy() 35 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, in swizzle_or_premul() 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() 223 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { in SkConvertPixels() 238 if (fn(dstInfo, dstPixels, dstRB, srcInfo, srcPixels, srcRB, steps)) { in SkConvertPixels() 242 convert_with_pipeline(dstInfo, dstPixels, dstStride, srcInfo, srcPixels, srcStride, steps); in SkConvertPixels() 17 rect_memcpy(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, const SkColorSpaceXformSteps& steps) rect_memcpy() argument 34 swizzle_or_premul(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB, const SkColorSpaceXformSteps& steps) swizzle_or_premul() argument 222 SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) SkConvertPixels() argument
|
H A D | SkBlurMask.cpp | 558 const uint8_t* srcPixels = src.fImage; in BlurGroundTruth() local 574 const uint8_t* srcptr = srcPixels + y * srcWidth; in BlurGroundTruth() 627 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth() 633 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth() 644 SkMask::AlphaIter<SkMask::kA8_Format>(srcPixels), src.fRowBytes, in BlurGroundTruth()
|
H A D | SkConvertPixels.h | 18 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes);
|
H A D | SkPixmap.cpp | 170 const void* srcPixels = this->addr(rec.fX, rec.fY); in readPixels() local 172 return SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, in readPixels()
|
/third_party/skia/tests/ |
H A D | ApplyGammaTest.cpp | 103 SkAutoTMalloc<uint32_t> srcPixels(kBaseSize.area()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 106 srcPixels.get()[y*kBaseSize.fWidth+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 111 bm.installPixels(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 151 uint32_t s = srcPixels.get()[y * kBaseSize.fWidth + x]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
H A D | CopySurfaceTest.cpp | 39 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 41 srcPixels.get()[i] = i; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 80 GrCPixmap srcPM(ii, srcPixels.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 178 uint32_t s = srcPixels.get()[sy * kW + sx]; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
H A D | ReadWritePixelsGpuTest.cpp | 238 // Separate this out just to give it some line width to breathe. Note 'srcPixels' should have in gpu_read_pixels_test_driver() 242 const SkPixmap& srcPixels, in gpu_read_pixels_test_driver() 246 !SkColorSpace::Equals(readInfo.colorSpace(), srcPixels.info().colorSpace()); in gpu_read_pixels_test_driver() 249 const auto srcCT = srcPixels.info().colorType(); in gpu_read_pixels_test_driver() 250 const auto srcAT = srcPixels.info().alphaType(); in gpu_read_pixels_test_driver() 252 const auto surfBounds = SkIRect::MakeWH(srcPixels.width(), srcPixels.height()); in gpu_read_pixels_test_driver() 349 SkPixmap unpremulSRc(srcPixels.info().makeAlphaType(kUnpremul_SkAlphaType), in gpu_read_pixels_test_driver() 350 srcPixels.addr(), in gpu_read_pixels_test_driver() 351 srcPixels in gpu_read_pixels_test_driver() 425 SkAutoPixmapStorage srcPixels = make_ref_data(refInfo, forceOpaque); gpu_read_pixels_test_driver() local [all...] |
H A D | PremulAlphaRoundTripTest.cpp | 121 uint32_t* srcPixels = (uint32_t*)src.addr(); in DEF_TEST() local 124 srcPixels[y * 256 + x] = pack_unpremul_rgba(SkColorSetARGB(y, x, x, x)); in DEF_TEST() 177 uint32_t* srcPixels = src.getAddr32(0, 0); in DEF_TEST() local 180 srcPixels[y * 256 + x] = pack_unpremul_rgba(SkColorSetARGB(y, x, x, x)); in DEF_TEST()
|
H A D | BitmapCopyTest.cpp | 166 SkPMColor srcPixels[16]; 167 fill_4x4_pixels(srcPixels); 169 srcBM.installPixels(srcInfo, srcPixels, rowBytes);
|
H A D | ReadPixelsTest.cpp | 439 const void* srcPixels = five_reference_pixels(srcInfo.colorType()); in test_conversion() local 440 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); in test_conversion()
|