Searched refs:rowBytes (Results 1 - 25 of 171) sorted by relevance

1234567

/external/skia/tests/
H A DImageGeneratorTest.cpp23 size_t rowBytes[3] = { 0 }; local
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);
H A DMallocPixelRefTest.cpp33 size_t rowBytes = info.minRowBytes() - 1; local
34 size_t size = info.getSafeSize(rowBytes);
37 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data));
42 size_t rowBytes = info.minRowBytes() + 2; local
43 size_t size = info.getSafeSize(rowBytes) - 1;
46 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data));
50 size_t rowBytes = info.minRowBytes() + 7; local
51 size_t size = info.getSafeSize(rowBytes) + 9;
55 SkMallocPixelRef::NewDirect(info, memory.get(), rowBytes, NULL));
61 SkMallocPixelRef::NewAllocate(info, rowBytes, NUL
[all...]
H A DBitmapTest.cpp33 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());
72 // TODO: perhaps skia can relax this, and only require that rowBytes fit
H A DSwizzlerTest.cpp19 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;
15 check_fill(skiatest::Reporter* r, const SkImageInfo& imageInfo, uint32_t startRow, uint32_t endRow, size_t rowBytes, uint32_t offset, uint32_t colorOrIndex, SkPMColor* colorTable) argument
/external/skia/src/core/
H A DSkImageGenerator.cpp11 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], argument
63 bool isValidWithPlanes = (planes) && (rowBytes) &&
65 (0 != rowBytes[0]) && (0 != rowBytes[1]) && (0 != rowBytes[
10 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options* options, SkPMColor ctable[], int* ctableCount) argument
48 getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) argument
93 onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]) argument
97 onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], SkYUVColorSpace* colorSpace) argument
[all...]
H A DSkBitmap_scroll.cpp67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed local
70 src -= dy * rowBytes;
73 dst += dy * rowBytes;
76 src += (height - 1) * rowBytes;
77 dst += (height - 1) * rowBytes;
79 rowBytes = -rowBytes;
99 dst += rowBytes;
[all...]
H A DSkMallocPixelRef.cpp42 size_t rowBytes,
48 (info, addr, rowBytes, ctable, NULL, NULL));
59 // only want to permit 31bits of rowBytes
68 int32_t rowBytes; local
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,
93 size_t rowBytes,
40 NewDirect(const SkImageInfo& info, void* addr, size_t rowBytes, SkColorTable* ctable) argument
92 NewWithProc(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, void* addr, SkMallocPixelRef::ReleaseProc proc, void* context) argument
109 NewWithData(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, SkData* data) argument
135 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, bool ownsPixels) argument
157 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, SkMallocPixelRef::ReleaseProc proc, void* context) argument
205 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
[all...]
H A DSkDistanceFieldGen.h34 * @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);
/external/skia/src/opts/
H A DSkTextureCompression_opts_neon.h12 int width, int height, size_t rowBytes);
/external/skia/src/image/
H A DSkReadPixelsRec.h17 SkReadPixelsRec(const SkImageInfo& info, void* pixels, size_t rowBytes, int x, int y) argument
19 , fRowBytes(rowBytes)
H A DSkImage_Raster.cpp19 static bool ValidArgs(const Info& info, size_t rowBytes) { argument
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, argument
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();
105 SkImage_Raster(const Info& info, SkPixelRef* pr, const SkIPoint& pixelRefOrigin, size_t rowBytes, const SkSurfaceProps* props) argument
148 NewRasterCopy(const SkImageInfo& info, const void* pixels, size_t rowBytes) argument
159 NewRasterData(const SkImageInfo& info, SkData* data, size_t rowBytes) argument
185 SkNewImageFromPixelRef(const SkImageInfo& info, SkPixelRef* pr, const SkIPoint& pixelRefOrigin, size_t rowBytes, const SkSurfaceProps* props) argument
[all...]
H A DSkSurface_Raster.cpp40 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { argument
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, argument
164 return NewRasterDirectReleaseProc(info, pixels, rowBytes, NULL, NULL, props);
H A DSkImagePriv.h17 size_t rowBytes,
/external/skia/include/core/
H A DSkPixelSerializer.h35 SkData* encodePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes) { argument
36 return this->onEncodePixels(info, pixels, rowBytes);
50 virtual SkData* onEncodePixels(const SkImageInfo&, const void* pixels, size_t rowBytes) = 0;
H A DSkImageGenerator.h96 * 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[
[all...]
H A DSkMallocPixelRef.h21 * 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...]
/external/skia/src/lazy/
H A DSkDiscardablePixelRef.h49 size_t rowBytes,
54 size_t rowBytes[3],
61 return fGenerator->getYUV8Planes(sizes, planes, rowBytes, colorSpace);
H A DSkCachingPixelRef.cpp24 (info, generator, dst->rowBytes())));
31 size_t rowBytes)
35 , fRowBytes(rowBytes) {
75 rec->fRowBytes = fLockedBitmap.rowBytes();
29 SkCachingPixelRef(const SkImageInfo& info, SkImageGenerator* generator, size_t rowBytes) argument
/external/skia/include/c/
H A Dsk_image.h22 sk_image_t* sk_image_new_raster_copy(const sk_imageinfo_t*, const void* pixels, size_t rowBytes);
H A Dsk_surface.h19 sk_surface_t* sk_surface_new_raster_direct(const sk_imageinfo_t*, void* pixels, size_t rowBytes);
/external/skia/include/codec/
H A DSkScanlineDecoder.h26 * 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) { argument
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/
H A DSkTextureCompressor_ASTC.h18 int width, int height, size_t rowBytes);
H A DSkTextureCompressor_LATC.h18 int width, int height, size_t rowBytes);
H A DSkTextureCompressor_R11EAC.h18 int width, int height, size_t rowBytes);
/external/skia/src/gpu/
H A DGrSurface.cpp17 GrPixelConfig config, const void* buffer, size_t rowBytes,
24 return context->writeSurfacePixels(this, left, top, width, height, config, buffer, rowBytes,
29 GrPixelConfig config, void* buffer, size_t rowBytes,
39 rowBytes, pixelOpsFlags);
16 writePixels(int left, int top, int width, int height, GrPixelConfig config, const void* buffer, size_t rowBytes, uint32_t pixelOpsFlags) argument
28 readPixels(int left, int top, int width, int height, GrPixelConfig config, void* buffer, size_t rowBytes, uint32_t pixelOpsFlags) argument

Completed in 7823 milliseconds

1234567