diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-04-04 12:18:22 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-04-04 12:18:22 +0000 |
commit | b356cf090c2f5710879d753ea4e195f79594b235 (patch) | |
tree | 59f95d6724b6fc11e1763cf7782aaaa6b8b6e4b5 /graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp | |
parent | 8d3834b69043b5c5e97d205520df7983400a4d2f (diff) | |
download | ports-b356cf090c2f5710879d753ea4e195f79594b235.tar.gz ports-b356cf090c2f5710879d753ea4e195f79594b235.zip |
Notes
Diffstat (limited to 'graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp')
-rw-r--r-- | graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp b/graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp new file mode 100644 index 000000000000..72a69932b74c --- /dev/null +++ b/graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp @@ -0,0 +1,16 @@ +--- src/mantiuk06/contrast_domain.cpp.orig 2008-03-12 09:20:28.000000000 +0000 ++++ src/mantiuk06/contrast_domain.cpp 2008-03-12 09:27:16.000000000 +0000 +@@ -58,6 +58,13 @@ + #define LOOKUP_W_TO_R 107 + + ++#if defined(__FreeBSD__) ++static inline float exp10f(float x) { ++ return powf(10.,x); ++} ++#endif ++ ++ + static void contrast_equalization( pyramid_t *pp, const float contrastFactor ); + + static void transform_to_luminance(pyramid_t* pyramid, float* const x, progress_callback progress_cb, const bool bcg); |