/external/skia/src/image/ |
D | SkImage_Raster.cpp | 17 static bool ValidArgs(const Info& info, size_t rowBytes) { in ValidArgs() argument 40 if (rowBytes < SkImageMinRowBytes(info)) { in ValidArgs() 44 int64_t size = (int64_t)info.fHeight * rowBytes; in ValidArgs() 61 SkImage_Raster(const SkImageInfo&, SkPixelRef*, size_t rowBytes); 85 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes) in SkImage_Raster() argument 87 fBitmap.setConfig(info, rowBytes); in SkImage_Raster() 92 SkImage_Raster::SkImage_Raster(const Info& info, SkPixelRef* pr, size_t rowBytes) in SkImage_Raster() argument 96 fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes, info.fAlphaType); in SkImage_Raster() 117 SkImage* SkImage::NewRasterCopy(const SkImageInfo& info, const void* pixels, size_t rowBytes) { in NewRasterCopy() argument 118 if (!SkImage_Raster::ValidArgs(info, rowBytes)) { in NewRasterCopy() [all …]
|
D | SkSurface_Raster.cpp | 39 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { in Valid() argument 61 if (kIgnoreRowBytesValue == rowBytes) { in Valid() 66 if (minRB > rowBytes) { in Valid() 70 size_t alignedRowBytes = rowBytes >> shift << shift; in Valid() 71 if (alignedRowBytes != rowBytes) { in Valid() 75 uint64_t size = (uint64_t)info.fHeight * rowBytes; in Valid() 142 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) { in NewRasterDirect() argument 143 if (!SkSurface_Raster::Valid(info, rowBytes)) { in NewRasterDirect() 150 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes)); in NewRasterDirect()
|
/external/chromium_org/third_party/skia/src/image/ |
D | SkImage_Raster.cpp | 17 static bool ValidArgs(const Info& info, size_t rowBytes) { in ValidArgs() argument 40 if (rowBytes < SkImageMinRowBytes(info)) { in ValidArgs() 44 int64_t size = (int64_t)info.fHeight * rowBytes; in ValidArgs() 61 SkImage_Raster(const SkImageInfo&, SkPixelRef*, size_t rowBytes); 85 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes) in SkImage_Raster() argument 87 fBitmap.setConfig(info, rowBytes); in SkImage_Raster() 92 SkImage_Raster::SkImage_Raster(const Info& info, SkPixelRef* pr, size_t rowBytes) in SkImage_Raster() argument 96 fBitmap.setConfig(config, info.fWidth, info.fHeight, rowBytes, info.fAlphaType); in SkImage_Raster() 117 SkImage* SkImage::NewRasterCopy(const SkImageInfo& info, const void* pixels, size_t rowBytes) { in NewRasterCopy() argument 118 if (!SkImage_Raster::ValidArgs(info, rowBytes)) { in NewRasterCopy() [all …]
|
D | SkSurface_Raster.cpp | 39 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { in Valid() argument 61 if (kIgnoreRowBytesValue == rowBytes) { in Valid() 66 if (minRB > rowBytes) { in Valid() 70 size_t alignedRowBytes = rowBytes >> shift << shift; in Valid() 71 if (alignedRowBytes != rowBytes) { in Valid() 75 uint64_t size = (uint64_t)info.fHeight * rowBytes; in Valid() 142 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) { in NewRasterDirect() argument 143 if (!SkSurface_Raster::Valid(info, rowBytes)) { in NewRasterDirect() 150 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes)); in NewRasterDirect()
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkBitmap_scroll.cpp | 85 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed in scrollRect() local 88 src -= dy * rowBytes; in scrollRect() 91 dst += dy * rowBytes; in scrollRect() 94 src += (height - 1) * rowBytes; in scrollRect() 95 dst += (height - 1) * rowBytes; in scrollRect() 97 rowBytes = -rowBytes; in scrollRect() 117 dst += rowBytes; in scrollRect() 118 src += rowBytes; in scrollRect()
|
D | SkMallocPixelRef.cpp | 37 size_t rowBytes, in NewDirect() argument 42 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, false)); in NewDirect() 60 int32_t rowBytes; in NewAllocate() local 62 rowBytes = requestedRowBytes; in NewAllocate() 64 rowBytes = minRB; in NewAllocate() 68 bigSize.setMul(info.fHeight, rowBytes); in NewAllocate() 79 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, true)); in NewAllocate() 85 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument 91 SkASSERT(rowBytes >= info.minRowBytes()); in SkMallocPixelRef() 99 fRB = rowBytes; in SkMallocPixelRef()
|
D | SkBitmap.cpp | 188 Sk64 rowBytes; in ComputeRowBytes() local 189 rowBytes.setZero(); in ComputeRowBytes() 196 rowBytes.set(width); in ComputeRowBytes() 200 rowBytes.set(width); in ComputeRowBytes() 201 rowBytes.shiftLeft(1); in ComputeRowBytes() 204 rowBytes.set(width); in ComputeRowBytes() 205 rowBytes.shiftLeft(2); in ComputeRowBytes() 211 return isPos32Bits(rowBytes) ? rowBytes.get32() : 0; in ComputeRowBytes() 228 size_t rowBytes) { in ComputeSafeSize64() argument 236 sizeAllButLastRow.setMul(height - 1, SkToS32(rowBytes)); in ComputeSafeSize64() [all …]
|
D | SkSpriteBlitter_ARGB32.cpp | 42 size_t dstRB = fDevice->rowBytes(); in blitRect() 43 size_t srcRB = fSource->rowBytes(); in blitRect() 130 size_t dstRB = fDevice->rowBytes(); in blitRect() 131 size_t srcRB = fSource->rowBytes(); in blitRect() 177 size_t dstRB = fDevice->rowBytes(); in blitRect() 178 size_t srcRB = fSource->rowBytes(); in blitRect() 224 size_t dstRB = fDevice->rowBytes(); in blitRect() 225 size_t srcRB = fSource->rowBytes(); in blitRect() 253 size_t dstRB = fDevice->rowBytes(); in blitRect() 254 size_t srcRB = fSource->rowBytes(); in blitRect()
|
D | SkMipMap.cpp | 28 p += src.rowBytes() >> 2; in downsampleby2_proc32() 66 p += src.rowBytes() >> 1; in downsampleby2_proc16() 101 p += src.rowBytes() >> 1; in downsampleby2_proc4444() 183 uint32_t rowBytes; in Build() local 189 rowBytes = SkToU32(SkBitmap::ComputeRowBytes(config, width)); in Build() 194 levels[i].fRowBytes = rowBytes; in Build() 198 dstBM.setConfig(config, width, height, rowBytes); in Build() 210 addr += height * rowBytes; in Build()
|
/external/skia/src/core/ |
D | SkBitmap_scroll.cpp | 85 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed in scrollRect() local 88 src -= dy * rowBytes; in scrollRect() 91 dst += dy * rowBytes; in scrollRect() 94 src += (height - 1) * rowBytes; in scrollRect() 95 dst += (height - 1) * rowBytes; in scrollRect() 97 rowBytes = -rowBytes; in scrollRect() 117 dst += rowBytes; in scrollRect() 118 src += rowBytes; in scrollRect()
|
D | SkMallocPixelRef.cpp | 37 size_t rowBytes, in NewDirect() argument 42 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, false)); in NewDirect() 60 int32_t rowBytes; in NewAllocate() local 62 rowBytes = requestedRowBytes; in NewAllocate() 64 rowBytes = minRB; in NewAllocate() 68 bigSize.setMul(info.fHeight, rowBytes); in NewAllocate() 79 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, true)); in NewAllocate() 85 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument 91 SkASSERT(rowBytes >= info.minRowBytes()); in SkMallocPixelRef() 99 fRB = rowBytes; in SkMallocPixelRef()
|
D | SkBitmap.cpp | 188 Sk64 rowBytes; in ComputeRowBytes() local 189 rowBytes.setZero(); in ComputeRowBytes() 196 rowBytes.set(width); in ComputeRowBytes() 200 rowBytes.set(width); in ComputeRowBytes() 201 rowBytes.shiftLeft(1); in ComputeRowBytes() 204 rowBytes.set(width); in ComputeRowBytes() 205 rowBytes.shiftLeft(2); in ComputeRowBytes() 211 return isPos32Bits(rowBytes) ? rowBytes.get32() : 0; in ComputeRowBytes() 228 size_t rowBytes) { in ComputeSafeSize64() argument 236 sizeAllButLastRow.setMul(height - 1, SkToS32(rowBytes)); in ComputeSafeSize64() [all …]
|
D | SkSpriteBlitter_ARGB32.cpp | 42 size_t dstRB = fDevice->rowBytes(); in blitRect() 43 size_t srcRB = fSource->rowBytes(); in blitRect() 130 size_t dstRB = fDevice->rowBytes(); in blitRect() 131 size_t srcRB = fSource->rowBytes(); in blitRect() 177 size_t dstRB = fDevice->rowBytes(); in blitRect() 178 size_t srcRB = fSource->rowBytes(); in blitRect() 224 size_t dstRB = fDevice->rowBytes(); in blitRect() 225 size_t srcRB = fSource->rowBytes(); in blitRect() 253 size_t dstRB = fDevice->rowBytes(); in blitRect() 254 size_t srcRB = fSource->rowBytes(); in blitRect()
|
D | SkMipMap.cpp | 28 p += src.rowBytes() >> 2; in downsampleby2_proc32() 66 p += src.rowBytes() >> 1; in downsampleby2_proc16() 101 p += src.rowBytes() >> 1; in downsampleby2_proc4444() 183 uint32_t rowBytes; in Build() local 189 rowBytes = SkToU32(SkBitmap::ComputeRowBytes(config, width)); in Build() 194 levels[i].fRowBytes = rowBytes; in Build() 198 dstBM.setConfig(config, width, height, rowBytes); in Build() 210 addr += height * rowBytes; in Build()
|
/external/skia/tests/ |
D | PathUtilsTest.cpp | 62 int w, int h, int rowBytes){ in binary_to_skbitmap() argument 69 const char* curLine = &bin_bmp[y * rowBytes]; in binary_to_skbitmap() 113 const char* bin_bmp, int w, int h, int rowBytes){ in test_path() argument 116 SkPathUtils::BitsToPath_Path(&path, bin_bmp, w, h, rowBytes); in test_path() 123 const char* bin_bmp, int w, int h, int rowBytes){ in test_region() argument 126 SkPathUtils::BitsToPath_Region(&path, bin_bmp, w, h, rowBytes); in test_region() 134 const int h = 8, rowBytes = 4; in DEF_TEST() local 136 char bits[ h * rowBytes ]; in DEF_TEST() 143 fill_random_bits( h * rowBytes, binBmp); // generate random bitmap in DEF_TEST() 149 binary_to_skbitmap(binBmp, &bmpTruth, w[i], h, rowBytes); in DEF_TEST() [all …]
|
/external/skia/src/opts/ |
D | SkBlitRect_opts_SSE2.cpp | 19 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueNarrow_SSE2() argument 41 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueNarrow_SSE2() 53 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueWide_SSE2() argument 110 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueWide_SSE2() 116 size_t rowBytes, uint32_t color) { in ColorRect32_SSE2() argument 125 rowBytes, color); in ColorRect32_SSE2() 128 rowBytes, color); in ColorRect32_SSE2() 131 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color); in ColorRect32_SSE2()
|
/external/chromium_org/third_party/skia/src/opts/ |
D | SkBlitRect_opts_SSE2.cpp | 19 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueNarrow_SSE2() argument 41 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueNarrow_SSE2() 53 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueWide_SSE2() argument 110 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueWide_SSE2() 116 size_t rowBytes, uint32_t color) { in ColorRect32_SSE2() argument 125 rowBytes, color); in ColorRect32_SSE2() 128 rowBytes, color); in ColorRect32_SSE2() 131 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color); in ColorRect32_SSE2()
|
/external/skia/src/effects/ |
D | SkEmbossMask.cpp | 99 int rowBytes = mask->fRowBytes; in Emboss() local 105 int next_row = neq_to_mask(y, maxy) & rowBytes; in Emboss() 158 alpha += rowBytes; in Emboss() 159 multiply += rowBytes; in Emboss() 160 additive += rowBytes; in Emboss() 161 prev_row = rowBytes; in Emboss()
|
/external/chromium_org/third_party/skia/src/effects/ |
D | SkEmbossMask.cpp | 99 int rowBytes = mask->fRowBytes; in Emboss() local 105 int next_row = neq_to_mask(y, maxy) & rowBytes; in Emboss() 158 alpha += rowBytes; in Emboss() 159 multiply += rowBytes; in Emboss() 160 additive += rowBytes; in Emboss() 161 prev_row = rowBytes; in Emboss()
|
/external/skia/src/animator/ |
D | SkDrawBitmap.cpp | 51 SK_MEMBER(rowBytes, Int), 60 rowBytes(0), width(-1), fColor(0), fColorSet(false) { in SkDrawBitmap() 73 if (rowBytes > 0) in dump() 74 SkDebugf("rowBytes=\"%d\" ", rowBytes); in dump() 90 SkASSERT(rowBytes >= 0); in onEndElement() 91 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement()
|
/external/chromium_org/third_party/skia/src/animator/ |
D | SkDrawBitmap.cpp | 51 SK_MEMBER(rowBytes, Int), 60 rowBytes(0), width(-1), fColor(0), fColorSet(false) { in SkDrawBitmap() 73 if (rowBytes > 0) in dump() 74 SkDebugf("rowBytes=\"%d\" ", rowBytes); in dump() 90 SkASSERT(rowBytes >= 0); in onEndElement() 91 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); in onEndElement()
|
/external/skia/src/images/ |
D | SkDecodingImageGenerator.cpp | 23 TargetAllocator(void* target, size_t rowBytes, const SkImageInfo& info) in TargetAllocator() argument 25 , fRowBytes(rowBytes) in TargetAllocator() 143 size_t rowBytes) { in getPixels() argument 165 if (static_cast<size_t>(bpp * info.fWidth) > rowBytes) { in getPixels() 169 if (!bitmap.setConfig(info, rowBytes)) { in getPixels() 173 TargetAllocator allocator(pixels, rowBytes, info); in getPixels()
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkDecodingImageGenerator.cpp | 23 TargetAllocator(void* target, size_t rowBytes, const SkImageInfo& info) in TargetAllocator() argument 25 , fRowBytes(rowBytes) in TargetAllocator() 143 size_t rowBytes) { in getPixels() argument 165 if (static_cast<size_t>(bpp * info.fWidth) > rowBytes) { in getPixels() 169 if (!bitmap.setConfig(info, rowBytes)) { in getPixels() 173 TargetAllocator allocator(pixels, rowBytes, info); in getPixels()
|
/external/skia/src/gpu/ |
D | GrRenderTarget.cpp | 19 size_t rowBytes, in readPixels() argument 28 config, buffer, rowBytes, in readPixels() 35 size_t rowBytes, in writePixels() argument 44 config, buffer, rowBytes, in writePixels()
|
/external/chromium_org/third_party/skia/src/gpu/ |
D | GrRenderTarget.cpp | 19 size_t rowBytes, in readPixels() argument 28 config, buffer, rowBytes, in readPixels() 35 size_t rowBytes, in writePixels() argument 44 config, buffer, rowBytes, in writePixels()
|