Home | History | Annotate | Download | only in src

Lines Matching refs:pt2

81 cvClipLine( CvSize img_size, CvPoint* pt1, CvPoint* pt2 )
93 if( !pt1 || !pt2 )
99 x1 = pt1->x; y1 = pt1->y; x2 = pt2->x; y2 = pt2->y;
143 pt2->x = x2;
144 pt2->y = y2;
160 cvInitLineIterator( const CvArr* img, CvPoint pt1, CvPoint pt2,
184 (unsigned)pt2.x >= (unsigned)(mat->width) ||
186 (unsigned)pt2.y >= (unsigned)(mat->height) )
193 dx = pt2.x - pt1.x;
194 dy = pt2.y - pt1.y;
201 pt1.x ^= (pt1.x ^ pt2.x) & s;
202 pt1.y ^= (pt1.y ^ pt2.y) & s;
256 icvLine( CvMat* mat, CvPoint pt1, CvPoint pt2,
259 if( cvClipLine( cvGetMatSize(mat), &pt1, &pt2 ))
270 count = cvInitLineIterator( mat, pt1, pt2, &iterator, connectivity, 1 );
296 icvLineAA( CvMat* img, CvPoint pt1, CvPoint pt2,
317 pt2.x -= XY_ONE*2;
318 pt2.y -= XY_ONE*2;
324 if( !cvClipLine( size, &pt1, &pt2 ))
327 dx = pt2.x - pt1.x;
328 dy = pt2.y - pt1.y;
339 pt1.x ^= pt2.x & j;
340 pt2.x ^= pt1.x & j;
341 pt1.x ^= pt2.x & j;
342 pt1.y ^= pt2.y & j;
343 pt2.y ^= pt1.y & j;
344 pt1.y ^= pt2.y & j;
348 pt2.x += XY_ONE;
349 ecount = (pt2.x >> XY_SHIFT) - (pt1.x >> XY_SHIFT);
357 j = (pt2.x >> (XY_SHIFT - 7)) & 0x78;
363 pt1.x ^= pt2.x & i;
364 pt2.x ^= pt1.x & i;
365 pt1.x ^= pt2.x & i;
366 pt1.y ^= pt2.y & i;
367 pt2.y ^= pt1.y & i;
368 pt1.y ^= pt2.y & i;
372 pt2.y += XY_ONE;
373 ecount = (pt2.y >> XY_SHIFT) - (pt1.y >> XY_SHIFT);
381 j = (pt2.y >> (XY_SHIFT - 7)) & 0x78;
561 icvLine2( CvMat* img, CvPoint pt1, CvPoint pt2, const void* color )
580 pt2.x -= XY_ONE*2;
581 pt2.y -= XY_ONE*2;
587 if( !cvClipLine( size, &pt1, &pt2 ))
590 dx = pt2.x - pt1.x;
591 dy = pt2.y - pt1.y;
602 pt1.x ^= pt2.x & j;
603 pt2.x ^= pt1.x & j;
604 pt1.x ^= pt2.x & j;
605 pt1.y ^= pt2.y & j;
606 pt2.y ^= pt1.y & j;
607 pt1.y ^= pt2.y & j;
611 ecount = (pt2.x - pt1.x) >> XY_SHIFT;
617 pt1.x ^= pt2.x & i;
618 pt2.x ^= pt1.x & i;
619 pt1.x ^= pt2.x & i;
620 pt1.y ^= pt2.y & i;
621 pt2.y ^= pt1.y & i;
622 pt1.y ^= pt2.y & i;
626 ecount = (pt2.y - pt1.y) >> XY_SHIFT;
641 tptr = ptr + ((pt2.x + (XY_ONE >> 1))>> XY_SHIFT)*3 +
642 ((pt2.y + (XY_ONE >> 1)) >> XY_SHIFT)*step;
681 tptr = ptr + ((pt2.x + (XY_ONE >> 1))>> XY_SHIFT) +
682 ((pt2.y + (XY_ONE >> 1)) >> XY_SHIFT)*step;
719 tptr = ptr + ((pt2.x + (XY_ONE >> 1))>> XY_SHIFT)*pix_size +
720 ((pt2.y + (XY_ONE >> 1)) >> XY_SHIFT)*step;
1737 cvLine( void* img, CvPoint pt1, CvPoint pt2, CvScalar color,
1763 icvThickLine( mat, pt1, pt2, buf, thickness, line_type, 3, shift );
1770 cvRectangle( void* img, CvPoint pt1, CvPoint pt2,
1801 pt[1].x = pt2.x;
1803 pt[2] = pt2;
1805 pt[3].y = pt2.y;
2539 CvPoint pt1, pt2;
2562 CV_READ_SEQ_ELEM( pt2, reader );
2563 pt2.x += offset.x;
2564 pt2.y += offset.y;
2570 pt2.x = cvRound( pt2f.x * XY_ONE );
2571 pt2.y = cvRound( pt2f.y * XY_ONE );
2573 icvThickLine( mat, pt1, pt2, clr, thickness, line_type, 2, shift );
2574 pt1 = pt2;