Home
last modified time | relevance | path

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

12345678

/third_party/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()
/third_party/flutter/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()
DBitmap_allocPixels_4.cpp10 if (info.height() * info.minRowBytes() > sizeof(storage)) { in allocPixelRef()
14 new SkPixelRef(info.width(), info.height(), storage, info.minRowBytes())); in allocPixelRef()
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()
/third_party/flutter/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()
DMallocPixelRefTest.cpp30 SkMallocPixelRef::MakeAllocate(info, info.minRowBytes() - 1)); in DEF_TEST()
35 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST()
44 size_t rowBytes = info.minRowBytes() + 2; in DEF_TEST()
52 size_t rowBytes = info.minRowBytes() + 7; in DEF_TEST()
DCanvasTest.cpp164 const size_t minRowBytes = info.minRowBytes(); in DEF_TEST() local
165 const size_t size = info.computeByteSize(minRowBytes); in DEF_TEST()
170 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST()
177 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in DEF_TEST()
187 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
191 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
195 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
199 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST()
/third_party/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.cpp181 const size_t minRowBytes = info.minRowBytes(); in DEF_TEST() local
182 const size_t size = info.computeByteSize(minRowBytes); in DEF_TEST()
187 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST()
194 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in DEF_TEST()
204 minRowBytes + 1)); in DEF_TEST()
208 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
212 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
216 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in DEF_TEST()
220 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in DEF_TEST()
/third_party/flutter/skia/include/core/
DSkImageInfo.h506 size_t minRowBytes() const { in minRowBytes() function
507 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local
508 if (!SkTFitsIn<int32_t>(minRowBytes)) { in minRowBytes()
511 return SkTo<int32_t>(minRowBytes); in minRowBytes()
568 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
/third_party/skia/include/core/
DSkImageInfo.h608 size_t minRowBytes() const { in minRowBytes() function
609 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local
610 if (!SkTFitsIn<int32_t>(minRowBytes)) { in minRowBytes()
613 return (size_t)minRowBytes; in minRowBytes()
672 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()

12345678