/foundation/graphic/graphic_utils_lite/frameworks/diagram/rasterizer/ |
D | rasterizer_scanline_clip.cpp | 27 int32_t x1, int32_t y1, in LineClipY() argument 37 ras.LineOperate(RasterDepictInt::GetXCoordinateValue(x1), in LineClipY() 48 int32_t tx1 = x1; in LineClipY() 56 tx1 = x1 + RasterDepictInt::MultDiv(clipBox_.GetTop() - y1, x2 - x1, y2 - y1); in LineClipY() 64 tx1 = x1 + RasterDepictInt::MultDiv(clipBox_.GetBottom() - y1, x2 - x1, y2 - y1); in LineClipY() 71 tx2 = x1 + RasterDepictInt::MultDiv(clipBox_.GetTop() - y1, x2 - x1, y2 - y1); in LineClipY() 78 tx2 = x1 + RasterDepictInt::MultDiv(clipBox_.GetBottom() - y1, x2 - x1, y2 - y1); in LineClipY() 116 int32_t x1 = x1_; in LineTo() local 129 LineClipY(rasterLine, x1, y1, x2, y2, clipFlagsMoveToPoint, cFlagsLineToPoint); in LineTo() 135 … yPilotOne = y1 + RasterDepictInt::MultDiv(clipBox_.GetRight() - x1, y2 - y1, x2 - x1); in LineTo() [all …]
|
D | rasterizer_cells_antialias.cpp | 118 void RasterizerCellsAntiAlias::OutLineLegal(int32_t x1, int32_t y1, int32_t x2, int32_t y2) in OutLineLegal() argument 123 if (x1 < minX_) { in OutLineLegal() 124 minX_ = x1; in OutLineLegal() 126 if (x1 > maxX_) { in OutLineLegal() 127 maxX_ = x1; in OutLineLegal() 157 int32_t ey, int32_t x1, int32_t polySubpixelMaskY1, int32_t x2, int32_t polySubpixelMaskY2) in RenderHorizonline() argument 163 int32_t submaskFlagsX1 = x1 & POLY_SUBPIXEL_MASK; in RenderHorizonline() 168 int32_t pixelX1 = x1 >> POLY_SUBPIXEL_SHIFT; in RenderHorizonline() 194 dx = (long long)x2 - (long long)x1; in RenderHorizonline() 254 void RasterizerCellsAntiAlias::LineOperate(int32_t x1, int32_t y1, int32_t x2, int32_t y2) in LineOperate() argument [all …]
|
/foundation/arkui/ui_lite/frameworks/render/ |
D | render_scanline.cpp | 165 int32_t x1 = span1->x; in BlendSourceAtop() local 171 if ((x1 <= x2) && ((x2 + span2->spanLength) < (x1 + span1->spanLength))) { in BlendSourceAtop() 176 … } else if ((x1 >= x2) && ((x1 + span1->spanLength) <= (x2 + span2->spanLength))) { in BlendSourceAtop() 177 spanGen1.Generate(alloc.GetSpanPtr(), x1, y2, span1->spanLength); in BlendSourceAtop() 178 renBase.BlendColorHSpan(x1, y2, (uint32_t)span1->spanLength, in BlendSourceAtop() 181 } else if ((x1 > x2) && (x1 < (x2 + span2->spanLength)) && in BlendSourceAtop() 182 ((x1 + span1->spanLength) >= (x2 + span2->spanLength))) { in BlendSourceAtop() 184 CalcinterScanline(scanline3, x1, x2, span1, span2); in BlendSourceAtop() 186 spanGen1.Generate(alloc.GetSpanPtr(), x1, y2, span3->spanLength); in BlendSourceAtop() 187 renBase.BlendColorHSpan(x1, y2, (uint32_t)span3->spanLength, in BlendSourceAtop() [all …]
|
D | render_base.cpp | 31 bool RenderBase::ClipBox(int32_t x1, int32_t y1, int32_t x2, int32_t y2) in ClipBox() argument 33 Rect32 cb(x1, y1, x2, y2); in ClipBox() 52 void RenderBase::ClipBoxNaked(int32_t x1, int32_t y1, int32_t x2, int32_t y2) in ClipBoxNaked() argument 54 clipBox_.SetRect(x1, y1, x2, y2); in ClipBoxNaked() 66 void RenderBase::BlendHLine(int32_t x1, int32_t y, int32_t x2, const Rgba8T& color, uint8_t cover) in BlendHLine() argument 68 if (x1 > x2) { in BlendHLine() 69 int32_t swapTemp = x1; in BlendHLine() 70 x1 = x2; in BlendHLine() 73 if (y > GetYMax() || y < GetYMin() || x1 > GetXMax() || x2 < GetXMin()) { in BlendHLine() 76 if (x1 < GetXMin()) { in BlendHLine() [all …]
|
D | render_base.h | 67 bool ClipBox(int32_t x1, int32_t y1, int32_t x2, int32_t y2); 83 void ClipBoxNaked(int32_t x1, int32_t y1, int32_t x2, int32_t y2); 152 void BlendHLine(int32_t x1, int32_t y, int32_t x2, const Rgba8T& color, uint8_t cover);
|
D | render_scanline.h | 70 void CalcinterScanline(GeometryScanline& scanline3, int32_t x1, int32_t x2, 73 void CalcOutScanlineRight(GeometryScanline& scanline, int32_t x1, int32_t x2, 76 void CalcOutScanlineLeft(GeometryScanline& scanline, int32_t x1, int32_t x2, 79 void CalcOutScanlineAll(GeometryScanline& scanline, int32_t x1, int32_t x2,
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/ |
D | geometry_curves.h | 41 QuadBezierCurveIncr(float x1, float y1, in QuadBezierCurveIncr() argument 46 Init(x1, y1, x2, y2, x3, y3); in QuadBezierCurveIncr() 49 void Init(float x1, float y1, float x2, float y2, float x3, float y3); 91 QuadrBezierCurveDividOp(float x1, float y1, in QuadrBezierCurveDividOp() argument 96 Init(x1, y1, x2, y2, x3, y3); in QuadrBezierCurveDividOp() 99 void Init(float x1, float y1, float x2, float y2, float x3, float y3); 124 void Bezier(float x1, float y1, 127 void Recursive(float x1, float y1, 144 CubicBezierCurvePoints(float x1, float y1, in CubicBezierCurvePoints() 149 cpArray[0] = x1; in CubicBezierCurvePoints() [all …]
|
D | geometry_bezier_arc.h | 179 BezierArcSvg(float x1, in BezierArcSvg() argument 187 Init(x1, y1, rx, ry, angle, largeArcFlag, sweepFlag, x2, y2); in BezierArcSvg() 195 void Init(float x1,
|
/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/ |
D | geometry_curves.cpp | 34 void QuadBezierCurveIncr::Init(float x1, float y1, in Init() argument 38 startCoordinate_.x = x1; in Init() 43 float deltaX1 = x2 - x1; in Init() 62 float tmpX = (x1 - x2 * FLOATNUM + x3) * subdivideStep2; in Init() 65 savedFinalCoordinate_.x = x1; in Init() 66 finalCoordinate_.x = x1; in Init() 70 savedDeltaFinalCoordinate_.x = tmpX + (x2 - x1) * (FLOATNUM * subdivideStep); in Init() 71 deltaFinalCoordinate_.x = tmpX + (x2 - x1) * (FLOATNUM * subdivideStep); in Init() 144 void QuadrBezierCurveDividOp::Init(float x1, float y1, in Init() argument 151 Bezier(x1, y1, x2, y2, x3, y3); in Init() [all …]
|
D | geometry_bezier_arc.cpp | 139 float x1 = cosA * delatX2 + sinA * delatY2; in Init() local 142 float px1 = x1 * x1; in Init() 164 float cy1 = coef * -((ry * x1) / rx); in Init() 169 float ux = (x1 - cx1) / rx; in Init() 171 float vx = (-x1 - cx1) / rx; in Init()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/common/ |
D | common_math.h | 40 inline float CrossProduct(float x1, float y1, float x2, float y2, float x, float y) in CrossProduct() argument 42 return (x - x2) * (y2 - y1) - (y - y2) * (x2 - x1); in CrossProduct() 52 inline float CalcDistance(float x1, float y1, float x2, float y2) in CalcDistance() argument 54 float dx = x2 - x1; in CalcDistance() 66 inline float CalcSqDistance(float x1, float y1, float x2, float y2) in CalcSqDistance() argument 68 float dx = x2 - x1; in CalcSqDistance()
|
/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/ |
D | svg_line_declaration.h | 24 Dimension x1; member 40 void SetX1(const Dimension& x1) in SetX1() argument 43 attribute.x1 = x1; in SetX1() 67 return attribute.x1; in GetX1()
|
/foundation/graphic/graphic_utils_lite/frameworks/ |
D | geometry2d.cpp | 75 int16_t x1 = line[0].x_; in Clip() local 81 …int32_t iPos = static_cast<int32_t>(x2 - x1) * (iY - y1) - static_cast<int32_t>(y2 - y1) * (iX - x… in Clip() 84 …int32_t kPos = static_cast<int32_t>(x2 - x1) * (kY - y1) - static_cast<int32_t>(y2 - y1) * (kX - x… in Clip() 97 bool intersect = Intersect(Line(x1, y1, x2, y2), Line(iX, iY, kX, kY), intersectPoint); in Clip() 112 bool intersect = Intersect(Line(x1, y1, x2, y2), Line(iX, iY, kX, kY), intersectPoint); in Clip() 157 int16_t x1 = line[0].x_; in Clip() local 163 …int32_t iPos = static_cast<int32_t>(x2 - x1) * (iY - y1) - static_cast<int32_t>(y2 - y1) * (iX - x… in Clip() 166 …int32_t kPos = static_cast<int32_t>(x2 - x1) * (kY - y1) - static_cast<int32_t>(y2 - y1) * (kX - x… in Clip() 170 Intersect(Line(x1, y1, x2, y2), Line(iX, iY, kX, kY), intersectPoint); in Clip()
|
D | trans_affine.cpp | 18 const TransAffine& TransAffine::RectToParl(float x1, float y1, in RectToParl() argument 22 data_[0] = x2 - x1; in RectToParl() 24 data_[1] = x2 - x1; in RectToParl() 26 data_[2] = x1; in RectToParl()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/rasterizer/ |
D | rasterizer_scanline_clip.h | 134 void MoveTo(int32_t x1, int32_t y1) in MoveTo() argument 136 x1_ = x1; in MoveTo() 139 clippingFlags_ = ClippingFlags(x1, y1, clipBox_); in MoveTo() 171 int32_t x1, int32_t y1,
|
D | rasterizer_cells_antialias.h | 102 void LineOperate(int32_t x1, int32_t y1, int32_t x2, int32_t y2); 179 void OutLineLegal(int32_t x1, int32_t y1, int32_t x2, int32_t y2); 195 …void RenderHorizonline(int32_t ey, int32_t x1, int32_t submaskFlagsY1, int32_t x2, int32_t submask… 197 void RenderVerticalLine(int32_t& x1, int32_t& ex1, int64_t& dy, int32_t& first,
|
/foundation/window/window_manager_lite/services/wms/ |
D | lite_wm.cpp | 261 int16_t x1 = mask.GetLeft(); in Resize() local 270 … UpdateWindowRegion(window, {x1, static_cast<int16_t>(y2 + 1), x2, rectBefore.GetBottom()}); in Resize() 415 void LiteWM::CalculateUpdateRegion(const ListNode<LiteWindow*>* winNode, int16_t x1, int16_t y1, in… in CalculateUpdateRegion() argument 417 Rect rect(x1, y1, x2, y2); in CalculateUpdateRegion() 431 if (x1 != mask.GetLeft()) { in CalculateUpdateRegion() 432 CalculateUpdateRegion(winNode->prev_, x1, y1, mask.GetLeft() - 1, y2); in CalculateUpdateRegion() 449 CalculateUpdateRegion(winNode->prev_, x1, y1, x2, y2); in CalculateUpdateRegion() 508 void LiteWM::DrawRegion(const ListNode<LiteWindow*>* winNode, int16_t x1, int16_t y1, int16_t x2, i… in DrawRegion() argument 515 DrawBackground(x1, y1, x2, y2); in DrawRegion() 525 Rect rect(x1, y1, x2, y2); in DrawRegion() [all …]
|
D | lite_win.cpp | 156 int16_t x1 = srcRect.GetLeft(); in FlushWithModeCopy() local 162 …uint8_t* srcBuf = reinterpret_cast<uint8_t*>(backBuf_->GetVirAddr()) + y1 * stride + x1 * sizeof(C… in FlushWithModeCopy() 164 int32_t lineSize = static_cast<int32_t>(x2 - x1 + 1) * sizeof(LayerColorType); in FlushWithModeCopy() 169 for (int16_t x = x1; x <= x2; ++x) { in FlushWithModeCopy() 184 int16_t x1 = srcRect.GetLeft(); in FlushWithModeBlend() local 190 …uint8_t* srcBuf = reinterpret_cast<uint8_t*>(backBuf_->GetVirAddr()) + y1 * stride + x1 * sizeof(C… in FlushWithModeBlend() 195 for (int16_t x = x1; x <= x2; ++x) { in FlushWithModeBlend()
|
/foundation/arkui/ui_lite/frameworks/animator/ |
D | interpolation.cpp | 71 float Interpolation::GetBezierY(float x, float x1, float y1, float x2, float y2) in GetBezierY() argument 77 float xt = GetBezierInterpolation(t, 0, x1, x2, 1); in GetBezierY() 86 t = t + (x - xt) / GetBezierDerivative(t, 0, x1, x2, 1); in GetBezierY() 87 xt = GetBezierInterpolation(t, 0, x1, x2, 1); in GetBezierY()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
D | rs_cubic_bezier_interpolator.h | 50 float x1 = 0; in Unmarshalling() local 54 …if (!(parcel.ReadFloat(x1) && parcel.ReadFloat(y1) && parcel.ReadFloat(x2) && parcel.ReadFloat(y2)… in Unmarshalling() 58 return new RSCubicBezierInterpolator(x1, y1, x2, y2); in Unmarshalling()
|
/foundation/arkui/ui_lite/test/unittest/components/ |
D | ui_circle_progress_unit_test.cpp | 176 int16_t x1 = x + view->GetStyleConst().paddingLeft_ + view->GetStyleConst().borderWidth_; variable 179 EXPECT_EQ(circleProgress_->GetCenterPosition().x, x1); 199 int16_t x1 = x + view->GetStyleConst().paddingLeft_ + view->GetStyleConst().borderWidth_; variable 202 EXPECT_EQ(circleProgress_->GetCenterPosition().x, x1);
|
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
D | svg_line_component.cpp | 47 void SvgLineComponent::SetX1(const Dimension& x1) in SetX1() argument 49 declaration_->SetX1(x1); in SetX1()
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/ |
D | texgine_canvas.cpp | 21 void TexgineCanvas::DrawLine(double x0, double y0, double x1, double y1, const TexginePaint &paint) in DrawLine() argument 27 canvas_->drawLine(x0, y0, x1, y1, paint.GetPaint()); in DrawLine()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/c/ |
D | drawing_path.cpp | 50 OH_Drawing_Path* cPath, float x1, float y1, float x2, float y2, float startDeg, float sweepDeg) in OH_Drawing_PathArcTo() argument 52 CastToPath(cPath)->ArcTo(x1, y1, x2, y2, startDeg, sweepDeg); in OH_Drawing_PathArcTo()
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
D | cubic_curve.cpp | 25 CubicCurve::CubicCurve(float x0, float y0, float x1, float y1) in CubicCurve() argument 26 : x0_(x0), y0_(y0), x1_(x1), y1_(y1) in CubicCurve()
|