Searched refs:minRowBytes (Results 1 - 25 of 27) sorted by relevance

12

/external/skia/tests/
H A DBitmapTest.cpp21 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, info.minRowBytes(), NULL);
29 const size_t explicitRowBytes = info.minRowBytes() + 24;
33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
50 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
53 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
56 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit
H A DBitmapGetColorTest.cpp40 bm.installPixels(info, storage, info.minRowBytes());
H A DMallocPixelRefTest.cpp28 SkMallocPixelRef::NewAllocate(info, info.minRowBytes() - 1, NULL));
33 size_t rowBytes = info.minRowBytes() - 1;
42 size_t rowBytes = info.minRowBytes() + 2;
50 size_t rowBytes = info.minRowBytes() + 7;
H A DCanvasTest.cpp692 const size_t minRowBytes = info.minRowBytes(); local
693 const size_t size = info.getSafeSize(minRowBytes);
698 SkCanvas* canvas = SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes);
706 REPORTER_ASSERT(reporter, minRowBytes == rowBytes);
717 REPORTER_ASSERT(reporter, NULL == SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes));
721 REPORTER_ASSERT(reporter, NULL == SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes));
725 REPORTER_ASSERT(reporter, NULL == SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes));
729 canvas = SkCanvas::NewRasterDirect(info, baseAddr, minRowBytes);
H A DBitmapCopyTest.cpp454 bufBm.installPixels(info, buf, info.minRowBytes() * 2);
497 bufBm.installPixels(info, buf, info.minRowBytes());
512 bufBm.installPixels(info, buf, info.minRowBytes());
523 bufBm.installPixels(info, buf, info.minRowBytes());
H A DSurfaceTest.cpp47 const size_t rowBytes = info.minRowBytes();
134 size_t rowBytes = info.minRowBytes();
149 const size_t rowBytes = info.minRowBytes();
277 REPORTER_ASSERT(reporter, info.minRowBytes() <= rowBytes);
340 REPORTER_ASSERT(reporter, requestInfo.minRowBytes() <= rowBytes);
H A DCachedDecodingPixelRefTest.cpp189 REPORTER_ASSERT(fReporter, rowBytes >= info.minRowBytes());
H A DWritePixelsTest.cpp303 const size_t rowBytes = c.fTightRowBytes ? info.minRowBytes() : 4 * DEV_W + 100;
/external/skia/src/image/
H A DSkImagePriv.h33 return SkAlign4(info.minRowBytes());
H A DSkSurface_Raster.cpp98 fBitmap.setInfo(info, info.minRowBytes());
/external/skia/bench/
H A DCodecBench.cpp62 fPixelStorage.reset(fInfo.getSafeSize(fInfo.minRowBytes()));
75 codec->getPixels(fInfo, fPixelStorage.get(), fInfo.minRowBytes(),
H A DDecodingBench.cpp71 const size_t rowBytes = bm.info().minRowBytes();
H A Dnanobench.cpp692 const size_t rowBytes = info.minRowBytes();
/external/skia/include/codec/
H A DSkScanlineDecoder.h32 if ((rowBytes < fDstInfo.minRowBytes() && countLines > 1 ) || countLines <= 0
88 SkAutoMalloc storage(fDstInfo.minRowBytes());
/external/skia/src/core/
H A DSkMallocPixelRef.cpp117 if ((rowBytes < info.minRowBytes())
143 SkASSERT(rowBytes >= info.minRowBytes());
166 SkASSERT(rowBytes >= info.minRowBytes());
H A DSkImageGenerator.cpp19 if (rowBytes < info.minRowBytes()) {
H A DSkImageInfo.cpp93 if (NULL == fPixels || fRowBytes < fInfo.minRowBytes()) {
H A DSkBitmap.cpp326 SkPixelRef* pr = factory->create(correctedInfo, correctedInfo.minRowBytes(), ctable);
440 if (dstRowBytes < fInfo.minRowBytes() ||
464 size_t rowBytes = fInfo.minRowBytes();
874 if (NULL == dstPixels || dstRB < requestedDstInfo.minRowBytes()) {
1229 // If there was an error reading "info", don't use it to compute minRowBytes()
1234 const size_t ramRB = info.minRowBytes();
1263 SkAutoTUnref<SkPixelRef> pr(SkMallocPixelRef::NewWithData(info, info.minRowBytes(),
1318 SkASSERT(fPixelRef->rowBytes() >= fInfo.minRowBytes());
H A DSkDevice.cpp191 SkASSERT(rowBytes >= info.minRowBytes());
206 SkASSERT(rowBytes >= info.minRowBytes());
H A DSkBitmapProcState.cpp111 return bm.info().getSafeSize(bm.info().minRowBytes())
/external/skia/include/core/
H A DSkBitmap.h237 * (e.g. rowBytes < info.minRowBytes() or rowBytes is not aligned with
250 return this->tryAllocPixels(info, info.minRowBytes());
254 this->allocPixels(info, info.minRowBytes());
H A DSkImageInfo.h246 size_t minRowBytes() const { function in struct:SkImageInfo
/external/skia/src/codec/
H A DSkJpegCodec.cpp497 this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options);
H A DSkCodec_libpng.cpp665 // be at least dstInfo.minRowBytes.
666 if (this->initializeSwizzler(dstInfo, NULL, dstInfo.minRowBytes(), options, ctable,
H A DSkSwizzler.cpp282 if (info.minRowBytes() > dstRowBytes) {

Completed in 357 milliseconds

12