Home
last modified time | relevance | path

Searched refs:elem_size (Results 1 – 25 of 48) sorted by relevance

12

/external/opencv/cxcore/src/
Dcxdatastructs.cpp56 ((block)->data + ((block)->count - 1)*((seq)->elem_size))
58 #define CV_SWAP_ELEMS(a,b,elem_size) \ argument
61 for( k = 0; k < elem_size; k++ ) \
445 cvCreateSeq( int seq_flags, int header_size, int elem_size, CvMemStorage * storage ) in cvCreateSeq() argument
455 if( header_size < (int)sizeof( CvSeq ) || elem_size <= 0 ) in cvCreateSeq()
469 typesize != 0 && typesize != elem_size ) in cvCreateSeq()
474 seq->elem_size = elem_size; in cvCreateSeq()
477 CV_CALL( cvSetSeqBlockSize( seq, (1 << 10)/elem_size )); in cvCreateSeq()
490 int elem_size; in cvSetSeqBlockSize() local
504 elem_size = seq->elem_size; in cvSetSeqBlockSize()
[all …]
Dcxdxt.cpp221 icvDFTInit( int n0, int nf, int* factors, int* itab, int elem_size, void* _wave, int inv_itab ) in icvDFTInit() argument
247 if( elem_size == sizeof(CvComplex64f) ) in icvDFTInit()
368 if( elem_size == sizeof(CvComplex64f) ) in icvDFTInit()
395 assert( elem_size == sizeof(CvComplex32f) ); in icvDFTInit()
1574 int len, int elem_size ) in icvCopyColumn() argument
1582 if( elem_size == sizeof(int) ) in icvCopyColumn()
1587 else if( elem_size == sizeof(int)*2 ) in icvCopyColumn()
1595 else if( elem_size == sizeof(int)*4 ) in icvCopyColumn()
1611 int len, int elem_size ) in icvCopyFrom2Columns() argument
1619 if( elem_size == sizeof(int) ) in icvCopyFrom2Columns()
[all …]
Dcxlogic.cpp198 int elem_size, elem_size1, type, depth; in icvLogicS() local
260 elem_size = CV_ELEM_SIZE(type); in icvLogicS()
283 dy = CV_MAX_LOCAL_SIZE/(elem_size*size.height); in icvLogicS()
289 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size; in icvLogicS()
300 copym_func = icvGetCopyMaskFunc( elem_size ); in icvLogicS()
322 cvSize(tsize.width*elem_size, tsize.height), buf, elem_size1 )); in icvLogicS()
350 int type, elem_size; in icvLogic() local
428 elem_size = CV_ELEM_SIZE(type); in icvLogic()
450 dy = CV_MAX_LOCAL_SIZE/(elem_size*size.height); in icvLogic()
456 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size; in icvLogic()
[all …]
Dcxutils.cpp819 int cont_flag, arr_size, elem_size, cols, step; in cvRandShuffle() local
838 elem_size = CV_ELEM_SIZE(mat->type); in cvRandShuffle()
839 if( elem_size % sizeof_int == 0 && (cont_flag || step % sizeof_int == 0) ) in cvRandShuffle()
843 elem_size /= sizeof_int; in cvRandShuffle()
859 int* p = idata + pair_buf[j]*elem_size, *q = idata + pair_buf[j+1]*elem_size, t; in cvRandShuffle()
860 for( k = 0; k < elem_size; k++ ) in cvRandShuffle()
866 uchar* p = data + pair_buf[j]*elem_size, *q = data + pair_buf[j+1]*elem_size, t; in cvRandShuffle()
867 for( k = 0; k < elem_size; k++ ) in cvRandShuffle()
879 p = idata + row1*step + (idx1 - row1*cols)*elem_size; in cvRandShuffle()
880 q = idata + row2*step + (idx2 - row2*cols)*elem_size; in cvRandShuffle()
[all …]
Dcxarithm.cpp425 int buf_size, elem_size; local
437 elem_size = CV_ELEM_SIZE(type);
439 dy = CV_MAX_LOCAL_SIZE/(elem_size*size.height);
445 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size;
456 copym_func = icvGetCopyMaskFunc( elem_size );
669 int buf_size, elem_size; in cvSubRS() local
681 elem_size = CV_ELEM_SIZE(type); in cvSubRS()
683 dy = CV_MAX_LOCAL_SIZE/(elem_size*size.height); in cvSubRS()
689 buf_size = dstbuf.step ? dstbuf.step*dy : size.width*elem_size; in cvSubRS()
700 copym_func = icvGetCopyMaskFunc( elem_size ); in cvSubRS()
[all …]
Dcxpersistence.cpp198 cvCreateMap( int flags, int header_size, int elem_size, in cvCreateMap() argument
213 CV_CALL( map = (CvGenericHash*)cvCreateSet( flags, header_size, elem_size, storage )); in cvCreateMap()
3120 int elem_size = CV_ELEM_SIZE(elem_type); in cvWriteRawData() local
3123 offset = cvAlign( offset, elem_size ); in cvWriteRawData()
3248 int elem_size = CV_ELEM_SIZE(elem_type); in cvReadRawDataSlice() local
3252 offset = cvAlign( offset, elem_size ); in cvReadRawDataSlice()
3402 int elem_size = node->data.seq->elem_size; in icvWriteCollection() local
3416 CV_NEXT_SEQ_ELEM( elem_size, reader ); in icvWriteCollection()
3876 CV_NEXT_SEQ_ELEM( elements->elem_size, reader ); in icvReadSparseMat()
3884 CV_NEXT_SEQ_ELEM( elements->elem_size, reader ); in icvReadSparseMat()
[all …]
Dcxmatmul.cpp1105 int elem_size = CV_ELEM_SIZE(type); in cvGEMM() local
1114 int work_elem_size = elem_size << (CV_MAT_DEPTH(type) == CV_32F ? 1 : 0); in cvGEMM()
1121 a_step0 = A->step, a_step1 = elem_size; in cvGEMM()
1123 a_step0 = elem_size, a_step1 = A->step; in cvGEMM()
1126 b_step0 = b_step, b_step1 = elem_size; in cvGEMM()
1128 b_step0 = elem_size, b_step1 = b_step; in cvGEMM()
1136 c_step0 = C->step, c_step1 = elem_size; in cvGEMM()
1138 c_step0 = elem_size, c_step1 = C->step; in cvGEMM()
1152 b_buf_size = (dk0+dk0/8+1)*dk0_1*elem_size; in cvGEMM()
1157 a_buf_size = (dm0+dm0/8+1)*((dk0+dk0/8+2)&-2)*elem_size; in cvGEMM()
[all …]
Dcxmatrix.cpp1769 int block_count0, block_count, buf_size, elem_size; in cvProjectPCA() local
1828 elem_size = CV_ELEM_SIZE(avg->type); in cvProjectPCA()
1831 buf_size = block_count0*len*((block_count0 > 1) + 1)*elem_size; in cvProjectPCA()
1847 tmp_data_ptr += block_count0*len*elem_size; in cvProjectPCA()
1906 int block_count0, block_count, buf_size, elem_size; in cvBackProjectPCA() local
1957 elem_size = CV_ELEM_SIZE(avg->type); in cvBackProjectPCA()
1959 buf_size = block_count0*len*(block_count0 > 1)*elem_size; in cvBackProjectPCA()
Dcxconvert.cpp736 int depth = -1, elem_size = 1; in cvMixChannels() local
808 elem_size = CV_ELEM_SIZE1(depth); in cvMixChannels()
823 src_step[i] = mat->step / elem_size - size.width * cn; in cvMixChannels()
830 dst_step[i] = mat->step / elem_size - size.width * cn; in cvMixChannels()
874 sptr[i] = src0[a] + (cn - cn_arr[a])*elem_size; in cvMixChannels()
880 dptr[i] = dst0[a] + (cn - cn_arr[a])*elem_size; in cvMixChannels()
/external/chromium/base/allocator/
Dgeneric_allocators.cc66 void* calloc(size_t n, size_t elem_size) __THROW { in calloc() argument
68 const size_t size = n * elem_size; in calloc()
69 if (elem_size != 0 && size / elem_size != n) return NULL; in calloc()
84 void* _recalloc(void* p, size_t n, size_t elem_size) { in _recalloc() argument
86 return calloc(n, elem_size); in _recalloc()
95 const size_t size = n * elem_size; in _recalloc()
96 if (elem_size != 0 && size / elem_size != n) return NULL; in _recalloc()
/external/compiler-rt/lib/asan/
Dasan_malloc_win.cc77 void* _recalloc(void* p, size_t n, size_t elem_size) { in _recalloc() argument
79 return calloc(n, elem_size); in _recalloc()
80 const size_t size = n * elem_size; in _recalloc()
81 if (elem_size != 0 && size / elem_size != n) in _recalloc()
Dasan_malloc_linux.cc29 void* (*calloc)(size_t n_elements, size_t elem_size);
/external/opencv/cv/src/
Dcvsubdivision2d.cpp116 memset( subdiv_point, 0, subdiv->elem_size ); in cvSubdiv2DAddPoint()
573 int elem_size; in cvClearSubdivVoronoi2D() local
586 elem_size = subdiv->edges->elem_size; in cvClearSubdivVoronoi2D()
595 CV_NEXT_SEQ_ELEM( elem_size, reader ); in cvClearSubdivVoronoi2D()
600 elem_size = subdiv->elem_size; in cvClearSubdivVoronoi2D()
613 CV_NEXT_SEQ_ELEM( elem_size, reader ); in cvClearSubdivVoronoi2D()
627 int i, total, elem_size; in cvCalcSubdivVoronoi2D() local
641 elem_size = subdiv->edges->elem_size; in cvCalcSubdivVoronoi2D()
652 CV_NEXT_SEQ_ELEM( elem_size, reader ); in cvCalcSubdivVoronoi2D()
708 CV_NEXT_SEQ_ELEM( elem_size, reader ); in cvCalcSubdivVoronoi2D()
Dcvcontourtree.cpp146 tree_root = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
257 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
286 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
425 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
438 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
454 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
465 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
498 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
511 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
527 cur_adr = (_CvTrianAttr *) (writer.ptr - writer.seq->elem_size); in icvCreateContourTree()
[all …]
Dcvfundam.cpp1037 int plane_stride, stride, elem_size; in cvComputeCorrespondEpilines() local
1104 elem_size = CV_ELEM_SIZE(depth); in cvComputeCorrespondEpilines()
1110 stride = elem_size; in cvComputeCorrespondEpilines()
1114 plane_stride = elem_size; in cvComputeCorrespondEpilines()
1115 stride = points->rows == 1 ? dims*elem_size : points->step; in cvComputeCorrespondEpilines()
1315 int s_plane_stride, s_stride, d_plane_stride, d_stride, elem_size; in cvConvertPointsHomogeneous() local
1324 elem_size = CV_ELEM_SIZE(src->type); in cvConvertPointsHomogeneous()
1327 s_plane_stride = src->step / elem_size, s_stride = 1; in cvConvertPointsHomogeneous()
1329 s_stride = src->step / elem_size, s_plane_stride = 1; in cvConvertPointsHomogeneous()
1332 d_plane_stride = dst->step / elem_size, d_stride = 1; in cvConvertPointsHomogeneous()
[all …]
Dcvshapedescr.cpp114 CV_NEXT_SEQ_ELEM( contour->elem_size, reader ); in cvArcLength()
400 CV_NEXT_SEQ_ELEM( sequence->elem_size, reader ); in cvMinEnclosingCircle()
434 CV_NEXT_SEQ_ELEM( sequence->elem_size, reader ); in cvMinEnclosingCircle()
477 CV_NEXT_SEQ_ELEM( contour->elem_size, reader ); in icvContourArea()
493 CV_NEXT_SEQ_ELEM( contour->elem_size, reader ); in icvContourArea()
817 CV_NEXT_SEQ_ELEM( points->elem_size, reader ); in icvFitEllipse_F()
839 CV_NEXT_SEQ_ELEM( points->elem_size, reader ); in icvFitEllipse_F()
Dcvconvhull.cpp341 CV_NEXT_SEQ_ELEM( ptseq->elem_size, reader ); in cvConvexHull2()
713 CV_PREV_SEQ_ELEM( hull->elem_size, hull_reader ); in cvConvexityDefects()
717 CV_NEXT_SEQ_ELEM( hull->elem_size, hull_reader ); in cvConvexityDefects()
/external/opencv/cxcore/include/
Dcxtypes.h1213 int elem_size; /* Size of sequence element in bytes. */ \
1458 (CV_SEQ_KIND(seq) == CV_SEQ_KIND_CURVE && (seq)->elem_size == 1)
1522 (seq)->elem_size == sizeof(elem_type)), \
1536 memcpy((writer).ptr, elem_ptr, (writer).seq->elem_size);\
1537 (writer).ptr += (writer).seq->elem_size; \
1542 assert( (writer).seq->elem_size == sizeof(elem)); \
1554 #define CV_NEXT_SEQ_ELEM( elem_size, reader ) \ argument
1556 if( ((reader).ptr += (elem_size)) >= (reader).block_max ) \
1564 #define CV_PREV_SEQ_ELEM( elem_size, reader ) \ argument
1566 if( ((reader).ptr -= (elem_size)) < (reader).block_min ) \
[all …]
/external/e2fsprogs/lib/ext2fs/
Dalloc_tables.c38 int elem_size) in flexbg_offset() argument
58 if (ext2fs_test_block_bitmap_range(bmap, start_blk + elem_size, in flexbg_offset()
60 return start_blk + elem_size; in flexbg_offset()
/external/opencv/ml/src/
Dmlnbayes.cpp500 CV_NEXT_SEQ_ELEM( seq->elem_size, reader ); in read()
511 CV_NEXT_SEQ_ELEM( seq->elem_size, reader ); in read()
522 CV_NEXT_SEQ_ELEM( seq->elem_size, reader ); in read()
533 CV_NEXT_SEQ_ELEM( seq->elem_size, reader ); in read()
544 CV_NEXT_SEQ_ELEM( seq->elem_size, reader ); in read()
555 CV_NEXT_SEQ_ELEM( seq->elem_size, reader ); in read()
/external/libpcap/
Dpcap-dos.c1291 PCAP_ASSERT (tail->size < active_dev->queue.elem_size-4-2); in peek_rxbuf()
1375 buf += q->elem_size; in pktq_check()
1387 q->elem_size = size; in pktq_init()
1442 return (struct rx_elem*) (q->buf_start + (q->elem_size * q->in_index)); in pktq_in_elem()
1450 return (struct rx_elem*) (q->buf_start + (q->elem_size * q->out_index)); in pktq_out_elem()
Dpcap-dos.h124 int elem_size; /* size of each element */ member
/external/qemu/distrib/sdl-1.2.12/src/stdlib/
DSDL_malloc.c1109 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1122 size_t elem_size, void* chunks[]);
4303 void* dlcalloc(size_t n_elements, size_t elem_size) { in dlcalloc() argument
4307 req = n_elements * elem_size; in dlcalloc()
4308 if (((n_elements | elem_size) & ~(size_t)0xffff) && in dlcalloc()
4309 (req / n_elements != elem_size)) in dlcalloc()
4345 void** dlindependent_calloc(size_t n_elements, size_t elem_size, in dlindependent_calloc() argument
4347 size_t sz = elem_size; /* serves as 1-element array */ in dlindependent_calloc()
4701 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) { in mspace_calloc() argument
4710 req = n_elements * elem_size; in mspace_calloc()
[all …]
/external/libffi/src/
Ddlmalloc.c1065 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
1078 size_t elem_size, void* chunks[]);
4293 void* dlcalloc(size_t n_elements, size_t elem_size) { in dlcalloc() argument
4297 req = n_elements * elem_size; in dlcalloc()
4298 if (((n_elements | elem_size) & ~(size_t)0xffff) && in dlcalloc()
4299 (req / n_elements != elem_size)) in dlcalloc()
4335 void** dlindependent_calloc(size_t n_elements, size_t elem_size, in dlindependent_calloc() argument
4337 size_t sz = elem_size; /* serves as 1-element array */ in dlindependent_calloc()
4691 void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) { in mspace_calloc() argument
4700 req = n_elements * elem_size; in mspace_calloc()
[all …]
/external/kernel-headers/original/linux/sunrpc/
Dxdr.h168 unsigned int elem_size; member

12