Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/operations/COM_GaussianAlphaBlurBaseOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_GaussianAlphaBlurBaseOperation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianAlphaBlurBaseOperation.h b/source/blender/compositor/operations/COM_GaussianAlphaBlurBaseOperation.h
index 4f374d446cf..2bab6912d34 100644
--- a/source/blender/compositor/operations/COM_GaussianAlphaBlurBaseOperation.h
+++ b/source/blender/compositor/operations/COM_GaussianAlphaBlurBaseOperation.h
@@ -55,6 +55,11 @@ class GaussianAlphaBlurBaseOperation : public BlurBaseOperation {
{
falloff_ = falloff;
}
+
+ BLI_INLINE float finv_test(const float f, const bool test)
+ {
+ return (LIKELY(test == false)) ? f : 1.0f - f;
+ }
};
} // namespace blender::compositor