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

1234

/external/dng_sdk/source/
H A Ddng_image_writer.cpp2892 uint32 rowBytes = cols * channels; local
2894 bytePtr += rowBytes - 1;
2896 for (uint32 col = channels; col < rowBytes; col++)
/external/pdfium/core/fxge/skia/
H A Dfx_skia_device.cpp579 int rowBytes = pSource->GetPitch(); local
586 static_cast<const uint8_t*>(buffer) + y * rowBytes;
592 rowBytes = width;
607 static_cast<const uint8_t*>(buffer) + y * rowBytes;
615 rowBytes = width * sizeof(uint32_t);
631 skBitmap->installPixels(imageInfo, buffer, rowBytes, *ctPtr, nullptr,
2046 int rowBytes = this->GetPitch(); local
2049 SkPixmap unpremultiplied(unpremultipliedInfo, buffer, rowBytes);
2052 SkPixmap premultiplied(premultipliedInfo, buffer, rowBytes);
2071 int rowBytes local
[all...]
/external/skia/bench/
H A Dnanobench.cpp855 const size_t rowBytes = info.minRowBytes(); local
856 SkAutoMalloc storage(info.getSafeSize(rowBytes));
863 info, storage.get(), rowBytes, nullptr, colors,
/external/skia/dm/
H A DDMSrcSink.cpp392 static void draw_to_canvas(SkCanvas* canvas, const SkImageInfo& info, void* pixels, size_t rowBytes, argument
397 bitmap.installPixels(info, pixels, rowBytes, colorTable.get(), nullptr, nullptr);
434 const size_t rowBytes = size.width() * bpp; local
435 const size_t safeSize = decodeInfo.getSafeSize(rowBytes);
442 memset(pixels.get(), 0, size.height() * rowBytes);
481 rowBytes, &options,
495 draw_to_canvas(canvas, bitmapInfo, pixels.get(), rowBytes,
525 switch (codec->getPixels(decodeInfo, pixels.get(), rowBytes, &options,
537 draw_to_canvas(canvas, bitmapInfo, pixels.get(), rowBytes, colorPtr, colorCount,
559 rowBytes, nullpt
626 rowBytes); local
641 rowBytes); local
671 codec->getScanlines(SkTAddOffset<void>(pixels.get(), x * bpp), height, rowBytes); local
826 size_t rowBytes = size.width() * bpp; local
950 size_t rowBytes = decodeInfo.width() * bpp; local
1059 size_t rowBytes = bitmap.rowBytes(); local
[all...]
/external/skia/fuzz/
H A Dfuzz.cpp239 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options,
265 size_t rowBytes = bitmap.rowBytes(); local
272 codec->getScanlines(dst, height, rowBytes);
305 codec->getScanlines(bitmap.getAddr(0, startY), linesToRead, bitmap.rowBytes());
320 codec->getScanlines(bitmap.getAddr(0, startY), linesToRead, bitmap.rowBytes());
369 size_t rowBytes = decodeInfo.minRowBytes(); local
370 if (!subsetBm.installPixels(decodeInfo, pixels, rowBytes, colorTable.get(),
375 const SkCodec::Result result = codec->getPixels(decodeInfo, pixels, rowBytes,
424 bitmap.rowBytes(),
[all...]
/external/skia/gm/
H A Dbleed.cpp50 size_t rowBytes = SkAlign4(info.minRowBytes()); local
51 result->fBitmap.allocPixels(info, rowBytes);
H A Dreadpixels.cpp63 codec->getPixels(info, bitmap.getPixels(), bitmap.rowBytes());
130 size_t rowBytes = image->width() * SkColorTypeBytesPerPixel(dstColorType); local
131 sk_sp<SkData> data = SkData::MakeUninitialized(rowBytes * image->height());
135 if (!image->readPixels(dstInfo, data->writable_data(), rowBytes, 0, 0, hint)) {
136 memset(data->writable_data(), 0, rowBytes * image->height());
145 memset(data->writable_data(), 0, rowBytes * image->height());
156 sk_sp<SkImage> raw = SkImage::MakeRasterData(dstInfo.makeColorSpace(srgb), data, rowBytes);
/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;
H A DSkCodec.h205 * Parameters (besides info) are invalid. e.g. NULL pixels, rowBytes
312 * least (info.fHeight - 1) * rowBytes + (info.fWidth *
348 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*,
355 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
417 Result startIncrementalDecode(const SkImageInfo& dstInfo, void* dst, size_t rowBytes,
420 Result startIncrementalDecode(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, argument
422 return this->startIncrementalDecode(dstInfo, dst, rowBytes, options, nullptr, nullptr);
425 Result startIncrementalDecode(const SkImageInfo& dstInfo, void* dst, size_t rowBytes) { argument
426 return this->startIncrementalDecode(dstInfo, dst, rowBytes, nullptr, nullptr, nullptr);
501 * scanlines of size rowBytes
[all...]
/external/skia/include/core/
H A DSkBitmap.h129 size_t rowBytes() const { return fRowBytes; } function in class:SkBitmap
146 /** Return the byte size of the pixels, based on the height and rowBytes.
239 bool setInfo(const SkImageInfo&, size_t rowBytes = 0);
257 * rowBytes. If the request cannot be met (e.g. the info is invalid or
258 * the requested rowBytes are not compatible with the info
259 * (e.g. rowBytes < info.minRowBytes() or rowBytes is not aligned with
263 bool SK_WARN_UNUSED_RESULT tryAllocPixels(const SkImageInfo& info, size_t rowBytes);
265 void allocPixels(const SkImageInfo& info, size_t rowBytes) { argument
266 if (!this->tryAllocPixels(info, rowBytes)) {
309 installPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) argument
[all...]
H A DSkCanvas.h84 size_t rowBytes) {
85 return MakeRasterDirect(SkImageInfo::MakeN32Premul(width, height), pixels, rowBytes);
196 * return the ImageInfo, rowBytes and origin. The returned address is only valid
201 * On failure, returns NULL and the info, rowBytes, and origin parameters are ignored.
203 void* accessTopLayerPixels(SkImageInfo* info, size_t* rowBytes, SkIPoint* origin = NULL);
221 * Copy the pixels from the base-layer into the specified buffer (pixels + rowBytes),
266 * then we have two sets of pixels (of equal size), the "src" specified by info+pixels+rowBytes
275 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, int x, int y);
83 MakeRasterDirectN32(int width, int height, SkPMColor* pixels, size_t rowBytes) argument
H A DSkImageInfo.h136 static inline size_t SkColorTypeComputeOffset(SkColorType ct, int x, int y, size_t rowBytes) { argument
140 return y * rowBytes + (x << SkColorTypeShiftPerPixel(ct));
288 size_t computeOffset(int x, int y, size_t rowBytes) const {
291 return SkColorTypeComputeOffset(fColorType, x, y, rowBytes);
306 int64_t getSafeSize64(size_t rowBytes) const {
310 return sk_64_mul(fHeight - 1, rowBytes) + sk_64_mul(fWidth, this->bytesPerPixel());
313 size_t getSafeSize(size_t rowBytes) const {
314 int64_t size = this->getSafeSize64(rowBytes);
321 bool validRowBytes(size_t rowBytes) const {
323 return rowBytes >
[all...]
H A DSkPixelRef.h54 size_t rowBytes() const { return fRec.fRowBytes; } function in class:SkPixelRef
272 void setPreLocked(void*, size_t rowBytes, SkColorTable*);
342 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable*) = 0;
H A DSkPixmap.h29 SkPixmap(const SkImageInfo& info, const void* addr, size_t rowBytes, argument
31 : fPixels(addr), fCTable(ctable), fRowBytes(rowBytes), fInfo(info)
41 void reset(const SkImageInfo& info, const void* addr, size_t rowBytes,
65 size_t rowBytes() const { return fRowBytes; } function in class:SkPixmap
191 return this->readPixels(dst.info(), dst.writable_addr(), dst.rowBytes(), srcX, srcY);
194 return this->readPixels(dst.info(), dst.writable_addr(), dst.rowBytes(), 0, 0);
/external/skia/samplecode/
H A DSampleApp.cpp342 size_t rowBytes = info.minRowBytes(); variable
343 size_t size = info.getSafeSize(rowBytes);
347 if (!renderingCanvas->readPixels(info, data->writable_data(), rowBytes, 0, 0)) {
360 rowBytes);
/external/skia/src/c/
H A Dsk_surface.cpp222 size_t rowBytes) {
227 return (sk_image_t*)SkImage::MakeRasterCopy(SkPixmap(info, pixels, rowBytes)).release();
440 size_t rowBytes,
452 return (sk_surface_t*)SkSurface::MakeRasterDirect(info, pixels, rowBytes, &surfProps).release();
221 sk_image_new_raster_copy(const sk_imageinfo_t* cinfo, const void* pixels, size_t rowBytes) argument
439 sk_surface_new_raster_direct(const sk_imageinfo_t* cinfo, void* pixels, size_t rowBytes, const sk_surfaceprops_t* props) argument
/external/skia/src/codec/
H A DSkAndroidCodec.cpp256 size_t rowBytes, const AndroidOptions* options) {
260 if (rowBytes < info.minRowBytes()) {
282 return this->onGetAndroidPixels(info, pixels, rowBytes, *options);
286 size_t rowBytes) {
287 return this->getAndroidPixels(info, pixels, rowBytes, nullptr);
255 getAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const AndroidOptions* options) argument
285 getAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) argument
H A DSkBmpCodec.cpp632 int SkBmpCodec::onGetScanlines(void* dst, int count, size_t rowBytes) { argument
637 return this->decodeRows(rowInfo, dst, rowBytes, this->options());
H A DSkBmpRLECodec.cpp420 const size_t rowBytes = compute_row_bytes(numPixels, local
438 const size_t alignedRowBytes = SkAlign2(rowBytes);
483 if (!SkIsAlign2(rowBytes)) {
H A DSkCodec.cpp180 SkCodec::Result SkCodec::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, argument
188 if (rowBytes < info.minRowBytes()) {
223 const Result result = this->onGetPixels(info, pixels, rowBytes, *options, ctable, ctableCount,
242 this->fillIncompleteImage(info, pixels, rowBytes, options->fZeroInitialized, info.height(),
249 SkCodec::Result SkCodec::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { argument
250 return this->getPixels(info, pixels, rowBytes, nullptr, nullptr, nullptr);
254 size_t rowBytes, const SkCodec::Options* options, SkPMColor* ctable, int* ctableCount) {
300 const Result result = this->onStartIncrementalDecode(info, pixels, rowBytes,
368 int SkCodec::getScanlines(void* dst, int countLines, size_t rowBytes) { argument
378 const int linesDecoded = this->onGetScanlines(dst, countLines, rowBytes);
253 startIncrementalDecode(const SkImageInfo& info, void* pixels, size_t rowBytes, const SkCodec::Options* options, SkPMColor* ctable, int* ctableCount) argument
439 fill_proc(const SkImageInfo& info, void* dst, size_t rowBytes, uint64_t colorOrIndex, SkCodec::ZeroInitialized zeroInit, SkSampler* sampler) argument
448 fillIncompleteImage(const SkImageInfo& info, void* dst, size_t rowBytes, ZeroInitialized zeroInit, int linesRequested, int linesDecoded) argument
[all...]
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 DSkIcoCodec.cpp311 int SkIcoCodec::onGetScanlines(void* dst, int count, size_t rowBytes) { argument
313 return fCurrScanlineCodec->getScanlines(dst, count, rowBytes);
322 void* pixels, size_t rowBytes, const SkCodec::Options& options,
333 pixels, rowBytes, &options, colorTable, colorCount)) {
321 onStartIncrementalDecode(const SkImageInfo& dstInfo, void* pixels, size_t rowBytes, const SkCodec::Options& options, SkPMColor* colorTable, int* colorCount) argument
H A DSkJpegCodec.cpp486 int SkJpegCodec::readRows(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, int count, argument
502 size_t decodeDstRowBytes = rowBytes;
503 size_t swizzleDstRowBytes = rowBytes;
538 dst = SkTAddOffset<void>(dst, rowBytes);
H A DSkPngCodec.cpp533 Result decodeAllRows(void* dst, size_t rowBytes, int* rowsDecoded) override {
537 fRowBytes = rowBytes;
563 void setRange(int firstRow, int lastRow, void* dst, size_t rowBytes) override {
568 fRowBytes = rowBytes;
680 SkCodec::Result decodeAllRows(void* dst, size_t rowBytes, int* rowsDecoded) override {
696 dst = SkTAddOffset<void>(dst, rowBytes);
710 void setRange(int firstRow, int lastRow, void* dst, size_t rowBytes) override {
717 fRowBytes = rowBytes;
1115 size_t rowBytes, const Options& options,
1130 return this->decodeAllRows(dst, rowBytes, rowsDecode
1114 onGetPixels(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, const Options& options, SkPMColor ctable[], int* ctableCount, int* rowsDecoded) argument
1133 onStartIncrementalDecode(const SkImageInfo& dstInfo, void* dst, size_t rowBytes, const SkCodec::Options& options, SkPMColor* ctable, int* ctableCount) argument
[all...]
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

Completed in 1427 milliseconds

1234