/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()
|
/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() 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;
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_path_test.cpp | 132 float degrees = 0.0f; in HWTEST_F() local 133 EXPECT_FALSE(rsPath->GetPosTan(0.0f, pos, degrees)); in HWTEST_F() 145 float degrees = 0.0f; in HWTEST_F() local 146 EXPECT_FALSE(rsPath->GetPosTan(0.0f, pos, degrees)); in HWTEST_F()
|
/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()
|
/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()
|
/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()
|
/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()
|
/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);
|
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_math_test.cpp | 65 float radians = MathHelper::PI, degrees = 180.f; in HWTEST_F() local 66 ASSERT_EQ(true, MathHelper::NearZero(MathHelper::ToDegrees(radians) - degrees)); in HWTEST_F() 67 ASSERT_EQ(true, MathHelper::NearZero(MathHelper::ToRadians(degrees) - radians)); in HWTEST_F()
|
/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | camera_util.cpp | 433 int degrees = 0; in GetStreamRotation() local 436 case DISPALY_ROTATE_0: degrees = STREAM_ROTATE_0; break; in GetStreamRotation() 437 case DISPALY_ROTATE_1: degrees = STREAM_ROTATE_90; break; in GetStreamRotation() 438 case DISPALY_ROTATE_2: degrees = STREAM_ROTATE_180; break; in GetStreamRotation() 439 case DISPALY_ROTATE_3: degrees = STREAM_ROTATE_270; break; // 逆时针转90 in GetStreamRotation() 445 streamRotation = (STREAM_ROTATE_360 + sensorOrientation - degrees) % STREAM_ROTATE_360; in GetStreamRotation() 448 streamRotation = (sensorOrientation + degrees) % STREAM_ROTATE_360; in GetStreamRotation()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_yuv_ext.cpp | 201 void PixelYuvExt::rotate(float degrees) in rotate() argument 203 if (!IsYuvFormat() || degrees == 0) { in rotate() 209 if (degrees < 0) { in rotate() 210 int n = abs(degrees / DEGREES360); in rotate() 211 degrees += DEGREES360 * (n + 1); in rotate() 216 if (!YuvRotateConvert(imageInfo_.size, degrees, dstWidth, dstHeight, rotateNum)) { in rotate()
|
H A D | pixel_astc.cpp | 104 void PixelAstc::rotate(float degrees)
in rotate() argument 108 transformData.rotateD = degrees;
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() 284 void PixelYuv::rotate(float degrees) in rotate() argument 286 if (!IsYuvFormat() || degrees == 0) { in rotate() 289 if (degrees < 0) { in rotate() 290 int n = abs(degrees / DEGREES360); in rotate() 291 degrees += DEGREES360 * (n + 1); in rotate() 296 if (!YuvRotateConvert(imageInfo_.size, degrees, dstWidth, dstHeight, rotateNum)) { in rotate() 313 if (!PixelYuvUtils::YuvRotate(data_, srcInfo, dst, dstInfo, degrees)) { in rotate()
|
/foundation/arkui/ace_engine/frameworks/core/components/progress/ |
H A D | rosen_render_loading_progress.h | 51 void RotateCalculate(const Offset& src, Offset& dst, float degrees);
|
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()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_fe_color_matrix.cpp | 30 inline float DegreesToRadians(float degrees) in DegreesToRadians() argument 32 return (degrees) * (M_PI / 180.0f); in DegreesToRadians()
|
/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,
|
H A D | pixel_yuv_ext.h | 34 NATIVEEXPORT void rotate(float degrees) override;
|
/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())) + FLAT_ANGLE; in UpdateMotionMatrix() 995 degrees = StringUtils::StringToDouble(rotate); in UpdateMotionMatrix() 999 rsNode->SetRotation(degrees, in UpdateMotionMatrix() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | matrix_test.cpp | 161 float degrees = 90; in HWTEST_F() local 162 matrix_.SetRotate(degrees, tx, ty); in HWTEST_F() 179 float degrees = 180; in HWTEST_F() local 180 matrix_.SetRotate(degrees, tx, ty); in HWTEST_F()
|
/foundation/multimedia/image_framework/frameworks/kits/cj/src/ |
H A D | pixel_map_impl.cpp | 203 void PixelMapImpl::Rotate(float degrees) in Rotate() argument 209 real_->rotate(degrees); in Rotate()
|
/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()
|
/foundation/multimedia/media_lite/services/recorder_lite/impl/include/ |
H A D | recorder_sink.h | 57 int32_t SetOrientationHint(int degrees);
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/ |
H A D | pixel_yuv_utils.h | 96 uint8_t *dstData, YuvImageInfo &dstInfo, int32_t degrees);
|
/foundation/multimedia/image_framework/frameworks/kits/cj/include/ |
H A D | pixel_map_impl.h | 50 void Rotate(float degrees);
|