/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_path.cpp | 83 bool RSPath::GetPosTan(float distance, Vector2f& pos, float& degrees) const in GetPosTan() 94 degrees = Drawing::ConvertRadiansToDegrees(std::atan2(tangent.GetY(), tangent.GetX())); in GetPosTan() 99 bool RSPath::GetPosTan(float distance, Vector4f& pos, float& degrees) const in GetPosTan() 102 bool res = GetPosTan(distance, position, degrees); in GetPosTan()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rspath_fuzzer/ |
H A D | rspath_fuzzer.cpp | 105 float degrees = GetData<float>(); in DoGetPosTan() local 107 rsPath->GetPosTan(distance, pos, degrees); in DoGetPosTan() 111 rsPath->GetPosTan(distance, postion, degrees); in DoGetPosTan() 112 rsPath->GetPosTan(distance, postions, degrees); in DoGetPosTan()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_path_test.cpp | 133 float degrees = 0.0f; variable 134 EXPECT_FALSE(rsPath->GetPosTan(0.0f, pos, degrees)); 146 float degrees = 0.0f; variable 147 EXPECT_FALSE(rsPath->GetPosTan(0.0f, pos, degrees));
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_path.h | 39 bool GetPosTan(float distance, T& pos, float& degrees) const in GetPosTan() argument 59 RSB_EXPORT bool RSPath::GetPosTan(float distance, Vector2f& pos, float& degrees) const; 61 RSB_EXPORT bool RSPath::GetPosTan(float distance, Vector4f& pos, float& degrees) const;
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/ |
H A D | exif_utils.cpp | 77 int degrees = static_cast<int32_t>(positiveValue); in LocationValueToString() local 78 result = result + to_string(degrees) + ", "; in LocationValueToString() 79 positiveValue -= (double)degrees; in LocationValueToString()
|
/ohos5.0/docs/en/application-dev/reference/apis-location-kit/ |
H A D | _location___basic_info.md | 25 …ection](#direction) | Direction information. The value ranges from **0** to **360**, in degrees. | 30 …y](#directionaccuracy) | Direction accuracy. The value ranges from **0** to **360**, in degrees. | 71 Direction information. The value ranges from 0 to 360, in degrees. 80 Direction accuracy. The value ranges from 0 to 360, in degrees.
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | camera_util.cpp | 434 int degrees = 0; in GetStreamRotation() local 437 case DISPALY_ROTATE_0: degrees = STREAM_ROTATE_0; break; in GetStreamRotation() 438 case DISPALY_ROTATE_1: degrees = STREAM_ROTATE_90; break; in GetStreamRotation() 439 case DISPALY_ROTATE_2: degrees = STREAM_ROTATE_180; break; in GetStreamRotation() 440 case DISPALY_ROTATE_3: degrees = STREAM_ROTATE_270; break; // 逆时针转90 in GetStreamRotation() 446 streamRotation = (STREAM_ROTATE_360 + sensorOrientation - degrees) % STREAM_ROTATE_360; in GetStreamRotation() 449 streamRotation = (sensorOrientation + degrees) % STREAM_ROTATE_360; in GetStreamRotation()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/ |
H A D | matrix.h | 54 static inline float DegreesToRadians(const float degrees) in DegreesToRadians() argument 56 return degrees * (FLOAT_PI / RADIAN_FACTOR); in DegreesToRadians() 125 Matrix &SetRotate(const float degrees, const float px = 0.0, const float py = 0.0);
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/base/math/ |
H A D | math_utils.h | 38 template<class T> static T Radians(T degrees) in Radians() argument 40 return glm::radians(degrees); in Radians()
|
/ohos5.0/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_math_test.cpp | 65 float radians = MathHelper::PI, degrees = 180.f; variable 66 ASSERT_EQ(true, MathHelper::NearZero(MathHelper::ToDegrees(radians) - degrees)); 67 ASSERT_EQ(true, MathHelper::NearZero(MathHelper::ToRadians(degrees) - radians));
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | blur_large_rrects.cpp | 86 float degrees = 90.f; in OnTestFunction() local 89 OH_Drawing_CanvasRotate(canvas, degrees, px, py); in OnTestFunction()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_yuv_ext.cpp | 207 void PixelYuvExt::rotate(float degrees) in rotate() argument 209 if (!IsYuvFormat() || degrees == 0) { in rotate() 215 if (degrees < 0) { in rotate() 216 int n = abs(degrees / DEGREES360); in rotate() 217 degrees += DEGREES360 * (n + 1); in rotate() 222 if (!YuvRotateConvert(imageInfo_.size, degrees, dstWidth, dstHeight, rotateNum)) { in rotate()
|
H A D | pixel_yuv.cpp | 191 bool PixelYuv::YuvRotateConvert(Size &size, int32_t degrees, int32_t &dstWidth, int32_t &dstHeight, in YuvRotateConvert() argument 194 switch (degrees) { in YuvRotateConvert() 213 bool PixelYuv::YuvRotateConvert(Size &srcSize, int32_t degrees, Size &dstSize, in YuvRotateConvert() argument 216 switch (degrees) { in YuvRotateConvert() 306 void PixelYuv::rotate(float degrees) in rotate() argument 308 if (!IsYuvFormat() || degrees == 0) { in rotate() 311 if (degrees < 0) { in rotate() 312 int n = abs(degrees / DEGREES360); in rotate() 313 degrees += DEGREES360 * (n + 1); in rotate() 321 if (!YuvRotateConvert(imageInfo_.size, degrees, dstSize, rotateNum, yuvDataInfo)) { in rotate() [all …]
|
H A D | pixel_astc.cpp | 104 void PixelAstc::rotate(float degrees) in rotate() argument 108 transformData.rotateD = degrees; in rotate()
|
/ohos5.0/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | pixel_yuv.h | 51 NATIVEEXPORT void rotate(float degrees) override; 73 bool YuvRotateConvert(Size &size, int32_t degrees, int32_t &dstWidth, int32_t &dstHeight, 75 bool YuvRotateConvert(Size &srcSize, int32_t degrees, Size &dstSize,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/progress/ |
H A D | rosen_render_loading_progress.cpp | 179 void RosenRenderLoadingProgress::RotateCalculate(const Offset& src, Offset& dst, float degrees) in RotateCalculate() argument 182 camera_->rotateY(degrees); in RotateCalculate() 193 camera_->RotateYDegrees(degrees); in RotateCalculate()
|
H A D | rosen_render_loading_progress.h | 51 void RotateCalculate(const Offset& src, Offset& dst, float degrees);
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | matrix_test.cpp | 161 float degrees = 90; variable 162 matrix_.SetRotate(degrees, tx, ty); 179 float degrees = 180; variable 180 matrix_.SetRotate(degrees, tx, ty);
|
H A D | jpg_yuv_test.cpp | 235 ImageSize &imageSize, float degrees) in YuvRotate() argument 251 pixelMap->rotate(degrees); in YuvRotate() 683 srcPixelMap->rotate(degrees); in YuvP010Rotate() 921 srcPixelMap->rotate(degrees); in RGBA1010102Rotate() 1314 float degrees[] = {90, 180, 270, 280}; variable 1319 for (int j = 0; j < sizeof(degrees) / sizeof(float); ++j) { 1634 float degrees[] = {90, 180, 270}; variable 1639 for (int j = 0; j < sizeof(degrees) / sizeof(float); ++j) { 1643 YuvP010Rotate(outfmt[i], outname, imageSize, degrees[j]); 1782 float degrees[] = {90, 180, 270}; variable [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_fe_color_matrix.cpp | 32 inline float DegreesToRadians(float degrees) in DegreesToRadians() argument 34 return (degrees) * (M_PI / 180.0f); in DegreesToRadians()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_svg_painter.cpp | 967 float degrees = 0.0f; in UpdateMotionMatrix() local 969 degrees = SkRadiansToDegrees(std::atan2(tangent.y(), tangent.x())); in UpdateMotionMatrix() 971 degrees = SkRadiansToDegrees(std::atan2(tangent.y(), tangent.x())) + FLAT_ANGLE; in UpdateMotionMatrix() 973 degrees = StringUtils::StringToDouble(rotate); in UpdateMotionMatrix() 977 rsNode->SetRotation(degrees, 0., 0.); in UpdateMotionMatrix() 989 float degrees = 0.0f; in UpdateMotionMatrix() local 991 … degrees = Rosen::Drawing::ConvertRadiansToDegrees(std::atan2(tangent.GetY(), tangent.GetX())); in UpdateMotionMatrix() 993 …degrees = Rosen::Drawing::ConvertRadiansToDegrees(std::atan2(tangent.GetY(), tangent.GetX())) + FL… in UpdateMotionMatrix() 995 degrees = StringUtils::StringToDouble(rotate); in UpdateMotionMatrix() 999 rsNode->SetRotation(degrees, 0., 0.); in UpdateMotionMatrix()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/cj/src/ |
H A D | pixel_map_impl.cpp | 154 void PixelMapImpl::Rotate(float degrees) in Rotate() argument 160 real_->rotate(degrees); in Rotate()
|
/ohos5.0/drivers/interface/location/geofence/v2_0/ |
H A D | GeofenceTypes.idl | 129 /* Heading in degrees. */ 141 /* Bearing accuracy in degrees. */
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/ |
H A D | heif_image.cpp | 71 void HeifImage::SetRotateDegrees(int degrees) in SetRotateDegrees() argument 73 rotateDegrees_ = degrees; in SetRotateDegrees()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-gestures-swipegesture.md | 31 …iggered when the angle between the finger moving direction and the x-axis is less than 45 degrees.| 32 …iggered when the angle between the finger moving direction and the y-axis is less than 45 degrees.|
|