Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/backend/pdf417.h @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 /* pdf417.h - PDF417 tables and coefficients declarations */ | |
| 2 /* | |
| 3 libzint - the open source barcode library | |
| 4 Copyright (C) 2008-2024 Robin Stuart <rstuart114@gmail.com> | |
| 5 Portions Copyright (C) 2004 Grandzebu | |
| 6 | |
| 7 Redistribution and use in source and binary forms, with or without | |
| 8 modification, are permitted provided that the following conditions | |
| 9 are met: | |
| 10 | |
| 11 1. Redistributions of source code must retain the above copyright | |
| 12 notice, this list of conditions and the following disclaimer. | |
| 13 2. Redistributions in binary form must reproduce the above copyright | |
| 14 notice, this list of conditions and the following disclaimer in the | |
| 15 documentation and/or other materials provided with the distribution. | |
| 16 3. Neither the name of the project nor the names of its contributors | |
| 17 may be used to endorse or promote products derived from this software | |
| 18 without specific prior written permission. | |
| 19 | |
| 20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | |
| 21 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 22 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
| 23 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE | |
| 24 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
| 25 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
| 26 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 27 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
| 28 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
| 29 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
| 30 SUCH DAMAGE. | |
| 31 */ | |
| 32 /* SPDX-License-Identifier: BSD-3-Clause */ | |
| 33 | |
| 34 /* See "pdf417_tabs.h" for table definitions */ | |
| 35 | |
| 36 #ifndef Z_PDF417_H | |
| 37 #define Z_PDF417_H | |
| 38 | |
| 39 #ifdef __cplusplus | |
| 40 extern "C" { | |
| 41 #endif /* __cplusplus */ | |
| 42 | |
| 43 /* PDF417 error correction coefficients from Grand Zebu */ | |
| 44 INTERNAL_DATA_EXTERN const unsigned short pdf_coefrs[1022]; | |
| 45 | |
| 46 INTERNAL_DATA_EXTERN const unsigned short pdf_bitpattern[2787]; | |
| 47 | |
| 48 /* MicroPDF417 coefficients from ISO/IEC 24728:2006 Annex F */ | |
| 49 INTERNAL_DATA_EXTERN const unsigned short pdf_Microcoeffs[344]; | |
| 50 | |
| 51 /* rows, columns, error codewords, k-offset of valid MicroPDF417 sizes from ISO/IEC 24728:2006 */ | |
| 52 INTERNAL_DATA_EXTERN const unsigned short pdf_MicroVariants[136]; | |
| 53 | |
| 54 /* following is Left RAP, Centre RAP, Right RAP and Start Cluster from ISO/IEC 24728:2006 tables 10, 11 and 12 */ | |
| 55 INTERNAL_DATA_EXTERN const char pdf_RAPTable[136]; | |
| 56 | |
| 57 /* Left and Right Row Address Pattern from Table 2 */ | |
| 58 INTERNAL_DATA_EXTERN const unsigned short pdf_rap_side[52]; | |
| 59 | |
| 60 /* Centre Row Address Pattern from Table 2 */ | |
| 61 INTERNAL_DATA_EXTERN const unsigned short pdf_rap_centre[52]; | |
| 62 | |
| 63 INTERNAL void pdf_byteprocess(short *chainemc, int *p_mclength, const unsigned char chaine[], int start, | |
| 64 const int length, const int lastmode); | |
| 65 | |
| 66 #ifdef __cplusplus | |
| 67 } | |
| 68 #endif /* __cplusplus */ | |
| 69 | |
| 70 /* vim: set ts=4 sw=4 et : */ | |
| 71 #endif /* Z_PDF417_H */ |
