Home
last modified time | relevance | path

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

/external/pdfium/fpdfsdk/
Dfpdf_transformpage.cpp71 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in OutputPath() local
73 CFX_PointF diff = pPoints[2].m_Point - pPoints[0].m_Point; in OutputPath()
74 buf << pPoints[0].m_Point.x << " " << pPoints[0].m_Point.y << " " << diff.x in OutputPath()
80 for (size_t i = 0; i < pPoints.size(); i++) { in OutputPath()
81 buf << pPoints[i].m_Point.x << " " << pPoints[i].m_Point.y; in OutputPath()
82 FXPT_TYPE point_type = pPoints[i].m_Type; in OutputPath()
86 buf << " " << pPoints[i + 1].m_Point.x << " " << pPoints[i + 1].m_Point.y in OutputPath()
87 << " " << pPoints[i + 2].m_Point.x << " " << pPoints[i + 2].m_Point.y; in OutputPath()
89 if (pPoints[i + 2].m_CloseFigure) in OutputPath()
96 if (pPoints[i].m_CloseFigure) in OutputPath()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp351 const auto& pPoints = pPathObj->path().GetPoints(); in ProcessPath() local
353 CFX_PointF diff = pPoints[2].m_Point - pPoints[0].m_Point; in ProcessPath()
354 *buf << pPoints[0].m_Point << " " << diff << " re"; in ProcessPath()
356 for (size_t i = 0; i < pPoints.size(); i++) { in ProcessPath()
360 *buf << pPoints[i].m_Point; in ProcessPath()
362 FXPT_TYPE pointType = pPoints[i].m_Type; in ProcessPath()
368 if (i + 2 >= pPoints.size() || in ProcessPath()
369 !pPoints[i].IsTypeAndOpen(FXPT_TYPE::BezierTo) || in ProcessPath()
370 !pPoints[i + 1].IsTypeAndOpen(FXPT_TYPE::BezierTo) || in ProcessPath()
371 pPoints[i + 2].m_Type != FXPT_TYPE::BezierTo) { in ProcessPath()
[all …]
/external/pdfium/core/fxge/win32/
Dfx_win32_gdipext.cpp814 auto& pPoints = pPathData->GetPoints(); in DrawPath() local
815 if (pPoints.empty()) in DrawPath()
830 Gdiplus::PointF* points = FX_Alloc(Gdiplus::PointF, pPoints.size()); in DrawPath()
831 BYTE* types = FX_Alloc(BYTE, pPoints.size()); in DrawPath()
837 for (size_t i = 0; i < pPoints.size(); i++) { in DrawPath()
838 points[i].X = pPoints[i].m_Point.x; in DrawPath()
839 points[i].Y = pPoints[i].m_Point.y; in DrawPath()
841 CFX_PointF pos = pPoints[i].m_Point; in DrawPath()
854 FXPT_TYPE point_type = pPoints[i].m_Type; in DrawPath()
862 if (pPoints[i - 1].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in DrawPath()
[all …]
Dfx_win32_device.cpp155 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in SetPathToDC() local
156 for (size_t i = 0; i < pPoints.size(); i++) { in SetPathToDC()
157 CFX_PointF pos = pPoints[i].m_Point; in SetPathToDC()
162 FXPT_TYPE point_type = pPoints[i].m_Type; in SetPathToDC()
166 if (pPoints[i].m_Point == pPoints[i - 1].m_Point) in SetPathToDC()
175 pos = pPoints[i + 1].m_Point; in SetPathToDC()
182 pos = pPoints[i + 2].m_Point; in SetPathToDC()
191 if (pPoints[i].m_CloseFigure) in SetPathToDC()
/external/pdfium/core/fxcrt/
Dfx_coordinates.cpp83 CFX_FloatRect CFX_FloatRect::GetBBox(const CFX_PointF* pPoints, int nPoints) { in GetBBox() argument
87 float min_x = pPoints->x; in GetBBox()
88 float max_x = pPoints->x; in GetBBox()
89 float min_y = pPoints->y; in GetBBox()
90 float max_y = pPoints->y; in GetBBox()
92 min_x = std::min(min_x, pPoints[i].x); in GetBBox()
93 max_x = std::max(max_x, pPoints[i].x); in GetBBox()
94 min_y = std::min(min_y, pPoints[i].y); in GetBBox()
95 max_y = std::max(max_y, pPoints[i].y); in GetBBox()
Dfx_coordinates.h237 static CFX_FloatRect GetBBox(const CFX_PointF* pPoints, int nPoints);
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtessellator.h121 DOMAIN_POINT* pPoints = SUPER::GetPoints(); in Tessellate() local
123 DomainPointsU[i] = pPoints[i].u; in Tessellate()
124 DomainPointsV[i] = pPoints[i].v; in Tessellate()
/external/pdfium/core/fpdfapi/render/
Dcpdf_rendershading.cpp583 void GetPoints(std::vector<FX_PATHPOINT>& pPoints, size_t start_idx) { in GetPoints()
588 pPoints[start_idx + i].m_Point.x = p[i]; in GetPoints()
592 pPoints[start_idx + i].m_Point.y = p[i]; in GetPoints()
595 void GetPointsReverse(std::vector<FX_PATHPOINT>& pPoints, size_t start_idx) { in GetPointsReverse()
600 pPoints[i + start_idx].m_Point.x = p[i]; in GetPointsReverse()
604 pPoints[i + start_idx].m_Point.y = p[i]; in GetPointsReverse()
704 std::vector<FX_PATHPOINT>& pPoints = path.GetPoints(); in Draw() local
705 C1.GetPoints(pPoints, 0); in Draw()
706 D2.GetPoints(pPoints, 3); in Draw()
707 C2.GetPointsReverse(pPoints, 6); in Draw()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_colorspace.cpp75 void GetDefaultBlackPoint(float* pPoints) { in GetDefaultBlackPoint() argument
78 pPoints[i] = kDefaultValue; in GetDefaultBlackPoint()
81 void GetBlackPoint(const CPDF_Dictionary* pDict, float* pPoints) { in GetBlackPoint() argument
84 GetDefaultBlackPoint(pPoints); in GetBlackPoint()
90 pPoints[i] = pParam->GetNumberAt(i); in GetBlackPoint()
91 if (pPoints[i] < 0) { in GetBlackPoint()
92 GetDefaultBlackPoint(pPoints); in GetBlackPoint()
98 bool GetWhitePoint(const CPDF_Dictionary* pDict, float* pPoints) { in GetWhitePoint() argument
104 pPoints[i] = pParam->GetNumberAt(i); in GetWhitePoint()
105 return pPoints[0] > 0.0f && pPoints[1] == 1.0f && pPoints[2] > 0.0f; in GetWhitePoint()
/external/pdfium/core/fxge/agg/
Dfx_agg_driver.cpp1091 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in BuildPath() local
1092 for (size_t i = 0; i < pPoints.size(); i++) { in BuildPath()
1093 CFX_PointF pos = pPoints[i].m_Point; in BuildPath()
1098 FXPT_TYPE point_type = pPoints[i].m_Type; in BuildPath()
1102 if (i > 0 && pPoints[i - 1].IsTypeAndOpen(FXPT_TYPE::MoveTo) && in BuildPath()
1103 (i == pPoints.size() - 1 || in BuildPath()
1104 pPoints[i + 1].IsTypeAndOpen(FXPT_TYPE::MoveTo)) && in BuildPath()
1105 pPoints[i].m_Point == pPoints[i - 1].m_Point) { in BuildPath()
1110 if (i > 0 && i + 2 < pPoints.size()) { in BuildPath()
1111 CFX_PointF pos0 = pPoints[i - 1].m_Point; in BuildPath()
[all …]
/external/pdfium/core/fxge/
Dcfx_renderdevice.cpp516 const std::vector<FX_PATHPOINT>& pPoints = pPathData->GetPoints(); in DrawPathWithBlend() local
517 if (stroke_alpha == 0 && pPoints.size() == 2) { in DrawPathWithBlend()
518 CFX_PointF pos1 = pPoints[0].m_Point; in DrawPathWithBlend()
519 CFX_PointF pos2 = pPoints[1].m_Point; in DrawPathWithBlend()
528 if ((pPoints.size() == 5 || pPoints.size() == 4) && stroke_alpha == 0) { in DrawPathWithBlend()
/external/pdfium/core/fxge/skia/
Dfx_skia_device.cpp316 const std::vector<FX_PATHPOINT>& pPoints = pFPath->GetPoints(); in BuildPath() local
317 for (size_t i = 0; i < pPoints.size(); i++) { in BuildPath()
318 CFX_PointF point = pPoints[i].m_Point; in BuildPath()
319 FXPT_TYPE point_type = pPoints[i].m_Type; in BuildPath()
325 CFX_PointF point2 = pPoints[i + 1].m_Point; in BuildPath()
326 CFX_PointF point3 = pPoints[i + 2].m_Point; in BuildPath()
330 if (pPoints[i].m_CloseFigure) in BuildPath()