Home
last modified time | relevance | path

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

12345

/external/skqp/tests/
DBitmapTest.cpp47 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc()
55 const size_t explicitRowBytes = info.minRowBytes() + 24; in test_allocpixels()
59 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
61 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
64 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
76 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
79 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
82 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.cpp569 const size_t minRowBytes = info.minRowBytes(); in test_newraster() local
570 const size_t size = info.computeByteSize(minRowBytes); in test_newraster()
575 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
582 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in test_newraster()
592 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
596 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
600 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
604 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
DBitmapGetColorTest.cpp40 bm.installPixels(info, storage, info.minRowBytes()); in DEF_TEST()
/external/skia/tests/
DBitmapTest.cpp47 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc()
55 const size_t explicitRowBytes = info.minRowBytes() + 24; in test_allocpixels()
59 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
61 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
64 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
76 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
79 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
82 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.cpp569 const size_t minRowBytes = info.minRowBytes(); in test_newraster() local
570 const size_t size = info.computeByteSize(minRowBytes); in test_newraster()
575 std::unique_ptr<SkCanvas> canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
582 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in test_newraster()
592 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
596 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
600 REPORTER_ASSERT(reporter, nullptr == SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes)); in test_newraster()
604 canvas = SkCanvas::MakeRasterDirect(info, baseAddr, minRowBytes); in test_newraster()
DBitmapGetColorTest.cpp40 bm.installPixels(info, storage, info.minRowBytes()); in DEF_TEST()
/external/skqp/bench/
DColorCodecBench.cpp40 SkCodec::MakeFromData(fEncoded)->getPixels(fDstInfo, fDst.get(), fDstInfo.minRowBytes()); in decodeAndXform()
55 dst = SkTAddOffset<void>(dst, fDstInfo.minRowBytes()); in xformOnly()
56 src = SkTAddOffset<void>(src, fSrcInfo.minRowBytes()); in xformOnly()
94 codec->getPixels(fSrcInfo, fSrc.get(), fSrcInfo.minRowBytes()); in onDelayedSetup()
DCodecBench.cpp60 codec->getPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(), in onDraw()
DAndroidCodecBench.cpp53 codec->getAndroidPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(), &options); in onDraw()
/external/skia/bench/
DColorCodecBench.cpp40 SkCodec::MakeFromData(fEncoded)->getPixels(fDstInfo, fDst.get(), fDstInfo.minRowBytes()); in decodeAndXform()
55 dst = SkTAddOffset<void>(dst, fDstInfo.minRowBytes()); in xformOnly()
56 src = SkTAddOffset<void>(src, fSrcInfo.minRowBytes()); in xformOnly()
94 codec->getPixels(fSrcInfo, fSrc.get(), fSrcInfo.minRowBytes()); in onDelayedSetup()
/external/skia/include/core/
DSkImageInfo.h244 size_t minRowBytes() const { in minRowBytes() function
245 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local
246 if (!sk_64_isS32(minRowBytes)) { in minRowBytes()
249 return sk_64_asS32(minRowBytes); in minRowBytes()
285 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
/external/skqp/include/core/
DSkImageInfo.h281 size_t minRowBytes() const { in minRowBytes() function
282 uint64_t minRowBytes = this->minRowBytes64(); in minRowBytes() local
283 if (!sk_64_isS32(minRowBytes)) { in minRowBytes()
286 return sk_64_asS32(minRowBytes); in minRowBytes()
326 return this->computeByteSize(this->minRowBytes()); in computeMinByteSize()
/external/skia/docs/
DSkImageInfo_Reference.bmh111 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
151 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
182 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
302 SkPixmap alphaPixmap(imageInfo, &alpha8, imageInfo.minRowBytes());
333 SkPixmap redPixmap(imageInfo, &red565, imageInfo.minRowBytes());
337 SkPixmap bluePixmap(imageInfo, &blue565, imageInfo.minRowBytes());
381 SkPixmap redPixmap(imageInfo, &red4444, imageInfo.minRowBytes());
385 SkPixmap bluePixmap(imageInfo, &blue4444, imageInfo.minRowBytes());
431 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes());
435 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes());
[all …]
/external/skqp/src/core/
DSkMallocPixelRef.cpp62 rowBytes = info.minRowBytes(); in MakeUsing()
122 if ((rowBytes < info.minRowBytes()) || (data->size() < info.computeByteSize(rowBytes))) { in MakeWithData()
DSkImageInfo.cpp168 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
204 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
DSkAutoPixmapStorage.cpp28 size_t rb = info.minRowBytes(); in AllocSize()
/external/skia/src/core/
DSkMallocPixelRef.cpp62 rowBytes = info.minRowBytes(); in MakeUsing()
122 if ((rowBytes < info.minRowBytes()) || (data->size() < info.computeByteSize(rowBytes))) { in MakeWithData()
DSkImageInfo.cpp208 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
244 if (nullptr == fPixels || fRowBytes < fInfo.minRowBytes()) { in trim()
DSkAutoPixmapStorage.cpp28 size_t rb = info.minRowBytes(); in AllocSize()
/external/skqp/src/images/
DSkImageEncoderPriv.h27 if (!src.addr() || src.rowBytes() < src.info().minRowBytes()) { in SkPixmapIsValid()
/external/skia/src/images/
DSkImageEncoderPriv.h27 if (!src.addr() || src.rowBytes() < src.info().minRowBytes()) { in SkPixmapIsValid()
/external/skia/src/image/
DSkImage.cpp327 const size_t rowBytes = info.minRowBytes(); in makeRasterImage()
334 pm = { info.makeColorSpace(nullptr), data->writable_data(), info.minRowBytes() }; in makeRasterImage()
420 size_t rowBytes = info.minRowBytes(); in SkImageMakeRasterCopyAndAssignColorSpace()
/external/skqp/src/image/
DSkImage.cpp329 const size_t rowBytes = info.minRowBytes(); in makeRasterImage()
336 pm = { info.makeColorSpace(nullptr), data->writable_data(), info.minRowBytes() }; in makeRasterImage()
454 size_t rowBytes = info.minRowBytes(); in SkImageMakeRasterCopyAndAssignColorSpace()

12345