(BlurEffect) Make BlurEffect logic more clean 41/316441/12
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 21 Aug 2024 08:15:14 +0000 (17:15 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Fri, 30 Aug 2024 06:04:39 +0000 (15:04 +0900)
commit1bd74fb9527a6e2c036e6cd8b482ac62150e8d04
tree3f976fac1584b7120d78e28f1005ea88ce9f979c
parent7235043f7c3b694e575dc133027bdaec7f1fa7b9
(BlurEffect) Make BlurEffect logic more clean

- Clamp the downscale factor and blur radius
- Do not re-activate if target size is not changed
- Calculate bell curve width more faster (log n)
- Move CalculateGaussianWeight as inline function, instead of member funtor
- Make the uniform array size at least 2 (if uniform array size is 1, GPU rendering break down.)

Change-Id: Iaf97833ca81ecba9627916b8b70d2c29b4717219
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-RenderEffect.cpp
dali-toolkit/internal/controls/render-effects/blur-effect-impl.cpp
dali-toolkit/internal/controls/render-effects/blur-effect-impl.h
dali-toolkit/internal/controls/render-effects/render-effect-impl.cpp
dali-toolkit/internal/graphics/shaders/blur-effect.frag