mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-21 02:42:18 +00:00
18 lines
638 B
Diff
18 lines
638 B
Diff
diff --git a/src/Libpfs/manip/gamma_levels.cpp b/src/Libpfs/manip/gamma_levels.cpp
|
|
index 67975111..c0fb1798 100644
|
|
--- a/src/Libpfs/manip/gamma_levels.cpp
|
|
+++ b/src/Libpfs/manip/gamma_levels.cpp
|
|
@@ -31,13 +31,6 @@
|
|
|
|
namespace {
|
|
|
|
-template <typename T>
|
|
-inline T clamp(const T &v, const T &lower_bound, const T &upper_bound) {
|
|
- if (v <= lower_bound) return lower_bound;
|
|
- if (v >= upper_bound) return upper_bound;
|
|
- return v;
|
|
-}
|
|
-
|
|
////! \note I assume that *in* contains only value between [0,1]
|
|
// void gamma_levels_array(const pfs::Array2D* in, pfs::Array2D* out,
|
|
// float black_in, float white_in,
|