HomeSort by relevance Sort by last modified time
    Searched defs:rowBytes (Results 51 - 75 of 77) sorted by null

1 23 4

  /external/chromium_org/third_party/skia/tests/
SurfaceTest.cpp 48 const size_t rowBytes = info.minRowBytes();
49 void* storage = sk_malloc_throw(info.getSafeSize(rowBytes));
50 return SkSurface::NewRasterDirectReleaseProc(info, storage, rowBytes,
76 size_t rowBytes = info.minRowBytes();
77 size_t size = info.getSafeSize(rowBytes);
81 SkImage* image = SkImage::NewRasterData(info, data, rowBytes);
92 const size_t rowBytes = info.minRowBytes();
93 const size_t size = rowBytes * info.height();
101 return SkImage::NewRasterCopy(info, addr, rowBytes);
103 return SkImage::NewRasterData(info, data, rowBytes);
    [all...]
WritePixelsTest.cpp 201 canvasRowBytes = secretDevBitmap.rowBytes();
282 // This is a tricky pattern, because we have to setConfig+rowBytes AND specify
283 // a custom pixelRef (which also has to specify its rowBytes), so we have to be
284 // sure that the two rowBytes match (and the infos match).
286 static bool allocRowBytes(SkBitmap* bm, const SkImageInfo& info, size_t rowBytes) {
287 if (!bm->setInfo(info, rowBytes)) {
290 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, rowBytes, NULL);
303 const size_t rowBytes = c.fTightRowBytes ? info.minRowBytes() : 4 * DEV_W + 100;
304 const size_t size = info.getSafeSize(rowBytes);
306 // if rowBytes isn't tight then set the padding to a known valu
    [all...]
CanvasTest.cpp     [all...]
  /external/skia/src/ports/
SkFontHost_FreeType_common.cpp 380 target.pitch = glyph.rowBytes();
385 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight);
437 unscaledBitmapAlias.fRowBytes = unscaledBitmap.rowBytes();
447 bitmapRowBytes = glyph.rowBytes();
474 packA8ToA1(dstMask, dstBitmap.getAddr8(0, 0), dstBitmap.rowBytes());
483 dst = (uint16_t*)((char*)dst + glyph.rowBytes());
484 src += dstBitmap.rowBytes();
492 memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight);
501 unsigned rowBytes = glyph.rowBytes();
    [all...]
SkFontHost_mac.cpp 152 int width, int height, size_t rowBytes) {
154 SkASSERT(width * sizeof(uint32_t) <= rowBytes);
159 ptr = (uint32_t*)((char*)ptr + rowBytes);
165 rowBytes -= width * sizeof(uint32_t);
180 ptr = (uint32_t*)((char*)ptr + rowBytes);
189 ptr = (uint32_t*)((char*)ptr + rowBytes);
790 size_t rowBytes = fSize.fWidth * sizeof(CGRGBPixel);
799 rowBytes = fSize.fWidth * sizeof(CGRGBPixel);
800 void* image = fImageStorage.reset(rowBytes * fSize.fHeight);
802 rowBytes, fRGBSpace, BITMAP_INFO_RGB)
    [all...]
  /external/skia/tests/
ReadPixelsTest.cpp 104 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
126 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel());
223 size_t rowBytes = 0;
231 rowBytes = (info.width() + 16) * sizeof(SkPMColor);
241 bitmap->setInfo(info, rowBytes);
WritePixelsTest.cpp 207 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) {
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;
307 if (!allocRowBytes(&bmp, info, rowBytes)) {
311 // if rowBytes isn't tight then set the padding to a known valu
    [all...]
CanvasTest.cpp     [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/gpu/
DrawingBuffer.cpp     [all...]
  /external/chromium_org/third_party/skia/include/core/
SkCanvas.h 113 static SkCanvas* NewRasterDirectN32(int width, int height, SkPMColor* pixels, size_t rowBytes) {
114 return NewRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels, rowBytes);
224 * return the ImageInfo, rowBytes and origin. The returned address is only valid
229 * On failure, returns NULL and the info, rowBytes, and origin parameters are ignored.
231 void* accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin = NULL);
237 * return the ImageInfo and rowBytes. The returned address is only valid
242 * On failure, returns NULL and the info and rowBytes parameters are
245 const void* peekPixels(SkImageInfo* info, size_t* rowBytes);
248 * Copy the pixels from the base-layer into the specified buffer (pixels + rowBytes),
293 * then we have two sets of pixels (of equal size), the "src" specified by info+pixels+rowBytes
    [all...]
  /external/chromium_org/third_party/skia/src/core/
SkScalerContext.cpp 33 mask->fRowBytes = this->rowBytes();
38 const size_t size = this->rowBytes() * fHeight;
242 unsigned rowBytes = mask.fRowBytes;
248 dst += rowBytes;
459 packA8ToA1(mask, bm.getAddr8(0, 0), bm.rowBytes());
587 (const SkPMColor*)glyph->fImage, glyph->rowBytes());
595 int dstRB = origGlyph.rowBytes();
SkBitmap.cpp 107 bool SkBitmap::setInfo(const SkImageInfo& info, size_t rowBytes) {
114 // require that rowBytes fit in 31bits
119 if ((int64_t)rowBytes != (int32_t)rowBytes) {
128 rowBytes = 0;
129 } else if (0 == rowBytes) {
130 rowBytes = (size_t)mrb;
131 } else if (!info.validRowBytes(rowBytes)) {
138 fRowBytes = SkToU32(rowBytes);
280 bool SkBitmap::tryAllocPixels(const SkImageInfo& requestedInfo, size_t rowBytes) {
    [all...]
SkDraw.cpp 243 const size_t rowBytes = bitmap.rowBytes();
247 pixels += rect.fTop * rowBytes + (rect.fLeft << shiftPerPixel);
250 pixels += rowBytes;
338 size_t rb = bitmap->rowBytes();
359 size_t rb = bitmap->rowBytes();
    [all...]
  /external/skia/include/core/
SkBitmap.h 119 * Return the rowbytes expressed as a number of pixels (like width and height).
150 size_t rowBytes() const { return fRowBytes; }
167 /** Return the byte size of the pixels, based on the height and rowBytes.
189 * than computeSize64() if there is any rowbytes padding beyond the width.
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,
    [all...]
SkCanvas.h 104 static SkCanvas* NewRasterDirectN32(int width, int height, SkPMColor* pixels, size_t rowBytes) {
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. Replace the dst pixels with the corresponding sr
    [all...]
  /external/skia/src/core/
SkScalerContext.cpp 37 mask->fRowBytes = this->rowBytes();
42 const size_t size = this->rowBytes() * fHeight;
416 unsigned rowBytes = mask.fRowBytes;
422 dst += rowBytes;
633 packA8ToA1(mask, bm.getAddr8(0, 0), bm.rowBytes());
761 (const SkPMColor*)glyph->fImage, glyph->rowBytes());
769 int dstRB = origGlyph.rowBytes();
    [all...]
SkBitmap.cpp 132 int64_t rowBytes = sk_64_mul(SkColorTypeBytesPerPixel(ct), width);
133 return rowBytes * height;
186 bool SkBitmap::setInfo(const SkImageInfo& origInfo, size_t rowBytes) {
194 // require that rowBytes fit in 31bits
199 if ((int64_t)rowBytes != (int32_t)rowBytes) {
208 rowBytes = 0;
209 } else if (0 == rowBytes) {
210 rowBytes = (size_t)mrb;
211 } else if (rowBytes < info.minRowBytes())
    [all...]
SkDraw.cpp 242 const size_t rowBytes = bitmap.rowBytes();
246 pixels += rect.fTop * rowBytes + (rect.fLeft << shiftPerPixel);
249 pixels += rowBytes;
337 size_t rb = bitmap->rowBytes();
358 size_t rb = bitmap->rowBytes();
    [all...]
  /frameworks/base/core/jni/android/graphics/
Bitmap.cpp 136 dst = (char*)dst + dstBitmap.rowBytes();
492 return static_cast<jint>(bitmap->rowBytes());
566 const int rowBytes = p->readInt32();
580 bitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType), rowBytes);
638 p->writeInt32(bitmap->rowBytes());
746 src = (void*)((const char*)src + bitmap->rowBytes());
    [all...]
  /frameworks/base/core/jni/
android_view_SurfaceControl.cpp 171 const ssize_t rowBytes =
175 bitmap->setInfo(screenshotInfo, (size_t)rowBytes);
179 (size_t) rowBytes, NULL, (void*) screenshot->getPixels(), &DeleteScreenshot,
android_hardware_camera2_DngCreator.cpp 472 uint8_t* rowBytes = row.editArray();
479 ssize_t bytesRead = mInput->read(rowBytes, rowFillAmt, rowSize);
503 if (stream.write(rowBytes, 0, mBytesPerSample * mSamplesPerPixel * mWidth) != OK ||
    [all...]
  /frameworks/base/libs/hwui/
FontRenderer.cpp 300 int srcStride = glyph.rowBytes();
370 int rowBytes = srcStride;
375 while (--rowBytes >= 0) {
  /external/chromium_org/third_party/skia/src/images/
SkImageDecoder_libpng.cpp 420 size_t rowBytes = origWidth * srcBytesPerPixel;
427 row += rowBytes;
431 base += sampler.srcY0() * rowBytes;
434 base += sampler.srcDY() * rowBytes;
    [all...]
  /external/skia/src/images/
SkImageDecoder_libpng.cpp 420 size_t rowBytes = origWidth * srcBytesPerPixel;
427 row += rowBytes;
431 base += sampler.srcY0() * rowBytes;
434 base += sampler.srcDY() * rowBytes;
    [all...]
  /external/chromium_org/third_party/skia/src/ports/
SkFontHost_mac.cpp 148 int width, int height, size_t rowBytes) {
150 SkASSERT(width * sizeof(uint32_t) <= rowBytes);
155 ptr = (uint32_t*)((char*)ptr + rowBytes);
161 rowBytes -= width * sizeof(uint32_t);
176 ptr = (uint32_t*)((char*)ptr + rowBytes);
185 ptr = (uint32_t*)((char*)ptr + rowBytes);
790 size_t rowBytes = fSize.fWidth * sizeof(CGRGBPixel);
799 rowBytes = fSize.fWidth * sizeof(CGRGBPixel);
800 void* image = fImageStorage.reset(rowBytes * fSize.fHeight);
802 rowBytes, fRGBSpace, BITMAP_INFO_RGB))
    [all...]

Completed in 1602 milliseconds

1 23 4