3 * IEC16022 bar code generation
4 * Adrian Kennard, Andrews & Arnold Ltd
5 * with help from Cliff Hones on the RS coding
7 * (c) 2004 Adrian Kennard, Andrews & Arnold Ltd
8 * (c) 2006 Stefan Schmidt <stefan@datenfreihafen.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 * Main encoding function
26 * Returns the grid (malloced) containing the matrix. L corner at 0,0.
27 * Takes suggested size in *Wptr, *Hptr, or 0,0. Fills in actual size.
28 * Takes barcodelen and barcode to be encoded
29 * Note, if *encodingptr is null, then fills with auto picked (malloced)
31 * If lenp not null, then the length of encoded data before any final unlatch
33 * If maxp not null, then the max storage of this size code is stored
34 * If eccp not null, then the number of ecc bytes used in this size is stored
35 * Returns 0 on error (writes to stderr with details).
39 #ifndef __IEC16022ECC200_H
40 #define __IEC16022ECC200_H
42 unsigned char *iec16022ecc200(int *Wptr, int *Hptr, char **encodingptr,
43 int barcodelen, unsigned char *barcode,
44 int *lenp, int *maxp, int *eccp);
45 #define MAXBARCODE 3116
47 #endif /* __IEC16022ECC200_H */