Searched defs:rowBytes (Results 26 - 50 of 78) sorted by relevance

1234

/external/skia/src/image/
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 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.cpp169 const void* SkSurface::peekPixels(SkImageInfo* info, size_t* rowBytes) { argument
170 return this->getCanvas()->peekPixels(info, rowBytes);
/external/skia/src/utils/
H A DSkTextureCompressor.cpp26 int width, int height, size_t rowBytes) {
28 return 0 == etc1_encode_image(src, width, height, 2, SkToInt(rowBytes), dst);
123 int width, int height, size_t rowBytes, Format format, bool opt) {
170 return proc(dst, src, width, height, rowBytes);
188 bitmap.width(), bitmap.height(), bitmap.rowBytes(), format)) {
25 compress_etc1_565(uint8_t* dst, const uint8_t* src, int width, int height, size_t rowBytes) argument
122 CompressBufferToFormat(uint8_t* dst, const uint8_t* src, SkColorType srcColorType, int width, int height, size_t rowBytes, Format format, bool opt) argument
H A DSkCanvasStateUtils.cpp68 uint64_t rowBytes; // Number of bytes from start of one line to next. member in struct:SkCanvasLayerState::__anon14082::__anon14083
69 void* pixels; // The pixels, all (height * rowBytes) of them.
250 layerState->raster.rowBytes = bitmap.rowBytes();
309 layerState.raster.pixels, (size_t) layerState.raster.rowBytes);
/external/skia/tests/
H A DCodexTest.cpp55 codec->getPixels(info, bm.getPixels(), bm.rowBytes(), NULL, NULL, NULL);
64 codec->getPixels(info, bm.getPixels(), bm.rowBytes(), NULL, NULL, NULL);
179 size_t rowBytes = scaledDims.width() * sizeof(SkPMColor); local
180 size_t totalBytes = scaledInfo.getSafeSize(rowBytes);
184 codec->getPixels(scaledInfo, pixels.get(), rowBytes, NULL, NULL, NULL);
/external/skia/include/core/
H A DSkPixelRef.h71 size_t rowBytes() const { return fRec.fRowBytes; } function in class:SkPixelRef
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], argument
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/codec/
H A DSkCodec_wbmp.cpp105 size_t rowBytes,
147 dst += rowBytes;
103 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options&, SkPMColor ctable[], int* ctableCount) argument
H A DSkSwizzler.cpp31 const size_t rowBytes = compute_row_bytes_ppb(width, pixelsPerByte); local
34 for (uint32_t byte = 0; byte < rowBytes; byte++) {
54 const size_t rowBytes = compute_row_bytes_ppb(width, pixelsPerByte); local
57 for (uint32_t byte = 0; byte < rowBytes; byte++) {
416 size_t rowBytes)
422 , fDstRowBytes(rowBytes)
414 SkSwizzler(RowProc proc, const SkPMColor* ctable, int deltaSrc, const SkImageInfo& info, void* dst, size_t rowBytes) argument
/external/skia/src/core/
H A DSkBlitter.cpp87 U8CPU left_mask, int rowBytes,
92 while (--rowBytes >= 0) {
94 if (rowBytes == 0) {
85 bits_to_runs(SkBlitter* blitter, int x, int y, const uint8_t bits[], U8CPU left_mask, int rowBytes, U8CPU right_mask) argument
H A DSkBlitter_A8.cpp169 device += fDevice.rowBytes();
183 size_t rowBytes = fDevice.rowBytes(); local
188 device += rowBytes;
195 device += rowBytes;
215 device += fDevice.rowBytes();
224 device += fDevice.rowBytes();
349 device += fDevice.rowBytes();
396 const size_t dstRB = fDevice.rowBytes();
405 const size_t dstRB = fDevice.rowBytes();
[all...]
H A DSkBlitter_ARGB32.cpp36 dstRow = (SkPMColor*)((char*)dstRow + device.rowBytes());
121 device = (uint32_t*)((char*)device + fDevice.rowBytes());
212 device = (uint32_t*)((char*)device + fDevice.rowBytes());
231 size_t rowBytes = fDevice.rowBytes(); local
234 device = (uint32_t*)((char*)device + rowBytes);
247 size_t rowBytes = fDevice.rowBytes(); local
251 device = (uint32_t*)((char*)device + rowBytes);
305 device = (uint32_t*)((char*)device + fDevice.rowBytes());
[all...]
H A DSkGlyph.h79 unsigned rowBytes() const { function in class:SkGlyph
H A DSkMipMap.cpp23 p += srcBM.rowBytes() >> 2;
51 p += srcBM.rowBytes() >> 2;
90 p += srcBM.rowBytes() >> 1;
127 p += srcBM.rowBytes() >> 1;
139 const size_t rb = srcBM.rowBytes();
160 p += srcBM.rowBytes();
262 uint32_t rowBytes; local
268 rowBytes = SkToU32(SkColorTypeMinRowBytes(ct, width));
273 levels[i].fRowBytes = rowBytes;
277 dstBM.installPixels(SkImageInfo::Make(width, height, ct, at), addr, rowBytes); local
[all...]
H A DSkPixelRef.cpp143 void SkPixelRef::setPreLocked(void* pixels, size_t rowBytes, SkColorTable* ctable) { argument
149 fRec.fRowBytes = rowBytes;
282 bool SkPixelRef::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], argument
H A DSkDistanceFieldGen.cpp464 int width, int height, size_t rowBytes) {
479 memcpy(currDestPtr, currSrcScanLine, rowBytes);
480 currSrcScanLine += rowBytes;
492 int width, int height, size_t rowBytes) {
515 currSrcScanLine += rowBytes;
462 SkGenerateDistanceFieldFromA8Image(unsigned char* distanceField, const unsigned char* image, int width, int height, size_t rowBytes) argument
490 SkGenerateDistanceFieldFromBWImage(unsigned char* distanceField, const unsigned char* image, int width, int height, size_t rowBytes) argument
/external/skia/src/gpu/
H A DGrAtlas.cpp121 size_t rowBytes = fBytesPerPixel*fRects->width(); local
123 dataPtr += rowBytes*fDirtyRect.fTop;
127 rowBytes, GrContext::kDontFlush_PixelOpsFlag);
H A DGrBatchAtlas.cpp49 bool addSubImage(int width, int height, const void* image, SkIPoint16* loc, size_t rowBytes) {
65 memcpy(dataPtr, imagePtr, rowBytes);
67 imagePtr += rowBytes;
97 size_t rowBytes = fBytesPerPixel * fRects->width(); local
99 dataPtr += rowBytes * fDirtyRect.fTop;
104 fTexture->config(), dataPtr, rowBytes);
H A DGrBatchTarget.h46 * @param rowBytes number of bytes between consecutive rows. Zero
52 size_t rowBytes) {
54 rowBytes);
49 writeTexturePixels(GrTexture* texture, int left, int top, int width, int height, GrPixelConfig config, const void* buffer, size_t rowBytes) argument
H A DGrGpu.cpp67 const void* srcData, size_t rowBytes) {
121 tex = this->onCreateTexture(desc, lifeCycle, srcData, rowBytes);
227 size_t rowBytes) {
230 config, buffer, rowBytes);
236 size_t rowBytes) {
239 config, buffer, rowBytes)) {
66 createTexture(const GrSurfaceDesc& origDesc, bool budgeted, const void* srcData, size_t rowBytes) argument
224 readPixels(GrRenderTarget* target, int left, int top, int width, int height, GrPixelConfig config, void* buffer, size_t rowBytes) argument
233 writeTexturePixels(GrTexture* texture, int left, int top, int width, int height, GrPixelConfig config, const void* buffer, size_t rowBytes) argument
/external/skia/src/images/
H A DSkDecodingImageGenerator.cpp42 void* pixels, size_t rowBytes, const Options&,
44 bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
59 size_t rowBytes)
62 , fRowBytes(rowBytes)
148 void* pixels, size_t rowBytes, const Options& options, SkPMColor ctableEntries[],
170 TargetAllocator allocator(fInfo, pixels, rowBytes);
212 size_t rowBytes[3], SkYUVColorSpace* colorSpace) {
222 return decoder->decodeYUV8Planes(fStream, sizes, planes, rowBytes, colorSpace);
57 TargetAllocator(const SkImageInfo& info, void* target, size_t rowBytes) argument
147 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options& options, SkPMColor ctableEntries[], int* ctableCount) argument
211 onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], SkYUVColorSpace* colorSpace) argument
H A DSkImageDecoder.cpp269 size_t rowBytes[3], SkYUVColorSpace* colorSpace) {
273 return this->onDecodeYUV8Planes(stream, componentSizes, planes, rowBytes, colorSpace);
268 decodeYUV8Planes(SkStream* stream, SkISize componentSizes[3], void* planes[3], size_t rowBytes[3], SkYUVColorSpace* colorSpace) argument
H A DSkImageDecoder_libgif.cpp211 size_t rowBytes = bm->rowBytes(); local
222 addr += rowBytes;
/external/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp148 bitmap->rowBytes(), colorSpace, info, dataRef,
228 bitsPerComponent, bitmap.rowBytes(),
243 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* pixels, argument
262 rowBytes, cs, cg_bitmap_info);
287 if (!SkCopyPixelsFromCGImage(tmp.info(), tmp.rowBytes(), tmp.getPixels(), image)) {
/external/skia/src/opts/
H A DSkTextureCompression_opts_neon.cpp150 static void compress_r11eac_blocks(uint64_t* dst, const uint8_t* src, size_t rowBytes) { argument
154 const uint8_t *const src2 = src + rowBytes;
155 const uint8_t *const src3 = src + 2*rowBytes;
156 const uint8_t *const src4 = src + 3*rowBytes;
211 int width, int height, size_t rowBytes) {
220 width, height, rowBytes,
233 compress_r11eac_blocks(encPtr, src + 4*x, rowBytes);
236 src += 4 * rowBytes;
210 CompressA8toR11EAC_NEON(uint8_t* dst, const uint8_t* src, int width, int height, size_t rowBytes) argument

Completed in 258 milliseconds

1234