Home
last modified time | relevance | path

Searched refs:rowBytes (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/external/chromium_org/third_party/skia/src/core/
DSkImageGenerator.cpp19 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, in getPixels() argument
27 if (rowBytes < info.minRowBytes()) { in getPixels()
43 bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount); in getPixels()
51 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() argument
56 return this->getPixels(info, pixels, rowBytes, NULL, NULL); in getPixels()
60 bool SkImageGenerator::getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], in getYUV8Planes()
66 bool isValidWithPlanes = (planes) && (rowBytes) && in getYUV8Planes()
68 (0 != rowBytes[0]) && (0 != rowBytes[1]) && (0 != rowBytes[2])); in getYUV8Planes()
72 ((NULL == rowBytes) || in getYUV8Planes()
73 ((0 == rowBytes[0]) && (0 == rowBytes[1]) && (0 == rowBytes[2]))); in getYUV8Planes()
[all …]
DSkMallocPixelRef.cpp42 size_t rowBytes, in NewDirect() argument
48 (info, addr, rowBytes, ctable, NULL, NULL)); in NewDirect()
67 int32_t rowBytes; in NewAllocate() local
69 rowBytes = SkToS32(requestedRowBytes); in NewAllocate()
71 rowBytes = minRB; in NewAllocate()
74 int64_t bigSize = (int64_t)info.height() * rowBytes; in NewAllocate()
80 SkASSERT(size >= info.getSafeSize(rowBytes)); in NewAllocate()
87 (info, addr, rowBytes, ctable, in NewAllocate()
92 size_t rowBytes, in NewWithProc() argument
101 (info, addr, rowBytes, ctable, proc, context)); in NewWithProc()
[all …]
DSkBitmap_scroll.cpp67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed in scrollRect() local
70 src -= dy * rowBytes; in scrollRect()
73 dst += dy * rowBytes; in scrollRect()
76 src += (height - 1) * rowBytes; in scrollRect()
77 dst += (height - 1) * rowBytes; in scrollRect()
79 rowBytes = -rowBytes; in scrollRect()
99 dst += rowBytes; in scrollRect()
100 src += rowBytes; in scrollRect()
DSkDevice.cpp150 bool SkBaseDevice::readPixels(const SkImageInfo& info, void* dstP, size_t rowBytes, int x, int y) { in readPixels() argument
154 SkASSERT(rowBytes >= info.minRowBytes()); in readPixels()
161 return this->onReadPixels(info, dstP, rowBytes, x, y); in readPixels()
164 bool SkBaseDevice::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, in writePixels() argument
169 SkASSERT(rowBytes >= info.minRowBytes()); in writePixels()
176 return this->onWritePixels(info, pixels, rowBytes, x, y); in writePixels()
187 void* SkBaseDevice::accessPixels(SkImageInfo* info, size_t* rowBytes) { in accessPixels() argument
193 if (NULL == rowBytes) { in accessPixels()
194 rowBytes = &tmpRowBytes; in accessPixels()
196 return this->onAccessPixels(info, rowBytes); in accessPixels()
[all …]
/external/skia/src/core/
DSkMallocPixelRef.cpp43 size_t rowBytes, in NewDirect() argument
49 (info, addr, rowBytes, ctable, NULL, NULL)); in NewDirect()
68 int32_t rowBytes; in NewAllocate() local
70 rowBytes = SkToS32(requestedRowBytes); in NewAllocate()
72 rowBytes = minRB; in NewAllocate()
75 int64_t bigSize = (int64_t)info.fHeight * rowBytes; in NewAllocate()
81 SkASSERT(size >= info.getSafeSize(rowBytes)); in NewAllocate()
88 (info, addr, rowBytes, ctable, in NewAllocate()
93 size_t rowBytes, in NewWithProc() argument
102 (info, addr, rowBytes, ctable, proc, context)); in NewWithProc()
[all …]
DSkBitmap_scroll.cpp67 int rowBytes = (int)this->rowBytes(); // need rowBytes to be signed in scrollRect() local
70 src -= dy * rowBytes; in scrollRect()
73 dst += dy * rowBytes; in scrollRect()
76 src += (height - 1) * rowBytes; in scrollRect()
77 dst += (height - 1) * rowBytes; in scrollRect()
79 rowBytes = -rowBytes; in scrollRect()
99 dst += rowBytes; in scrollRect()
100 src += rowBytes; in scrollRect()
DSkDevice.cpp80 bool SkBaseDevice::readPixels(const SkImageInfo& info, void* dstP, size_t rowBytes, int x, int y) { in readPixels() argument
84 SkASSERT(rowBytes >= info.minRowBytes()); in readPixels()
91 return this->onReadPixels(info, dstP, rowBytes, x, y); in readPixels()
94 bool SkBaseDevice::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, in writePixels() argument
99 SkASSERT(rowBytes >= info.minRowBytes()); in writePixels()
106 return this->onWritePixels(info, pixels, rowBytes, x, y); in writePixels()
117 void* SkBaseDevice::accessPixels(SkImageInfo* info, size_t* rowBytes) { in accessPixels() argument
123 if (NULL == rowBytes) { in accessPixels()
124 rowBytes = &tmpRowBytes; in accessPixels()
126 return this->onAccessPixels(info, rowBytes); in accessPixels()
[all …]
DSkImageGenerator.cpp19 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, in getPixels() argument
27 if (rowBytes < info.minRowBytes()) { in getPixels()
43 bool success = this->onGetPixels(info, pixels, rowBytes, ctable, ctableCount); in getPixels()
51 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() argument
56 return this->getPixels(info, pixels, rowBytes, NULL, NULL); in getPixels()
/external/skia/src/image/
DSkImage_Raster.cpp17 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()
63 SkImage_Raster(const SkImageInfo&, SkPixelRef*, size_t rowBytes);
92 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes) in SkImage_Raster() argument
99 fBitmap.installPixels(info, addr, rowBytes, ctable, release_data, data); in SkImage_Raster()
104 SkImage_Raster::SkImage_Raster(const Info& info, SkPixelRef* pr, size_t rowBytes) in SkImage_Raster() argument
107 fBitmap.setInfo(info, rowBytes); in SkImage_Raster()
142 *rowBytesPtr = fBitmap.rowBytes(); in onPeekPixels()
153 SkImage* SkImage::NewRasterCopy(const SkImageInfo& info, const void* pixels, size_t rowBytes) { in NewRasterCopy() argument
[all …]
DSkSurface_Raster.cpp39 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { in Valid() argument
57 if (kIgnoreRowBytesValue == rowBytes) { in Valid()
62 if (minRB > rowBytes) { in Valid()
66 size_t alignedRowBytes = rowBytes >> shift << shift; in Valid()
67 if (alignedRowBytes != rowBytes) { in Valid()
71 uint64_t size = sk_64_mul(info.fHeight, rowBytes); in Valid()
139 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) { in NewRasterDirect() argument
140 if (!SkSurface_Raster::Valid(info, rowBytes)) { in NewRasterDirect()
147 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes)); in NewRasterDirect()
/external/chromium_org/third_party/skia/src/image/
DSkImage_Raster.cpp17 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.height() * rowBytes; in ValidArgs()
64 SkImage_Raster(const SkImageInfo&, SkPixelRef*, size_t rowBytes);
103 SkImage_Raster::SkImage_Raster(const Info& info, SkData* data, size_t rowBytes) in SkImage_Raster() argument
110 fBitmap.installPixels(info, addr, rowBytes, ctable, release_data, data); in SkImage_Raster()
115 SkImage_Raster::SkImage_Raster(const Info& info, SkPixelRef* pr, size_t rowBytes) in SkImage_Raster() argument
118 fBitmap.setInfo(info, rowBytes); in SkImage_Raster()
157 *rowBytesPtr = fBitmap.rowBytes(); in onPeekPixels()
168 SkImage* SkImage::NewRasterCopy(const SkImageInfo& info, const void* pixels, size_t rowBytes) { in NewRasterCopy() argument
[all …]
DSkSurface_Raster.cpp41 bool SkSurface_Raster::Valid(const SkImageInfo& info, size_t rowBytes) { in Valid() argument
59 if (kIgnoreRowBytesValue == rowBytes) { in Valid()
64 if (minRB > rowBytes) { in Valid()
68 size_t alignedRowBytes = rowBytes >> shift << shift; in Valid()
69 if (alignedRowBytes != rowBytes) { in Valid()
73 uint64_t size = sk_64_mul(info.height(), rowBytes); in Valid()
159 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, in NewRasterDirect() argument
161 return NewRasterDirectReleaseProc(info, pixels, rowBytes, NULL, NULL, props); in NewRasterDirect()
/external/chromium_org/third_party/skia/tests/
DMallocPixelRefTest.cpp33 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST() local
34 size_t size = info.getSafeSize(rowBytes); in DEF_TEST()
37 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data)); in DEF_TEST()
42 size_t rowBytes = info.minRowBytes() + 2; in DEF_TEST() local
43 size_t size = info.getSafeSize(rowBytes) - 1; in DEF_TEST()
46 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, data)); in DEF_TEST()
50 size_t rowBytes = info.minRowBytes() + 7; in DEF_TEST() local
51 size_t size = info.getSafeSize(rowBytes) + 9; in DEF_TEST()
55 SkMallocPixelRef::NewDirect(info, memory.get(), rowBytes, NULL)); in DEF_TEST()
61 SkMallocPixelRef::NewAllocate(info, rowBytes, NULL)); in DEF_TEST()
[all …]
DImageGeneratorTest.cpp18 size_t rowBytes[3] = { 0 }; in DEF_TEST() local
25 ig.getYUV8Planes(sizes, NULL, rowBytes, NULL); in DEF_TEST()
26 ig.getYUV8Planes(sizes, planes, rowBytes, NULL); in DEF_TEST()
27 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace); in DEF_TEST()
31 rowBytes[0] = rowBytes[1] = rowBytes[2] = 250; in DEF_TEST()
33 ig.getYUV8Planes(sizes, planes, rowBytes, &colorSpace); in DEF_TEST()
DPathUtilsTest.cpp61 int w, int h, int rowBytes){ in binary_to_skbitmap() argument
67 const char* curLine = &bin_bmp[y * rowBytes]; in binary_to_skbitmap()
110 const char* bin_bmp, int w, int h, int rowBytes){ in test_path() argument
113 SkPathUtils::BitsToPath_Path(&path, bin_bmp, w, h, rowBytes); in test_path()
120 const char* bin_bmp, int w, int h, int rowBytes){ in test_region() argument
123 SkPathUtils::BitsToPath_Region(&path, bin_bmp, w, h, rowBytes); in test_region()
131 const int h = 8, rowBytes = 4; in DEF_TEST() local
133 char bits[ h * rowBytes ]; in DEF_TEST()
140 fill_random_bits( h * rowBytes, binBmp); // generate random bitmap in DEF_TEST()
146 binary_to_skbitmap(binBmp, &bmpTruth, w[i], h, rowBytes); in DEF_TEST()
[all …]
DBitmapTest.cpp20 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
22 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
25 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
28 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); in test_allocpixels()
30 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); in test_allocpixels()
33 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); in test_allocpixels()
37 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
40 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
/external/skia/tests/
DMallocPixelRefTest.cpp33 size_t rowBytes = info.minRowBytes() - 1; in DEF_TEST() local
34 size_t size = info.getSafeSize(rowBytes); in DEF_TEST()
38 SkMallocPixelRef::NewWithData(info, rowBytes, in DEF_TEST()
44 size_t rowBytes = info.minRowBytes() + 2; in DEF_TEST() local
45 size_t size = info.getSafeSize(rowBytes) - 1; in DEF_TEST()
49 SkMallocPixelRef::NewWithData(info, rowBytes, NULL, in DEF_TEST()
54 size_t rowBytes = info.minRowBytes() + 7; in DEF_TEST() local
55 size_t size = info.getSafeSize(rowBytes) + 9; in DEF_TEST()
59 SkMallocPixelRef::NewDirect(info, memory.get(), rowBytes, NULL)); in DEF_TEST()
65 SkMallocPixelRef::NewAllocate(info, rowBytes, NULL)); in DEF_TEST()
[all …]
DPathUtilsTest.cpp61 int w, int h, int rowBytes){ in binary_to_skbitmap() argument
67 const char* curLine = &bin_bmp[y * rowBytes]; in binary_to_skbitmap()
110 const char* bin_bmp, int w, int h, int rowBytes){ in test_path() argument
113 SkPathUtils::BitsToPath_Path(&path, bin_bmp, w, h, rowBytes); in test_path()
120 const char* bin_bmp, int w, int h, int rowBytes){ in test_region() argument
123 SkPathUtils::BitsToPath_Region(&path, bin_bmp, w, h, rowBytes); in test_region()
131 const int h = 8, rowBytes = 4; in DEF_TEST() local
133 char bits[ h * rowBytes ]; in DEF_TEST()
140 fill_random_bits( h * rowBytes, binBmp); // generate random bitmap in DEF_TEST()
146 binary_to_skbitmap(binBmp, &bmpTruth, w[i], h, rowBytes); in DEF_TEST()
[all …]
/external/chromium_org/third_party/skia/include/core/
DSkImageGenerator.h54 virtual bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() argument
55 return this->onGetPixels(info, pixels, rowBytes, NULL, NULL); in getPixels()
104 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
110 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
124 bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
131 void* pixels, size_t rowBytes,
133 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]);
134 virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
DSkMallocPixelRef.h31 size_t rowBytes, SkColorTable*);
44 size_t rowBytes, SkColorTable*);
57 size_t rowBytes, SkColorTable*,
72 size_t rowBytes,
81 size_t rowBytes,
/external/skia/src/opts/
DSkBlitRect_opts_SSE2.cpp18 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueNarrow_SSE2() argument
40 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueNarrow_SSE2()
52 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueWide_SSE2() argument
109 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueWide_SSE2()
115 size_t rowBytes, uint32_t color) { in ColorRect32_SSE2() argument
124 rowBytes, color); in ColorRect32_SSE2()
127 rowBytes, color); in ColorRect32_SSE2()
130 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color); in ColorRect32_SSE2()
/external/chromium_org/third_party/skia/src/opts/
DSkBlitRect_opts_SSE2.cpp18 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueNarrow_SSE2() argument
40 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueNarrow_SSE2()
52 size_t rowBytes, uint32_t color) { in BlitRect32_OpaqueWide_SSE2() argument
109 destination = (uint32_t*)((char*)destination + rowBytes); in BlitRect32_OpaqueWide_SSE2()
115 size_t rowBytes, uint32_t color) { in ColorRect32_SSE2() argument
124 rowBytes, color); in ColorRect32_SSE2()
127 rowBytes, color); in ColorRect32_SSE2()
130 SkBlitRow::ColorRect32(destination, width, height, rowBytes, color); in ColorRect32_SSE2()
/external/chromium_org/third_party/skia/src/utils/
DSkTextureCompressor_LATC.cpp87 int width, int height, int rowBytes, in compress_4x4_a8_to_64bit() argument
103 memcpy(block + k*4, src + k*rowBytes + 4*x, 4); in compress_4x4_a8_to_64bit()
110 src += 4 * rowBytes; in compress_4x4_a8_to_64bit()
352 typedef uint64_t (*PackIndicesProc)(const uint8_t* alpha, int rowBytes);
354 static void compress_a8_latc_block(uint8_t** dstPtr, const uint8_t* src, int rowBytes) { in compress_a8_latc_block() argument
356 SkEndian_SwapLE64(0xFF | (packIndicesProc(src, rowBytes) << 16)); in compress_a8_latc_block()
360 inline uint64_t PackRowMajor(const uint8_t *indices, int rowBytes) { in PackRowMajor() argument
363 const uint32_t idx = *(reinterpret_cast<const uint32_t*>(indices + i*rowBytes)); in PackRowMajor()
369 inline uint64_t PackColumnMajor(const uint8_t *indices, int rowBytes) { in PackColumnMajor() argument
375 transposed[j*4+i] = indices[i*rowBytes + j]; in PackColumnMajor()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DImageFrameGenerator.cpp44 ExternalMemoryAllocator(const SkImageInfo& info, void* pixels, size_t rowBytes) in ExternalMemoryAllocator() argument
47 , m_rowBytes(rowBytes) in ExternalMemoryAllocator()
57 if (info != m_info || m_rowBytes != dst->rowBytes()) in allocPixelRef()
115 …rameGenerator::decodeAndScale(const SkImageInfo& info, size_t index, void* pixels, size_t rowBytes) in decodeAndScale() argument
131 m_externalAllocator = adoptPtr(new ExternalMemoryAllocator(info, pixels, rowBytes)); in decodeAndScale()
148 result = bitmap.copyPixelsTo(pixels, rowBytes * info.fHeight, rowBytes); in decodeAndScale()
152 bool ImageFrameGenerator::decodeToYUV(SkISize componentSizes[3], void* planes[3], size_t rowBytes[3… in decodeToYUV()
165 || !rowBytes || !rowBytes[0] || !rowBytes[1] || !rowBytes[2]) { in decodeToYUV()
182 OwnPtr<ImagePlanes> imagePlanes = adoptPtr(new ImagePlanes(planes, rowBytes)); in decodeToYUV()
/external/skia/include/core/
DSkImageGenerator.h60 virtual bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() argument
61 return this->onGetPixels(info, pixels, rowBytes, NULL, NULL); in getPixels()
110 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
116 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
123 void* pixels, size_t rowBytes,

12345678910>>...14