Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 1002) sorted by relevance

12345678910>>...41

/foundation/arkui/ui_lite/frameworks/draw/
Ddraw_triangle.cpp35 if ((p1.x == p2.x) && ((p1.y == p2.y) || (p1.x == p3.x))) { in Draw()
38 if ((p2.x == p3.x) && (p2.y == p3.y)) { in Draw()
41 if (((p1.x == p3.x) || (p1.y == p2.y)) && (p1.y == p3.y)) { in Draw()
48 int16_t lastY = p1.y; in Draw()
50 while (edge1.curPoint.y <= p3.y) { in Draw()
52 if (edge1.curPoint.y == p2.y) { in Draw()
54 if (edge1.dPoint.y == 0) { in Draw()
61 area.SetTop(MATH_MIN(edge1.curPoint.y, edge2.curPoint.y)); in Draw()
62 area.SetBottom(MATH_MAX(edge1.curPoint.y, edge2.curPoint.y)); in Draw()
65 while (edge1.curPoint.y == lastY) { in Draw()
[all …]
Dclip_utils.cpp33 vertices_->MoveTo(point.x, point.y); in MoveTo()
40 vertices_->LineTo(point.x, point.y); in LineTo()
42 vertices_->MoveTo(point.x, point.y); in LineTo()
49 vertices_->CubicBezierCurve(control1.x, control1.y, control2.x, control2.y, end.x, end.y); in CurveTo()
61 vertices_->LineTo(float(center.x + sinma), float(center.y - cosma)); in Arc()
63 vertices_->MoveTo(float(center.x + sinma), float(center.y - cosma)); in Arc()
78 vertices_->ArcTo(radius, radius, angle, largeArcFlag, 1, center.x + sinma, center.y - cosma); in Arc()
89 BezierArc arc(center.x, center.y, radius, radius, 0, TWO_TIMES * PI); in Circle()
121 int16_t y = 0; in PerformScan() local
123 y = scanline.GetYLevel(); in PerformScan()
[all …]
Ddraw_curve.cpp33 point.y = Interpolation::GetBezierInterpolation(t, start.y, control1.y, control2.y, end.y); in DrawCubicBezier()
34 if ((prePoint.x == point.x) && (prePoint.y == point.y)) { in DrawCubicBezier()
/foundation/graphic/graphic_2d/rosen/samples/texgine/feature_test/
Dglyph_position_test.cpp30 double y = 5; member
33 { .x = -5, .y = -5 },
34 { .x = -5, .y = 15 },
35 { .x = 5, .y = -5 },
36 { .x = -5, .y = 85 },
37 { .x = 155, .y = -5 },
38 { .x = 155, .y = 15 },
39 { .x = 155, .y = 85 },
40 { .x = 96, .y = 8 },
41 { .x = 100, .y = 8 },
[all …]
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
Dvector.h24 VectorF(float xF, float yF) : x(xF), y(yF) {} in VectorF()
28 return NearEqual(x, other.x) && NearEqual(y, other.y);
32 float y = 0.0f; member
36 Vector3F(float xF, float yF, float zF) : x(xF), y(yF), z(zF) {} in Vector3F()
40 return NearEqual(x, other.x) && NearEqual(y, other.y) && NearEqual(z, other.z);
44 float y = 0.0f; member
49 Vector4F(float xF, float yF, float zF, float wF) : x(xF), y(yF), z(zF), w(wF) {} in Vector4F()
53 …return NearEqual(x, other.x) && NearEqual(y, other.y) && NearEqual(z, other.z) && NearEqual(w, oth…
57 float y = 0.0f; member
63 … Vector5F(float xF, float yF, float zF, float wF, float vF) : x(xF), y(yF), z(zF), w(wF), v(vF) {} in Vector5F()
[all …]
/foundation/graphic/graphic_utils_lite/frameworks/
Dgraphic_math.cpp60 float Fmod(float x, float y) in Fmod() argument
62 return static_cast<float>(x - static_cast<int>(x / y) * y); in Fmod()
96 uint16_t FastAtan2(int16_t x, int16_t y) in FastAtan2() argument
98 if (x == 0 && y == 0) { in FastAtan2()
103 int16_t absY = MATH_ABS(y); in FastAtan2()
118 if (y < 0) { in FastAtan2()
131 float FastAtan2F(float y, float x) in FastAtan2F() argument
134 float absY = MATH_ABS(y); in FastAtan2F()
151 if (y < 0) { in FastAtan2F()
170 float y = *reinterpret_cast<float*>(&i); in Sqrt() local
[all …]
/foundation/graphic/graphic_utils_lite/frameworks/diagram/depiction/
Ddepict_curve.cpp49 uint32_t DepictCurve::GenerateVertex(float* x, float* y) in GenerateVertex() argument
51 if (!IsStop(quadraticBezier_.GenerateVertex(x, y))) { in GenerateVertex()
53 lastY_ = *y; in GenerateVertex()
57 if (!IsStop(cubicBezier_.GenerateVertex(x, y))) { in GenerateVertex()
59 lastY_ = *y; in GenerateVertex()
68 uint32_t cmd = source_->GenerateVertex(x, y); in GenerateVertex()
73 quadraticBezier_.Init(lastX_, lastY_, *x, *y, endX, endY); in GenerateVertex()
75 quadraticBezier_.GenerateVertex(x, y); // First call returns path_cmd_move_to in GenerateVertex()
76 quadraticBezier_.GenerateVertex(x, y); // This is the first vertex of the curve in GenerateVertex()
84 cubicBezier_.Init(lastX_, lastY_, *x, *y, control2X, control2Y, endX, endY); in GenerateVertex()
[all …]
/foundation/arkui/ui_lite/frameworks/components/
Dui_chart.cpp186 pointArray_[index].y = point.y; in ModifyPoint()
187 if (point.y > peakData_) { in ModifyPoint()
192 peakData_ = point.y; in ModifyPoint()
193 } else if (point.y < valleyData_) { in ModifyPoint()
198 valleyData_ = point.y; in ModifyPoint()
217 chart_->GetYAxis().TranslateToPixel(point.y); in GetPoint()
283 peakData_ = pointArray_[startPos].y; in UpdatePeakAndValley()
284 valleyData_ = pointArray_[startPos].y; in UpdatePeakAndValley()
288 if (pointArray_[i].y > peakData_) { in UpdatePeakAndValley()
294 peakData_ = pointArray_[i].y; in UpdatePeakAndValley()
[all …]
Dui_axis.cpp65 start_.y = enableReverse_ ? current.GetTop() : current.GetBottom(); in UpdateAxisPoints()
66 end_.y = start_.y; in UpdateAxisPoints()
107 start.y = start_.y; in DrawAxisMark()
109 …end.y = enableReverse_ ? (start.y + AXIS_DEFAULT_MARK_LENGTH) : (start.y - AXIS_DEFAULT_MARK_LENGT… in DrawAxisMark()
147 start_.y = top; in UpdateAxisPoints()
148 end_.y = bottom; in UpdateAxisPoints()
150 start_.y = bottom; in UpdateAxisPoints()
151 end_.y = top; in UpdateAxisPoints()
159 value = start_.y + static_cast<int16_t>((maxRange_ - value + minRange_) * minYStep); in TranslateToPixel()
161 value = start_.y - static_cast<int16_t>((value - minRange_) * minYStep); in TranslateToPixel()
[all …]
/foundation/multimedia/av_codec/test/moduletest/resources/demuxer/
Dts_video.ts46 n�G�cXN{��\J@E%!32]Fބ���$�ߒ���W��� &�jBH�c� ��]:/�CPL 姫g�`������)O��?��y��f&���…
2903 …��q{Q��{Ҕzo1c+ޕ[2����S�D]�B�0���d�w����T���}�����VG���O�}���-�E(%�"�2��y�s�]ԡ"u���.�f�UW�(h…
2915 +�`}k�hm�ֶ�����Q�u���[YN�e�T�E�w���RQ���3cn�_��%��]ΟΛ�o�s.�Hj@y�^W��w�F-�G��fCc�l��fi%mr*g;…
2917 …�yt�5��K\]d̿�]$�o{��}�usfp�Yތ��H?YCU�0NƮs���1v������0������aWU�EJ��:'y�:��^֒�^>��rѮ����ތ}��…
2918 …UMKN�l[��a�k�i\����6 ��\�y��a��L�8�IގZ�M�wE��1y�s��U;�(��A��j�h�����;s�>q{�k6�]�Vl�i��s�Su[no�…
2922 …���{h�6s�u���Y���ѷ��������r��Ҏ���km�z����zLx}��e��!)�uW�Ks�|p��LV���N�'��y���5z��%ޣ�Ko�;��Z�`N…
2931 ҋ/�ey������'`��y������
2948 ��mͦo����E���g{sN���G��y�֮�N��^�b������r.�.R�o]�Eɲ�U[���r9��uQz�q��tMW���a괨�ʮ��CZ}sJ�BE…
2954 …���,ui/֙gUG��w�M�����z��J�vG�p��M�W+q��5���x�����V7�����c�tv��Vn��kɮ�f�y۞m�7�qݍ�&���:�Z?�l&�u…
2986 R5�څ"��߯O~}�ݱ��>���:�.�y����k���em��q��
/foundation/arkui/ui_lite/frameworks/render/
Drender_base.cpp60 for (uint32_t y = 0; y < GetHeight(); y++) { in Clear() local
61 pixfmtType_->CopyHLine(0, y, GetWidth(), color); in Clear()
66 void RenderBase::BlendHLine(int32_t x1, int32_t y, int32_t x2, const Rgba8T& color, uint8_t cover) in BlendHLine() argument
73 if (y > GetYMax() || y < GetYMin() || x1 > GetXMax() || x2 < GetXMin()) { in BlendHLine()
83 pixfmtType_->BlendHLine(x1, y, x2 - x1 + 1, color, cover); in BlendHLine()
86 void RenderBase::BlendSolidHSpan(int32_t x, int32_t y, int32_t len, const Rgba8T& color, const uint… in BlendSolidHSpan() argument
88 if (y > GetYMax() || y < GetYMin()) { in BlendSolidHSpan()
105 pixfmtType_->BlendSolidHSpan(x, y, len, color, covers); in BlendSolidHSpan()
108 void RenderBase::CopyColorHSpan(int32_t x, int32_t y, int32_t len, const Rgba8T* colors) in CopyColorHSpan() argument
111 if (!ColorHSpanHandler(x, y, len, colors, covers)) { in CopyColorHSpan()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
Dgeometry_path_storage.h50 float y; variable
51 uint32_t cmd = vertexBlockStorage.GenerateVertex(iIndex, &x, &y);
52 AddVertex(x, y, cmd);
107 void AddVertex(float x, float y, uint32_t cmd) in AddVertex() argument
112 coordPtr[1] = float(y); in AddVertex()
136 uint32_t LastVertex(float* x, float* y) const in LastVertex() argument
139 return GenerateVertex(totalVertices_ - 1, x, y); in LastVertex()
162 uint32_t GenerateVertex(uint32_t idx, float* x, float* y) const in GenerateVertex() argument
167 *y = pv[1]; in GenerateVertex()
267 void MoveTo(float x, float y) in MoveTo() argument
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/mock/
Dtransform_mock.cpp30 void RenderTransform::Translate(const Dimension& x, const Dimension& y, const Dimension& z) {} in Translate() argument
32 void RenderTransform::Scale(float x, float y, float z) {} in Scale() argument
34 void RenderTransform::Skew(float x, float y) {} in Skew() argument
45 void RenderTransform::Translate(const Dimension& x, const Dimension& y) in Translate() argument
47 LOGD("TransformMock Translate. x: %{public}lf, y: %{public}lf", x.Value(), y.Value()); in Translate()
50 mock->MockTranslate(x, y); in Translate()
63 void RenderTransform::Scale(float x, float y) in Scale() argument
65 LOGD("TransformMock Scale. scaleX: %{public}f, scaleY: %{public}f", x, y); in Scale()
68 mock->MockScale(x, y); in Scale()
72 void RenderTransform::Rotate(float angle, float x, float y, float z) in Rotate() argument
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/
Dfill_pattern_rgba.h77 void Generate(Rgba8T* span, int32_t x, int32_t y, uint32_t len) in Generate() argument
79 y = static_cast<int32_t>(y - patternStartY_); in Generate()
84 y >= patternImageheigth_) { in Generate()
87 ChangeColor(span, patternImage_[patternImagewidth_ * y + x]); in Generate()
93 y = y % patternImageheigth_; in Generate()
94 if (x >= patternImagewidth_ || y >= patternImageheigth_) { in Generate()
97 ChangeColor(span, patternImage_[patternImagewidth_ * y + x]); in Generate()
103 if (y >= patternImageheigth_) { in Generate()
106 y = y % patternImageheigth_; in Generate()
107 if (x >= patternImagewidth_ || y >= patternImageheigth_) { in Generate()
[all …]
/foundation/arkui/ace_engine/frameworks/base/geometry/
Dpoint.h30 Point(double x, double y) : x_(x), y_(y) {} in Point() argument
31 Point(double x, double y, SourceType sourceType) : x_(x), y_(y), sourceType_(sourceType) {} in Point() argument
32 …Point(double x, double y, double screenX, double screenY) : x_(x), y_(y), screenX_(screenX), scree… in Point() argument
33 Point(double x, double y, double screenX, double screenY, SourceType sourceType) in Point() argument
34 : x_(x), y_(y), screenX_(screenX), screenY_(screenY), sourceType_(sourceType) in Point()
52 void SetY(double y) in SetY() argument
54 y_ = y; in SetY()
72 void SetScreenY(double y) in SetScreenY() argument
74 screenY_ = y; in SetScreenY()
90 …double y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + cente… in Rotate() local
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
Dtrans_affine.h86 const TransAffine& Translate(float x, float y);
108 const TransAffine& Scale(float x, float y);
137 void Transform(float* x, float* y) const;
146 void InverseTransform(float* x, float* y) const;
183 void ScalingAbs(float* x, float* y) const;
200 static TransAffine TransAffineScaling(float x, float y) in TransAffineScaling() argument
202 return TransAffine(x, 0.0f, 0.0f, y, 0.0f, 0.0f); in TransAffineScaling()
219 static TransAffine TransAffineTranslation(float x, float y) in TransAffineTranslation() argument
221 return TransAffine(1.0f, 0.0f, 0.0f, 1.0f, x, y); in TransAffineTranslation()
225 inline void TransAffine::Transform(float* x, float* y) const in Transform() argument
[all …]
/foundation/arkui/ui_lite/test/unittest/events/
Ddrag_event_unit_test.cpp69 EXPECT_EQ(dragEvent_->GetCurrentPos().y, NEW_POS.y);
85 EXPECT_EQ(dragEvent_->GetLastPoint().y, LAST_POS.y);
101 EXPECT_EQ(dragEvent_->GetStartPoint().y, NEW_POS.y - TOTAL_LEN.y);
119 EXPECT_EQ(dragEvent_->GetPreLastPoint().y, preLastPos.y);
136 if (MATH_ABS(currentPos.x - startPos.x) >= MATH_ABS(currentPos.y - startPos.y)) {
143 if (currentPos.y > startPos.y) {
178 EXPECT_EQ(dragEvent_->GetDeltaY(), NEW_POS.y - LAST_POS.y);
/foundation/graphic/graphic_2d/utils/cpudraw/src/
Dcpudraw.cpp22 return x <= x2 && x2 <= x + w && y <= y2 && y2 <= y + h; in Contain()
42 DrawBorder(rect.x, rect.y, rect.w, rect.h); in DrawBorder()
45 void Cpudraw::DrawBorder(const int32_t &x, const int32_t &y, const int32_t &w, const int32_t &h) in DrawBorder() argument
48 DrawRect(x, y, border, h); in DrawBorder()
49 DrawRect(x + w - border, y, border, h); in DrawBorder()
50 DrawRect(x, y, w, border); in DrawBorder()
51 DrawRect(x, y + h - border, w, border); in DrawBorder()
56 DrawRect(rect.x, rect.y, rect.w, rect.h); in DrawRect()
59 void Cpudraw::DrawRect(const int32_t &x, const int32_t &y, const int32_t &w, const int32_t &h) in DrawRect() argument
62 for (int32_t j = Max(y, 0); j < Min(y + h, height); j++) { in DrawRect()
/foundation/resourceschedule/ffrt/benchmarks/fib/
Dfib.cpp21 void Fib(int x, int& y) in Fib() argument
24 y = x; in Fib()
29 y = y1 + y2; in Fib()
34 void FibFFRTChildWait(int x, int& y) in FibFFRTChildWait() argument
37 y = x; in FibFFRTChildWait()
43 y = y1 + y2; in FibFFRTChildWait()
48 void FibFFRTDataWait(int x, int& y) in FibFFRTDataWait() argument
51 y = x; in FibFFRTDataWait()
57 y = y1 + y2; in FibFFRTDataWait()
81 void FibFFRTNoWait(int x, int* y) in FibFFRTNoWait() argument
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/transform/
Dtransform_component.cpp33 void TransformComponent::Translate(const Dimension& x, const Dimension& y, const AnimationOption& a… in Translate() argument
35 Translate(x, y, Dimension(), animationOption); in Translate()
39 …const Dimension& x, const Dimension& y, const Dimension& z, const AnimationOption& animationOption) in Translate() argument
43 operation.translateOperation_ = TranslateOperation(x, y, z); in Translate()
52 void TransformComponent::TranslateY(const Dimension& y, const AnimationOption& animationOption) in TranslateY() argument
54 Translate(Dimension {}, y, Dimension {}, animationOption); in TranslateY()
68 void TransformComponent::Scale(float x, float y, const AnimationOption& animationOption) in Scale() argument
70 Scale(x, y, 1.0f, animationOption); in Scale()
73 void TransformComponent::Scale(float x, float y, float z, const AnimationOption& animationOption) in Scale() argument
77 operation.scaleOperation_ = ScaleOperation(x, y, z); in Scale()
[all …]
/foundation/arkui/ace_engine/frameworks/core/pipeline/layers/
Doffset_layer.h29 OffsetLayer(double x, double y) : x_(x), y_(y) {} in OffsetLayer() argument
32 void SetOffset(double x, double y) in SetOffset() argument
35 y_ = y; in SetOffset()
38 void SetStaticOffset(double x, double y) in SetStaticOffset() argument
41 staticY_ = y; in SetStaticOffset()
54 void AddToScene(SceneBuilder& builder, double x, double y) override;
/foundation/arkui/ui_lite/interfaces/kits/events/
Ddrag_event.h62 startPos_.y = newPos.y - totalLen.y; in DragEvent()
65 deltaY_ = newPos.y - lastPos.y; in DragEvent()
131 if (MATH_ABS(curPos_.x - startPos_.x) >= MATH_ABS(curPos_.y - startPos_.y)) { in GetDragDirection()
134 return (curPos_.y > startPos_.y) ? DIRECTION_TOP_TO_BOTTOM : DIRECTION_BOTTOM_TO_TOP; in GetDragDirection()
/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/
Dgeometry_curves.cpp39 startCoordinate_.y = y1; in Init()
41 endCoordinate_.y = y3; in Init()
67 savedFinalCoordinate_.y = y1; in Init()
68 finalCoordinate_.y = y1; in Init()
72 savedDeltaFinalCoordinate_.y = tmpY + (y2 - y1) * (FLOATNUM * subdivideStep); in Init()
73 deltaFinalCoordinate_.y = tmpY + (y2 - y1) * (FLOATNUM * subdivideStep); in Init()
76 copyDeltaFinalCoordinate_.y = tmpY * FLOATNUM; in Init()
111 finalCoordinate_.y = savedFinalCoordinate_.y; in Rewind()
113 deltaFinalCoordinate_.y = savedDeltaFinalCoordinate_.y; in Rewind()
116 uint32_t QuadBezierCurveIncr::GenerateVertex(float* x, float* y) in GenerateVertex() argument
[all …]
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
Drb_tree.c27 struct RbNode *y = x->rbRight; in FillpRbRotateLeft() local
30 x->rbRight = y->rbLeft; in FillpRbRotateLeft()
31 if (y->rbLeft != FILLP_NULL_PTR) { in FillpRbRotateLeft()
32 y->rbLeft->rbParent = x; in FillpRbRotateLeft()
36 y->rbParent = x->rbParent; in FillpRbRotateLeft()
39 x->rbParent->rbLeft = y; in FillpRbRotateLeft()
41 x->rbParent->rbRight = y; in FillpRbRotateLeft()
44 root->rbNode = y; in FillpRbRotateLeft()
48 y->rbLeft = x; in FillpRbRotateLeft()
49 x->rbParent = y; in FillpRbRotateLeft()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/depiction/
Ddepict_adaptor_vertex_generate.h188 uint32_t GenerateVertex(float* x, float* y);
194 void VertexAccumulateWhile(float* x, float* y);
218 …t DepictAdaptorVertexGenerate<VertexSource, Generator, Markers>::GenerateVertex(float* x, float* y) in GenerateVertex() argument
244 VertexAccumulateWhile(x, y); in GenerateVertex()
251 cmd = generator_.GenerateVertex(x, y); in GenerateVertex()
271 float* y) in VertexAccumulateWhile() argument
275 cmd = msource_->GenerateVertex(x, y); in VertexAccumulateWhile()
279 startY_ = *y; in VertexAccumulateWhile()
283 markers_.AddVertex(*x, *y, PATH_CMD_LINE_TO); in VertexAccumulateWhile()
285 generator_.AddVertex(*x, *y, cmd); in VertexAccumulateWhile()
[all …]

12345678910>>...41