summaryrefslogtreecommitdiff
path: root/graphics/gimp-refocus-plugin/files/patch-src__conv.c
blob: 70742b2adaac6ba5d023e3175d932b11e22f6f91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);