openbsd-ports/graphics/enblend-enfuse/patches/patch-src_pyramid_h
sthen be2f7c5b97 import graphics/enblend-enfuse:
Enblend combines images that partially overlap into a single large
image with no seams (panorama generation). This is a command-line
tool which performs the actual composition; another tool is required
to line up the images ready for input (e.g. Hugin).

Enfuse combines images that overlap into a single image with good
focus and exposure (exposure stacking for high dynamic range, focus
stacking for extended depth-of-field).

will be hooked to the build after tests on additional arch.
big thanks to Emmanuel Viaud for rewriting some C++ to build with GCC 3.
2009-04-19 11:14:37 +00:00

34 lines
1.8 KiB
Plaintext

$OpenBSD: patch-src_pyramid_h,v 1.1.1.1 2009/04/19 11:14:37 sthen Exp $
--- src/pyramid.h.orig Sat Feb 2 21:30:51 2008
+++ src/pyramid.h Fri Apr 17 20:18:27 2009
@@ -641,7 +641,8 @@ inline void reduce(bool wraparound,
// Main pixels in first row
for (sx = sy, evenX = true, srcx = 0, dstx = 0; srcx < src_w; ++srcx, ++sx.x) {
- SKIPSMImagePixelType icurrent(SKIPSMImagePixelType(sa(sx)));
+ SKIPSMImagePixelType foo = SKIPSMImagePixelType(sa(sx));
+ SKIPSMImagePixelType icurrent(foo);
if (evenX) {
isc0[dstx] = isr1 + IMUL6(isr0) + isrp + icurrent;
isc1[dstx] = IMUL5(isc0[dstx]);
@@ -708,7 +709,8 @@ inline void reduce(bool wraparound,
// Main entries in row
for (evenX = false, srcx = 1, dstx = 0; srcx < src_w; ++srcx, ++sx.x) {
- SKIPSMImagePixelType icurrent(SKIPSMImagePixelType(sa(sx)));
+ SKIPSMImagePixelType foo = SKIPSMImagePixelType(sa(sx));
+ SKIPSMImagePixelType icurrent(foo);
if (evenX) {
SKIPSMImagePixelType ip = isc1[dstx] + IMUL6(isc0[dstx]) + iscp[dstx];
isc1[dstx] = isc0[dstx] + iscp[dstx];
@@ -770,7 +772,8 @@ inline void reduce(bool wraparound,
// Main entries in odd-numbered row
for (evenX = false, srcx = 1, dstx = 0; srcx < src_w; ++srcx, ++sx.x) {
- SKIPSMImagePixelType icurrent(SKIPSMImagePixelType(sa(sx)));
+ SKIPSMImagePixelType foo = SKIPSMImagePixelType(sa(sx));
+ SKIPSMImagePixelType icurrent(foo);
if (evenX) {
iscp[dstx] = (isr1 + IMUL6(isr0) + isrp + icurrent) * 4;
isr1 = isr0 + isrp;