Home
last modified time | relevance | path

Searched refs:SetUniform (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/effect/
H A Druntime_shader_builder.cpp44 void RuntimeShaderBuilder::SetUniform(const std::string& name, float val) in SetUniform() function in OHOS::Rosen::Drawing::RuntimeShaderBuilder
46 impl_->SetUniform(name, val); in SetUniform()
49 void RuntimeShaderBuilder::SetUniform(const std::string& name, float x, float y) in SetUniform() function in OHOS::Rosen::Drawing::RuntimeShaderBuilder
51 impl_->SetUniform(name, x, y); in SetUniform()
54 void RuntimeShaderBuilder::SetUniform(const std::string& name, float x, float y, float z) in SetUniform() function in OHOS::Rosen::Drawing::RuntimeShaderBuilder
56 impl_->SetUniform(name, x, y, z); in SetUniform()
61 impl_->SetUniform(name, x, y, width, height); in SetUniform()
66 impl_->SetUniform(name, values, size); in SetUniform()
69 void RuntimeShaderBuilder::SetUniform(const std::string& name, const Matrix& uniformMatrix33) in SetUniform() function in OHOS::Rosen::Drawing::RuntimeShaderBuilder
71 impl_->SetUniform(name, uniformMatrix33); in SetUniform()
[all …]
H A Druntime_blender_builder.cpp32 void RuntimeBlenderBuilder::SetUniform(const std::string& name, float val) in SetUniform() function in OHOS::Rosen::Drawing::RuntimeBlenderBuilder
34 impl_->SetUniform(name, val); in SetUniform()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/core/
H A Drender_opengl_renderer.cpp71 shader->SetUniform("transform", MathUtils::NativePtr(trans)); in ProcessTransform()
75 shader->SetUniform("transform", MathUtils::NativePtr(trans)); in ProcessTransform()
76 shader->SetUniform("flipH", 1.0f); in ProcessTransform()
80 shader->SetUniform("transform", MathUtils::NativePtr(trans)); in ProcessTransform()
81 shader->SetUniform("flipV", 1.0f); in ProcessTransform()
90 shader->SetUniform("flipH", 1.0f); in ProcessTransform()
95 shader->SetUniform("flipV", 1.0f); in ProcessTransform()
104 shader->SetUniform("flipH", 1.0f); in ProcessTransform()
109 shader->SetUniform("flipV", 1.0f); in ProcessTransform()
137 shader->SetUniform("inputTexture", (int)0); in DrawOnScreen()
[all …]
H A Dalgorithm_program.cpp81 shader_->SetUniform(name.c_str(), value); in SetInt()
86 shader_->SetUniform(name.c_str(), value); in SetFloat()
91 shader_->SetUniform(name.c_str(), value); in SetMat4()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/
H A Dge_magnifier_shader_filter.cpp99 builder->SetUniform("iResolution", imageWidth, imageHeight); in MakeMagnifierShader()
101 builder->SetUniform("factor", magnifierPara_->factor_); in MakeMagnifierShader()
102 builder->SetUniform("size", magnifierPara_->width_, magnifierPara_->height_); in MakeMagnifierShader()
103 builder->SetUniform("cornerRadius", magnifierPara_->cornerRadius_); in MakeMagnifierShader()
104 builder->SetUniform("borderWidth", magnifierPara_->borderWidth_); in MakeMagnifierShader()
107 builder->SetUniform("shadowSize", magnifierPara_->shadowSize_); in MakeMagnifierShader()
108 builder->SetUniform("shadowStrength", magnifierPara_->shadowStrength_); in MakeMagnifierShader()
118 builder->SetUniform("gradientMaskColor1", maskColor1, COLOR_CHANNEL); in MakeMagnifierShader()
119 builder->SetUniform("gradientMaskColor2", maskColor2, COLOR_CHANNEL); in MakeMagnifierShader()
120 builder->SetUniform("outerContourColor1", outColor1, COLOR_CHANNEL); in MakeMagnifierShader()
[all …]
H A Dge_aibar_shader_filter.cpp98 builder->SetUniform("low", aiBarLow_); // aiInvertCoef[0] is low in MakeBinarizationShader()
99 builder->SetUniform("high", aiBarHigh_); // aiInvertCoef[1] is high in MakeBinarizationShader()
100 builder->SetUniform("threshold", aiBarThreshold_); // aiInvertCoef[2] is threshold in MakeBinarizationShader()
101 builder->SetUniform("opacity", aiBarOpacity_); // aiInvertCoef[3] is opacity in MakeBinarizationShader()
102 builder->SetUniform("saturation", aiBarSaturation_); // aiInvertCoef[4] is saturation in MakeBinarizationShader()
H A Dge_water_ripple_filter.cpp79 builder.SetUniform("iResolution", width, height); in ProcessImage()
80 builder.SetUniform("progress", progress_); in ProcessImage()
81 builder.SetUniform("waveCount", static_cast<float>(waveCount_)); in ProcessImage()
82 builder.SetUniform("rippleCenter", rippleCenterX_, rippleCenterY_); in ProcessImage()
H A Dge_mesa_blur_shader_filter.cpp252 builder.SetUniform("coefficient1", greyCoef1_); in ApplyGreyAdjustmentFilter()
253 builder.SetUniform("coefficient2", greyCoef2_); in ApplyGreyAdjustmentFilter()
297 blurBuilder.SetUniform("in_blurOffset", BLUR_SCALE_1, BLUR_SCALE_1); in DownSampling4X()
321 blurBuilder.SetUniform("in_blurOffset", BLUR_SCALE_1, BLUR_SCALE_1); in DownSampling8X()
362 blurBuilder.SetUniform("in_blurOffset", BLUR_SCALE_1, BLUR_SCALE_1); in DownSamplingMoreX()
371 blurBuilder.SetUniform("in_blurOffset", BLUR_SCALE_1, BLUR_SCALE_1); in DownSamplingMoreX()
375 builder.SetUniform("coefficient1", greyCoef1_); in DownSamplingMoreX()
376 builder.SetUniform("coefficient2", greyCoef2_); in DownSamplingMoreX()
694 builder.SetUniform("coefficient1", greyCoef1_); in OutputImageWithoutBlur()
695 builder.SetUniform("coefficient2", greyCoef2_); in OutputImageWithoutBlur()
[all …]
H A Dge_grey_shader_filter.cpp54 builder.SetUniform("coefficient1", greyCoef1_); in ProcessImage()
55 builder.SetUniform("coefficient2", greyCoef2_); in ProcessImage()
H A Dge_kawase_blur_shader_filter.cpp254 blurBuilder.SetUniform( in SetBlurBuilderParam()
257 blurBuilder.SetUniform("in_blurOffset", offsetXY, offsetXY); in SetBlurBuilderParam()
258 blurBuilder.SetUniform("in_maxSizeXY", width * blurScale_, height * blurScale_); in SetBlurBuilderParam()
481 mixBuilder.SetUniform("mixFactor", std::min(1.0f, mixFactor)); in ScaleAndAddRandomColor()
484 mixBuilder.SetUniform("inColorFactor", factor); in ScaleAndAddRandomColor()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/effect/
H A Druntime_shader_builder.h37 void SetUniform(const std::string& name, float val);
38 void SetUniform(const std::string& name, float x, float y);
39 void SetUniform(const std::string& name, float x, float y, float z);
40 void SetUniform(const std::string& name, float x, float y, float width, float height);
41 void SetUniform(const std::string& name, const float values[], size_t size);
42 void SetUniform(const std::string& name, const Matrix& uniformMatrix33);
43 void SetUniform(const std::string& name, const Matrix44& uniformMatrix44);
H A Druntime_blender_builder.h34 void SetUniform(const std::string& name, float val);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Druntime_shader_builder_impl.h42 virtual void SetUniform(const std::string& name, float val) = 0;
43 virtual void SetUniform(const std::string& name, float x, float y) = 0;
44 virtual void SetUniform(const std::string& name, float x, float y, float z) = 0;
45 … virtual void SetUniform(const std::string& name, float x, float y, float width, float height) = 0;
46 virtual void SetUniform(const std::string& name, const float values[], size_t size) = 0;
47 virtual void SetUniform(const std::string& name, const Matrix& uniformMatrix33) = 0;
48 virtual void SetUniform(const std::string& name, const Matrix44& uniformMatrix44) = 0;
H A Druntime_blender_builder_impl.h35 virtual void SetUniform(const std::string& name, float val) = 0;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_runtime_shader_builder.h49 void SetUniform(const std::string& name, float val) override;
50 void SetUniform(const std::string& name, float x, float y) override;
51 void SetUniform(const std::string& name, float x, float y, float z) override;
52 void SetUniform(const std::string& name, float x, float y, float width, float height) override;
53 void SetUniform(const std::string& name, const float values[], size_t size) override;
54 void SetUniform(const std::string& name, const Matrix& uniformMatrix33) override;
55 void SetUniform(const std::string& name, const Matrix44& uniformMatrix44) override;
H A Dskia_runtime_shader_builder.cpp78 void SkiaRuntimeShaderBuilder::SetUniform(const std::string& name, float val) in SetUniform() function in OHOS::Rosen::Drawing::SkiaRuntimeShaderBuilder
86 void SkiaRuntimeShaderBuilder::SetUniform(const std::string& name, float x, float y) in SetUniform() function in OHOS::Rosen::Drawing::SkiaRuntimeShaderBuilder
94 void SkiaRuntimeShaderBuilder::SetUniform(const std::string& name, float x, float y, float z) in SetUniform() function in OHOS::Rosen::Drawing::SkiaRuntimeShaderBuilder
102 void SkiaRuntimeShaderBuilder::SetUniform(const std::string& name, const float values[], size_t siz… in SetUniform() function in OHOS::Rosen::Drawing::SkiaRuntimeShaderBuilder
110 void SkiaRuntimeShaderBuilder::SetUniform(const std::string& name, const Matrix& uniformMatrix33) in SetUniform() function in OHOS::Rosen::Drawing::SkiaRuntimeShaderBuilder
119 void SkiaRuntimeShaderBuilder::SetUniform(const std::string& name, const Matrix44& uniformMatrix44) in SetUniform() function in OHOS::Rosen::Drawing::SkiaRuntimeShaderBuilder
137 void SkiaRuntimeShaderBuilder::SetUniform(const std::string& name, float x, float y, float width, f… in SetUniform() function in OHOS::Rosen::Drawing::SkiaRuntimeShaderBuilder
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_runtime_shader_builder_test.cpp74 skiaRuntimeShaderBuilder.SetUniform("lightPos", 1.0f);
75 skiaRuntimeShaderBuilder.SetUniform("lightPos", 1.0f, 1.0f);
76 skiaRuntimeShaderBuilder.SetUniform("lightPos", 1.0f, 1.0f, 1.0f);
77 skiaRuntimeShaderBuilder.SetUniform("lightPos", 1.0f, 1.0f, 1.0f, 1.0f);
79 skiaRuntimeShaderBuilder.SetUniform("lightPos", matrix);
H A Dskia_runtime_blender_builder_test.cpp60 skiaRuntimeBlenderBuilder1.SetUniform("uniform", 1.0f);
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/
H A Drender_program.h34 IMAGE_EFFECT_EXPORT void SetUniform(const std::string &name, float value);
35 IMAGE_EFFECT_EXPORT void SetUniform(const std::string &name, int value);
36 void SetUniform(const std::string &name, unsigned int value);
37 void SetUniform(const std::string &name, const void *value);
H A Drender_program.cpp25 void RenderProgram::SetUniform(const std::string &name, float value) in SetUniform() function in OHOS::Media::Effect::RenderProgram
34 void RenderProgram::SetUniform(const std::string &name, int value) in SetUniform() function in OHOS::Media::Effect::RenderProgram
43 void RenderProgram::SetUniform(const std::string &name, unsigned int value) in SetUniform() function in OHOS::Media::Effect::RenderProgram
52 void RenderProgram::SetUniform(const std::string &name, const void *value) in SetUniform() function in OHOS::Media::Effect::RenderProgram
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_distortion_shader_filter.cpp110 distortBuilder->SetUniform("iResolution", image->GetWidth(), image->GetHeight()); in DrawDistortion()
111 distortBuilder->SetUniform("distortionK", distortionK_ * DISTORTION_SCALE); in DrawDistortion()
112 distortBuilder->SetUniform("scale", scaleCoord_); in DrawDistortion()
113 distortBuilder->SetUniform("offset", offsetX_, offsetY_); in DrawDistortion()
H A Drs_kawase_blur.cpp318 … blurBuilder.SetUniform("in_blurOffset", firstPassOffsetInfo.offsetX, firstPassOffsetInfo.offsetY, in ExecutePingPongBlur()
321 …blurBuilder.SetUniform("in_blurOffset", blur.radiusByPass * blurScale_, blur.radiusByPass * blurSc… in ExecutePingPongBlur()
322 blurBuilder.SetUniform("in_maxSizeXY", blur.width * blurScale_, blur.height * blurScale_); in ExecutePingPongBlur()
339 … blurBuilder.SetUniform("in_blurOffset", offsetInfo.offsetX, offsetInfo.offsetY, offsetInfo.width, in ExecutePingPongBlur()
342 …blurBuilder.SetUniform("in_blurOffset", blur.radiusByPass * stepScale, blur.radiusByPass * stepSca… in ExecutePingPongBlur()
343 … blurBuilder.SetUniform("in_maxSizeXY", blur.width * blurScale_, blur.height * blurScale_); in ExecutePingPongBlur()
380 mixBuilder.SetUniform("mixFactor", std::min(1.0f, mixFactor)); in ApplyBlur()
382 mixBuilder.SetUniform("inColorFactor", factor); in ApplyBlur()
H A Drs_motion_blur_filter.cpp169 builder->SetUniform("scaleAnchor", scaleAnchor[0], scaleAnchor[1]); in MakeMotionBlurShader()
170 builder->SetUniform("scaleSize", scaleSize[0], scaleSize[1]); in MakeMotionBlurShader()
171 builder->SetUniform("rectOffset", rectOffset[0], rectOffset[1]); in MakeMotionBlurShader()
172 builder->SetUniform("radius", radius); in MakeMotionBlurShader()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/runtimeeffect_fuzzer/
H A Druntime_effect_fuzzer.cpp92 builder->SetUniform("coefficient1", val1); in RuntimeShaderFuzzTest()
93 builder->SetUniform("coefficient2", val2); in RuntimeShaderFuzzTest()
138 builder->SetUniform("dynamicLightUpRate", val1); in RuntimeBlenderFuzzTest()
139 builder->SetUniform("dynamicLightUpDeg", val2); in RuntimeBlenderFuzzTest()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_property_drawable_utils.cpp596 builder->SetUniform("lightUpDeg", lightUpDeg); in MakeLightUpEffectBlender()
714 builder->SetUniform("ubo_low", low); in MakeBinarizationShader()
715 builder->SetUniform("ubo_high", high); in MakeBinarizationShader()
735 builder->SetUniform("ubo_ratio", ratio); in MakeDynamicBrightnessBlender()
737 builder->SetUniform("ubo_cubic", params.rates_.x_); in MakeDynamicBrightnessBlender()
738 builder->SetUniform("ubo_quad", params.rates_.y_); in MakeDynamicBrightnessBlender()
739 builder->SetUniform("ubo_rate", params.rates_.z_); in MakeDynamicBrightnessBlender()
740 builder->SetUniform("ubo_degree", params.rates_.w_); in MakeDynamicBrightnessBlender()
742 builder->SetUniform("ubo_posr", params.posCoeff_.x_); in MakeDynamicBrightnessBlender()
743 builder->SetUniform("ubo_posg", params.posCoeff_.y_); in MakeDynamicBrightnessBlender()
[all …]

12