Home
last modified time | relevance | path

Searched refs:aiInvert (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/
H A Drs_drawable_test.cpp58 std::optional<Vector4f> aiInvert = { Vector4f() }; variable
59 node.renderContent_->GetMutableRenderProperties().SetAiInvert(aiInvert);
77 std::optional<Vector4f> aiInvert = { Vector4f() }; variable
78 node.renderContent_->GetMutableRenderProperties().SetAiInvert(aiInvert);
H A Drs_property_drawable_utils_test.cpp362 std::optional<Vector4f> aiInvert = std::nullopt; variable
363 rsPropertyDrawableUtilsTest->DrawBinarization(&paintFilterCanvasTest, aiInvert);
365 aiInvert = 1.0f;
367 rsPropertyDrawableUtilsTest->DrawBinarization(&paintFilterCanvasTest, aiInvert);
371 rsPropertyDrawableUtilsTest->DrawBinarization(&paintFilterCanvasTest, aiInvert);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_property_drawable_utils.cpp805 …tyDrawableUtils::DrawBinarization(Drawing::Canvas* canvas, const std::optional<Vector4f>& aiInvert) in DrawBinarization() argument
807 if (!aiInvert.has_value()) { in DrawBinarization()
825 float thresholdLow = aiInvert->z_ - aiInvert->w_; in DrawBinarization()
826 float thresholdHigh = aiInvert->z_ + aiInvert->w_; in DrawBinarization()
827 …auto shader = MakeBinarizationShader(aiInvert->x_, aiInvert->y_, thresholdLow, thresholdHigh, imag… in DrawBinarization()
H A Drs_property_drawable_foreground.cpp45 auto& aiInvert = node.GetRenderProperties().GetAiInvert(); in OnUpdate() local
46 if (!aiInvert.has_value()) { in OnUpdate()
50 stagingAiInvert_ = aiInvert; in OnUpdate()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/drawable/
H A Drs_property_drawable_utils.h60 static void DrawBinarization(Drawing::Canvas* canvas, const std::optional<Vector4f>& aiInvert);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_properties_painter.cpp1631 auto& aiInvert = properties.GetAiInvert(); in DrawBinarizationShader() local
1635 float thresholdLow = aiInvert->z_ - aiInvert->w_; in DrawBinarizationShader()
1636 float thresholdHigh = aiInvert->z_ + aiInvert->w_; in DrawBinarizationShader()
1638 aiInvert->x_, aiInvert->y_, thresholdLow, thresholdHigh, imageShader); in DrawBinarizationShader()
H A Drs_property_drawable_bounds_geometry.cpp651 auto& aiInvert = content.GetRenderProperties().GetAiInvert(); in Generate() local
652 if (!aiInvert.has_value()) { in Generate()
H A Drs_properties.cpp3461 void RSProperties::SetAiInvert(const std::optional<Vector4f>& aiInvert) in SetAiInvert() argument
3463 aiInvert_ = aiInvert; in SetAiInvert()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_property_drawable_bounds_geometry_test.cpp919 Vector4f aiInvert(x, y, z, w);
920 properties.SetAiInvert(aiInvert);
H A Drs_properties_test.cpp2509 Vector4f aiInvert = { 1.f, 1.f, 1.f, 1.f }; variable
2510 properties.aiInvert_ = aiInvert;
2993 std::optional<float> aiInvert = std::optional<float>(1.f); variable
2994 properties.SetAiInvert(aiInvert);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_properties.h437 void SetAiInvert(const std::optional<Vector4f>& aiInvert);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_node.h437 void SetAiInvert(const Vector4f& aiInvert);
H A Drs_node.cpp2468 void RSNode::SetAiInvert(const Vector4f& aiInvert) in SetAiInvert() argument
2470 …etProperty<RSAiInvertModifier, RSAnimatableProperty<Vector4f>>(RSModifierType::AIINVERT, aiInvert); in SetAiInvert()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/
H A Drs_node_test.cpp6663 Vector4f aiInvert = { 1.f, 1.f, 1.f, 1.f }; // for test variable
6664 rsNode->SetAiInvert(aiInvert);
6665 EXPECT_NE(aiInvert[0], 0.f);