Lines Matching full:total

530     int count, total = seq->total;  in cvGetSeqElem()  local
532 if( (unsigned)index >= (unsigned)total ) in cvGetSeqElem()
534 index += index < 0 ? total : 0; in cvGetSeqElem()
535 index -= index >= total ? total : 0; in cvGetSeqElem()
536 if( (unsigned)index >= (unsigned)total ) in cvGetSeqElem()
541 if( index + index <= total ) in cvGetSeqElem()
554 total -= block->count; in cvGetSeqElem()
556 while( index < total ); in cvGetSeqElem()
557 index -= total; in cvGetSeqElem()
611 int total = seq->total; in cvSliceLength() local
617 slice.start_index += total; in cvSliceLength()
619 slice.end_index += total; in cvSliceLength()
626 length += total; in cvSliceLength()
628 length += total;*/ in cvSliceLength()
630 else if( length > total ) in cvSliceLength()
631 length = total; in cvSliceLength()
645 int elem_size, total; in cvCvtSeqToArray() local
653 total = cvSliceLength( slice, seq )*elem_size; in cvCvtSeqToArray()
655 if( total == 0 ) in cvCvtSeqToArray()
664 if( count > total ) in cvCvtSeqToArray()
665 count = total; in cvCvtSeqToArray()
672 total -= count; in cvCvtSeqToArray()
674 while( total > 0 ); in cvCvtSeqToArray()
686 void *array, int total, CvSeq *seq, CvSeqBlock * block ) in cvMakeSeqHeaderForArray() argument
694 if( elem_size <= 0 || header_size < (int)sizeof( CvSeq ) || total < 0 ) in cvMakeSeqHeaderForArray()
697 if( !seq || ((!array || !block) && total > 0) ) in cvMakeSeqHeaderForArray()
715 seq->total = total; in cvMakeSeqHeaderForArray()
716 seq->block_max = seq->ptr = (schar *) array + total * elem_size; in cvMakeSeqHeaderForArray()
718 if( total > 0 ) in cvMakeSeqHeaderForArray()
723 block->count = total; in cvMakeSeqHeaderForArray()
757 if( seq->total >= delta_elems*4 ) in icvGrowSeq()
823 * total number of bytes in the block. in icvGrowSeq()
886 seq->total = 0; in icvFreeSeqBlock()
996 int total = 0; in cvFlushSeqWriter() local
1005 total += block->count; in cvFlushSeqWriter()
1010 writer->seq->total = total; in cvFlushSeqWriter()
1222 int elem_size, count, total; in cvSetSeqReaderPos() local
1227 total = reader->seq->total; in cvSetSeqReaderPos()
1234 if( index < -total ) in cvSetSeqReaderPos()
1236 index += total; in cvSetSeqReaderPos()
1238 else if( index >= total ) in cvSetSeqReaderPos()
1240 index -= total; in cvSetSeqReaderPos()
1241 if( index >= total ) in cvSetSeqReaderPos()
1248 if( index + index <= total ) in cvSetSeqReaderPos()
1262 total -= block->count; in cvSetSeqReaderPos()
1264 while( index < total ); in cvSetSeqReaderPos()
1265 index -= total; in cvSetSeqReaderPos()
1340 seq->total++; in cvSeqPush()
1362 if( seq->total <= 0 ) in cvSeqPop()
1371 seq->total--; in cvSeqPop()
1415 seq->total++; in cvSeqPushFront()
1436 if( seq->total <= 0 ) in cvSeqPopFront()
1446 seq->total--; in cvSeqPopFront()
1464 int total; in cvSeqInsert() local
1474 total = seq->total; in cvSeqInsert()
1475 before_index += before_index < 0 ? total : 0; in cvSeqInsert()
1476 before_index -= before_index > total ? total : 0; in cvSeqInsert()
1478 if( (unsigned)before_index > (unsigned)total ) in cvSeqInsert()
1481 if( before_index == total ) in cvSeqInsert()
1493 if( before_index >= total >> 1 ) in cvSeqInsert()
1571 seq->total = total + 1; in cvSeqInsert()
1589 int total, front = 0; in cvSeqRemove() local
1598 total = seq->total; in cvSeqRemove()
1600 index += index < 0 ? total : 0; in cvSeqRemove()
1601 index -= index >= total ? total : 0; in cvSeqRemove()
1603 if( (unsigned) index >= (unsigned) total ) in cvSeqRemove()
1606 if( index == total - 1 ) in cvSeqRemove()
1624 front = index < total >> 1; in cvSeqRemove()
1663 seq->total = total - 1; in cvSeqRemove()
1700 seq->total += delta; in cvSeqPushMulti()
1735 seq->total += delta; in cvSeqPushMulti()
1763 count = MIN( count, seq->total ); in cvSeqPopMulti()
1778 seq->total -= delta; in cvSeqPopMulti()
1803 seq->total -= delta; in cvSeqPopMulti()
1834 cvSeqPopMulti( seq, 0, seq->total ); in cvClearSeq()
1866 slice.start_index += seq->total; in cvSeqSlice()
1867 else if( slice.start_index >= seq->total ) in cvSeqSlice()
1868 slice.start_index -= seq->total; in cvSeqSlice()
1869 if( (unsigned)length > (unsigned)seq->total || in cvSeqSlice()
1870 ((unsigned)slice.start_index >= (unsigned)seq->total && length != 0) ) in cvSeqSlice()
1903 subseq->total += bl; in cvSeqSlice()
1930 int total, length; in cvSeqRemoveSlice() local
1936 total = seq->total; in cvSeqRemoveSlice()
1939 slice.start_index += total; in cvSeqRemoveSlice()
1940 else if( slice.start_index >= total ) in cvSeqRemoveSlice()
1941 slice.start_index -= total; in cvSeqRemoveSlice()
1943 if( (unsigned)slice.start_index >= (unsigned)total ) in cvSeqRemoveSlice()
1948 if( slice.end_index < total ) in cvSeqRemoveSlice()
1956 if( slice.start_index > total - slice.end_index ) in cvSeqRemoveSlice()
1958 int i, count = seq->total - slice.end_index; in cvSeqRemoveSlice()
1990 cvSeqPopMulti( seq, 0, total - slice.start_index ); in cvSeqRemoveSlice()
1991 cvSeqPopMulti( seq, 0, slice.end_index - total, 1 ); in cvSeqRemoveSlice()
2004 int i, elem_size, total, from_total; in cvSeqInsertSlice() local
2035 from_total = from->total; in cvSeqInsertSlice()
2040 total = seq->total; in cvSeqInsertSlice()
2041 index += index < 0 ? total : 0; in cvSeqInsertSlice()
2042 index -= index > total ? total : 0; in cvSeqInsertSlice()
2044 if( (unsigned)index > (unsigned)total ) in cvSeqInsertSlice()
2049 if( index < (total >> 1) ) in cvSeqInsertSlice()
2070 cvSetSeqReaderPos( &reader_from, total ); in cvSeqInsertSlice()
2071 cvSetSeqReaderPos( &reader_to, seq->total ); in cvSeqInsertSlice()
2073 for( i = 0; i < total - index; i++ ) in cvSeqInsertSlice()
2186 if( seq->total <= 1 ) in cvSeqSort()
2364 l = seq->total; in cvSeqSort()
2368 l1 = seq->total; in cvSeqSort()
2459 int elem_size, i, j, total; in cvSeqSearch() local
2468 total = seq->total; in cvSeqSearch()
2470 if( total == 0 ) in cvSeqSearch()
2480 for( i = 0; i < total; i++ ) in cvSeqSearch()
2489 for( i = 0; i < total; i++ ) in cvSeqSearch()
2503 for( i = 0; i < total; i++ ) in cvSeqSearch()
2517 if( i < total ) in cvSeqSearch()
2525 i = 0, j = total; in cvSeqSearch()
2569 count = seq->total >> 1; in cvSeqInvert()
2639 for( i = 0; i < seq->total; i++ ) in cvSeqPartition()
2657 for( i = 0; i < nodes->total; i++ ) in cvSeqPartition()
2670 for( j = 0; j < nodes->total; j++ ) in cvSeqPartition()
2723 for( i = 0; i < nodes->total; i++ ) in cvSeqPartition()
2800 int count = set->total; in cvSetAdd()
2813 set->first->prev->count += count - set->total; in cvSetAdd()
2814 set->total = count; in cvSetAdd()
3363 int i, total, elem_size; in icvSeqElemsClearFlags() local
3369 total = seq->total; in icvSeqElemsClearFlags()
3376 for( i = 0; i < total; i++ ) in icvSeqElemsClearFlags()
3399 int total, elem_size, index; in icvSeqFindNextElem() local
3405 total = seq->total; in icvSeqFindNextElem()
3411 if( total == 0 ) in icvSeqFindNextElem()
3414 if( (unsigned)index >= (unsigned)total ) in icvSeqFindNextElem()
3416 index %= total; in icvSeqFindNextElem()
3417 index += index < 0 ? total : 0; in icvSeqFindNextElem()
3425 for( index = 0; index < total; index++ ) in icvSeqFindNextElem()
3434 if( index < total ) in icvSeqFindNextElem()
3623 if( scanner->stack->total == 0 ) in cvNextGraphItem()
3705 CV_CALL( flag_buffer = (int*)cvAlloc( graph->total*sizeof(flag_buffer[0]))); in cvCloneGraph()
3706 CV_CALL( ptr_buffer = (CvGraphVtx**)cvAlloc( graph->total*sizeof(ptr_buffer[0]))); in cvCloneGraph()
3714 for( i = 0, k = 0; i < graph->total; i++ ) in cvCloneGraph()
3730 for( i = 0; i < graph->edges->total; i++ ) in cvCloneGraph()
3746 for( i = 0, k = 0; i < graph->edges->total; i++ ) in cvCloneGraph()