Home | History | Annotate | Download | only in src

Lines Matching refs:total

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