⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changes

📁 PDF417编码的算法的源程序
💻
字号:
/* This work is based somewhat on the pdf417_enc code written by *//*              Ian Goldberg at UC-Berkeley *//*                                        *//* Authors: John Lien (jtlien@charter.net) *//*          Laszlo Agoston   lagaston@bmw.co.at *//*          Tom Tollenaere  t2@pophost.eunet.be (gif output routines )  *//*     Useful examples provided by "Tom Tollenaere" t2@pophost.eunet.be  *//*              Revisions:  1.0    4/18/00     Initial release      Revisions:  1.1    4/31/00     Added code to support differenct error                                     correction levels                           Revisions:  1.2    6/08/00     Fixed the PBM output file                   Revisions:  1.3    11/28/00    Fixed overrun problem found by Laszlo                                      Combined get_cvalue and get_ctype                                            Routines (per Laszlo )                                                    Fixed problems with byte_compress                                             remainder > 900 should be                                                  remainder > 899                                                          Also in numeric compress                                                     fix b900_result[mm] > 900                                                 Should be b900_result[mm] > 899            Revisions:  1.4    12/6/00    Add code to do \NL \CR \LF in text compress     Revisions:  1.5    12/7/00    Fix problem with 901 code at beginning                                       and default to text compress mode                                      Fix problem in do_row_begin and                                              do_row_end.  Number of columns                                            was wrong for right indicator                                             and left indicator :                                                    Rewrote the text_compress to work                                           better.                                                                                                            Revisions:  1.6    12/8/00    Fixed more problems with text_compress                                      Folded in Tom Tollenaere gif output code                                     Update Makefile                              Revisions:  1.7    3/13/01    Fixed problem with PDF417_STOP                                      Submitted by "nobody" at sourceforge                                                                                     Revisions:  1.8    5/17/01    Fixed problem switching between                                              text compress and byte compact mode                                         Found by Chris Cowan and Ray Sweeney         Revisions:  1.9    6/17/01    Added 900 pads for case when number                                          codewords used for message plus                                             Error Codewords < row * cols -2                                            also error if number of codewords is too                                 large. Thanks to Frederic Ramanaga for this                                     Added test for ecc syndromes to make                                        sure ecc is calculated correctly                                            Also, added Reed Solomon Decoder                                            Code from Phil Karns rs.c                                                   (Not debugged yet...)                        Revisions:  2.0    10/12/01    Reed Solomon Decoder success                                                if test_ecc is turned on, ecc can                                           now be decoded!!!!                                                          Checked up to four errors corrected                                         at a time                                    Revisions:  2.1    10/21/01    Fix problems with rows = 999                                                and postscript output                                                       Thanks to Jeff Chua                          Revisions:  2.2    10/24/01    Fix problems with rows = 999                                                and postscript output, added top and                                        bottom clear space to postscript out         Revisions:  2.3    11/04/01    Fix problems with rows = 999                                                Added better command line handling                                          submitted by Andrew Baker                    Revisions:  2.4    11/21/01    Fixes for easier Virtual C++ compile                                        Thanks to Chris Wille                                                       New pdf417_en function that does most                                       of the work                                  Revisions:  2.5    11/30/01    Fixes for problems with text compress                                       found by Tomas Gruszewski                                                                                    Revisions:  2.6    12/11/01    Made stdout default output for ps, pbm                                      Added -t psbits for ps bitmap only                                          Made the in_data lines wider                                                All to make this easier to use as                                            as a printer filter.                                                       Changes due to Stephan Leemburg                                             Also,    Raod Plank had some fixes to                                       allow input lines > 256, also as a fix                                      to the nc routine                            Revisions:  2.7    12/19/01    Removed some dead code from generateEC                                     routine.                                                                    Commented out some code in eras_dec_rs                                      that caused some problems when using                                        erasures.                                    Revision    2.8    10/25/02    No changes, just added the scan                                                 binary to decode the generated                                              barcode                                  Revision    3.1    4/13/03     Fixed a bug in PDF417_encodeGIF                                               Found by Dash Wendrzyk                     Revision    3.2    6/06/03     Added a makefile for freeBSD and                                             code in main.c for bsd compilation                                           Thanks to Ken Marx                         Revision    3.3    7/04/03     Added code to demonstrate usage as                                             a callable shared library                                                 lib_test.c   is an example of a                                              program calling the library functions                                      pdf417.h is the include used by caller                                      make lib     will make libary                                                                                           Revision    3.4    9/01/03     Fixed some errors in the pdf417_dec                                         program.                                                                                      Revision    3.5   10/14/03     Fixed bug in get_line that changes HT                                       ( Horizontal Tab) to Space                                                  Added code to allow double quotes                                            in TC ( text compress) using \DQ                                           Added the code written by Vladislav                                          Naumov with help from Paulo Soares                                          to allow support for Macro PDF                                            you can now have a line such as                                              MC "FILE ID  XXXXX Segment 2/2"                                            That specified a macro pdf file id                                         and macro pdf segment index.  This                                         must be the last line of input file                                        Also fixed bug in text_compress that                                      failed for puctuation followed by space                                     Vladislav Naumov wrote a better Makefile.                                                                                      Revision    3.6   11/30/03     Added Borland subdirectory of code                                  for Borland C++ due to Robert Grobau                                  of U.S. Navy.  Added support for                                  stdin file and stdout file ( just                                  replace normal file name with _ )                                                                                                                         Revision    3.7   3/05/04      Fixed problem in ecc table for                                  level 6 and above ecc found by                                  Horvath Gabor.                                  Added tests for level 6 ecc in                                   tests.c              Revision    3.8   4/26/04      Added source code for the pdf417_dec                                  program ( frontend.c ) in the scan_src                                  directory.              Revision    3.9   9/01/04      Fix extra plus problem found by arthurdent99                                  Updated the pdf417_dec to work with netpbm                                  v10.  Also fixed some minor bugs in                                   pdf417_dec, added some array bounds checking                                  etc.              Revision    4.0    10/22/04      Added contributions by Huver at amgraf.com                                  These include better treatment of quiet                                  zone around the barcode, ability to                                  specify bar width in mils, and row height                                  as a function of bar width, and quiet zone                                  width.  Also, a -h and a better command                                  line interface.   Revision    4.1   1/30/05        Added changes to numerical compact                                  and nc routines that resulted in debug                                  information being printed on stdout.                                  This was found by Mark Brand.   I also                                  added Mark Brand's code for the annex p                                  pdf417 pre_processor.                                                                                                                                                                                                                                                                                                	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -