Lines Matching defs:shift
63 int shift, CvPoint offset=cvPoint(0,0) );
70 const void* color, int thickness, int line_type, int shift );
74 const void* color, int line_type, int shift );
988 icvFillConvexPoly( CvMat* img, CvPoint *v, int npts, const void* color, int line_type, int shift )
997 int delta = shift ? 1 << (shift - 1) : 0;
1014 p0.x <<= XY_SHIFT - shift;
1015 p0.y <<= XY_SHIFT - shift;
1017 assert( 0 <= shift && shift <= XY_SHIFT );
1034 p.x <<= XY_SHIFT - shift;
1035 p.y <<= XY_SHIFT - shift;
1039 if( shift == 0 )
1056 xmin = (xmin + delta) >> shift;
1057 xmax = (xmax + delta) >> shift;
1058 ymin = (ymin + delta) >> shift;
1059 ymax = (ymax + delta) >> shift;
1086 ty = (v[idx].y + delta) >> shift;
1096 xs <<= XY_SHIFT - shift;
1097 xe = v[idx].x << (XY_SHIFT - shift);
1150 const void* color, int line_type, int shift,
1155 int delta = offset.y + (shift ? 1 << (shift - 1) : 0);
1172 pt0.x = (pt0.x + offset.x) << (XY_SHIFT - shift);
1173 pt0.y = (pt0.y + delta) >> shift;
1174 pt1.x = (pt1.x + offset.x) << (XY_SHIFT - shift);
1175 pt1.y = (pt1.y + delta) >> shift;
1180 assert( shift == 0 );
1558 int thickness, int line_type, int flags, int shift )
1562 p0.x <<= XY_SHIFT - shift;
1563 p0.y <<= XY_SHIFT - shift;
1564 p1.x <<= XY_SHIFT - shift;
1565 p1.y <<= XY_SHIFT - shift;
1571 if( line_type == 1 || line_type == 4 || shift == 0 )
1637 int line_type, int shift )
1648 assert( 0 <= shift && shift <= XY_SHIFT );
1659 icvThickLine( img, p0, p, color, thickness, line_type, flags, shift );
1738 int thickness, int line_type, int shift )
1759 if( shift < 0 || XY_SHIFT < shift )
1760 CV_ERROR( CV_StsOutOfRange, "shift must be between 0 and 16" );
1763 icvThickLine( mat, pt1, pt2, buf, thickness, line_type, 3, shift );
1772 int line_type, int shift )
1795 if( shift < 0 || XY_SHIFT < shift )
1796 CV_ERROR( CV_StsOutOfRange, "shift must be between 0 and 16" );
1808 icvPolyLine( mat, pt, 4, 1, buf, thickness, line_type, shift );
1810 icvFillConvexPoly( mat, pt, 4, buf, line_type, shift );
1818 CvScalar color, int thickness, int line_type, int shift )
1842 if( shift < 0 || XY_SHIFT < shift )
1843 CV_ERROR( CV_StsOutOfRange, "shift must be between 0 and 16" );
1849 center.x <<= XY_SHIFT - shift;
1850 center.y <<= XY_SHIFT - shift;
1851 radius <<= XY_SHIFT - shift;
1867 CvScalar color, int thickness, int line_type, int shift )
1891 if( shift < 0 || XY_SHIFT < shift )
1892 CV_ERROR( CV_StsOutOfRange, "shift must be between 0 and 16" );
1900 center.x <<= XY_SHIFT - shift;
1901 center.y <<= XY_SHIFT - shift;
1902 axes.width <<= XY_SHIFT - shift;
1903 axes.height <<= XY_SHIFT - shift;
1914 cvFillConvexPoly( void *img, CvPoint *pts, int npts, CvScalar color, int line_type, int shift )
1938 if( shift < 0 || XY_SHIFT < shift )
1939 CV_ERROR( CV_StsOutOfRange, "shift must be between 0 and 16" );
1942 icvFillConvexPoly( mat, pts, npts, buf, line_type, shift );
1950 CvScalar color, int line_type, int shift )
1979 if( shift < 0 || XY_SHIFT < shift )
1980 CV_ERROR( CV_StsOutOfRange, "shift must be between 0 and 16" );
2004 CV_CALL( icvCollectPolyEdges( mat, &vtx, edges, buf, line_type, shift ));
2020 int thickness, int line_type, int shift )
2050 if( shift < 0 || XY_SHIFT < shift )
2051 CV_ERROR( CV_StsOutOfRange, "shift must be between 0 and 16" );
2056 icvPolyLine( mat, pts[i], npts[i], closed, buf, thickness, line_type, shift );
2540 int shift = 0;
2555 shift = XY_SHIFT;
2573 icvThickLine( mat, pt1, pt2, clr, thickness, line_type, 2, shift );