Home
last modified time | relevance | path

Searched refs:sx (Results 1 - 25 of 62) sorted by relevance

123

/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_line.cpp30 #define SWAP_START_END(sx, sy, ex, ey, dx, dy, dir) \
34 SWAP_POINTS((sx), (ex), (sy), (ey)); \
36 if ((ex) < (sx)) { \
40 if ((sx) < (ex)) { \
41 SWAP_POINTS((sx), (ex), (sy), (ey)); \
152 int16_t sx = start.x; in DrawWuLine() local
156 uint16_t dx = MATH_ABS(ex - sx); in DrawWuLine()
159 SWAP_START_END(sx, sy, ex, ey, dx, dy, dir); in DrawWuLine()
162 float plot = -static_cast<float>(ex - sx) / static_cast<float>(ey - sy); in DrawWuLine()
165 float x0 = sx in DrawWuLine()
443 int16_t sx = start.x; DrawThinWuLine() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/matrix_fuzzer/
H A Dmatrix_fuzzer.cpp51 scalar sx = GetObject<scalar>(); in MatrixFuzzTest000() local
61 matrix.Skew(sx, sy); in MatrixFuzzTest000()
62 matrix.Rotate(sx, sy, dx); in MatrixFuzzTest000()
64 matrix.Scale(sx, sy, dx, dy); in MatrixFuzzTest000()
65 matrix.SetScale(sx, sy); in MatrixFuzzTest000()
66 matrix.SetScaleTranslate(sx, sy, dx, dy); in MatrixFuzzTest000()
67 matrix.SetSkew(sx, sy); in MatrixFuzzTest000()
68 matrix.SetSkew(sx, sy, dx, dy); in MatrixFuzzTest000()
71 matrix.PostRotate(sx, sy, dx); in MatrixFuzzTest000()
74 matrix.PreScale(sx, s in MatrixFuzzTest000()
91 scalar sx = GetObject<scalar>(); MatrixFuzzTest001() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_matrix.cpp53 void SkiaMatrix::Scale(scalar sx, scalar sy, scalar px, scalar py) in Scale() argument
55 skMatrix_.setScale(sx, sy, px, py); in Scale()
58 void SkiaMatrix::SetScale(scalar sx, scalar sy) in SetScale() argument
60 skMatrix_.setScale(sx, sy); in SetScale()
63 void SkiaMatrix::SetScaleTranslate(scalar sx, scalar sy, scalar dx, scalar dy) in SetScaleTranslate() argument
65 skMatrix_.setScaleTranslate(sx, sy, dx, dy); in SetScaleTranslate()
103 void SkiaMatrix::PreScale(scalar sx, scalar sy) in PreScale() argument
105 skMatrix_.preScale(sx, sy); in PreScale()
108 void SkiaMatrix::PostScale(scalar sx, scalar sy) in PostScale() argument
110 skMatrix_.postScale(sx, s in PostScale()
113 PostScale(scalar sx, scalar sy, scalar px, scalar py) PostScale() argument
264 PreScale(scalar sx, scalar sy, scalar px, scalar py) PreScale() argument
[all...]
H A Dskia_matrix.h43 void Scale(scalar sx, scalar sy, scalar px, scalar py) override;
44 void SetScale(scalar sx, scalar sy) override;
45 void SetScaleTranslate(scalar sx, scalar sy, scalar dx, scalar dy) override;
55 void PreScale(scalar sx, scalar sy) override;
56 void PostScale(scalar sx, scalar sy) override;
57 void PostScale(scalar sx, scalar sy, scalar px, scalar py) override;
87 void PreScale(scalar sx, scalar sy, scalar px, scalar py) override;
H A Dskia_matrix44.cpp36 void SkiaMatrix44::Scale(scalar sx, scalar sy, scalar sz) in Scale() argument
38 skMatrix44_.setScale(sx, sy, sz); in Scale()
51 void SkiaMatrix44::PreScale(scalar sx, scalar sy, scalar sz) in PreScale() argument
53 skMatrix44_.preScale(sx, sy, sz); in PreScale()
H A Dskia_matrix44.h38 void Scale(scalar sx, scalar sy, scalar sz) override;
41 void PreScale(scalar sx, scalar sy, scalar sz) override;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/
H A Dmatrix.cpp43 void Matrix::Scale(scalar sx, scalar sy, scalar px, scalar py) in Scale() argument
45 matrixImplPtr->Scale(sx, sy, px, py); in Scale()
58 void Matrix::SetScale(scalar sx, scalar sy) in SetScale() argument
60 matrixImplPtr->SetScale(sx, sy); in SetScale()
63 void Matrix::SetScaleTranslate(scalar sx, scalar sy, scalar dx, scalar dy) in SetScaleTranslate() argument
65 matrixImplPtr->SetScaleTranslate(sx, sy, dx, dy); in SetScaleTranslate()
93 void Matrix::PreScale(scalar sx, scalar sy) in PreScale() argument
95 matrixImplPtr->PreScale(sx, sy); in PreScale()
98 void Matrix::PostScale(scalar sx, scalar sy) in PostScale() argument
100 matrixImplPtr->PostScale(sx, s in PostScale()
103 PostScale(scalar sx, scalar sy, scalar px, scalar py) PostScale() argument
220 PreScale(scalar sx, scalar sy, scalar px, scalar py) PreScale() argument
[all...]
H A Dmatrix44.cpp30 void Matrix44::Scale(scalar sx, scalar sy, scalar sz) in Scale() argument
32 impl_->Scale(sx, sy, sz); in Scale()
45 void Matrix44::PreScale(scalar sx, scalar sy, scalar sz) in PreScale() argument
47 impl_->PreScale(sx, sy, sz); in PreScale()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dmatrix_test.cpp232 float sx = 1; in HWTEST_F() local
234 matrix_.SetTranslateAndScale(tx, ty, sx, sy); in HWTEST_F()
251 float sx = 1; in HWTEST_F() local
253 matrix_.SetTranslateAndScale(tx, ty, sx, sy); in HWTEST_F()
270 float sx = 0; in HWTEST_F() local
272 matrix_.SetTranslateAndScale(tx, ty, sx, sy); in HWTEST_F()
289 float sx = 0; in HWTEST_F() local
291 matrix_.SetTranslateAndScale(tx, ty, sx, sy); in HWTEST_F()
337 float sx = 1; in HWTEST_F() local
342 matrix_.IdentityXY(m, sx, s in HWTEST_F()
358 float sx = 1; HWTEST_F() local
440 float sx = 1; HWTEST_F() local
461 float sx = 1e-7; HWTEST_F() local
481 float sx = 1; HWTEST_F() local
501 float sx = -1; HWTEST_F() local
[all...]
H A Dimage_transform_test.cpp294 float sx = 0.5; in HWTEST_F() local
296 trans.SetTranslateParam(sx, sy); in HWTEST_F()
310 float sx = -1; in HWTEST_F() local
312 trans.SetTranslateParam(sx, sy); in HWTEST_F()
326 float sx = 1; in HWTEST_F() local
328 trans.SetTranslateParam(sx, sy); in HWTEST_F()
342 float sx = -1; in HWTEST_F() local
344 trans.SetTranslateParam(sx, sy); in HWTEST_F()
358 float sx = -1; in HWTEST_F() local
360 trans.SetTranslateParam(sx, s in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Dmatrix.h76 void Scale(scalar sx, scalar sy, scalar px, scalar py);
77 void SetScale(scalar sx, scalar sy);
78 void SetScaleTranslate(scalar sx, scalar sy, scalar dx, scalar dy);
110 * from scaling by (sx, sy) about pivot point (0, 0).
111 * @param sx Horizontal scale factor.
114 void PreScale(scalar sx, scalar sy);
116 void PostScale(scalar sx, scalar sy);
137 * @param sx horizontal skew factor
147 * @param sx horizontal skew factor
155 * @brief Sets Matrix to Matrix constructed from scaling by (sx, s
[all...]
H A Dmatrix44.h43 * @brief Sets Matrix44 to scale by sx, sy and sz about pivot point at (0, 0, 0).
44 * @param sx horizontal scale factor.
48 void Scale(scalar sx, scalar sy, scalar sz);
54 void PreScale(scalar sx, scalar sy, scalar sz = 1);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dmatrix_impl.h43 virtual void Scale(scalar sx, scalar sy, scalar px, scalar py) = 0;
44 virtual void SetScale(scalar sx, scalar sy) = 0;
45 virtual void SetScaleTranslate(scalar sx, scalar sy, scalar dx, scalar dy) = 0;
54 virtual void PreScale(scalar sx, scalar sy) = 0;
55 virtual void PostScale(scalar sx, scalar sy) = 0;
56 virtual void PostScale(scalar sx, scalar sy, scalar px, scalar py) = 0;
82 virtual void PreScale(scalar sx, scalar sy, scalar px, scalar py) = 0;
H A Dmatrix44_impl.h38 virtual void Scale(scalar sx, scalar sy, scalar sz) = 0;
41 virtual void PreScale(scalar sx, scalar sy, scalar sz);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_matrix.h73 * by sx and sy, about a pivot point at (px, py).
77 * @param sx horizontal scale factor.
85 OH_Drawing_Matrix* OH_Drawing_MatrixCreateScale(float sx, float sy, float px, float py);
197 * @brief Sets matrix to forward scale by sx and sy, about a pivot point at (px, py).
200 * | A B C | | sx 0 dx |
201 * Matrix =| D E F |, S(sx, sy, px, py) = | 0 sy dy |
206 * dx = px - sx * px
211 * | A B C | | sx 0 dx | | A*sx B*sy A*dx+B*dy+C |
212 * Matrix * S(sx, s
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dmatrix.h108 constexpr Matrix(float sx, float kx, float tx, float ky, float sy, float ty, float p0, float p1, float p2, in Matrix() argument
110 : fMat_ { sx, kx, tx, ky, sy, ty, p0, p1, p2 }, operType_(operType) {} in Matrix()
123 Matrix &SetScale(const float sx, const float sy);
135 void SetTranslateAndScale(const float tx, const float ty, const float sx, const float sy);
137 static void IdentityXY(const Matrix &m, const float sx, const float sy, Point &pt);
139 static void ScaleXY(const Matrix &m, const float sx, const float sy, Point &pt);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dmatrix.cpp41 Matrix &Matrix::SetScale(const float sx, const float sy) in SetScale() argument
43 *this = Matrix(sx, 0, 0, 0, sy, 0, 0, 0, 1, (sx == 1 && sy == 1) ? IDENTITY : SCALE); in SetScale()
119 void Matrix::SetTranslateAndScale(const float tx, const float ty, const float sx, const float sy) in SetTranslateAndScale() argument
121 fMat_[IMAGE_SCALEX] = sx; in SetTranslateAndScale()
132 if (sx != 1 || sy != 1) { in SetTranslateAndScale()
203 void Matrix::IdentityXY(const Matrix &m, const float sx, const float sy, Point &pt) in IdentityXY() argument
206 pt.x = sx; in IdentityXY()
211 void Matrix::ScaleXY(const Matrix &m, const float sx, const float sy, Point &pt) in ScaleXY() argument
214 pt.x = sx * in ScaleXY()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_matrix.cpp72 OH_Drawing_Matrix* OH_Drawing_MatrixCreateScale(float sx, float sy, float px, float py) in OH_Drawing_MatrixCreateScale() argument
75 matrix->Scale(sx, sy, px, py); in OH_Drawing_MatrixCreateScale()
109 void OH_Drawing_MatrixPreScale(OH_Drawing_Matrix* cMatrix, float sx, float sy, float px, float py) in OH_Drawing_MatrixPreScale() argument
116 matrix->PreScale(sx, sy, px, py); in OH_Drawing_MatrixPreScale()
140 void OH_Drawing_MatrixPostScale(OH_Drawing_Matrix* cMatrix, float sx, float sy, float px, float py) in OH_Drawing_MatrixPostScale() argument
147 matrix->PostScale(sx, sy, px, py); in OH_Drawing_MatrixPostScale()
230 void OH_Drawing_MatrixScale(OH_Drawing_Matrix* cMatrix, float sx, float sy, float px, float py) in OH_Drawing_MatrixScale() argument
237 matrix->Scale(sx, sy, px, py); in OH_Drawing_MatrixScale()
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_matrix.h44 void SetScale(float sx, float sy) {} in SetScale() argument
47 void Scale(float sx, float sy, float px, float py) {} in Scale() argument
H A Dtesting_canvas.h61 virtual void Rotate(float deg, float sx, float sy) {} in Rotate() argument
107 virtual void Scale(float sx, float sy) {} in Scale() argument
127 void SetScale(float sx, float sy) {} in SetScale() argument
H A Dmock_canvas.h36 MOCK_METHOD3(Rotate, void(float deg, float sx, float sy));
39 MOCK_METHOD2(Scale, void(float sx, float sy));
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Drecording_canvas.cpp558 void RecordingCanvas::Scale(scalar sx, scalar sy) in Scale() argument
560 if (sx != 1 || sy != 1) { in Scale()
562 Canvas::Scale(sx, sy); in Scale()
564 cmdList_->AddDrawOp(std::make_shared<ScaleOpItem>(sx, sy)); in Scale()
567 cmdList_->AddDrawOp<ScaleOpItem::ConstructorHandle>(sx, sy); in Scale()
571 void RecordingCanvas::Rotate(scalar deg, scalar sx, scalar sy) in Rotate() argument
575 Canvas::Rotate(deg, sx, sy); in Rotate()
577 cmdList_->AddDrawOp(std::make_shared<RotateOpItem>(deg, sx, sy)); in Rotate()
580 cmdList_->AddDrawOp<RotateOpItem::ConstructorHandle>(deg, sx, sy); in Rotate()
584 void RecordingCanvas::Shear(scalar sx, scala argument
[all...]
/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_utils.cpp170 float sx = 1.f; in ComputeTransformMatrix() local
180 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrix()
189 std::array<float, MATRIX_ARRAY_SIZE> cropMatrix = {sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1}; in ComputeTransformMatrix()
258 float sx = 1.f; in ComputeTransformMatrixV2() local
278 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrixV2()
287 std::array<float, MATRIX_ARRAY_SIZE> cropMatrix = {sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1}; in ComputeTransformMatrixV2()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dmatrix2d.h27 static void Scale(TransformParam& param, double sx, double sy);
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/matrix_napi/
H A Djs_matrix.cpp256 double sx = 0.0; in OnPreScale() local
257 GET_DOUBLE_PARAM(ARGC_ZERO, sx); in OnPreScale()
265 JS_CALL_DRAWING_FUNC(m_matrix->PreScale(sx, sy, px, py)); in OnPreScale()
339 double sx = 0.0; in OnSetScale() local
340 GET_DOUBLE_PARAM(ARGC_ZERO, sx); in OnSetScale()
348 JS_CALL_DRAWING_FUNC(m_matrix->Scale(sx, sy, px, py)); in OnSetScale()
586 double sx = 0.0; in OnPostScale() local
587 GET_DOUBLE_PARAM(ARGC_ZERO, sx); in OnPostScale()
595 JS_CALL_DRAWING_FUNC(m_matrix->PostScale(sx, sy, px, py)); in OnPostScale()

Completed in 14 milliseconds

123