Searched defs:rowBytes (Results 1 - 25 of 78) sorted by relevance

1234

/external/skia/gm/
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/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 DJpegTest.cpp482 size_t sizes[3], rowBytes[3]; local
485 rowBytes[i] = yuvSizes[i].fWidth;
486 totalSize += sizes[i] = rowBytes[i] * yuvSizes[i].fHeight;
487 REPORTER_ASSERT(reporter, rowBytes[i] == (size_t)expected_sizes[i]);
498 REPORTER_ASSERT(reporter, pixelRef->getYUV8Planes(yuvSizes, planes, rowBytes, NULL));
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/debugger/QT/
H A DSkRasterWidget.cpp52 size_t rowBytes; local
53 if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) {
57 rowBytes, local
H A DSkDrawCommandGeometryWidget.cpp45 size_t rowBytes; local
46 if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) {
64 rowBytes, local
/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;
/external/skia/src/core/
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 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 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...]
/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_Gpu.cpp54 dst->getPixels(), dst->rowBytes())) {
64 static void apply_premul(const SkImageInfo& info, void* pixels, size_t rowBytes) { argument
85 bool SkImage_Gpu::onReadPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument
95 pixels, rowBytes, flags)) {
107 apply_premul(info, pixels, rowBytes);
/external/skia/src/images/
H A DSkImageEncoder.cpp54 SkData* SkImageEncoder::EncodeData(const SkImageInfo& info, const void* pixels, size_t rowBytes, argument
57 if (!bm.installPixels(info, const_cast<void*>(pixels), rowBytes)) {
/external/skia/src/lazy/
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
H A DSkDiscardablePixelRef.cpp14 size_t rowBytes,
19 , fRowBytes(rowBytes)
129 (info, autoGenerator.detach(), dst->rowBytes(), factory)));
12 SkDiscardablePixelRef(const SkImageInfo& info, SkImageGenerator* generator, size_t rowBytes, SkDiscardableMemory::Factory* fact) argument
/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/ports/
H A DSkImageGenerator_skia.cpp19 BareMemoryAllocator(const SkImageInfo& info, void* memory, size_t rowBytes) argument
20 : fInfo(info), fMemory(memory), fRowBytes(rowBytes)
50 virtual Result onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
55 (info, pixels, rowBytes)));
85 bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
88 return fDecoder->decodeYUV8Planes(&stream, sizes, planes, rowBytes, colorSpace);
/external/skia/bench/
H A DDecodingBench.cpp71 const size_t rowBytes = bm.info().minRowBytes(); local
72 fPixelStorage.reset(bm.info().getSafeSize(rowBytes));
86 fPixelStorage, bm->rowBytes(), ct))->unref();
/external/skia/example/
H A DHelloWorld.cpp161 size_t rowBytes; local
163 const void* pixels = snap->peekPixels(&info, &rowBytes);
169 rowBytes,
/external/skia/src/animator/
H A DSkDrawBitmap.h46 int32_t rowBytes; member in class:SkDrawBitmap
H A DSkDrawBitmap.cpp51 SK_MEMBER(rowBytes, Int),
60 rowBytes(0), width(-1), fColor(0), fColorSet(false) {
73 if (rowBytes > 0)
74 SkDebugf("rowBytes=\"%d\" ", rowBytes);
90 SkASSERT(rowBytes >= 0);
93 rowBytes); local
/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
H A DGrTextureProvider.cpp21 const void* srcData, size_t rowBytes) {
34 srcData, rowBytes)) {
43 return fGpu->createTexture(desc, budgeted, srcData, rowBytes);
20 createTexture(const GrSurfaceDesc& desc, bool budgeted, const void* srcData, size_t rowBytes) argument
/external/skia/src/effects/
H A DSkEmbossMask.cpp99 int rowBytes = mask->fRowBytes; local
105 int next_row = neq_to_mask(y, maxy) & rowBytes;
158 alpha += rowBytes;
159 multiply += rowBytes;
160 additive += rowBytes;
161 prev_row = rowBytes;

Completed in 349 milliseconds

1234