Home
last modified time | relevance | path

Searched refs:y2 (Results 1 – 25 of 79) sorted by relevance

1234

/foundation/resourceschedule/ffrt/benchmarks/fib/
Dfib.cpp26 int y1, y2; in Fib() local
28 Fib(x - 2, y2); in Fib()
29 y = y1 + y2; in Fib()
39 int y1, y2; in FibFFRTChildWait() local
41 ffrt::submit([&]() { FibFFRTChildWait(x - 2, y2); }, {}, {}); in FibFFRTChildWait()
43 y = y1 + y2; in FibFFRTChildWait()
53 int y1, y2; in FibFFRTDataWait() local
55 ffrt::submit([&]() { FibFFRTDataWait(x - 2, y2); }, {}, {&y2}); in FibFFRTDataWait()
56 ffrt::wait({&y1, &y2}); in FibFFRTDataWait()
57 y = y1 + y2; in FibFFRTDataWait()
[all …]
/foundation/graphic/graphic_utils_lite/frameworks/diagram/rasterizer/
Drasterizer_scanline_clip.cpp28 int32_t x2, int32_t y2, in LineClipY() argument
40 RasterDepictInt::GetYCoordinateValue(y2)); in LineClipY()
51 int32_t ty2 = y2; 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()
105 void RasterizerScanlineClip::LineTo(RasterizerCellsAntiAlias& rasterLine, int32_t x2, int32_t y2) in LineTo() argument
108 uint32_t cFlagsLineToPoint = ClippingFlags(x2, y2, clipBox_); in LineTo()
111 y1_ = y2; in LineTo()
[all …]
Drasterizer_cells_antialias.cpp118 void RasterizerCellsAntiAlias::OutLineLegal(int32_t x1, int32_t y1, int32_t x2, int32_t y2) in OutLineLegal() argument
141 if (y2 < minY_) { in OutLineLegal()
142 minY_ = y2; in OutLineLegal()
144 if (y2 > maxY_) { in OutLineLegal()
145 maxY_ = y2; in OutLineLegal()
254 void RasterizerCellsAntiAlias::LineOperate(int32_t x1, int32_t y1, int32_t x2, int32_t y2) in LineOperate() argument
262 int32_t cy = static_cast<int32_t>(((int64_t)y1 + (int64_t)y2) >> 1); in LineOperate()
264 LineOperate(cx, cy, x2, y2); in LineOperate()
270 int64_t dy = (int64_t)y2 - (int64_t)y1; in LineOperate()
274 int32_t ey2 = y2 >> POLY_SUBPIXEL_SHIFT; in LineOperate()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
Dgeometry_curves.h42 float x2, float y2, 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);
92 float x2, float y2, 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);
125 float x2, float y2,
128 float x2, float y2,
145 float x2, float y2, in CubicBezierCurvePoints()
152 cpArray[3] = y2; in CubicBezierCurvePoints()
[all …]
Dgeometry_bezier_arc.h185 float x2, float y2) : bezierArcModel_(), isRadiusJoinPath_(false) in BezierArcSvg() argument
187 Init(x1, y1, rx, ry, angle, largeArcFlag, sweepFlag, x2, y2); in BezierArcSvg()
203 float y2);
/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/
Dgeometry_curves.cpp35 float x2, float y2, in Init() argument
44 float deltaY1 = y2 - y1; in Init()
46 float deltaY2 = y3 - y2; in Init()
63 float tmpY = (y1 - y2 * FLOATNUM + y3) * subdivideStep2; in Init()
72 savedDeltaFinalCoordinate_.y = tmpY + (y2 - y1) * (FLOATNUM * subdivideStep); in Init()
73 deltaFinalCoordinate_.y = tmpY + (y2 - y1) * (FLOATNUM * subdivideStep); in Init()
145 float x2, float y2, in Init() argument
151 Bezier(x1, y1, x2, y2, x3, y3); in Init()
208 float x2, float y2, in Recursive() argument
218 float y12 = (y1 + y2) / FLOATNUM; in Recursive()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/common/
Dcommon_math.h40 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
55 float dy = y2 - y1; in CalcDistance()
66 inline float CalcSqDistance(float x1, float y1, float x2, float y2) in CalcSqDistance() argument
69 float dy = y2 - y1; in CalcSqDistance()
/foundation/arkui/ui_lite/frameworks/render/
Drender_scanline.cpp149 int32_t y2 = scanline2.GetYLevel(); in BlendSourceAtop() local
153 if (y2 > y1) { in BlendSourceAtop()
156 if (y1 == y2) { in BlendSourceAtop()
164 if (y1 == y2) { in BlendSourceAtop()
168 spanGen2.Generate(alloc.GetSpanPtr(), x2, y2, span2->spanLength); in BlendSourceAtop()
169 renBase.BlendColorHSpan(x2, y2, (uint32_t)span2->spanLength, in BlendSourceAtop()
172 spanGen1.Generate(alloc.GetSpanPtr(), x2, y2, span2->spanLength); in BlendSourceAtop()
173 renBase.BlendColorHSpan(x2, y2, (uint32_t)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()
[all …]
Drender_base.cpp31 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()
/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
Drosen_render_pattern_lock.cpp170 double y2 = offset.GetY() + cellCenter_.GetY(); in PaintLockLine() local
173y2 = y2 > offset.GetY() + NormalizeToPx(sideLength_) ? offset.GetY() + NormalizeToPx(sideLength_) … in PaintLockLine()
174 y2 = y2 < offset.GetY() ? offset.GetY() : y2; in PaintLockLine()
175 SkPoint points[2] = { SkPoint::Make(x1, y1), SkPoint::Make(x2, y2) }; in PaintLockLine()
181 canvas->drawLine(x1, y1, x2, y2, skPaintStroke); in PaintLockLine()
229 double y2 = offset.GetY() + cellCenter_.GetY(); in PaintLockLine() local
232y2 = y2 > offset.GetY() + NormalizeToPx(sideLength_) ? offset.GetY() + NormalizeToPx(sideLength_) … in PaintLockLine()
233 y2 = y2 < offset.GetY() ? offset.GetY() : y2; in PaintLockLine()
234 std::vector<RSPoint> points = { RSPoint(x1, y1), RSPoint(x2, y2) }; in PaintLockLine()
243 canvas->DrawLine(RSPoint(x1, y1), RSPoint(x2, y2)); in PaintLockLine()
Dflutter_render_pattern_lock.cpp115 double y2 = offset.GetY() + cellCenter_.GetY(); in PaintLockLine() local
118y2 = y2 > offset.GetY() + NormalizeToPx(sideLength_) ? offset.GetY() + NormalizeToPx(sideLength_) … in PaintLockLine()
119 y2 = y2 < offset.GetY() ? offset.GetY() : y2; in PaintLockLine()
120 SkPoint points[2] = { SkPoint::Make(x1, y1), SkPoint::Make(x2, y2) }; in PaintLockLine()
126 canvas->canvas()->drawLine(x1, y1, x2, y2, skPaintStroke); in PaintLockLine()
/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/
Dsvg_line_declaration.h27 Dimension y2; member
58 void SetY2(const Dimension& y2) in SetY2() argument
61 attribute.y2 = y2; in SetY2()
85 return attribute.y2; in GetY2()
Dsvg_gradient_declaration.h67 void SetY2(const Dimension& y2) in SetY2() argument
70 attribute.gradient.GetLinearGradient().y2 = y2; in SetY2()
/foundation/window/window_manager_lite/services/wms/
Dlite_wm.cpp264 int16_t y2 = mask.GetBottom(); in Resize() local
269 if (y2 != rectBefore.GetBottom()) { in Resize()
270 … UpdateWindowRegion(window, {x1, static_cast<int16_t>(y2 + 1), x2, rectBefore.GetBottom()}); in Resize()
415 …eUpdateRegion(const ListNode<LiteWindow*>* winNode, int16_t x1, int16_t y1, int16_t x2, int16_t y2) in CalculateUpdateRegion() argument
417 Rect rect(x1, y1, x2, y2); in CalculateUpdateRegion()
432 CalculateUpdateRegion(winNode->prev_, x1, y1, mask.GetLeft() - 1, y2); in CalculateUpdateRegion()
440 CalculateUpdateRegion(winNode->prev_, mask.GetRight() + 1, mask.GetTop(), x2, y2); in CalculateUpdateRegion()
443 if (y2 != mask.GetBottom()) { in CalculateUpdateRegion()
444 … CalculateUpdateRegion(winNode->prev_, mask.GetLeft(), mask.GetBottom() + 1, mask.GetRight(), y2); in CalculateUpdateRegion()
449 CalculateUpdateRegion(winNode->prev_, x1, y1, x2, y2); in CalculateUpdateRegion()
[all …]
Dlite_wm.h70 …UpdateRegion(const ListNode<LiteWindow*>* winNode, int16_t x1, int16_t y1, int16_t x2, int16_t y2);
72 … DrawRegion(const ListNode<LiteWindow *>* winNode, int16_t x1, int16_t y1, int16_t x2, int16_t y2);
73 void DrawBackground(int16_t x1, int16_t y1, int16_t x2, int16_t y2);
/foundation/graphic/graphic_utils_lite/frameworks/
Dgeometry2d.cpp78 int16_t y2 = line[1].y_; 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()
160 int16_t y2 = line[1].y_; 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()
/foundation/resourceschedule/ffrt/benchmarks/
Dcommon.h71 int y1, y2; in FibFFRT() local
73 ffrt::submit([&]() { FibFFRT(x - 2, y2); }, {&x}, {&y2}); in FibFFRT()
74 ffrt::wait({&y1, &y2}); in FibFFRT()
75 y = y1 + y2; in FibFFRT()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
Drs_cubic_bezier_interpolator.h53 float y2 = 0; in Unmarshalling() local
54 …(!(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/graphic/graphic_2d/utils/cpudraw/src/
Dcpudraw.cpp20 bool CpudrawRect::Contain(int32_t x2, int32_t y2) in Contain() argument
22 return x <= x2 && x2 <= x + w && y <= y2 && y2 <= y + h; in Contain()
/foundation/arkui/ace_engine/frameworks/core/components/svg/
Dsvg_line_component.cpp62 void SvgLineComponent::SetY2(const Dimension& y2) in SetY2() argument
64 declaration_->SetY2(y2); in SetY2()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/c/
Ddrawing_path.cpp50 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()
Ddrawing_canvas.cpp94 void OH_Drawing_CanvasDrawLine(OH_Drawing_Canvas* cCanvas, float x1, float y1, float x2, float y2) in OH_Drawing_CanvasDrawLine() argument
97 Point endPt(x2, y2); in OH_Drawing_CanvasDrawLine()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/rasterizer/
Drasterizer_scanline_clip.h160 void LineTo(RasterizerCellsAntiAlias& ras, int32_t x2, int32_t y2);
172 int32_t x2, int32_t y2,
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
Djs_canvas_path.cpp110 double y2 = 0.0; in JsPath2DArcTo() local
115 JSViewAbstract::ParseJsDouble(info[3], y2); in JsPath2DArcTo()
120 y2 = SystemProperties::Vp2Px(y2); in JsPath2DArcTo()
122 path2d_->ArcTo(x1, y1, x2, y2, radius); in JsPath2DArcTo()
/foundation/resourceschedule/ffrt/docs/
Duser_guide.md350 int y1, y2;
352 fib(x - 2, y2);
353 y = y1 + y2;
378 int y1, y2;
380 ffrt::submit([&] {fib_ffrt(x - 2, y2);}, {&x}, {&y2} );
381 ffrt::wait({&y1, &y2});
382 y = y1 + y2;
1140 int y1, y2;
1142 fib(x - 2, &y2);
1143 *y = y1 + y2;
[all …]

1234