/external/skia/include/private/ |
D | SkTSearch.h | 39 int SkTSearch(const T base[], int count, const K& key, size_t elemSize, LESS& less) in SkTSearch() argument 53 const T* elem = (const T*)((const char*)base + mid * elemSize); in SkTSearch() 61 const T* elem = (const T*)((const char*)base + hi * elemSize); in SkTSearch() 78 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument 80 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch() 90 int SkTSearch(const T base[], int count, const T& target, size_t elemSize) { in SkTSearch() argument 92 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch() 103 int SkTSearch(T* base[], int count, T* target, size_t elemSize) { in SkTSearch() argument 105 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch() 109 size_t target_len, size_t elemSize); [all …]
|
/external/skia/src/core/ |
D | SkTSearch.cpp | 14 size_t elemSize) in index_into_base() argument 16 return *(const char*const*)((const char*)base + index * elemSize); in index_into_base() 20 size_t target_len, size_t elemSize) in SkStrSearch() argument 33 const char* elem = index_into_base(base, mid, elemSize); in SkStrSearch() 44 const char* elem = index_into_base(base, hi, elemSize); in SkStrSearch() 56 size_t elemSize) in SkStrSearch() argument 58 return SkStrSearch(base, count, target, strlen(target), elemSize); in SkStrSearch() 62 size_t len, size_t elemSize) in SkStrLCSearch() argument 68 return SkStrSearch(base, count, tolc.lc(), len, elemSize); in SkStrLCSearch() 72 size_t elemSize) in SkStrLCSearch() argument [all …]
|
D | SkDataTable.cpp | 24 SkDataTable::SkDataTable(const void* array, size_t elemSize, int count, in SkDataTable() argument 29 fElemSize = elemSize; // non-zero signals we use fElems instead of fDir in SkDataTable() 114 SkDataTable* SkDataTable::NewCopyArray(const void* array, size_t elemSize, in NewCopyArray() argument 120 size_t bufferSize = elemSize * count; in NewCopyArray() 124 return new SkDataTable(buffer, elemSize, count, malloc_freeproc, buffer); in NewCopyArray() 127 SkDataTable* SkDataTable::NewArrayProc(const void* array, size_t elemSize, in NewArrayProc() argument 132 return new SkDataTable(array, elemSize, count, proc, ctx); in NewArrayProc()
|
D | SkDeque.cpp | 29 SkDeque::SkDeque(size_t elemSize, int allocCount) in SkDeque() argument 30 : fElemSize(elemSize) in SkDeque() 39 SkDeque::SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount) in SkDeque() argument 40 : fElemSize(elemSize) in SkDeque() 47 if (storageSize >= sizeof(Block) + elemSize) { in SkDeque()
|
/external/opencv3/modules/cudaarithm/src/cuda/ |
D | transpose.cu | 63 const size_t elemSize = src.elemSize(); in transpose() local 65 CV_Assert( elemSize == 1 || elemSize == 4 || elemSize == 8 ); in transpose() 69 if (elemSize == 1) in transpose() 83 else if (elemSize == 4) in transpose()
|
/external/opencv3/modules/core/src/cuda/ |
D | gpu_mat.cu | 63 bool allocate(GpuMat* mat, int rows, int cols, size_t elemSize); 67 bool DefaultAllocator::allocate(GpuMat* mat, int rows, int cols, size_t elemSize) in allocate() argument 71 CV_CUDEV_SAFE_CALL( cudaMallocPitch(&mat->data, &mat->step, elemSize * cols, rows) ); in allocate() 76 CV_CUDEV_SAFE_CALL( cudaMalloc(&mat->data, elemSize * cols * rows) ); in allocate() 77 mat->step = elemSize * cols; in allocate() 127 const size_t esz = elemSize(); in create() 179 …CV_CUDEV_SAFE_CALL( cudaMemcpy2D(data, step, mat.data, mat.step, cols * elemSize(), rows, cudaMemc… in upload() 191 …CV_CUDEV_SAFE_CALL( cudaMemcpy2DAsync(data, step, mat.data, mat.step, cols * elemSize(), rows, cud… in upload() 204 …CV_CUDEV_SAFE_CALL( cudaMemcpy2D(dst.data, dst.step, data, step, cols * elemSize(), rows, cudaMemc… in download() 215 …CV_CUDEV_SAFE_CALL( cudaMemcpy2DAsync(dst.data, dst.step, data, step, cols * elemSize(), rows, cud… in download() [all …]
|
/external/skia/include/core/ |
D | SkDeque.h | 32 explicit SkDeque(size_t elemSize, int allocCount = 1); 33 SkDeque(size_t elemSize, void* storage, size_t storageSize, int allocCount = 1); 38 size_t elemSize() const { return fElemSize; } in elemSize() function
|
D | SkDataTable.h | 88 static SkDataTable* NewCopyArray(const void* array, size_t elemSize, 91 static SkDataTable* NewArrayProc(const void* array, size_t elemSize, 111 SkDataTable(const void* array, size_t elemSize, int count,
|
/external/opencv/cxcore/src/ |
D | cxutils.cpp | 996 icvCopy1D( const void* src, int s, void* dst, int d, int n, int elemSize ) in icvCopy1D() argument 999 switch( elemSize ) in icvCopy1D() 1023 icvShuffle1D( const uchar* src, const int* idx, uchar* dst, int d, int n, int elemSize ) in icvShuffle1D() argument 1026 switch( elemSize ) in icvShuffle1D() 1063 int type = CV_MAT_TYPE(src->type), elemSize = CV_ELEM_SIZE(type); in cvSort() local 1120 tsrc = (uchar*)cvAlloc(len*elemSize); in cvSort() 1136 sstep /= elemSize; in cvSort() 1137 dstep /= elemSize; in cvSort() 1141 icvCopy1D( src->data.ptr + i*elemSize, sstep, tsrc, 1, len, elemSize ); in cvSort() 1146 icvShuffle1D( tsrc, tidx, dptr + i*elemSize, dstep, len, elemSize ); in cvSort() [all …]
|
/external/skia/tests/ |
D | LayerRasterizerTest.cpp | 119 REPORTER_ASSERT(reporter, layersFirstCopy.elemSize() == sizeof(SkLayerRasterizer_Rec)); in DEF_TEST() 120 REPORTER_ASSERT(reporter, layersOneLarger.elemSize() == sizeof(SkLayerRasterizer_Rec)); in DEF_TEST() 121 REPORTER_ASSERT(reporter, layersDetached.elemSize() == sizeof(SkLayerRasterizer_Rec)); in DEF_TEST()
|
D | DequeTest.cpp | 15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count() 21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
|
/external/opencv3/modules/core/src/ |
D | cuda_gpu_mat.cpp | 55 size_t minstep = cols * elemSize(); in GpuMat() 81 size_t minstep = cols * elemSize(); in GpuMat() 129 data += colRange_.start*elemSize(); in GpuMat() 150 data += roi.x * elemSize(); in GpuMat() 208 size_t esz = elemSize(); in locateROI() 236 size_t esz = elemSize(); in adjustROI() 302 const size_t esz = obj.elemSize(); in ensureSizeIsEnoughImpl()
|
D | cuda_stream.cpp | 536 bool allocate(GpuMat* mat, int rows, int cols, size_t elemSize); 575 bool StackAllocator::allocate(GpuMat* mat, int rows, int cols, size_t elemSize) in allocate() argument 584 pitch = alignUp(cols * elemSize, alignment_); in allocate() 590 pitch = elemSize * cols; in allocate() 591 memSize = alignUp(elemSize * cols * rows, 64); in allocate()
|
D | copy.cpp | 297 size_t i, sz[CV_MAX_DIM], dstofs[CV_MAX_DIM], esz = elemSize(); in copyTo() 320 size_t len = sz.width*elemSize(); in copyTo() 350 size_t sz = it.size*elemSize(); in copyTo() 370 size_t esz = colorMask ? elemSize1() : elemSize(); in copyTo() 402 size_t elsize = it.size*elemSize(); in operator =() 418 if (ippsZero_8u(data, static_cast<int>(roisize.width * elemSize())) >= 0) in operator =() 425 roisize.width *= (int)elemSize(); in operator =() 556 size_t esz = elemSize(); in setTo() 883 int esz = (int)src.elemSize(); in repeat() 962 int i, j, k, elemSize = 1; in copyMakeBorder_8u() local [all …]
|
/external/opencv3/modules/core/include/opencv2/core/ |
D | mat.inl.hpp | 705 size_t Mat::elemSize() const in elemSize() function in cv::Mat 930 elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 944 elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 956 CV_DbgAssert( elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 963 CV_DbgAssert( elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 970 CV_DbgAssert( elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 977 CV_DbgAssert( elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 984 CV_DbgAssert( elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 991 CV_DbgAssert( elemSize() == CV_ELEM_SIZE(DataType<_Tp>::type) ); in at() 998 CV_DbgAssert( elemSize() == sizeof(_Tp) ); in begin() [all …]
|
D | cuda.hpp | 105 virtual bool allocate(GpuMat* mat, int rows, int cols, size_t elemSize) = 0; 254 size_t elemSize() const; 405 size_t elemSize() const;
|
/external/opencv3/modules/video/src/ |
D | optflowgf.cpp | 857 idxArg = kernel.set(idxArg, (int)(src.step / src.elemSize())); in gaussianBlurOcl() 859 idxArg = kernel.set(idxArg, (int)(dst.step / dst.elemSize())); in gaussianBlurOcl() 883 idxArg = kernel.set(idxArg, (int)(src.step / src.elemSize())); in gaussianBlur5Ocl() 885 idxArg = kernel.set(idxArg, (int)(dst.step / dst.elemSize())); in gaussianBlur5Ocl() 917 idxArg = kernel.set(idxArg, (int)(src.step / src.elemSize())); in polynomialExpansionOcl() 919 idxArg = kernel.set(idxArg, (int)(dst.step / dst.elemSize())); in polynomialExpansionOcl() 947 idxArg = kernel.set(idxArg, (int)(src.step / src.elemSize())); in boxFilter5Ocl() 949 idxArg = kernel.set(idxArg, (int)(dst.step / dst.elemSize())); in boxFilter5Ocl() 972 idxArg = kernel.set(idxArg, (int)(M.step / M.elemSize())); in updateFlowOcl() 974 idxArg = kernel.set(idxArg, (int)(flowx.step / flowx.elemSize())); in updateFlowOcl() [all …]
|
D | tvl1flow.cpp | 229 idxArg = kernel.set(idxArg, (int)(src.step / src.elemSize()));//src mat step in centeredGradient() 232 idxArg = kernel.set(idxArg, (int)(dx.step/dx.elemSize()));//res mat step in centeredGradient() 248 int I0_step = (int)(I0.step / I0.elemSize()); in warpBackward() 259 idxArg = kernel.set(idxArg, (int)(u1.step / u1.elemSize()));//int u1_step in warpBackward() 266 idxArg = kernel.set(idxArg, (int)(I1w.step / I1w.elemSize()));//I1w_step in warpBackward() 267 idxArg = kernel.set(idxArg, (int)(u2.step / u2.elemSize()));//u2_step in warpBackward() 269 u1_offset_x = (int)(u1_offset_x / u1.elemSize()); in warpBackward() 273 u2_offset_x = (int) (u2_offset_x / u2.elemSize()); in warpBackward() 294 idxArg = kernel.set(idxArg, (int)(I1wx.step/I1wx.elemSize())); //int I1wx_step in estimateU() 303 idxArg = kernel.set(idxArg, (int)(u1.step / u1.elemSize())); //int u1_step in estimateU() [all …]
|
/external/opencv3/modules/cudev/test/ |
D | test_reduction.cu | 233 dst_gold.step = dst_gold.cols * dst_gold.elemSize(); in TEST() 252 dst_gold.step = dst_gold.cols * dst_gold.elemSize(); in TEST() 271 dst_gold.step = dst_gold.cols * dst_gold.elemSize(); in TEST() 290 dst_gold.step = dst_gold.cols * dst_gold.elemSize(); in TEST()
|
/external/opencv3/doc/tutorials/ios/image_manipulation/ |
D | image_manipulation.markdown | 74 NSData *data = [NSData dataWithBytes:cvMat.data length:cvMat.elemSize()*cvMat.total()]; 77 if (cvMat.elemSize() == 1) { 89 8 * cvMat.elemSize(), //bits per pixel
|
/external/opencv3/modules/imgcodecs/src/ |
D | ios_conversions.mm | 56 length:image.elemSize()*image.total()]; 60 if (image.elemSize() == 1) { 73 8 * image.elemSize(),
|
/external/opencv3/modules/imgproc/src/ |
D | accum.cpp | 893 srcstep = static_cast<int>(src.total() * src.elemSize()); in accumulate() 894 dststep = static_cast<int>(dst.total() * dst.elemSize()); in accumulate() 895 maskstep = static_cast<int>(mask.total() * mask.elemSize()); in accumulate() 976 srcstep = static_cast<int>(src.total() * src.elemSize()); in accumulateSquare() 977 dststep = static_cast<int>(dst.total() * dst.elemSize()); in accumulateSquare() 978 maskstep = static_cast<int>(mask.total() * mask.elemSize()); in accumulateSquare() 1062 src1step = static_cast<int>(src1.total() * src1.elemSize()); in accumulateProduct() 1063 src2step = static_cast<int>(src2.total() * src2.elemSize()); in accumulateProduct() 1064 dststep = static_cast<int>(dst.total() * dst.elemSize()); in accumulateProduct() 1065 maskstep = static_cast<int>(mask.total() * mask.elemSize()); in accumulateProduct() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_draw.c | 90 unsigned elemSize = util_format_get_blocksize(ve[i].src_format); in svga_user_buffer_range() local 97 size = vb->stride * (count - 1) + elemSize; in svga_user_buffer_range() 100 size = vb->stride * (count - 1) + elemSize; in svga_user_buffer_range()
|
/external/opencv3/modules/core/test/ |
D | test_hal_core.cpp | 149 size_t asize = size*size*a.elemSize(); in TEST() 150 size_t bsize = size*b.elemSize(); in TEST()
|
/external/opencv3/modules/ts/src/ |
D | ts_func.cpp | 347 size_t planeSize = planes[0].total()*src.elemSize(); in copy() 361 size_t j, k, elemSize = src.elemSize(), total = planes[0].total(); in copy() local 370 for( j = 0; j < total; j++, sptr += elemSize, dptr += elemSize ) in copy() 373 for( k = 0; k < elemSize; k++ ) in copy() 392 size_t j, k, elemSize = dst.elemSize(), planeSize = plane.total()*elemSize; in set() local 394 for( k = 1; k < elemSize; k++ ) in set() 397 bool uniform = k >= elemSize; in set() 406 for( j = 0; j < planeSize; j += elemSize, dptr += elemSize ) in set() 407 for( k = 0; k < elemSize; k++ ) in set() 422 size_t j, k, elemSize = dst.elemSize(), total = planes[0].total(); in set() local [all …]
|