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:
authorCampbell Barton <ideasman42@gmail.com>2020-03-04 03:31:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-04 03:31:51 +0300
commit38ed95fe8d6f4c47c0c5f09ffecc987d75150dcc (patch)
tree8884ecd983657941c1375d61fdeb74dd4dabe43a /source/blender/imbuf
parent89b10b8d423a0ee851d9299af279ab93660f15f4 (diff)
Cleanup: replace CLAMP macros with functions
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/imageprocess.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/imageprocess.c b/source/blender/imbuf/intern/imageprocess.c
index ec03a0a07b8..6a234232a35 100644
--- a/source/blender/imbuf/intern/imageprocess.c
+++ b/source/blender/imbuf/intern/imageprocess.c
@@ -190,10 +190,7 @@ void bilinear_interpolation_color_wrap(
outF[3] = ma_mb * row1[3] + a_mb * row3[3] + ma_b * row2[3] + a_b * row4[3];
/* clamp here or else we can easily get off-range */
- CLAMP(outF[0], 0.0f, 1.0f);
- CLAMP(outF[1], 0.0f, 1.0f);
- CLAMP(outF[2], 0.0f, 1.0f);
- CLAMP(outF[3], 0.0f, 1.0f);
+ clamp_v4(outF, 0.0f, 1.0f);
}
if (outI) {
/* sample including outside of edges of image */