Home
last modified time | relevance | path

Searched refs:minRowBytes (Results 1 – 25 of 148) sorted by relevance

123456

/external/skia/docs/examples/
DCanvas_readPixels_a.cpp11 sk_sp<SkData> data(SkData::MakeUninitialized(info.minRowBytes() * info.height())); in draw()
12 sk_bzero(data->writable_data(), info.minRowBytes() * info.height()); in draw()
15 canvas->readPixels(info, data->writable_data(), info.minRowBytes(), x, y); in draw()
18 sk_sp<SkImage> image = SkImage::MakeRasterData(info, data, info.minRowBytes()); in draw()
DSurface_readPixels_2.cpp13 sk_sp<SkData> data(SkData::MakeUninitialized(info.minRowBytes() * info.height())); in draw()
14 sk_bzero(data->writable_data(), info.minRowBytes() * info.height()); in draw()
17 surf->readPixels(info, data->writable_data(), info.minRowBytes(), x, y); in draw()
20 sk_sp<SkImage> image = SkImage::MakeRasterData(info, data, info.minRowBytes()); in draw()
DImageInfo_minRowBytes.cpp11 size_t minRowBytes = imageInfo.minRowBytes(); in draw() local
12 bool widthTooLarge = !minRowBytes; in draw()
DImageInfo_minRowBytes64.cpp11 uint64_t minRowBytes = imageInfo.minRowBytes64(); in draw() local
12 bool widthTooLarge = (uint64_t) (int32_t) minRowBytes != minRowBytes; in draw()
DCanvas_MakeRasterDirect.cpp8 const size_t minRowBytes = info.minRowBytes(); // bytes used by one bitmap row in draw() local
14 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, pixels, minRowBytes); in draw()
DColor_Type_RGB_101010.cpp21 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) { in draw()
24 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes()); in draw()
25 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) { in draw()
DColor_Type_RGBA_1010102.cpp25 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) { in draw()
28 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes()); in draw()
29 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) { in draw()
DColor_Type_RGB_888.cpp21 if (bitmap.installPixels(imageInfo, (void*) red888, imageInfo.minRowBytes())) { in draw()
24 if (bitmap.installPixels(imageInfo, (void*) blue888, imageInfo.minRowBytes())) { in draw()
DColor_Type_RGB_565.cpp21 SkPixmap redPixmap(imageInfo, &red565, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue565, imageInfo.minRowBytes()); in draw()
DColor_Type_ARGB_4444.cpp21 SkPixmap redPixmap(imageInfo, &red4444, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue4444, imageInfo.minRowBytes()); in draw()
DColor_Type_BGRA_8888.cpp21 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes()); in draw()
DColor_Type_RGBA_8888.cpp21 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes()); in draw()
DColor_Type_RGBA_F16.cpp43 SkPixmap redPixmap(imageInfo, red_f16, imageInfo.minRowBytes()); in draw()
47 SkPixmap bluePixmap(imageInfo, blue_f16, imageInfo.minRowBytes()); in draw()
/external/skqp/tests/
DBitmapTest.cpp53 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc()
61 const size_t explicitRowBytes = info.minRowBytes() + 24; in test_allocpixels()
65 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
67 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
70 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
82 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
85 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
88 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels()
DMallocPixelRefTest.cpp29 SkMallocPixelRef::MakeAllocate(info, info.minRowBytes() - 1)); in DEF_TEST()
34 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST()
43 size_t rowBytes = info.minRowBytes() + 2; in DEF_TEST()
51 size_t rowBytes = info.minRowBytes() + 7; in DEF_TEST()
DCanvasTest.cpp594 const size_t minRowBytes = info.minRowBytes(); in test_newraster() local
595 const size_t size = info.computeByteSize(minRowBytes); in test_newraster()
600 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
607 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in test_newraster()
617 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
621 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
625 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
629 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
/external/skia/tests/
DBitmapTest.cpp57 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc()
65 const size_t explicitRowBytes = info.minRowBytes() + 24; in test_allocpixels()
69 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
71 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
74 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
86 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
89 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
92 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels()
119 success = bm.setInfo(imageInfo, imageInfo.minRowBytes() + rowBytesPadding); in test_allocpixels()
DMallocPixelRefTest.cpp27 SkMallocPixelRef::MakeAllocate(info, info.minRowBytes() - 1)); in DEF_TEST()
32 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST()
41 size_t rowBytes = info.minRowBytes() + info.bytesPerPixel(); in DEF_TEST()
49 size_t rowBytes = info.minRowBytes() + info.bytesPerPixel(); in DEF_TEST()
DCanvasTest.cpp202 const size_t minRowBytes = info.minRowBytes(); in DEF_TEST() local
203 const size_t size = info.computeByteSize(minRowBytes); in DEF_TEST()
208 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST()
215 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in DEF_TEST()
225 minRowBytes + 1)); in DEF_TEST()
229 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
233 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
237 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
241 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST()
DFloatingPointTextureTest.cpp53 GrCPixmap controlPixmap(info, controlPixelData.begin(), info.minRowBytes()); in runFPTest()
66 GrPixmap readPixmap(info, readBuffer.begin(), info.minRowBytes()); in runFPTest()
/external/skqp/include/core/
DSkImageInfo.h510 size_t minRowBytes() const { in minRowBytes() function
511 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local
512 if (!SkTFitsIn<int32_t>(minRowBytes)) { in minRowBytes()
515 return SkTo<int32_t>(minRowBytes); in minRowBytes()
572 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
/external/skia/include/core/
DSkImageInfo.h606 size_t minRowBytes() const { in minRowBytes() function
607 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local
608 if (!SkTFitsIn<int32_t>(minRowBytes)) { in minRowBytes()
611 return (size_t)minRowBytes; in minRowBytes()
670 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
/external/skia/src/core/
DSkMallocPixelRef.cpp26 rowBytes = info.minRowBytes(); in MakeAllocate()
64 if ((rowBytes < info.minRowBytes()) || (data->size() < info.computeByteSize(rowBytes))) { in MakeWithData()
/external/skqp/docs/
DSkImageInfo_Reference.bmh112 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
152 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
185 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
361 SkPixmap alphaPixmap(imageInfo, &alpha8, imageInfo.minRowBytes());
397 SkPixmap redPixmap(imageInfo, &red565, imageInfo.minRowBytes());
401 SkPixmap bluePixmap(imageInfo, &blue565, imageInfo.minRowBytes());
448 SkPixmap redPixmap(imageInfo, &red4444, imageInfo.minRowBytes());
452 SkPixmap bluePixmap(imageInfo, &blue4444, imageInfo.minRowBytes());
499 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes());
503 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes());
[all …]
/external/skqp/src/core/
DSkImageInfo.cpp103 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
140 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()

123456