Home
last modified time | relevance | path

Searched refs:sx (Results 1 – 25 of 140) sorted by relevance

123456

/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_line.cpp152 int16_t sx = start.x; in DrawWuLine() local
248 sx = x0Int; in DrawWuLine()
272 sx = x3Int; in DrawWuLine()
298 sx = x0Int; in DrawWuLine()
346 sx = x0Int; in DrawWuLine()
356 sx--; in DrawWuLine()
370 sx = x3Int; in DrawWuLine()
396 sx = x0Int - 1; in DrawWuLine()
433 rect.SetRect(sx, edge0, sx, edge1); in DrawWuLine()
435 sx--; in DrawWuLine()
[all …]
/ohos5.0/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()
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, sy); in MatrixFuzzTest000()
75 matrix.PostScale(sx, sy); in MatrixFuzzTest000()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dmatrix_test.cpp232 float sx = 1; variable
251 float sx = 1; variable
270 float sx = 0; variable
289 float sx = 0; variable
337 float sx = 1; variable
358 float sx = 1; variable
363 matrix_.ScaleXY(m, sx, sy, pt);
440 float sx = 1; variable
461 float sx = 1e-7; variable
481 float sx = 1; variable
[all …]
H A Dimage_transform_test.cpp294 float sx = 0.5; variable
296 trans.SetTranslateParam(sx, sy);
310 float sx = -1; variable
312 trans.SetTranslateParam(sx, sy);
326 float sx = 1; variable
328 trans.SetTranslateParam(sx, sy);
342 float sx = -1; variable
344 trans.SetTranslateParam(sx, sy);
358 float sx = -1; variable
360 trans.SetTranslateParam(sx, sy);
/ohos5.0/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()
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, sy); in PostScale()
105 matrixImplPtr->PostScale(sx, sy, px, py); in PostScale()
[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()
/ohos5.0/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()
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, sy); in PostScale()
115 skMatrix_.postScale(sx, sy, px, py); in PostScale()
[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()
/ohos5.0/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);
/ohos5.0/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 * m.fMat_[IMAGE_SCALEX] + m.fMat_[IMAGE_TRANSX]; in ScaleXY()
/ohos5.0/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);
114 void PreScale(scalar sx, scalar sy);
116 void PostScale(scalar sx, scalar sy);
126 void PostScale(scalar sx, scalar sy, scalar px, scalar py);
273 void PreScale(scalar sx, scalar sy, scalar px, scalar py);
H A Dmatrix44.h48 void Scale(scalar sx, scalar sy, scalar sz);
54 void PreScale(scalar sx, scalar sy, scalar sz = 1);
/ohos5.0/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, f… 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);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_matrix.h85 OH_Drawing_Matrix* OH_Drawing_MatrixCreateScale(float sx, float sy, float px, float py);
224 void OH_Drawing_MatrixPreScale(OH_Drawing_Matrix*, float sx, float sy, float px, float py);
301 void OH_Drawing_MatrixPostScale(OH_Drawing_Matrix*, float sx, float sy, float px, float py);
422 void OH_Drawing_MatrixScale(OH_Drawing_Matrix*, float sx, float sy, float px, float py);
/ohos5.0/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()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A Ddrawing__matrix_8h.md41 …oh_drawing_matrixcreatescale) (float sx, float sy, float px, float py) | 创建一个带缩放属性的矩阵对象。 该矩阵对象为:单位…
46 …rixprescale) ([OH_Drawing_Matrix](_drawing.md#oh_drawing_matrix) \*, float sx, float sy, float px,…
49 …ixpostscale) ([OH_Drawing_Matrix](_drawing.md#oh_drawing_matrix) \*, float sx, float sy, float px,…
56 …(_drawing.md#oh_drawing_matrix) \*, float sx, float sy, float px, float py) | 设置矩阵为单位矩阵,并围绕位于(px, …
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Drecording_canvas.cpp562 void RecordingCanvas::Scale(scalar sx, scalar sy) in Scale() argument
564 if (sx != 1 || sy != 1) { in Scale()
566 Canvas::Scale(sx, sy); in Scale()
568 cmdList_->AddDrawOp(std::make_shared<ScaleOpItem>(sx, sy)); in Scale()
571 cmdList_->AddDrawOp<ScaleOpItem::ConstructorHandle>(sx, sy); in Scale()
575 void RecordingCanvas::Rotate(scalar deg, scalar sx, scalar sy) in Rotate() argument
579 Canvas::Rotate(deg, sx, sy); in Rotate()
588 void RecordingCanvas::Shear(scalar sx, scalar sy) in Shear() argument
590 if (sx || sy) { in Shear()
592 Canvas::Shear(sx, sy); in Shear()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A Ddrawing__matrix_8h.md41sx, float sy, float px, float py) | Creates an **OH_Drawing_Matrix** with the scale attribute. The…
46 …g_matrix) \*, float sx, float sy, float px, float py) | Premultiplies a matrix by an identity matr…
49 …_matrix) \*, float sx, float sy, float px, float py) | Post multiplies a matrix by an identity mat…
56 …awing_matrix) \*, float sx, float sy, float px, float py) | Sets a matrix as an identity matrix an…
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ets/ets/testcase/interface/
H A Dmatrixtest.ts282 let sx: number = 2;
287 let dx = px - sx * px;
289 matrix.preScale(sx, sy, px, py);
291 let expectedValues: Array<number> = [sx, 0, dx, 0, sy, dy, 0, 0, 1];
368 let sx: number = 2;
373 let dx = px - sx * px;
375 matrix.preScale(sx, sy, px, py);
377 let expectedValues: Array<number> = [sx, 0, dx, 0, sy, dy, 0, 0, 1];
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/
H A DMatrix.js298 let e, fx, fy, fz, rlf, sx, sy, sz, rls, ux, uy, uz;
306 sx = fy * upZ - fz * upY;
309 rls = 1 / Math.sqrt(sx * sx + sy * sy + sz * sz);
310 sx *= rls;
314 uy = sz * fx - sx * fz;
315 uz = sx * fy - sy * fx;
317 e[0] = sx;
447 setTranslateRotateScale(tx, ty, tz, rx, ry, rz, sx, sy, sz) { argument
476 this.scale(sx, sy, sz);
479 setTRS(tx, ty, tz, rx, ry, rz, sx, sy, sz) { argument
[all …]
/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_utils.cpp168 float sx = 1.f; in ComputeTransformMatrix() local
178 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrix()
187 …std::array<float, MATRIX_ARRAY_SIZE> cropMatrix = {sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0… in ComputeTransformMatrix()
256 float sx = 1.f; in ComputeTransformMatrixV2() local
276 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrixV2()
285 …std::array<float, MATRIX_ARRAY_SIZE> cropMatrix = {sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0… in ComputeTransformMatrixV2()
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/rosen/
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 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

123456