Home
last modified time | relevance | path

Searched refs:degree (Results 1 - 25 of 77) sorted by relevance

1234

/foundation/graphic/graphic_utils_lite/frameworks/
H A Dgraphic_math.cpp42 int16_t degree = static_cast<int16_t>(MATH_ROUND(angle)); in Sin()
43 degree = degree % CIRCLE_IN_DEGREE; in Sin()
44 if (degree < 0) { in Sin()
45 degree = CIRCLE_IN_DEGREE + degree; in Sin()
48 if (degree <= QUARTER_IN_DEGREE) { in Sin()
49 return g_sinValues[degree]; in Sin()
50 } else if (degree <= SEMICIRCLE_IN_DEGREE) { in Sin()
51 return g_sinValues[SEMICIRCLE_IN_DEGREE - degree]; in Sin()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/effect/test/unittest/
H A Dsk_image_filter_factory_unittest.cpp210 float degree = 0.5; in HWTEST_F() local
214 1, 0, 0, 0, degree, in HWTEST_F()
215 0, 1, 0, 0, degree, in HWTEST_F()
216 0, 0, 1, 0, degree, in HWTEST_F()
237 float degree = -1.0; in HWTEST_F() local
241 1, 0, 0, 0, degree, in HWTEST_F()
242 0, 1, 0, 0, degree, in HWTEST_F()
243 0, 0, 1, 0, degree, in HWTEST_F()
264 float degree = 1.0; in HWTEST_F() local
268 1, 0, 0, 0, degree, in HWTEST_F()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/effect/skia_effectChain/src/
H A Dsk_image_filter_factory.cpp31 sk_sp<SkImageFilter> SKImageFilterFactory::Brightness(float degree) in Brightness() argument
34 1, 0, 0, 0, degree, in Brightness()
35 0, 1, 0, 0, degree, in Brightness()
36 0, 0, 1, 0, degree, in Brightness()
/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Drender_loading_progress.cpp236 float RenderLoadingProgress::GetCometScaleByDegree(double degree) in GetCometScaleByDegree() argument
240 if (degree > 360.0) { in GetCometScaleByDegree()
241 degree = degree - 360.0; in GetCometScaleByDegree()
243 if (degree >= 0.0 && degree <= 180.0) { in GetCometScaleByDegree()
244 return 1.0 - 0.35 * degree / 180.0; in GetCometScaleByDegree()
246 if (degree >= 180.0 && degree <= 360.0) { in GetCometScaleByDegree()
247 return 0.65 + 0.35 * (degree in GetCometScaleByDegree()
252 GetCometAlphaByDegree(double degree) GetCometAlphaByDegree() argument
[all...]
/foundation/graphic/graphic_2d/frameworks/bootanimation/test/unittest/
H A Dboot_animation_operation_test.cpp82 int32_t degree = 0; in HWTEST_F() local
83 operation.InitRsSurfaceNode(degree); in HWTEST_F()
95 int32_t degree = 0; in HWTEST_F() local
96 operation.InitRsSurfaceNode(degree); in HWTEST_F()
154 int32_t degree = 0; in HWTEST_F() local
156 operation.InitRsSurfaceNode(degree); in HWTEST_F()
/foundation/window/window_manager/dmserver/src/
H A Dsensor_connector.cpp145 // Use ROTATION_0 when degree range is [0, 30]∪[330, 359] in CalcSensorRotation()
148 } else if (sensorDegree >= 60 && sensorDegree <= 120) { // Use ROTATION_90 when degree range is [60, 120] in CalcSensorRotation()
150 } else if (sensorDegree >= 150 && sensorDegree <= 210) { // Use ROTATION_180 when degree range is [150, 210] in CalcSensorRotation()
152 } else if (sensorDegree >= 240 && sensorDegree <= 300) { // Use ROTATION_270 when degree range is [240, 300] in CalcSensorRotation()
167 int degree = -1; in CalcRotationDegree() local
169 return degree; in CalcRotationDegree()
171 // arccotx = pi / 2 - arctanx, 90 is used to calculate acot(in degree); degree = rad / pi * 180 in CalcRotationDegree()
172 degree = 90 - static_cast<int>(round(atan2(y, -x) / M_PI * 180)); in CalcRotationDegree()
173 // Normalize the degree t in CalcRotationDegree()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkmatrix_fuzzer/
H A Dmatrix_fuzzer.cpp47 float degree = GetObject<float>(); in NativeMatrixTest001() local
59 OH_Drawing_Matrix* matrixTwo = OH_Drawing_MatrixCreateRotation(degree, x, y); in NativeMatrixTest001()
90 float degree = GetObject<float>(); in NativeMatrixTest002() local
107 OH_Drawing_MatrixPreRotate(nullptr, degree, px, py); in NativeMatrixTest002()
108 OH_Drawing_MatrixPreRotate(matrix, degree, px, py); in NativeMatrixTest002()
113 OH_Drawing_MatrixPostRotate(nullptr, degree, px, py); in NativeMatrixTest002()
114 OH_Drawing_MatrixPostRotate(matrix, degree, px, py); in NativeMatrixTest002()
134 float degree = GetObject<float>(); in NativeMatrixTest003() local
150 OH_Drawing_MatrixRotate(nullptr, degree, px, py); in NativeMatrixTest003()
151 OH_Drawing_MatrixRotate(matrix, degree, p in NativeMatrixTest003()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_matrix.cpp43 void SkiaMatrix::Rotate(scalar degree, scalar px, scalar py) in Rotate() argument
45 skMatrix_.setRotate(degree, px, py); in Rotate()
78 void SkiaMatrix::PreRotate(scalar degree) in PreRotate() argument
80 skMatrix_.preRotate(degree); in PreRotate()
83 void SkiaMatrix::PostRotate(scalar degree) in PostRotate() argument
85 skMatrix_.postRotate(degree); in PostRotate()
88 void SkiaMatrix::PostRotate(scalar degree, scalar px, scalar py) in PostRotate() argument
90 skMatrix_.postRotate(degree, px, py); in PostRotate()
259 void SkiaMatrix::PreRotate(scalar degree, scalar px, scalar py) in PreRotate() argument
261 skMatrix_.preRotate(degree, p in PreRotate()
[all...]
H A Dskia_matrix.h41 void Rotate(scalar degree, scalar px, scalar py) override;
50 void PreRotate(scalar degree) override;
51 void PostRotate(scalar degree) override;
52 void PostRotate(scalar degree, scalar px, scalar py) override;
86 void PreRotate(scalar degree, scalar px, scalar py) override;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/
H A Dmatrix.cpp33 void Matrix::Rotate(scalar degree, scalar px, scalar py) in Rotate() argument
35 matrixImplPtr->Rotate(degree, px, py); in Rotate()
68 void Matrix::PreRotate(scalar degree) in PreRotate() argument
70 matrixImplPtr->PreRotate(degree); in PreRotate()
73 void Matrix::PostRotate(scalar degree) in PostRotate() argument
75 matrixImplPtr->PostRotate(degree); in PostRotate()
78 void Matrix::PostRotate(scalar degree, scalar px, scalar py) in PostRotate() argument
80 matrixImplPtr->PostRotate(degree, px, py); in PostRotate()
215 void Matrix::PreRotate(scalar degree, scalar px, scalar py) in PreRotate() argument
217 matrixImplPtr->PreRotate(degree, p in PreRotate()
[all...]
/foundation/multimodalinput/input/service/crown_transform_processor/src/
H A Dcrown_transform_processor.cpp166 double degree = libinput_event_pointer_get_axis_value_discrete(rawPointerEvent, in HandleCrownRotateBeginAndUpdate() local
174 velocity = (degree * MICROSECONDS_PER_SECOND) / (currentTime - lastTime_); in HandleCrownRotateBeginAndUpdate()
176 degree = DEGREE_ZERO; in HandleCrownRotateBeginAndUpdate()
184 MMI_HILOGD("Crown degree:%{public}f, velocity:%{public}f, currentTime:%{public}" PRId64 in HandleCrownRotateBeginAndUpdate()
185 " action:%{public}d", degree, velocity, currentTime, action); in HandleCrownRotateBeginAndUpdate()
186 HandleCrownRotatePostInner(velocity, degree, action); in HandleCrownRotateBeginAndUpdate()
190 void CrownTransformProcessor::HandleCrownRotatePostInner(double velocity, double degree, int32_t action) in HandleCrownRotatePostInner() argument
218 pointerEvent_->SetAxisValue(PointerEvent::AXIS_TYPE_SCROLL_VERTICAL, degree); in HandleCrownRotatePostInner()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui_effect/filter/include/
H A Dfilter_fly_out_para.h31 void SetDegree(float degree) in SetDegree() argument
33 degree_ = degree; in SetDegree()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Dmatrix.h74 void Rotate(scalar degree, scalar px, scalar py);
84 * @param degree Angle of axes relative to upright axes.
86 void PreRotate(scalar degree);
88 void PostRotate(scalar degree);
93 * @param degree Angle of axes relative to upright axes.
97 void PostRotate(scalar degree, scalar px, scalar py);
272 void PreRotate(scalar degree, scalar px, scalar py);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dmatrix_impl.h41 virtual void Rotate(scalar degree, scalar px, scalar py) = 0;
49 virtual void PreRotate(scalar degree) = 0;
50 virtual void PostRotate(scalar degree) = 0;
51 virtual void PostRotate(scalar degree, scalar px, scalar py) = 0;
81 virtual void PreRotate(scalar degree, scalar px, scalar py) = 0;
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/
H A Drs_modifier_extractor_test.cpp236 float degree = extractor->GetSpherizeDegree(); in HWTEST_F() local
237 EXPECT_TRUE(degree == 0.f); in HWTEST_F()
262 float degree = extractor->GetLightUpEffectDegree(); in HWTEST_F() local
263 EXPECT_TRUE(degree == 0.f); in HWTEST_F()
275 float degree = extractor->GetDynamicDimDegree(); in HWTEST_F() local
276 EXPECT_TRUE(degree == 0.f); in HWTEST_F()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/utils/
H A Ddp_utils.cpp42 float degree = .0; in TransExifOrientationToDegree() local
44 degree = exifOrientationDegree[orientation]; in TransExifOrientationToDegree()
46 return degree; in TransExifOrientationToDegree()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_matrix.h188 * @param degree Indicates the angle of axes relative to upright axes.
194 void OH_Drawing_MatrixPreRotate(OH_Drawing_Matrix*, float degree, float px, float py);
270 * @param degree Indicates the angle of axes relative to upright axes.
276 void OH_Drawing_MatrixPostRotate(OH_Drawing_Matrix*, float degree, float px, float py);
390 * @param degree Indicates the angle of axes relative to upright axes.
396 void OH_Drawing_MatrixRotate(OH_Drawing_Matrix*, float degree, float px, float py);
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dtransform_convertor.cpp218 auto degree = StringUtils::StringToDegree(offsets[3]);
220 AnimationType::ROTATE_3D, time, RotateOperation { dx, dy, dz, static_cast<float>(degree) });
225 auto degree = StringUtils::StringToDegree(typeValue);
227 AnimationType::ROTATE, time, RotateOperation { 0, 0, 1, static_cast<float>(degree) });
231 auto degree = StringUtils::StringToDegree(typeValue);
233 AnimationType::ROTATE_X, time, RotateOperation { 1, 0, 0, static_cast<float>(degree) });
237 auto degree = StringUtils::StringToDegree(typeValue);
239 AnimationType::ROTATE_Y, time, RotateOperation { 0, 1, 0, static_cast<float>(degree) });
243 auto degree = StringUtils::StringToDegree(typeValue);
245 AnimationType::ROTATE_Z, time, RotateOperation { 0, 0, 1, static_cast<float>(degree) });
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dmatrix2d.cpp78 void Matrix2D::Rotate(TransformParam& param, double degree, double rx, double ry) in Rotate() argument
82 // convert from radians to degree. in Rotate()
83 degree = degree * OHOS_SEMI_CIRCLE_ANGEL / M_PI; in Rotate()
84 skMatrix = skMatrix.preRotate(degree, rx, ry); in Rotate()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/fuzztest/rsuieffect_fuzzer/
H A Drsuieffect_fuzzer.cpp81 float degree = GetData<float>(); in BrightnessBlenderFuzzTest() local
94 brightnessBlender->SetDegree(degree); in BrightnessBlenderFuzzTest()
132 float degree = GetData<float>(); in FlyOutParaFuzzTest() local
134 flyOutPara->SetDegree(degree); in FlyOutParaFuzzTest()
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_matrix.h41 void PreRotate(float degree, float px, float py) {} in PreRotate() argument
45 void Rotate(float degree, float px, float py) {} in Rotate() argument
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_matrix.cpp130 void OH_Drawing_MatrixPreRotate(OH_Drawing_Matrix* cMatrix, float degree, float px, float py) in OH_Drawing_MatrixPreRotate() argument
137 matrix->PreRotate(degree, px, py); in OH_Drawing_MatrixPreRotate()
160 void OH_Drawing_MatrixPostRotate(OH_Drawing_Matrix* cMatrix, float degree, float px, float py) in OH_Drawing_MatrixPostRotate() argument
167 matrix->PostRotate(degree, px, py); in OH_Drawing_MatrixPostRotate()
210 void OH_Drawing_MatrixRotate(OH_Drawing_Matrix* cMatrix, float degree, float px, float py) in OH_Drawing_MatrixRotate() argument
217 matrix->Rotate(degree, px, py); in OH_Drawing_MatrixRotate()
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_arc.cpp118 uint16_t degree = FastAtan2(x, y); in CalculateTanDegree() local
119 if ((degree == QUARTER_IN_DEGREE) && (y != 0)) { in CalculateTanDegree()
120 degree--; in CalculateTanDegree()
122 if ((degree == 0) && (x != 0)) { in CalculateTanDegree()
123 degree++; in CalculateTanDegree()
125 return degree; in CalculateTanDegree()
299 uint16_t degree = GetDegreeInQuadrant(degreeBase, quadrant); in DrawLineWithDegreeInner() local
300 if (IS_IN_DEGREERANE(degree, arcInfo.startAngle, arcInfo.endAngle)) { in DrawLineWithDegreeInner()
397 uint16_t DrawArc::GetDegreeInQuadrant(uint16_t degree, uint8_t quadrant) in GetDegreeInQuadrant() argument
401 return degree; in GetDegreeInQuadrant()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui_effect/effect/include/
H A Dbrightness_blender.h64 void SetDegree(float degree) in SetDegree() argument
66 degree_ = UIEffect::GetLimitedPara(degree, BRIGHTNESS_BLENDER_LIMITS); in SetDegree()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/screen/
H A Dscreen_pattern.cpp44 MMI::Direction ConvertDegreeToMMIRotation(float degree) in ConvertDegreeToMMIRotation() argument
46 if (NearEqual(degree, DIRECTION0)) { in ConvertDegreeToMMIRotation()
49 if (NearEqual(degree, DIRECTION90)) { in ConvertDegreeToMMIRotation()
52 if (NearEqual(degree, DIRECTION180)) { in ConvertDegreeToMMIRotation()
55 if (NearEqual(degree, DIRECTION270)) { in ConvertDegreeToMMIRotation()

Completed in 17 milliseconds

1234