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

1234

/external/skia/src/codec/
H A DSkRawAdapterCodec.cpp22 const SkImageInfo& info, void* pixels, size_t rowBytes,
28 info, pixels, rowBytes, &codecOptions, options.fColorPtr,
21 onGetAndroidPixels( const SkImageInfo& info, void* pixels, size_t rowBytes, const AndroidOptions& options) argument
H A DSkSampler.cpp13 void SkSampler::Fill(const SkImageInfo& info, void* dst, size_t rowBytes, argument
18 const size_t bytesToFill = info.getSafeSize(rowBytes);
35 dstRow = SkTAddOffset<uint32_t>(dstRow, rowBytes);
56 dstRow = SkTAddOffset<uint16_t>(dstRow, rowBytes);
87 dstRow = SkTAddOffset<uint64_t>(dstRow, rowBytes);
H A DSkWebpAdapterCodec.cpp26 size_t rowBytes, const AndroidOptions& options) {
44 return this->codec()->getPixels(info, pixels, rowBytes, &codecOptions, options.fColorPtr,
25 onGetAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const AndroidOptions& options) argument
H A DSkCodecImageGenerator.cpp38 bool SkCodecImageGenerator::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument
40 SkCodec::Result result = fCodec->getPixels(info, pixels, rowBytes, nullptr, ctable,
H A DSkSampler.h58 * @param rowBytes
73 static void Fill(const SkImageInfo& info, void* dst, size_t rowBytes,
79 virtual void fill(const SkImageInfo& info, void* dst, size_t rowBytes, argument
/external/skia/src/core/
H A DSkAutoPixmapStorage.cpp17 size_t SkAutoPixmapStorage::AllocSize(const SkImageInfo& info, size_t* rowBytes) { argument
19 if (rowBytes) {
20 *rowBytes = rb;
H A DSkWritePixelsRec.h17 SkWritePixelsRec(const SkImageInfo& info, const void* pixels, size_t rowBytes, int x, int y) argument
19 , fRowBytes(rowBytes)
H A DSkPictureImageGenerator.cpp60 bool SkPictureImageGenerator::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument
67 if (!bitmap.installPixels(info, pixels, rowBytes)) {
H A DSkColorSpaceXformCanvas.cpp287 size_t rowBytes; variable
289 void* addr = fTarget->accessTopLayerPixels(&info, &rowBytes, origin);
291 *pixmap = SkPixmap(info, addr, rowBytes);
H A DSkImageGenerator.cpp17 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument
25 if (rowBytes < info.minRowBytes()) {
41 const bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount);
48 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { argument
53 return this->getPixels(info, pixels, rowBytes, nullptr, nullptr);
161 if (!this->getPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(),
H A DSkMallocPixelRef.cpp42 size_t rowBytes,
47 return new SkMallocPixelRef(info, addr, rowBytes, ctable, nullptr, nullptr);
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));
87 return new SkMallocPixelRef(info, addr, rowBytes, ctable, sk_free_releaseproc, nullptr);
91 size_t rowBytes,
40 NewDirect(const SkImageInfo& info, void* addr, size_t rowBytes, SkColorTable* ctable) argument
90 NewAllocate(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
97 NewZeroed(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
103 NewWithProc(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, void* addr, SkMallocPixelRef::ReleaseProc proc, void* context) argument
122 NewWithData(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable, SkData* data) argument
147 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, bool ownsPixels) argument
169 SkMallocPixelRef(const SkImageInfo& info, void* storage, size_t rowBytes, SkColorTable* ctable, SkMallocPixelRef::ReleaseProc proc, void* context) argument
217 create(const SkImageInfo& info, size_t rowBytes, SkColorTable* ctable) argument
222 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 DSkSurface_Raster.cpp42 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { argument
79 if (kIgnoreRowBytesValue == rowBytes) {
84 if (minRB > rowBytes) {
88 size_t alignedRowBytes = rowBytes >> shift << shift;
89 if (alignedRowBytes != rowBytes) {
93 uint64_t size = sk_64_mul(info.height(), rowBytes);
116 fBitmap.setInfo(info, pr->rowBytes());
117 fRowBytes = pr->rowBytes(); // we track this, so that subsequent re-allocs will match
170 SkASSERT(prev.rowBytes() == fBitmap.rowBytes());
201 MakeRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, const SkSurfaceProps* props) argument
206 MakeRaster(const SkImageInfo& info, size_t rowBytes, const SkSurfaceProps* props) argument
[all...]
/external/skia/src/utils/
H A DSkRGBAToYUV.cpp16 const size_t rowBytes[3], SkYUVColorSpace colorSpace) {
40 size_t rb = rowBytes[i] ? rowBytes[i] : sizes[i].fWidth;
15 SkRGBAToYUV(const SkImage* image, const SkISize sizes[3], void* const planes[3], const size_t rowBytes[3], SkYUVColorSpace colorSpace) argument
/external/skia/tests/
H A DBlitMaskClip.cpp43 int rowBytes = (width + 7) >> 3; local
44 uint8_t* bits = new uint8_t[rowBytes * height];
45 memset(bits, 0xAA, rowBytes * height);
53 mask.fRowBytes = rowBytes;
H A DMallocPixelRefTest.cpp34 size_t rowBytes = info.minRowBytes() - 1; local
35 size_t size = info.getSafeSize(rowBytes);
38 SkMallocPixelRef::NewWithData(info, rowBytes, nullptr, data.get()));
43 size_t rowBytes = info.minRowBytes() + 2; local
44 size_t size = info.getSafeSize(rowBytes) - 1;
47 SkMallocPixelRef::NewWithData(info, rowBytes, nullptr, data.get()));
51 size_t rowBytes = info.minRowBytes() + 7; local
52 size_t size = info.getSafeSize(rowBytes) + 9;
56 SkMallocPixelRef::NewDirect(info, memory.get(), rowBytes, nullptr));
62 SkMallocPixelRef::NewAllocate(info, rowBytes, nullpt
[all...]
H A DCodecPartialTest.cpp34 return SkCodec::kSuccess == codec->getPixels(info, dst->getPixels(), dst->rowBytes());
43 const size_t rowBytes = info.minRowBytes(); local
45 REPORTER_ASSERT(r, !memcmp(bm1.getAddr(0, 0), bm2.getAddr(0, 0), rowBytes));
82 incremental.getPixels(), incremental.rowBytes());
216 frame.rowBytes(), &opts, nullptr, nullptr);
266 frame.getPixels(), frame.rowBytes(), &opts);
312 incremental.getPixels(), incremental.rowBytes());
323 result = partialCodec->getPixels(info, full.getPixels(), full.rowBytes());
374 auto result = codec->getPixels(info, truth.getPixels(), truth.rowBytes());
383 result = codec->getPixels(info, bm.getPixels(), bm.rowBytes());
[all...]
H A DSwizzlerTest.cpp23 size_t rowBytes,
32 const size_t totalBytes = imageInfo.getSafeSize(rowBytes) + offset;
39 uint8_t* imageStart = imageData + rowBytes * startRow;
41 SkSampler::Fill(fillInfo, imageStart, rowBytes, colorOrIndex, SkCodec::kNo_ZeroInitialized);
45 uint8_t* indexPtr = imageData + startRow * rowBytes;
69 indexPtr += rowBytes;
19 check_fill(skiatest::Reporter* r, const SkImageInfo& imageInfo, uint32_t startRow, uint32_t endRow, size_t rowBytes, uint32_t offset, uint32_t colorOrIndex) argument
/external/skia/include/codec/
H A DSkAndroidCodec.h209 * least (info.fHeight - 1) * rowBytes + (info.fWidth *
245 SkCodec::Result getAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
255 SkCodec::Result getAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
257 SkCodec::Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { argument
258 return this->getAndroidPixels(info, pixels, rowBytes);
272 size_t rowBytes, const AndroidOptions& options) = 0;
/external/skia/src/ports/
H A DSkImageGeneratorCG.cpp82 bool SkImageGeneratorCG::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument
117 if (!SkCopyPixelsFromCGImage(info, rowBytes, pixels, image)) {
H A DSkImageGeneratorWIC.cpp139 bool SkImageGeneratorWIC::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument
171 hr = formatConverterSrc->CopyPixels(nullptr, (UINT) rowBytes, (UINT) rowBytes * info.height(),
/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;
/external/skia/src/gpu/
H A DGrSurfaceProxy.cpp217 size_t rowBytes) {
220 sk_sp<GrTexture> tex(resourceProvider->createTexture(desc, budgeted, srcData, rowBytes));
213 MakeDeferred(GrResourceProvider* resourceProvider, const GrSurfaceDesc& desc, SkBudgeted budgeted, const void* srcData, size_t rowBytes) argument
H A DGrTextureToYUVPlanes.cpp58 const size_t rowBytes[3], SkYUVColorSpace colorSpace) {
171 size_t yRowBytes = rowBytes[0] ? rowBytes[0] : yuvSize.fWidth;
172 size_t uRowBytes = rowBytes[1] ? rowBytes[1] : yuvSize.fWidth;
173 size_t vRowBytes = rowBytes[2] ? rowBytes[2] : yuvSize.fWidth;
197 if (!yRenderTargetContext->readPixels(ii, planes[0], rowBytes[0], 0, 0)) {
214 size_t uRowBytes = rowBytes[1] ? rowBytes[
56 GrTextureToYUVPlanes(GrContext* context, sk_sp<GrTextureProxy> proxy, const SkISize sizes[3], void* const planes[3], const size_t rowBytes[3], SkYUVColorSpace colorSpace) argument
[all...]
/external/skia/src/images/
H A DSkWEBPImageEncoder.cpp189 const size_t rowBytes = pixmap.rowBytes(); local
195 proc((char*) &rgb[y * rgbStride], (const char*) &src[y * rowBytes], pic.width, bpp, colors);

Completed in 467 milliseconds

1234