HomeSort by relevance Sort by last modified time
    Searched refs:rowBytes (Results 1 - 25 of 188) sorted by null

1 2 3 4 5 6 7 8

  /external/skia/tests/
ImageGeneratorTest.cpp 23 size_t rowBytes[3] = { 0 };
30 ig.getYUV8Planes(sizes, NULL, rowBytes, NULL);
31 ig.getYUV8Planes(sizes, planes, rowBytes, NULL);
32 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace);
36 rowBytes[0] = rowBytes[1] = rowBytes[2] = 250;
38 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace);
MallocPixelRefTest.cpp 29 // rowbytes too small.
33 size_t rowBytes = info.minRowBytes() - 1;
34 size_t size = info.getSafeSize(rowBytes);
37 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data));
38 // rowbytes too small.
42 size_t rowBytes = info.minRowBytes() + 2;
43 size_t size = info.getSafeSize(rowBytes) - 1;
46 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data));
50 size_t rowBytes = info.minRowBytes() + 7;
51 size_t size = info.getSafeSize(rowBytes) + 9
    [all...]
BitmapTest.cpp 33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
41 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
43 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
46 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
50 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
53 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
69 // for a 4-byte config, this width will compute a rowbytes of 0x80000000,
72 // TODO: perhaps skia can relax this, and only require that rowBytes fi
    [all...]
SwizzlerTest.cpp 19 size_t rowBytes,
29 const size_t totalBytes = imageInfo.getSafeSize(rowBytes) + offset;
36 uint8_t* imageStart = imageData + rowBytes * startRow;
39 SkSwizzler::Fill(imageStart, imageInfo, rowBytes, endRow - startRow + 1, colorOrIndex,
44 uint8_t* indexPtr = imageData + startRow * rowBytes;
65 indexPtr += rowBytes;
  /external/skia/src/core/
SkImageGenerator.cpp 11 size_t rowBytes, const Options* options,
19 if (rowBytes < info.minRowBytes()) {
40 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, ctable, ctableCount);
49 size_t rowBytes) {
54 return this->getPixels(info, pixels, rowBytes, NULL, NULL, NULL);
57 bool SkImageGenerator::getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
63 bool isValidWithPlanes = (planes) && (rowBytes) &&
65 (0 != rowBytes[0]) && (0 != rowBytes[1]) && (0 != rowBytes[2]))
    [all...]
SkBitmap_scroll.cpp 67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed
70 src -= dy * rowBytes;
73 dst += dy * rowBytes;
76 src += (height - 1) * rowBytes;
77 dst += (height - 1) * rowBytes;
78 // now invert rowbytes so we copy backwards in the loop
79 rowBytes = -rowBytes;
    [all...]
SkDistanceFieldGen.h 34 * @param rowBytes Size of each row in the image, in bytes
38 int w, int h, size_t rowBytes);
47 * @param rowBytes Size of each row in the image, in bytes
51 int w, int h, size_t rowBytes);
SkMallocPixelRef.cpp 42 size_t rowBytes,
48 (info, addr, rowBytes, ctable, NULL, NULL));
59 // only want to permit 31bits of rowBytes
65 return NULL; // cannot meet requested rowbytes
68 int32_t rowBytes;
70 rowBytes = SkToS32(requestedRowBytes);
72 rowBytes = minRB;
75 int64_t bigSize = (int64_t)info.height() * rowBytes;
81 SkASSERT(size >= info.getSafeSize(rowBytes));
88 (info, addr, rowBytes, ctable
    [all...]
  /external/skia/include/core/
SkPixelSerializer.h 35 SkData* encodePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes) {
36 return this->onEncodePixels(info, pixels, rowBytes);
50 virtual SkData* onEncodePixels(const SkImageInfo&, const void* pixels, size_t rowBytes) = 0;
SkImageGenerator.h 96 * Parameters (besides info) are invalid. e.g. NULL pixels, rowBytes
145 * least (info.fHeight - 1) * rowBytes + (info.fWidth *
172 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*,
179 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
182 * If planes or rowBytes is NULL or if any entry in planes is NULL or if any entry in rowBytes
185 * rowBytes are both fully defined and non NULL/non 0 or they are both NULL or have NULL or 0
186 * entries only. Having only partial planes/rowBytes information is not supported.
188 * If all planes and rowBytes entries are non NULL or non 0, then it should copy the
192 bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]
    [all...]
SkMallocPixelRef.h 21 * Return a new SkMallocPixelRef with the provided pixel storage, rowBytes,
31 size_t rowBytes, SkColorTable*);
35 * pixels. If rowBytes are 0, an optimal value will be chosen automatically.
36 * If rowBytes is > 0, then it will be respected, or NULL will be returned
37 * if rowBytes is invalid for the specified info.
44 size_t rowBytes, SkColorTable*);
48 * rowBytes, and optional colortable. On destruction, ReleaseProc
62 size_t rowBytes, SkColorTable*,
68 * SkData, rowBytes, and optional colortable as pixel storage.
77 size_t rowBytes,
    [all...]
SkPixelRef.h 71 size_t rowBytes() const { return fRec.fRowBytes; }
201 * If any planes or rowBytes is NULL, this should output the sizes and return true
204 * If all planes and rowBytes are not NULL, then it should copy the associated Y,U,V data
211 bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
213 return this->onGetYUV8Planes(sizes, planes, rowBytes, colorSpace);
289 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
310 void setPreLocked(void*, size_t rowBytes, SkColorTable*);
362 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) = 0;
  /external/skia/src/opts/
SkTextureCompression_opts_neon.h 12 int width, int height, size_t rowBytes);
  /external/skia/src/image/
SkReadPixelsRec.h 17 SkReadPixelsRec(const SkImageInfo& info, void* pixels, size_t rowBytes, int x, int y)
19 , fRowBytes(rowBytes)
SkImage_Raster.cpp 19 static bool ValidArgs(const Info& info, size_t rowBytes) {
42 if (rowBytes < SkImageMinRowBytes(info)) {
46 int64_t size = (int64_t)info.height() * rowBytes;
58 const void* onPeekPixels(SkImageInfo*, size_t* /*rowBytes*/) const override;
62 SkImage_Raster(const SkImageInfo&, SkPixelRef*, const SkIPoint& pixelRefOrigin, size_t rowBytes,
92 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes,
100 fBitmap.installPixels(info, addr, rowBytes, ctable, release_data, data);
106 size_t rowBytes, const SkSurfaceProps* props)
109 fBitmap.setInfo(info, rowBytes);
137 *rowBytesPtr = fBitmap.rowBytes();
    [all...]
SkSurface_Raster.cpp 40 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) {
62 if (kIgnoreRowBytesValue == rowBytes) {
67 if (minRB > rowBytes) {
71 size_t alignedRowBytes = rowBytes >> shift << shift;
72 if (alignedRowBytes != rowBytes) {
76 uint64_t size = sk_64_mul(info.height(), rowBytes);
162 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes,
164 return NewRasterDirectReleaseProc(info, pixels, rowBytes, NULL, NULL, props);
  /external/skia/src/lazy/
SkDiscardablePixelRef.h 49 size_t rowBytes,
54 size_t rowBytes[3],
61 return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace);
SkCachingPixelRef.cpp 24 (info, generator, dst->rowBytes())));
31 size_t rowBytes)
35 , fRowBytes(rowBytes) {
75 rec->fRowBytes = fLockedBitmap.rowBytes();
  /external/skia/include/c/
sk_image.h 22 sk_image_t* sk_image_new_raster_copy(const sk_imageinfo_t*, const void* pixels, size_t rowBytes);
sk_surface.h 19 sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t*, void* pixels, size_t rowBytes);
  /external/skia/include/codec/
SkScanlineDecoder.h 26 * scanlines of size rowBytes.
28 * @param rowBytes Number of bytes per row. Must be large enough to hold
31 SkImageGenerator::Result getScanlines(void* dst, int countLines, size_t rowBytes) {
32 if ((rowBytes < fDstInfo.minRowBytes() && countLines > 1 ) || countLines <= 0
36 const SkImageGenerator::Result result = this->onGetScanlines(dst, countLines, rowBytes);
89 // Note that we pass 0 to rowBytes so we continue to use the same memory.
90 // Also note that while getScanlines checks that rowBytes is big enough,
98 size_t rowBytes) = 0;
  /external/skia/src/utils/
SkTextureCompressor_ASTC.h 18 int width, int height, size_t rowBytes);
SkTextureCompressor_LATC.h 18 int width, int height, size_t rowBytes);
SkTextureCompressor_R11EAC.h 18 int width, int height, size_t rowBytes);
  /frameworks/base/core/jni/android/graphics/
Bitmap.h 51 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
53 const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);
54 Bitmap(void* address, int fd, const SkImageInfo& info, size_t rowBytes,
67 size_t rowBytes() const;
72 void reconfigure(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable);

Completed in 236 milliseconds

1 2 3 4 5 6 7 8