OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 // Original code is licensed as follows: | 6 // Original code is licensed as follows: |
7 /* | 7 /* |
8 * Copyright 2006 Jeremias Maerki in part, and ZXing Authors in part | 8 * Copyright 2006 Jeremias Maerki in part, and ZXing Authors in part |
9 * | 9 * |
10 * Licensed under the Apache License, Version 2.0 (the "License"); | 10 * Licensed under the Apache License, Version 2.0 (the "License"); |
11 * you may not use this file except in compliance with the License. | 11 * you may not use this file except in compliance with the License. |
12 * You may obtain a copy of the License at | 12 * You may obtain a copy of the License at |
13 * | 13 * |
14 * http://www.apache.org/licenses/LICENSE-2.0 | 14 * http://www.apache.org/licenses/LICENSE-2.0 |
15 * | 15 * |
16 * Unless required by applicable law or agreed to in writing, software | 16 * Unless required by applicable law or agreed to in writing, software |
17 * distributed under the License is distributed on an "AS IS" BASIS, | 17 * distributed under the License is distributed on an "AS IS" BASIS, |
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
19 * See the License for the specific language governing permissions and | 19 * See the License for the specific language governing permissions and |
20 * limitations under the License. | 20 * limitations under the License. |
21 */ | 21 */ |
22 | 22 |
23 #include "barcode.h" | 23 #include "../barcode.h" |
24 #include "include/BC_PDF417Compaction.h" | 24 #include "BC_PDF417Compaction.h" |
25 #include "include/BC_PDF417BarcodeRow.h" | 25 #include "BC_PDF417BarcodeRow.h" |
26 #include "include/BC_PDF417BarcodeMatrix.h" | 26 #include "BC_PDF417BarcodeMatrix.h" |
27 #include "include/BC_PDF417ErrorCorrection.h" | 27 #include "BC_PDF417ErrorCorrection.h" |
28 #include "include/BC_PDF417HighLevelEncoder.h" | 28 #include "BC_PDF417HighLevelEncoder.h" |
29 #include "include/BC_PDF417.h" | 29 #include "BC_PDF417.h" |
30 FX_INT32 CBC_PDF417::START_PATTERN = 0x1fea8; | 30 FX_INT32 CBC_PDF417::START_PATTERN = 0x1fea8; |
31 FX_INT32 CBC_PDF417::STOP_PATTERN = 0x3fa29; | 31 FX_INT32 CBC_PDF417::STOP_PATTERN = 0x3fa29; |
32 FX_INT32 CBC_PDF417::CODEWORD_TABLE[][1000] = { | 32 FX_INT32 CBC_PDF417::CODEWORD_TABLE[][1000] = { |
33 { | 33 { |
34 0x1d5c0, 0x1eaf0, 0x1f57c, 0x1d4e0, 0x1ea78, 0x1f53e, | 34 0x1d5c0, 0x1eaf0, 0x1f57c, 0x1d4e0, 0x1ea78, 0x1f53e, |
35 0x1a8c0, 0x1d470, 0x1a860, 0x15040, 0x1a830, 0x15020, | 35 0x1a8c0, 0x1d470, 0x1a860, 0x15040, 0x1a830, 0x15020, |
36 0x1adc0, 0x1d6f0, 0x1eb7c, 0x1ace0, 0x1d678, 0x1eb3e, | 36 0x1adc0, 0x1d6f0, 0x1eb7c, 0x1ace0, 0x1d678, 0x1eb3e, |
37 0x158c0, 0x1ac70, 0x15860, 0x15dc0, 0x1aef0, 0x1d77c, | 37 0x158c0, 0x1ac70, 0x15860, 0x15dc0, 0x1aef0, 0x1d77c, |
38 0x15ce0, 0x1ae78, 0x1d73e, 0x15c70, 0x1ae3c, 0x15ef0, | 38 0x15ce0, 0x1ae78, 0x1d73e, 0x15c70, 0x1ae3c, 0x15ef0, |
39 0x1af7c, 0x15e78, 0x1af3e, 0x15f7c, 0x1f5fa, 0x1d2e0, | 39 0x1af7c, 0x15e78, 0x1af3e, 0x15f7c, 0x1f5fa, 0x1d2e0, |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 dimension->Add(m_minCols); | 683 dimension->Add(m_minCols); |
684 dimension->Add(rows); | 684 dimension->Add(rows); |
685 } | 685 } |
686 } | 686 } |
687 if (dimension == NULL) { | 687 if (dimension == NULL) { |
688 e = BCExceptionUnableToFitMessageInColumns; | 688 e = BCExceptionUnableToFitMessageInColumns; |
689 return NULL; | 689 return NULL; |
690 } | 690 } |
691 return dimension; | 691 return dimension; |
692 } | 692 } |
OLD | NEW |