/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_line.cpp | 153 int16_t sy = start.y; in DrawWuLine() local 249 sy = y0Int; in DrawWuLine() 258 sy++; in DrawWuLine() 271 sy = y3Int; in DrawWuLine() 299 sy = y0Int + 1; in DrawWuLine() 335 rect.SetRect(edge0, sy, edge1, sy); in DrawWuLine() 337 sy++; in DrawWuLine() 347 sy = y0Int; in DrawWuLine() 369 sy = y3Int; in DrawWuLine() 397 sy = y0Int; in DrawWuLine() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/matrix_fuzzer/ |
H A D | matrix_fuzzer.cpp | 52 scalar sy = 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 D | matrix_test.cpp | 233 float sy = 1; variable 252 float sy = 1; variable 271 float sy = 1; variable 290 float sy = 0; variable 338 float sy = 1; variable 359 float sy = 1; variable 363 matrix_.ScaleXY(m, sx, sy, pt); 441 float sy = 1; variable 462 float sy = 1; variable 482 float sy = 1e-7; variable [all …]
|
H A D | image_transform_test.cpp | 295 float sy = 0.5; variable 296 trans.SetTranslateParam(sx, sy); 311 float sy = 0.5; variable 312 trans.SetTranslateParam(sx, sy); 327 float sy = -1; variable 328 trans.SetTranslateParam(sx, sy); 343 float sy = 0.5; variable 344 trans.SetTranslateParam(sx, sy); 359 float sy = -1; variable 360 trans.SetTranslateParam(sx, sy);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/ |
H A D | matrix.cpp | 43 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 D | matrix44.cpp | 30 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 D | skia_matrix.cpp | 53 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 D | skia_matrix.h | 43 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 D | skia_matrix44.cpp | 36 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/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/ |
H A D | matrix.h | 108 …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); 141 static void TransXY(const Matrix &m, const float tx, const float sy, Point &pt);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | matrix_impl.h | 43 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 D | matrix44_impl.h | 38 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 D | matrix.cpp | 41 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 126 fMat_[IMAGE_SCALEY] = sy; 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 207 pt.y = sy; in IdentityXY() 211 void Matrix::ScaleXY(const Matrix &m, const float sx, const float sy, Point &pt) in ScaleXY() argument 215 pt.y = sy * m.fMat_[IMAGE_SCALEY] + m.fMat_[IMAGE_TRANSY]; in ScaleXY()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | matrix.h | 76 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 D | matrix44.h | 48 void Scale(scalar sx, scalar sy, scalar sz); 54 void PreScale(scalar sx, scalar sy, scalar sz = 1);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_matrix.h | 85 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 D | drawing_matrix.cpp | 72 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 D | drawing__matrix_8h.md | 41 …wing_matrixcreatescale) (float sx, float sy, float px, float py) | 创建一个带缩放属性的矩阵对象。 该矩阵对象为:单位矩阵在(px… 46 …e) ([OH_Drawing_Matrix](_drawing.md#oh_drawing_matrix) \*, float sx, float sy, float px, float py)… 49 …e) ([OH_Drawing_Matrix](_drawing.md#oh_drawing_matrix) \*, float sx, float sy, float px, float py)… 56 …ing.md#oh_drawing_matrix) \*, float sx, float sy, float px, float py) | 设置矩阵为单位矩阵,并围绕位于(px, py)的旋转…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/ |
H A D | recording_canvas.cpp | 562 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 D | drawing__matrix_8h.md | 41 …sy, float px, float py) | Creates an **OH_Drawing_Matrix** with the scale attribute. The matrix is… 46 …x) \*, float sx, float sy, float px, float py) | Premultiplies a matrix by an identity matrix that… 49 …) \*, float sx, float sy, float px, float py) | Post multiplies a matrix by an identity matrix tha… 56 …atrix) \*, float sx, float sy, float px, float py) | Sets a matrix as an identity matrix and scale…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ets/ets/testcase/interface/ |
H A D | matrixtest.ts | 283 let sy: number = 0.5; 288 let dy = py - sy * py; 289 matrix.preScale(sx, sy, px, py); 291 let expectedValues: Array<number> = [sx, 0, dx, 0, sy, dy, 0, 0, 1]; 369 let sy: number = 0.5; 374 let dy = py - sy * py; 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 D | Matrix.js | 298 let e, fx, fy, fz, rlf, sx, sy, sz, rls, ux, uy, uz; 307 sy = fz * upX - fx * upZ; 309 rls = 1 / Math.sqrt(sx * sx + sy * sy + sz * sz); 311 sy *= rls; 313 ux = sy * fz - sz * fy; 315 uz = sx * fy - sy * fx; 321 e[4] = sy; 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 D | surface_utils.cpp | 169 float sy = 1.f; in ComputeTransformMatrix() local 183 sy = (float(crop.h) / bufferHeight); 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() 257 float sy = 1.f; in ComputeTransformMatrixV2() local 281 sy = (float(crop.h) / bufferHeight); 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 D | testing_canvas.h | 61 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 D | testing_matrix.h | 44 void SetScale(float sx, float sy) {} in SetScale() argument 47 void Scale(float sx, float sy, float px, float py) {} in Scale() argument
|