/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_vector4.h | 42 Vector4(const Vector4<T>& value); 104 Vector4<T>::Vector4() in Vector4() function 110 Vector4<T>::Vector4(T value) in Vector4() function 119 Vector4<T>::Vector4(const Vector4<T>& value) in Vector4() function 142 Vector4<T>::~Vector4() in ~Vector4() 241 void Vector4<T>::Min(const Vector4<T>& a, const Vector4<T>& b, Vector4<T>& result) in Min() 253 void Vector4<T>::Max(const Vector4<T>& a, const Vector4<T>& b, Vector4<T>& result) in Max() 265 void Vector4<T>::Mix(const Vector4<T>& min, const Vector4<T>& max, T a, Vector4<T>& result) in Mix() 323 Vector4<T> Vector4<T>::operator-(const Vector4<T>& other) const 368 Vector4<T>& Vector4<T>::operator*=(const Vector4<T>& other) [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_vector4_test.cpp | 45 Vector4 vector(1.f, 2.f, 2.f, 1.f); // for test 202 Vector4 vectorRes = vector - vectorNew; 228 Vector4 vectorRes = vector + vectorNew; 241 Vector4 vectorRes = vector / 2.f; 254 Vector4 vectorRes = vector * 2.f; 268 Vector4 vectorRes = vector * vectorNew; 480 Vector4 a(1.f, 2.f, 2.f, 1.f); // for test 481 Vector4 b(1.f, 1.f, 1.f, 1.f); // for test 483 Vector4<float>::Min(a, b, result); 495 Vector4 a(1.f, 2.f, 2.f, 1.f); // for test [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_border_test.cpp | 91 Vector4<uint32_t> vectorStyle(1, 2, 3, 4); 118 Vector4<uint32_t> style(0, 0, 0, 0); 134 Vector4<uint32_t> style2(1, 1, 1, 1); 138 Vector4<Color> Color(color1, color2, color3, color5); 257 Vector4<uint32_t> vectorStyle(0, 1, 2, 3); 313 Vector4<uint32_t> vectorStyle(0, 1, 2, 3); 317 Vector4<uint32_t> vectorStyle1(0, 0, 0, 0); 389 Vector4<uint32_t> vectorStyle(0, 1, 2, 3); 393 Vector4<uint32_t> vectorStyle1(0, 0, 0, 0); 426 Vector4<uint32_t> vectorStyle(0, 1, 2, 3); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/ |
H A D | rs_modifier_extractor.cpp | 201 Vector4<Color> RSModifierExtractor::GetBorderColor() const in GetBorderColor() 203 …GET_PROPERTY_FROM_MODIFIERS_EQRETURN(Vector4<Color>, BORDER_COLOR, Vector4<Color>(RgbPalette::Tran… in GetBorderColor() 211 Vector4<uint32_t> RSModifierExtractor::GetBorderStyle() const in GetBorderStyle() 214 … Vector4<uint32_t>, BORDER_STYLE, Vector4<uint32_t>(static_cast<uint32_t>(BorderStyle::NONE)), =); in GetBorderStyle() 227 Vector4<Color> RSModifierExtractor::GetOutlineColor() const in GetOutlineColor() 229 …GET_PROPERTY_FROM_MODIFIERS_EQRETURN(Vector4<Color>, OUTLINE_COLOR, Vector4<Color>(RgbPalette::Tra… in GetOutlineColor() 237 Vector4<uint32_t> RSModifierExtractor::GetOutlineStyle() const in GetOutlineStyle() 240 … Vector4<uint32_t>, OUTLINE_STYLE, Vector4<uint32_t>(static_cast<uint32_t>(BorderStyle::NONE)), =); in GetOutlineStyle()
|
H A D | rs_modifier_extractor.h | 64 Vector4<Color> GetBorderColor() const; 66 Vector4<uint32_t> GetBorderStyle() const; 69 Vector4<Color> GetOutlineColor() const; 71 Vector4<uint32_t> GetOutlineStyle() const;
|
H A D | rs_property.cpp | 298 void RSProperty<Vector4<uint32_t>>::UpdateToRender(const Vector4<uint32_t>& value, in UpdateToRender() 304 void RSProperty<Vector4<Color>>::UpdateToRender(const Vector4<Color>& value, in UpdateToRender() 373 RSRenderPropertyType RSAnimatableProperty<Vector4<Color>>::GetPropertyType() const in GetPropertyType()
|
H A D | rs_property.h | 334 … std::is_same_v<Vector4<Color>, T> || std::is_base_of_v<RSAnimatableArithmetic<T>, T> || 738 RSC_EXPORT void RSProperty<Vector4<uint32_t>>::UpdateToRender( 739 const Vector4<uint32_t>& value, PropertyUpdateType type) const; 741 RSC_EXPORT void RSProperty<Vector4<Color>>::UpdateToRender( 742 const Vector4<Color>& value, PropertyUpdateType type) const; 770 RSC_EXPORT RSRenderPropertyType RSAnimatableProperty<Vector4<Color>>::GetPropertyType() const;
|
H A D | rs_showing_properties_freezer.cpp | 181 std::optional<Vector4<Color>> RSShowingPropertiesFreezer::GetBorderColor() const in GetBorderColor() 183 return GetPropertyImpl<Vector4<Color>, RSModifierType::BORDER_COLOR>(); in GetBorderColor()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_render_particle_effector.h | 28 …Vector4<int16_t> CalculateColorInt(const std::shared_ptr<RSRenderParticle>& particle, Vector4<int1… 29 Vector4<float> colorF, Vector4<float> colorSpeed, float deltaTime);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/ |
H A D | rs_render_property_test.cpp | 227 props.push_back(std::make_shared<MockRSRenderProperty<Vector4<Color>>>( 279 Vector4<Color> vector4; 280 RSRenderAnimatableProperty<Vector4<Color>> propertyVector4Color(vector4); 305 std::shared_ptr<RSRenderProperty<Vector4<Color>>> vector4Value 306 = std::make_shared<RSRenderProperty<Vector4<Color>>>(); 307 Vector4<Color> vector41; 374 RSRenderAnimatableProperty<Vector4<Color>> property8; 412 Vector4<Color> vectorColor; 413 RSRenderAnimatableProperty<Vector4<Color>> property8(vectorColor); 432 std::shared_ptr<RSRenderProperty<Vector4<Color>>> vector4ColorValue [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/ |
H A D | rs_render_property.cpp | 230 Vector4<Color> value; in Unmarshalling() 234 val.reset(new RSRenderAnimatableProperty<Vector4<Color>>(value, id, type, unit)); in Unmarshalling() 370 void RSRenderProperty<Vector4<uint32_t>>::Dump(std::string& out) const in Dump() 372 Vector4 v4 = Get(); in Dump() 468 void RSRenderProperty<Vector4<Color>>::Dump(std::string& out) const in Dump() 470 Vector4<Color> v4Color = Get(); in Dump() 678 bool RSRenderAnimatableProperty<Vector4<Color>>::IsNearEqual( in IsNearEqual() 683 auto thisData = RSRenderProperty<Vector4<Color>>::stagingValue_.data_; in IsNearEqual() 738 template class RSRenderProperty<Vector4<uint32_t>>; 745 template class RSRenderProperty<Vector4<Color>>; [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_border.h | 81 void SetColorFour(const Vector4<Color>& color); 83 void SetStyleFour(const Vector4<uint32_t>& style); 87 Vector4<Color> GetColorFour() const; 89 Vector4<uint32_t> GetStyleFour() const;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/ |
H A D | rs_spring_model_test.cpp | 246 Vector4<Color> initialOffset = 247 Vector4<Color>(Color(0, 0, 0), Color(0, 0, 0), Color(0, 0, 0), Color(0, 0, 0)); 248 Vector4<Color> initialVelocity = 249 …Vector4<Color>(Color(255, 255, 255), Color(255, 255, 255), Color(255, 255, 255), Color(255, 255, 2… 251 …auto model1 = std::make_shared<RSSpringModel<Vector4<Color>>>(0.0f, 0.0f, initialOffset, initialVe… 257 …auto model2 = std::make_shared<RSSpringModel<Vector4<Color>>>(1.0f, 1.0f, initialOffset, initialVe… 263 …auto model3 = std::make_shared<RSSpringModel<Vector4<Color>>>(1.0f, 2.0f, initialOffset, initialVe…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/ |
H A D | rs_modifier_extractor_test.cpp | 149 Vector4<Color> vector = extractor.GetOutlineColor(); 150 EXPECT_TRUE(vector == Vector4<Color>(RgbPalette::Transparent())); 177 Vector4<uint32_t> vector = extractor.GetOutlineStyle(); 178 EXPECT_TRUE(vector == Vector4<uint32_t>(static_cast<uint32_t>(BorderStyle::NONE)));
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | graphic_math.h | 279 class Vector4 : public HeapBase { 296 Vector4() : x_(0), y_(0), z_(0), w_(1) {} in Vector4() function 298 Vector4(T x, T y, T z, T w) in Vector4() function 311 ~Vector4() {} in ~Vector4() 323 bool operator==(const Vector4& other) const 705 Vector4<T> operator*(const Vector4<T>& other) const; 780 Vector4<T> Matrix4<T>::operator*(const Vector4<T>& other) const 782 Vector4<T> rMulti;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/ |
H A D | rs_properties.h | 214 void SetBorderColor(Vector4<Color> color); 216 void SetBorderStyle(Vector4<uint32_t> style); 219 Vector4<Color> GetBorderColor() const; 221 Vector4<uint32_t> GetBorderStyle() const; 225 void SetOutlineColor(Vector4<Color> color); 227 void SetOutlineStyle(Vector4<uint32_t> style); 231 Vector4<Color> GetOutlineColor() const; 233 Vector4<uint32_t> GetOutlineStyle() const;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_particle_effector.cpp | 32 Vector4<int16_t> RSRenderParticleEffector::CalculateColorInt(const std::shared_ptr<RSRenderParticle… in CalculateColorInt() 33 Vector4<int16_t> colorInt, Vector4<float> colorF, Vector4<float> colorSpeed, float deltaTime) in CalculateColorInt() 113 …auto colorInt = Vector4<int16_t>(color.GetRed(), color.GetGreen(), color.GetBlue(), color.GetAlpha… in UpdateColor()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/modifier/ |
H A D | rs_render_property.h | 365 RSB_EXPORT void RSRenderProperty<Vector4<uint32_t>>::Dump(std::string& out) const; 379 RSB_EXPORT void RSRenderProperty<Vector4<Color>>::Dump(std::string& out) const; 423 RSB_EXPORT bool RSRenderAnimatableProperty<Vector4<Color>>::IsNearEqual( 435 extern template class RSRenderProperty<Vector4<uint32_t>>; 442 extern template class RSRenderProperty<Vector4<Color>>; 462 extern template class RSRenderAnimatableProperty<Vector4<Color>>;
|
H A D | rs_modifiers_def.in | 81 DECLARE_ANIMATABLE_MODIFIER(BorderColor, Vector4<Color>, BORDER_COLOR, Replace, Foreground, COLOR) 85 DECLARE_NOANIMATABLE_MODIFIER(BorderStyle, Vector4<uint32_t>, BORDER_STYLE, Foreground) 91 DECLARE_ANIMATABLE_MODIFIER(OutlineColor, Vector4<Color>, OUTLINE_COLOR, Replace, Foreground, COLOR) 95 DECLARE_NOANIMATABLE_MODIFIER(OutlineStyle, Vector4<uint32_t>, OUTLINE_STYLE, Foreground)
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_keyframe_animation_test.cpp | 318 auto black = Vector4<Color>(RgbPalette::Black()); 319 auto red = Vector4<Color>(RgbPalette::Red()); 320 auto startProperty = std::make_shared<RSAnimatableProperty<Vector4<Color>>>(black); 321 auto endProperty = std::make_shared<RSAnimatableProperty<Vector4<Color>>>(red); 323 auto property = std::make_shared<RSAnimatableProperty<Vector4<Color>>>(black);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_node.h | 273 void SetBorderColor(const Vector4<Color>& color); 279 void SetBorderStyle(const Vector4<BorderStyle>& style); 282 void SetOuterBorderColor(const Vector4<Color>& color); 284 void SetOuterBorderStyle(const Vector4<BorderStyle>& style); 286 void SetOutlineColor(const Vector4<Color>& color); 288 void SetOutlineStyle(const Vector4<BorderStyle>& style);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/command/ |
H A D | rs_node_command.h | 238 …ARG(RS_NODE, UPDATE_MODIFIER_VECTOR4_BORDER_STYLE, RSNodeCommandHelper::UpdateModifier<Vector4<uin… 239 NodeId, Vector4<uint32_t>, PropertyId, PropertyUpdateType)) 241 ARG(RS_NODE, UPDATE_MODIFIER_VECTOR4_COLOR, RSNodeCommandHelper::UpdateModifier<Vector4<Color>>, 242 NodeId, Vector4<Color>, PropertyId, PropertyUpdateType))
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/ |
H A D | rs_surface_render_node_test.cpp | 199 Vector4<int> dstCornerRadius(static_cast<int>(std::ceil(cornerRadius.x_)), 227 Vector4<int> dstCornerRadius(static_cast<int>(std::ceil(cornerRadius.x_)), 254 Vector4<int> dstCornerRadius(static_cast<int>(std::ceil(cornerRadius.x_)), 282 Vector4<int> dstCornerRadius(static_cast<int>(std::ceil(cornerRadius.x_)), 310 Vector4<int> dstCornerRadius(static_cast<int>(std::ceil(cornerRadius.x_)), 338 Vector4<int> dstCornerRadius(static_cast<int>(std::ceil(cornerRadius.x_)), 2382 Vector4<int> cornerRadius; 2739 EXPECT_TRUE(cornerRadius1 == Vector4<int>( 2744 EXPECT_TRUE(cornerRadius2 == Vector4<int>( 2749 EXPECT_TRUE(cornerRadius3 == Vector4<int>( [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/ |
H A D | rs_surface_render_node.h | 856 const bool isFocusWindow, const Vector4<int>& cornerRadius); 861 …Occlusion::Region SetCornerRadiusOpaqueRegion(const RectI& absRect, const Vector4<int>& cornerRadi… 865 const bool isFocusWindow, const Vector4<int>& cornerRadius); 867 const bool isFocusWindow, const Vector4<int>& cornerRadius); 1275 void RotateCorner(int rotationDegree, Vector4<int>& cornerRadius) const; 1426 Vector4<int> cornerRadius_;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_border.cpp | 142 void RSBorder::SetColorFour(const Vector4<Color>& color) in SetColorFour() 158 void RSBorder::SetStyleFour(const Vector4<uint32_t>& style) in SetStyleFour() 188 Vector4<Color> RSBorder::GetColorFour() const in GetColorFour() 191 return Vector4<Color>(colors_[0], colors_[1], colors_[2], colors_[3]); in GetColorFour() 193 return Vector4<Color>(GetColor()); in GetColorFour() 206 Vector4<uint32_t> RSBorder::GetStyleFour() const in GetStyleFour() 209 … return Vector4<uint32_t>(static_cast<uint32_t>(styles_[0]), static_cast<uint32_t>(styles_[1]), in GetStyleFour() 212 return Vector4<uint32_t>(static_cast<uint32_t>(GetStyle())); in GetStyleFour()
|