From 09c482df59a49146379d1ba8626f4572003a038c Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Mon, 7 Apr 2014 23:54:13 +0000 Subject: New port Refocus 0.9.0: GIMP plugin to "refocus" images through FIR Wiener filtering Approved by: eadler (mentor) Obtained from: gentoo portage (patches) --- .../gimp-refocus-plugin/files/patch-src__conv.c | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 graphics/gimp-refocus-plugin/files/patch-src__conv.c (limited to 'graphics/gimp-refocus-plugin/files/patch-src__conv.c') diff --git a/graphics/gimp-refocus-plugin/files/patch-src__conv.c b/graphics/gimp-refocus-plugin/files/patch-src__conv.c new file mode 100644 index 000000000000..70742b2adaac --- /dev/null +++ b/graphics/gimp-refocus-plugin/files/patch-src__conv.c @@ -0,0 +1,34 @@ +--- src/conv.c 2014-03-27 20:00:17.000000000 -0300 ++++ src/conv.c 2014-03-27 20:00:58.000000000 -0300 +@@ -421,13 +421,19 @@ + gint x, buf_start_y, total_tiles, tile_nr = 0; + /* Will be false when progress_update tells us that the data is no longer needed */ + gboolean ok = TRUE; +- ++ /* ++ tile_height() [util.c] ++ tile_width() [util.c] ++ */ + initialize_buf (&buf, source, mat_size / 2, sx, sy, width, height, + boundary_type); + total_tiles = (1 + floor ((buf.x + buf.width - 1) / tile_width ()) + - floor ((buf.x) / tile_width ())) * + (1 + floor ((buf.y_limit - 1) / tile_height ()) + - floor ((buf.y) / tile_height ())); ++#ifdef RLXTEST ++ printf("convolve_image: total_tiles %d\n",total_tiles); ++#endif + + buf_start_y = buf.y; + while (ok && shift_buf (&buf, source)) +@@ -437,6 +443,10 @@ + { + const gint ncolors = source->bpp - source->has_alpha; + GimpTile *tile = tile_sink_get_tile (sink, x, buf.y); ++#ifdef RLXTEST ++ printf("convolve_image: x %d, y %d, tile->eheight %d\n", ++ x, buf.y, tile->eheight); ++#endif + convolve_tile (tile, pixpos_in_buf (&buf, x, buf.y), buf.row_stride, + ncolors, sink->bpp, mat->data, mat_size); + tile_sink_tile_unref (sink, tile); -- cgit v1.2.3