ports/graphics/pfstmo/files/patch-src-mantiuk06-contrast_domain.cpp
Rong-En Fan b356cf090c - Update to 1.2
PR:		ports/121858
Submitted by:	Iouri V. Ivliev <ii at any.com.ru> (maintainer)
2008-04-04 12:18:22 +00:00

16 lines
508 B
C++

--- 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);