summaryrefslogtreecommitdiff
path: root/imageto/extract.c
diff options
context:
space:
mode:
Diffstat (limited to 'imageto/extract.c')
-rw-r--r--imageto/extract.c46
1 files changed, 22 insertions, 24 deletions
diff --git a/imageto/extract.c b/imageto/extract.c
index e6866c3..154e993 100644
--- a/imageto/extract.c
+++ b/imageto/extract.c
@@ -1,22 +1,23 @@
-/* extract.c: operations on bitmaps. These could be put in
- lib/bitmap.c, but since they are not particularly common
- operations, we may as well define them separately for now.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# extract.c: operations on bitmaps.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# These could be put in lib/bitmap.c, but since they are not particularly
+# common operations, we may as well define them separately for now.
#include "config.h"
@@ -33,9 +34,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
static bitmap_type *get_image_row (boolean, unsigned);
static unsigned *image_row_transitions (bitmap_type);
-
-
-
/* Combine the images in the bitmaps B1 and B2, returning the result in
B1. The relative position of the bitmaps is given by the bounding
boxes BB1 and BB2. We update the bounding box, also. */
@@ -94,7 +92,7 @@ combine_images (bitmap_type *b1, bitmap_type b2,
*b1 = whole_bitmap;
*bb1 = whole_bb;
}
-
+
/* Get the next image row of width WIDTH, ignoring leading white rows.
Return the columns at which there are black-to-white or white-black
transitions in TRANSITIONS. */
@@ -128,7 +126,7 @@ append_next_image_row (bitmap_type b, unsigned width, unsigned **transitions)
*transitions = image_row_transitions (*new);
return new;
}
-
+
/* Because scanlines take a relatively long time to read, we will want
some kind of status report. */