HomeSort by relevance Sort by last modified time
    Searched full:rowbytes (Results 1 - 25 of 441) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/third_party/skia/src/core/
SkBitmap_scroll.cpp 67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed
70 src -= dy * rowBytes;
73 dst += dy * rowBytes;
76 src += (height - 1) * rowBytes;
77 dst += (height - 1) * rowBytes;
78 // now invert rowbytes so we copy backwards in the loop
79 rowBytes = -rowBytes;
    [all...]
SkMallocPixelRef.cpp 43 size_t rowBytes,
49 (info, addr, rowBytes, ctable, NULL, NULL));
65 return NULL; // cannot meet requested rowbytes
68 int32_t rowBytes;
70 rowBytes = SkToS32(requestedRowBytes);
72 rowBytes = minRB;
75 int64_t bigSize = (int64_t)info.fHeight * rowBytes;
81 SkASSERT(size >= info.getSafeSize(rowBytes));
88 (info, addr, rowBytes, ctable,
93 size_t rowBytes,
    [all...]
SkImageGenerator.cpp 19 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
27 if (rowBytes < info.minRowBytes()) {
43 bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount);
51 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) {
56 return this->getPixels(info, pixels, rowBytes, NULL, NULL);
SkDevice.cpp 80 bool SkBaseDevice::readPixels(const SkImageInfo& info, void* dstP, size_t rowBytes, int x, int y) {
84 SkASSERT(rowBytes >= info.minRowBytes());
91 return this->onReadPixels(info, dstP, rowBytes, x, y);
94 bool SkBaseDevice::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes,
99 SkASSERT(rowBytes >= info.minRowBytes());
106 return this->onWritePixels(info, pixels, rowBytes, x, y);
117 void* SkBaseDevice::accessPixels(SkImageInfo* info, size_t* rowBytes) {
123 if (NULL == rowBytes) {
124 rowBytes = &tmpRowBytes;
126 return this->onAccessPixels(info, rowBytes);
    [all...]
  /external/skia/src/core/
SkBitmap_scroll.cpp 67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed
70 src -= dy * rowBytes;
73 dst += dy * rowBytes;
76 src += (height - 1) * rowBytes;
77 dst += (height - 1) * rowBytes;
78 // now invert rowbytes so we copy backwards in the loop
79 rowBytes = -rowBytes;
    [all...]
SkMallocPixelRef.cpp 43 size_t rowBytes,
49 (info, addr, rowBytes, ctable, NULL, NULL));
65 return NULL; // cannot meet requested rowbytes
68 int32_t rowBytes;
70 rowBytes = SkToS32(requestedRowBytes);
72 rowBytes = minRB;
75 int64_t bigSize = (int64_t)info.fHeight * rowBytes;
81 SkASSERT(size >= info.getSafeSize(rowBytes));
88 (info, addr, rowBytes, ctable,
93 size_t rowBytes,
    [all...]
SkImageGenerator.cpp 19 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
27 if (rowBytes < info.minRowBytes()) {
43 bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount);
51 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) {
56 return this->getPixels(info, pixels, rowBytes, NULL, NULL);
SkDevice.cpp 80 bool SkBaseDevice::readPixels(const SkImageInfo& info, void* dstP, size_t rowBytes, int x, int y) {
84 SkASSERT(rowBytes >= info.minRowBytes());
91 return this->onReadPixels(info, dstP, rowBytes, x, y);
94 bool SkBaseDevice::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes,
99 SkASSERT(rowBytes >= info.minRowBytes());
106 return this->onWritePixels(info, pixels, rowBytes, x, y);
117 void* SkBaseDevice::accessPixels(SkImageInfo* info, size_t* rowBytes) {
123 if (NULL == rowBytes) {
124 rowBytes = &tmpRowBytes;
126 return this->onAccessPixels(info, rowBytes);
    [all...]
  /external/chromium_org/third_party/skia/tests/
MallocPixelRefTest.cpp 29 // rowbytes too small.
33 size_t rowBytes = info.minRowBytes() - 1;
34 size_t size = info.getSafeSize(rowBytes);
38 SkMallocPixelRef::NewWithData(info, rowBytes,
40 // rowbytes too small.
44 size_t rowBytes = info.minRowBytes() + 2;
45 size_t size = info.getSafeSize(rowBytes) - 1;
49 SkMallocPixelRef::NewWithData(info, rowBytes, NULL,
54 size_t rowBytes = info.minRowBytes() + 7;
55 size_t size = info.getSafeSize(rowBytes) + 9
    [all...]
PathUtilsTest.cpp 61 int w, int h, int rowBytes){
67 const char* curLine = &bin_bmp[y * rowBytes];
110 const char* bin_bmp, int w, int h, int rowBytes){
113 SkPathUtils::BitsToPath_Path(&path, bin_bmp, w, h, rowBytes);
120 const char* bin_bmp, int w, int h, int rowBytes){
123 SkPathUtils::BitsToPath_Region(&path, bin_bmp, w, h, rowBytes);
131 const int h = 8, rowBytes = 4;
133 char bits[ h * rowBytes ];
140 fill_random_bits( h * rowBytes, binBmp); // generate random bitmap
146 binary_to_skbitmap(binBmp, &bmpTruth, w[i], h, rowBytes);
    [all...]
  /external/skia/tests/
MallocPixelRefTest.cpp 29 // rowbytes too small.
33 size_t rowBytes = info.minRowBytes() - 1;
34 size_t size = info.getSafeSize(rowBytes);
38 SkMallocPixelRef::NewWithData(info, rowBytes,
40 // rowbytes too small.
44 size_t rowBytes = info.minRowBytes() + 2;
45 size_t size = info.getSafeSize(rowBytes) - 1;
49 SkMallocPixelRef::NewWithData(info, rowBytes, NULL,
54 size_t rowBytes = info.minRowBytes() + 7;
55 size_t size = info.getSafeSize(rowBytes) + 9
    [all...]
PathUtilsTest.cpp 61 int w, int h, int rowBytes){
67 const char* curLine = &bin_bmp[y * rowBytes];
110 const char* bin_bmp, int w, int h, int rowBytes){
113 SkPathUtils::BitsToPath_Path(&path, bin_bmp, w, h, rowBytes);
120 const char* bin_bmp, int w, int h, int rowBytes){
123 SkPathUtils::BitsToPath_Region(&path, bin_bmp, w, h, rowBytes);
131 const int h = 8, rowBytes = 4;
133 char bits[ h * rowBytes ];
140 fill_random_bits( h * rowBytes, binBmp); // generate random bitmap
146 binary_to_skbitmap(binBmp, &bmpTruth, w[i], h, rowBytes);
    [all...]
  /external/skia/include/core/
SkMallocPixelRef.h 21 * Return a new SkMallocPixelRef with the provided pixel storage, rowBytes,
31 size_t rowBytes, SkColorTable*);
35 * pixels. If rowBytes are 0, an optimal value will be chosen automatically.
36 * If rowBytes is > 0, then it will be respected, or NULL will be returned
37 * if rowBytes is invalid for the specified info.
44 size_t rowBytes, SkColorTable*);
48 * rowBytes, and optional colortable. On destruction, ReleaseProc
57 size_t rowBytes, SkColorTable*,
63 * SkData, rowBytes, and optional colortable as pixel storage.
72 size_t rowBytes,
    [all...]
  /external/chromium_org/third_party/skia/include/core/
SkMallocPixelRef.h 21 * Return a new SkMallocPixelRef with the provided pixel storage, rowBytes,
31 size_t rowBytes, SkColorTable*);
35 * pixels. If rowBytes are 0, an optimal value will be chosen automatically.
36 * If rowBytes is > 0, then it will be respected, or NULL will be returned
37 * if rowBytes is invalid for the specified info.
44 size_t rowBytes, SkColorTable*);
48 * rowBytes, and optional colortable. On destruction, ReleaseProc
57 size_t rowBytes, SkColorTable*,
63 * SkData, rowBytes, and optional colortable as pixel storage.
72 size_t rowBytes,
    [all...]
  /external/chromium_org/third_party/skia/src/image/
SkImage_Raster.cpp 17 static bool ValidArgs(const Info& info, size_t rowBytes) {
40 if (rowBytes < SkImageMinRowBytes(info)) {
44 int64_t size = (int64_t)info.fHeight * rowBytes;
59 virtual const void* onPeekPixels(SkImageInfo*, size_t* /*rowBytes*/) const SK_OVERRIDE;
63 SkImage_Raster(const SkImageInfo&, SkPixelRef*, size_t rowBytes);
92 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes)
99 fBitmap.installPixels(info, addr, rowBytes, ctable, release_data, data);
104 SkImage_Raster::SkImage_Raster(const Info& info, SkPixelRef* pr, size_t rowBytes)
107 fBitmap.setInfo(info, rowBytes);
142 *rowBytesPtr = fBitmap.rowBytes();
    [all...]
SkSurface_Raster.cpp 39 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) {
57 if (kIgnoreRowBytesValue == rowBytes) {
62 if (minRB > rowBytes) {
66 size_t alignedRowBytes = rowBytes >> shift << shift;
67 if (alignedRowBytes != rowBytes) {
71 uint64_t size = sk_64_mul(info.fHeight, rowBytes);
139 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) {
140 if (!SkSurface_Raster::Valid(info, rowBytes)) {
147 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes));
  /external/skia/src/image/
SkImage_Raster.cpp 17 static bool ValidArgs(const Info& info, size_t rowBytes) {
40 if (rowBytes < SkImageMinRowBytes(info)) {
44 int64_t size = (int64_t)info.fHeight * rowBytes;
59 virtual const void* onPeekPixels(SkImageInfo*, size_t* /*rowBytes*/) const SK_OVERRIDE;
63 SkImage_Raster(const SkImageInfo&, SkPixelRef*, size_t rowBytes);
92 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes)
99 fBitmap.installPixels(info, addr, rowBytes, ctable, release_data, data);
104 SkImage_Raster::SkImage_Raster(const Info& info, SkPixelRef* pr, size_t rowBytes)
107 fBitmap.setInfo(info, rowBytes);
142 *rowBytesPtr = fBitmap.rowBytes();
    [all...]
SkSurface_Raster.cpp 39 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) {
57 if (kIgnoreRowBytesValue == rowBytes) {
62 if (minRB > rowBytes) {
66 size_t alignedRowBytes = rowBytes >> shift << shift;
67 if (alignedRowBytes != rowBytes) {
71 uint64_t size = sk_64_mul(info.fHeight, rowBytes);
139 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) {
140 if (!SkSurface_Raster::Valid(info, rowBytes)) {
147 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes));
  /external/chromium_org/third_party/skia/src/opts/
SkBlitRect_opts_SSE2.h 18 size_t rowBytes, uint32_t color);
SkBlitRect_opts_SSE2.cpp 18 size_t rowBytes, uint32_t color) {
40 destination = (uint32_t*)((char*)destination + rowBytes);
52 size_t rowBytes, uint32_t color) {
109 destination = (uint32_t*)((char*)destination + rowBytes);
115 size_t rowBytes, uint32_t color) {
124 rowBytes, color);
127 rowBytes, color);
130 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color);
  /external/skia/src/opts/
SkBlitRect_opts_SSE2.h 18 size_t rowBytes, uint32_t color);
SkBlitRect_opts_SSE2.cpp 18 size_t rowBytes, uint32_t color) {
40 destination = (uint32_t*)((char*)destination + rowBytes);
52 size_t rowBytes, uint32_t color) {
109 destination = (uint32_t*)((char*)destination + rowBytes);
115 size_t rowBytes, uint32_t color) {
124 rowBytes, color);
127 rowBytes, color);
130 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color);
  /external/chromium_org/content/browser/renderer_host/
software_layer_mac.h 16 withRowBytes:(size_t)rowBytes
  /external/chromium_org/third_party/skia/src/animator/
SkDrawBitmap.cpp 51 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);
92 fBitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType), rowBytes);
  /external/skia/src/animator/
SkDrawBitmap.cpp 51 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);
92 fBitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType), rowBytes);

Completed in 1325 milliseconds

1 2 3 4 5 6 7 8 91011>>