Home
last modified time | relevance | path

Searched refs:degrees (Results 1 – 25 of 111) sorted by relevance

12345

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_path.cpp83 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 Drspath_fuzzer.cpp105 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 Drs_path_test.cpp133 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 Drs_path.h39 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 Dexif_utils.cpp77 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.md25 …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 Dcamera_util.cpp434 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 Dmatrix.h54 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 Dmath_utils.h38 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 Dwm_math_test.cpp65 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 Dblur_large_rrects.cpp86 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 Dpixel_yuv_ext.cpp207 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 Dpixel_yuv.cpp191 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 Dpixel_astc.cpp104 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 Dpixel_yuv.h51 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 Drosen_render_loading_progress.cpp179 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 Drosen_render_loading_progress.h51 void RotateCalculate(const Offset& src, Offset& dst, float degrees);
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dmatrix_test.cpp161 float degrees = 90; variable
162 matrix_.SetRotate(degrees, tx, ty);
179 float degrees = 180; variable
180 matrix_.SetRotate(degrees, tx, ty);
H A Djpg_yuv_test.cpp235 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 Dsvg_fe_color_matrix.cpp32 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 Drosen_svg_painter.cpp967 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
991degrees = Rosen::Drawing::ConvertRadiansToDegrees(std::atan2(tangent.GetY(), tangent.GetX())); in UpdateMotionMatrix()
993degrees = 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 Dpixel_map_impl.cpp154 void PixelMapImpl::Rotate(float degrees) in Rotate() argument
160 real_->rotate(degrees); in Rotate()
/ohos5.0/drivers/interface/location/geofence/v2_0/
H A DGeofenceTypes.idl129 /* 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 Dheif_image.cpp71 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 Dts-basic-gestures-swipegesture.md31 …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.|

12345