~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/trace/potrace/greymap.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
   This file is part of Potrace. It is free software and it is covered
3
3
   by the GNU General Public License. See the file COPYING for details. */
4
4
 
5
 
/* $Id: /local/inkscape.rel.46/src/trace/potrace/greymap.cpp 16879 2007-10-26T21:01:30.934311Z ishmal  $ */
 
5
/* $Id: greymap.cpp 18522 2008-05-04 12:26:23Z pjrm $ */
6
6
 
7
7
/* Routines for manipulating greymaps, including reading pgm files. We
8
8
   only deal with greymaps of depth 8 bits. */
161
161
 
162
162
/* ---------------------------------------------------------------------- */
163
163
 
164
 
/* read a PNM stream: P1-P6 format (see pnm(5)), or a BMP stream, and
 
164
char const *gm_read_error = NULL;
 
165
 
 
166
/** Read a PNM stream: P1-P6 format (see pnm(5)), or a BMP stream, and
165
167
   convert the output to a greymap. Return greymap in *gmp. Return 0
166
168
   on success, -1 on error with errno set, -2 on bad file format (with
167
169
   error message in gm_read_error), and 1 on premature end of file, -3
168
170
   on empty file (including files with only whitespace and comments),
169
171
   -4 if wrong magic number. If the return value is >=0, *gmp is
170
 
   valid. */
171
 
 
172
 
char *gm_read_error = NULL;
173
 
 
 
172
   valid.
 
173
   */
174
174
int gm_read(FILE *f, greymap_t **gmp) {
175
175
  int magic[2];
176
176