/external/pdfium/xfa/src/fdp/src/fde/ |
D | fde_geobject.cpp | 142 FX_LPCPOINTF pPoints = points.GetData(); in GetCurveTangents() local 153 pTangents[i].x += (fCoefficient * (pPoints[r].x - pPoints[s].x)); in GetCurveTangents() 154 pTangents[i].y += (fCoefficient * (pPoints[r].y - pPoints[s].y)); in GetCurveTangents() 166 FX_LPCPOINTF pPoints = points.GetData(); in AddCurve() local 168 MoveTo(pPoints[0]); in AddCurve() 172 p1.Set(pPoints[i].x + pTangents[i].x, pPoints[i].y + pTangents[i].y); in AddCurve() 174 p2.Set(pPoints[j].x - pTangents[j].x, pPoints[j].y - pTangents[j].y); in AddCurve() 176 p3.Set(pPoints[j].x, pPoints[j].y); in AddCurve() 181 p1.Set(pPoints[iLast].x + pTangents[iLast].x, in AddCurve() 182 pPoints[iLast].y + pTangents[iLast].y); in AddCurve() [all …]
|
/external/pdfium/fpdfsdk/src/ |
D | fpdf_transformpage.cpp | 230 FX_PATHPOINT* pPoints = pPathData->GetPoints(); in OutputPath() local 233 buf << (pPoints[0].m_PointX) << " " << (pPoints[0].m_PointY) << " " in OutputPath() 234 << (pPoints[2].m_PointX - pPoints[0].m_PointX) << " " in OutputPath() 235 << (pPoints[2].m_PointY - pPoints[0].m_PointY) << " re\n"; in OutputPath() 241 buf << (pPoints[i].m_PointX) << " " << (pPoints[i].m_PointY); in OutputPath() 242 int point_type = pPoints[i].m_Flag & FXPT_TYPE; in OutputPath() 246 buf << " " << (pPoints[i + 1].m_PointX) << " " in OutputPath() 247 << (pPoints[i + 1].m_PointY) << " " << (pPoints[i + 2].m_PointX) in OutputPath() 248 << " " << (pPoints[i + 2].m_PointY); in OutputPath() 249 if (pPoints[i + 2].m_Flag & FXPT_CLOSEFIGURE) in OutputPath() [all …]
|
/external/pdfium/core/src/fxge/skia/ |
D | fx_skia_device.cpp | 137 FX_PATHPOINT* pPoints = pFPath->GetPoints(); in BuildPath() local 139 FX_FIXFLOAT x = pPoints[i].m_PointX, y = pPoints[i].m_PointY; in BuildPath() 142 int point_type = pPoints[i].m_Flag & FXPT_TYPE; in BuildPath() 146 if (pPoints[i - 1].m_Flag == FXPT_MOVETO && in BuildPath() 147 (i == nPoints - 1 || pPoints[i + 1].m_Flag == FXPT_MOVETO) && in BuildPath() 148 FXSYS_abs(pPoints[i].m_PointX - pPoints[i - 1].m_PointX) < 0.4f && in BuildPath() 149 FXSYS_abs(pPoints[i].m_PointY - pPoints[i - 1].m_PointY) < 0.4f) in BuildPath() 162 FX_FIXFLOAT x2 = pPoints[i + 1].m_PointX, y2 = pPoints[i + 1].m_PointY; in BuildPath() 163 FX_FIXFLOAT x3 = pPoints[i + 2].m_PointX, y3 = pPoints[i + 2].m_PointY; in BuildPath() 171 if (pPoints[i].m_Flag & FXPT_CLOSEFIGURE) in BuildPath()
|
/external/pdfium/core/src/fxge/ge/ |
D | fx_ge_path.cpp | 183 FX_PATHPOINT* pPoints = m_pPoints + old_count; in AppendRect() local 184 pPoints[0].m_PointX = pPoints[1].m_PointX = pPoints[4].m_PointX = left; in AppendRect() 185 pPoints[2].m_PointX = pPoints[3].m_PointX = right; in AppendRect() 186 pPoints[0].m_PointY = pPoints[3].m_PointY = pPoints[4].m_PointY = bottom; in AppendRect() 187 pPoints[1].m_PointY = pPoints[2].m_PointY = top; in AppendRect() 188 pPoints[0].m_Flag = FXPT_MOVETO; in AppendRect() 189 pPoints[1].m_Flag = pPoints[2].m_Flag = pPoints[3].m_Flag = FXPT_LINETO; in AppendRect() 190 pPoints[4].m_Flag = FXPT_LINETO | FXPT_CLOSEFIGURE; in AppendRect()
|
D | fx_ge_device.cpp | 137 FX_PATHPOINT* pPoints = pPathData->GetPoints(); in DrawPath() local 140 pObject2Device->Transform(pPoints[0].m_PointX, pPoints[0].m_PointY, x1, in DrawPath() 142 pObject2Device->Transform(pPoints[1].m_PointX, pPoints[1].m_PointY, x2, in DrawPath() 145 x1 = pPoints[0].m_PointX; in DrawPath() 146 y1 = pPoints[0].m_PointY; in DrawPath() 147 x2 = pPoints[1].m_PointX; in DrawPath() 148 y2 = pPoints[1].m_PointY; in DrawPath()
|
/external/pdfium/xfa/src/fxgraphics/src/ |
D | fx_path_generator.cpp | 24 FX_PATHPOINT* pPoints = pPathData->GetPoints(); in AddPathData() local 25 AddPathData(pPoints, nCount); in AddPathData() 28 void CFX_PathGenerator::AddPathData(FX_PATHPOINT* pPoints, int nCount) { in AddPathData() argument 29 if (pPoints && nCount > 0) { in AddPathData() 33 FXSYS_memcpy(pDstPoints + nOldCount, pPoints, in AddPathData() 60 FX_PATHPOINT* pPoints = m_pPathData->GetPoints(); in Close() local 61 pPoints[index].m_Flag |= FXPT_CLOSEFIGURE; in Close()
|
/external/pdfium/core/src/fxcrt/ |
D | fx_basic_coords.cpp | 220 CFX_FloatRect CFX_FloatRect::GetBBox(const CFX_FloatPoint* pPoints, in GetBBox() argument 225 FX_FLOAT min_x = pPoints->x, max_x = pPoints->x, min_y = pPoints->y, in GetBBox() 226 max_y = pPoints->y; in GetBBox() 228 if (min_x > pPoints[i].x) { in GetBBox() 229 min_x = pPoints[i].x; in GetBBox() 231 if (max_x < pPoints[i].x) { in GetBBox() 232 max_x = pPoints[i].x; in GetBBox() 234 if (min_y > pPoints[i].y) { in GetBBox() 235 min_y = pPoints[i].y; in GetBBox() 237 if (max_y < pPoints[i].y) { in GetBBox() [all …]
|
/external/pdfium/core/src/fxge/agg/src/ |
D | fx_agg_driver.cpp | 36 FX_PATHPOINT* pPoints = pPathData->GetPoints(); in BuildPath() local 38 FX_FLOAT x = pPoints[i].m_PointX, y = pPoints[i].m_PointY; in BuildPath() 43 int point_type = pPoints[i].m_Flag & FXPT_TYPE; in BuildPath() 47 if (pPoints[i - 1].m_Flag == FXPT_MOVETO && in BuildPath() 48 (i == nPoints - 1 || pPoints[i + 1].m_Flag == FXPT_MOVETO) && in BuildPath() 49 pPoints[i].m_PointX == pPoints[i - 1].m_PointX && in BuildPath() 50 pPoints[i].m_PointY == pPoints[i - 1].m_PointY) { in BuildPath() 55 FX_FLOAT x0 = pPoints[i - 1].m_PointX, y0 = pPoints[i - 1].m_PointY; in BuildPath() 56 FX_FLOAT x2 = pPoints[i + 1].m_PointX, y2 = pPoints[i + 1].m_PointY; in BuildPath() 57 FX_FLOAT x3 = pPoints[i + 2].m_PointX, y3 = pPoints[i + 2].m_PointY; in BuildPath() [all …]
|
/external/pdfium/core/src/fxge/win32/ |
D | fx_win32_device.cpp | 763 FX_PATHPOINT* pPoints = pPathData->GetPoints(); in _SetPathToDC() local 765 FX_FLOAT posx = pPoints[i].m_PointX, posy = pPoints[i].m_PointY; in _SetPathToDC() 770 int point_type = pPoints[i].m_Flag & FXPT_TYPE; in _SetPathToDC() 774 if (pPoints[i].m_PointY == pPoints[i - 1].m_PointY && in _SetPathToDC() 775 pPoints[i].m_PointX == pPoints[i - 1].m_PointX) { in _SetPathToDC() 783 posx = pPoints[i + 1].m_PointX; in _SetPathToDC() 784 posy = pPoints[i + 1].m_PointY; in _SetPathToDC() 790 posx = pPoints[i + 2].m_PointX; in _SetPathToDC() 791 posy = pPoints[i + 2].m_PointY; in _SetPathToDC() 800 if (pPoints[i].m_Flag & PT_CLOSEFIGURE) { in _SetPathToDC()
|
D | fx_win32_gdipext.cpp | 1110 FX_PATHPOINT* pPoints = pPathData->GetPoints(); in DrawPath() local 1132 points[i].X = pPoints[i].m_PointX; in DrawPath() 1133 points[i].Y = pPoints[i].m_PointY; in DrawPath() 1136 pObject2Device->Transform(pPoints[i].m_PointX, pPoints[i].m_PointY, x, y); in DrawPath() 1138 x = pPoints[i].m_PointX; in DrawPath() 1139 y = pPoints[i].m_PointY; in DrawPath() 1153 int point_type = pPoints[i].m_Flag & FXPT_TYPE; in DrawPath() 1161 if (pPoints[i - 1].m_Flag == FXPT_MOVETO && in DrawPath() 1162 (i == nPoints - 1 || pPoints[i + 1].m_Flag == FXPT_MOVETO) && in DrawPath() 1175 if (pPoints[i].m_Flag & FXPT_CLOSEFIGURE) { in DrawPath()
|
/external/pdfium/core/src/fpdfapi/fpdf_render/ |
D | fpdf_render_pattern.cpp | 573 void GetPoints(FX_PATHPOINT* pPoints) { in GetPoints() 578 pPoints[i].m_PointX = p[i]; in GetPoints() 582 pPoints[i].m_PointY = p[i]; in GetPoints() 585 void GetPointsReverse(FX_PATHPOINT* pPoints) { in GetPointsReverse() 590 pPoints[i].m_PointX = p[i]; in GetPointsReverse() 594 pPoints[i].m_PointY = p[i]; in GetPointsReverse() 674 FX_PATHPOINT* pPoints = path.GetPoints(); in Draw() local 675 C1.GetPoints(pPoints); in Draw() 676 D2.GetPoints(pPoints + 3); in Draw() 677 C2.GetPointsReverse(pPoints + 6); in Draw() [all …]
|
/external/pdfium/core/include/fxcrt/ |
D | fx_coordinates.h | 598 static CFX_FloatRect GetBBox(const CFX_FloatPoint* pPoints, int nPoints);
|