Searched refs:rowBytes (Results 101 - 125 of 342) sorted by last modified time

1234567891011>>

/external/skia/tests/
H A DSurfaceTest.cpp71 size_t rowBytes = info.minRowBytes(); local
72 size_t size = info.getSafeSize(rowBytes);
77 SkImage* image = SkImage::NewRasterData(info, data, rowBytes);
88 const size_t rowBytes = info.minRowBytes(); local
89 const size_t size = rowBytes * info.fHeight;
97 return SkImage::NewRasterCopy(info, addr, rowBytes);
99 return SkImage::NewRasterData(info, data, rowBytes);
104 bitmap.installPixels(info, addr, rowBytes);
131 size_t rowBytes; local
137 const void* addr = image->peekPixels(&info, &rowBytes);
176 size_t rowBytes; local
[all...]
H A DWritePixelsTest.cpp207 canvasRowBytes = secretDevBitmap.rowBytes();
288 // This is a tricky pattern, because we have to setConfig+rowBytes AND specify
289 // a custom pixelRef (which also has to specify its rowBytes), so we have to be
290 // sure that the two rowBytes match (and the infos match).
292 static bool allocRowBytes(SkBitmap* bm, const SkImageInfo& info, size_t rowBytes) { argument
293 if (!bm->setInfo(info, rowBytes)) {
296 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, rowBytes, NULL);
305 size_t rowBytes = c.fTightRowBytes ? 0 : 4 * DEV_W + 100; local
307 if (!allocRowBytes(&bmp, info, rowBytes)) {
311 // if rowBytes is
340 size_t rowBytes = tightRB ? 0 : 4 * w + 60; local
[all...]
/external/skia/third_party/ktx/
H A Dktx.cpp487 rowPtr += bitmap.rowBytes();
494 rowPtr += bitmap.rowBytes();
/external/skia/tools/
H A Dsk_tool_utils.cpp29 canvas->writePixels(info, tmp.getPixels(), tmp.rowBytes(), x, y);
/external/skia/tools/skpdiff/
H A DSkCLImageDiffer.cpp112 bitmap->rowBytes(), bitmap->getPixels(),
/external/skia/bench/
H A DPremulAndUnpremulAlphaOpsBench.cpp51 canvas->writePixels(fBmp1.info(), fBmp1.getPixels(), fBmp1.rowBytes(), 0, 0);
53 canvas->readPixels(fBmp2.info(), fBmp2.getPixels(), fBmp2.rowBytes(), 0, 0);
H A DWritePixelsBench.cpp62 canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
/external/skia/dm/
H A DDMWriteTask.cpp97 const size_t rowBytes = info.minRowBytes(); // Assume densely packed. local
98 const size_t bitmapBytes = info.getSafeSize(rowBytes);
109 info, rowBytes, NULL/*ctable*/, subset));
112 bitmap->setInfo(info, rowBytes);
/external/skia/experimental/Intersection/
H A DEdgeWalker_TestUtility.cpp373 for (unsigned x = 0; x < bits.rowBytes(); ++x) {
H A DSkAntiEdge.cpp635 void SkAntiEdgeBuilder::walk(uint8_t* result, int rowBytes, int height) { argument
648 uint8_t* resultPtr = &result[y * rowBytes + x];
654 if (x >= rowBytes) { // FIXME: cumulative error in fX += fDX
H A DSkAntiEdge.h63 void walk(uint8_t* result, int rowBytes, int height);
/external/skia/experimental/SkiaExamples/
H A DSkExample.cpp140 bm.rowBytes());
/external/skia/experimental/pixman/
H A Djunk.cpp33 int p_stride = bitmap->rowBytes();
/external/skia/gm/
H A Daaclip.cpp121 bm.rowBytes());
H A Dgammatext.cpp42 size_t rowBytes) {
48 8, rowBytes, space, BITMAP_INFO_RGB);
149 size_t rowBytes; local
150 const void* addr = canvas->peekPixels(&info, &rowBytes);
152 cg = makeCG(info, addr, rowBytes);
41 makeCG(const SkImageInfo& info, const void* addr, size_t rowBytes) argument
H A Dgmmain.cpp575 bitmap->rowBytes()));
H A Dpeekpixels.cpp47 size_t rowBytes; variable
48 const void* addr = surfCanvas->peekPixels(&info, &rowBytes);
49 if (addr && bitmap.installPixels(info, const_cast<void*>(addr), rowBytes)) {
/external/skia/include/core/
H A DSkBitmap.h150 size_t rowBytes() const { return fRowBytes; } function in class:SkBitmap
167 /** Return the byte size of the pixels, based on the height and rowBytes.
233 /** Given a config and a width, this computes the optimal rowBytes value. This is called automatically
234 if you pass 0 for rowBytes to setConfig().
272 /** Set the bitmap's config and dimensions. If rowBytes is 0, then
276 bool setConfig(Config, int width, int height, size_t rowBytes, SkAlphaType);
278 bool setConfig(Config config, int width, int height, size_t rowBytes = 0) {
279 return this->setConfig(config, width, height, rowBytes,
284 bool setInfo(const SkImageInfo&, size_t rowBytes = 0);
287 bool setConfig(const SkImageInfo& info, size_t rowBytes
329 installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, void (*releaseProc)(void* addr, void* context), void* context) argument
341 installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) argument
[all...]
H A DSkBitmapDevice.h144 virtual void* onAccessPixels(SkImageInfo* info, size_t* rowBytes) SK_OVERRIDE;
201 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
H A DSkBlitRow.h78 size_t rowBytes, SkPMColor color);
82 size_t rowBytes, SkPMColor color);
H A DSkCanvas.h104 static SkCanvas* NewRasterDirectN32(int width, int height, SkPMColor* pixels, size_t rowBytes) { argument
105 return NewRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels, rowBytes);
207 * return the ImageInfo, rowBytes and origin. The returned address is only valid
212 * On failure, returns NULL and the info, rowBytes, and origin parameters are ignored.
214 void* accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin = NULL);
220 * return the ImageInfo and rowBytes. The returned address is only valid
225 * On failure, returns NULL and the info and rowBytes parameters are
228 const void* peekPixels(SkImageInfo* info, size_t* rowBytes);
231 * Copy the pixels from the base-layer into the specified buffer (pixels + rowBytes),
241 * and the "dst" by info+pixels+rowBytes
1470 size_t rowBytes() const { return fRowBytes; } function in class:SkAutoROCanvasPixels
[all...]
H A DSkDevice.h100 bool writePixels(const SkImageInfo&, const void*, size_t rowBytes, int x, int y);
102 void* accessPixels(SkImageInfo* info, size_t* rowBytes);
263 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y);
312 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes);
333 virtual void* onAccessPixels(SkImageInfo* info, size_t* rowBytes);
H A DSkImage.h42 static SkImage* NewRasterCopy(const Info&, const void* pixels, size_t rowBytes);
43 static SkImage* NewRasterData(const Info&, SkData* pixels, size_t rowBytes);
81 * the ImageInfo and rowBytes. The returned address is only valid while
84 * On failure, returns NULL and the info and rowBytes parameters are
87 const void* peekPixels(SkImageInfo* info, size_t* rowBytes) const;
H A DSkImageGenerator.h60 virtual bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { argument
61 return this->onGetPixels(info, pixels, rowBytes, NULL, NULL);
86 * least (info.fHeight - 1) * rowBytes + (info.fWidth *
110 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
116 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
123 void* pixels, size_t rowBytes,
H A DSkImageInfo.h229 int64_t getSafeSize64(size_t rowBytes) const {
233 return sk_64_mul(fHeight - 1, rowBytes) + fWidth * this->bytesPerPixel();
236 size_t getSafeSize(size_t rowBytes) const {
237 return (size_t)this->getSafeSize64(rowBytes);
240 bool validRowBytes(size_t rowBytes) const {
242 return rowBytes >= rb;

Completed in 256 milliseconds

1234567891011>>