Home
last modified time | relevance | path

Searched refs:pPoints (Results 1 – 10 of 10) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdf_transformpage.cpp233 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in OutputPath() local
235 CFX_PointF diff = pPoints[2].m_Point - pPoints[0].m_Point; in OutputPath()
236 buf << pPoints[0].m_Point.x << " " << pPoints[0].m_Point.y << " " << diff.x in OutputPath()
242 for (size_t i = 0; i < pPoints.size(); i++) { in OutputPath()
243 buf << pPoints[i].m_Point.x << " " << pPoints[i].m_Point.y; in OutputPath()
244 FXPT_TYPE point_type = pPoints[i].m_Type; in OutputPath()
248 buf << " " << pPoints[i + 1].m_Point.x << " " << pPoints[i + 1].m_Point.y in OutputPath()
249 << " " << pPoints[i + 2].m_Point.x << " " << pPoints[i + 2].m_Point.y; in OutputPath()
251 if (pPoints[i + 2].m_CloseFigure) in OutputPath()
258 if (pPoints[i].m_CloseFigure) in OutputPath()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp215 auto& pPoints = pPathObj->m_Path.GetPoints(); in ProcessPath() local
217 CFX_PointF diff = pPoints[2].m_Point - pPoints[0].m_Point; in ProcessPath()
218 *buf << pPoints[0].m_Point.x << " " << pPoints[0].m_Point.y << " " << diff.x in ProcessPath()
221 for (size_t i = 0; i < pPoints.size(); i++) { in ProcessPath()
224 *buf << pPoints[i].m_Point.x << " " << pPoints[i].m_Point.y; in ProcessPath()
225 FXPT_TYPE pointType = pPoints[i].m_Type; in ProcessPath()
231 if (i + 2 >= pPoints.size() || in ProcessPath()
232 !pPoints[i].IsTypeAndOpen(FXPT_TYPE::BezierTo) || in ProcessPath()
233 !pPoints[i + 1].IsTypeAndOpen(FXPT_TYPE::BezierTo) || in ProcessPath()
234 pPoints[i + 2].m_Type != FXPT_TYPE::BezierTo) { in ProcessPath()
[all …]
/external/pdfium/core/fxcrt/
Dfx_coordinates.cpp57 CFX_FloatRect CFX_FloatRect::GetBBox(const CFX_PointF* pPoints, int nPoints) { in GetBBox() argument
61 float min_x = pPoints->x; in GetBBox()
62 float max_x = pPoints->x; in GetBBox()
63 float min_y = pPoints->y; in GetBBox()
64 float max_y = pPoints->y; in GetBBox()
66 min_x = std::min(min_x, pPoints[i].x); in GetBBox()
67 max_x = std::max(max_x, pPoints[i].x); in GetBBox()
68 min_y = std::min(min_y, pPoints[i].y); in GetBBox()
69 max_y = std::max(max_y, pPoints[i].y); in GetBBox()
Dfx_coordinates.h236 static CFX_FloatRect GetBBox(const CFX_PointF* pPoints, int nPoints);
/external/pdfium/core/fxge/win32/
Dfx_win32_gdipext.cpp1154 auto& pPoints = pPathData->GetPoints(); in DrawPath() local
1155 if (pPoints.empty()) in DrawPath()
1171 Gdiplus::PointF* points = FX_Alloc(Gdiplus::PointF, pPoints.size()); in DrawPath()
1172 BYTE* types = FX_Alloc(BYTE, pPoints.size()); in DrawPath()
1178 for (size_t i = 0; i < pPoints.size(); i++) { in DrawPath()
1179 points[i].X = pPoints[i].m_Point.x; in DrawPath()
1180 points[i].Y = pPoints[i].m_Point.y; in DrawPath()
1182 CFX_PointF pos = pPoints[i].m_Point; in DrawPath()
1195 FXPT_TYPE point_type = pPoints[i].m_Type; in DrawPath()
1203 if (pPoints[i - 1].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in DrawPath()
[all …]
Dfx_win32_device.cpp172 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in SetPathToDC() local
173 for (size_t i = 0; i < pPoints.size(); i++) { in SetPathToDC()
174 CFX_PointF pos = pPoints[i].m_Point; in SetPathToDC()
179 FXPT_TYPE point_type = pPoints[i].m_Type; in SetPathToDC()
183 if (pPoints[i].m_Point == pPoints[i - 1].m_Point) in SetPathToDC()
192 pos = pPoints[i + 1].m_Point; in SetPathToDC()
199 pos = pPoints[i + 2].m_Point; in SetPathToDC()
208 if (pPoints[i].m_CloseFigure) in SetPathToDC()
/external/pdfium/core/fxge/agg/
Dfx_agg_driver.cpp1064 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in BuildPath() local
1065 for (size_t i = 0; i < pPoints.size(); i++) { in BuildPath()
1066 CFX_PointF pos = pPoints[i].m_Point; in BuildPath()
1071 FXPT_TYPE point_type = pPoints[i].m_Type; in BuildPath()
1075 if (i > 0 && pPoints[i - 1].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in BuildPath()
1076 (i == pPoints.size() - 1 || in BuildPath()
1077 pPoints[i + 1].IsTypeAndOpen(FXPT_TYPE::MoveTo)) && in BuildPath()
1078 pPoints[i].m_Point == pPoints[i - 1].m_Point) { in BuildPath()
1083 if (i > 0 && i + 2 < pPoints.size()) { in BuildPath()
1084 CFX_PointF pos0 = pPoints[i - 1].m_Point; in BuildPath()
[all …]
/external/pdfium/core/fxge/
Dcfx_renderdevice.cpp519 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in DrawPathWithBlend() local
520 if (stroke_alpha == 0 && pPoints.size() == 2) { in DrawPathWithBlend()
521 CFX_PointF pos1 = pPoints[0].m_Point; in DrawPathWithBlend()
522 CFX_PointF pos2 = pPoints[1].m_Point; in DrawPathWithBlend()
531 if ((pPoints.size() == 5 || pPoints.size() == 4) && stroke_alpha == 0) { in DrawPathWithBlend()
/external/pdfium/core/fpdfapi/render/
Dcpdf_renderstatus.cpp644 void GetPoints(std::vector<FX_PATHPOINT>& pPoints, size_t start_idx) { in GetPoints()
649 pPoints[start_idx + i].m_Point.x = p[i]; in GetPoints()
653 pPoints[start_idx + i].m_Point.y = p[i]; in GetPoints()
656 void GetPointsReverse(std::vector<FX_PATHPOINT>& pPoints, size_t start_idx) { in GetPointsReverse()
661 pPoints[i + start_idx].m_Point.x = p[i]; in GetPointsReverse()
665 pPoints[i + start_idx].m_Point.y = p[i]; in GetPointsReverse()
770 std::vector<FX_PATHPOINT>& pPoints = path.GetPoints(); in Draw() local
771 C1.GetPoints(pPoints, 0); in Draw()
772 D2.GetPoints(pPoints, 3); in Draw()
773 C2.GetPointsReverse(pPoints, 6); in Draw()
[all …]
/external/pdfium/core/fxge/skia/
Dfx_skia_device.cpp286 const std::vector<FX_PATHPOINT>& pPoints = pFPath->GetPoints(); in BuildPath() local
287 for (size_t i = 0; i < pPoints.size(); i++) { in BuildPath()
288 CFX_PointF point = pPoints[i].m_Point; in BuildPath()
289 FXPT_TYPE point_type = pPoints[i].m_Type; in BuildPath()
295 CFX_PointF point2 = pPoints[i + 1].m_Point; in BuildPath()
296 CFX_PointF point3 = pPoints[i + 2].m_Point; in BuildPath()
300 if (pPoints[i].m_CloseFigure) in BuildPath()