diff options
author | Richard Gallamore <ultima@FreeBSD.org> | 2017-07-14 01:45:43 +0000 |
---|---|---|
committer | Richard Gallamore <ultima@FreeBSD.org> | 2017-07-14 01:45:43 +0000 |
commit | 196663b90d07f8753079902ecef708246e4d0b11 (patch) | |
tree | 684b850db4b08226ced584e8735a838007281323 /graphics/pfstools/files | |
parent | devel/py-rply: Update to 0.7.5 (diff) |
* Fix qt option build
* Changed OCTAVE USES to option helper
PR: 220247
Submitted by: Iouri V. Ivliev <fbsd@any.com.ru> (maintainer)
Reported by: Jov <amutu@amutu.com>
Reviewed by: lifanov (mentor), matthew (mentor), matt
Approved by: lifanov (mentor)
Differential Revision: https://reviews.freebsd.org/D11495
Diffstat (limited to 'graphics/pfstools/files')
-rw-r--r-- | graphics/pfstools/files/patch-src-filter-pfswb.cpp | 8 | ||||
-rw-r--r-- | graphics/pfstools/files/patch-src-pfs-pfs.h | 9 |
2 files changed, 14 insertions, 3 deletions
diff --git a/graphics/pfstools/files/patch-src-filter-pfswb.cpp b/graphics/pfstools/files/patch-src-filter-pfswb.cpp index 708f10297a72..e579100e1852 100644 --- a/graphics/pfstools/files/patch-src-filter-pfswb.cpp +++ b/graphics/pfstools/files/patch-src-filter-pfswb.cpp @@ -1,6 +1,6 @@ ---- src/filter/pfswb.cpp.orig 2016-02-12 17:10:27 UTC +--- src/filter/pfswb.cpp.orig 2016-08-12 19:10:44 UTC +++ src/filter/pfswb.cpp -@@ -0,0 +1,297 @@ +@@ -0,0 +1,299 @@ +/** + * @file pfswb.cpp + * @brief Adjust white balance in RGB color space @@ -184,10 +184,12 @@ + float nmin = 1e20, nmax = -1e20; + for (int i=s; i--; ) + { -+ float const &l = ((*Y)(i)-amin)*k+min; ++ float const l = ((*Y)(i)-amin)*k+min; + if (nmin > l) nmin = l; + if (nmax < l) nmax = l; + (*Y)(i) = l; ++ (*X)(i) *= k; ++ (*Z)(i) *= k; + } + VERBOSE_STR << "restored luminance range: " << nmin << ":" << nmax << std::endl; + } diff --git a/graphics/pfstools/files/patch-src-pfs-pfs.h b/graphics/pfstools/files/patch-src-pfs-pfs.h index 4a40523f84be..2003c7ad0c51 100644 --- a/graphics/pfstools/files/patch-src-pfs-pfs.h +++ b/graphics/pfstools/files/patch-src-pfs-pfs.h @@ -43,3 +43,12 @@ } ~Exception() {}; +@@ -590,7 +596,7 @@ namespace pfs + * + * @return text description of the cause for the exception + */ +- const char* getMessage() ++ const char* getMessage() const + { + return msg; + } |