Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: xfa/fxbarcode/pdf417/BC_PDF417.cpp

Issue 1807373002: Reduce size of several PDFium constant tables. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Found another one. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417.h ('k') | xfa/fxbarcode/pdf417/BC_PDF417CodewordDecoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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");
(...skipping 10 matching lines...) Expand all
21 */ 21 */
22 22
23 #include "xfa/fxbarcode/pdf417/BC_PDF417.h" 23 #include "xfa/fxbarcode/pdf417/BC_PDF417.h"
24 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.h" 24 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.h"
25 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h" 25 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeRow.h"
26 #include "xfa/fxbarcode/pdf417/BC_PDF417Compaction.h" 26 #include "xfa/fxbarcode/pdf417/BC_PDF417Compaction.h"
27 #include "xfa/fxbarcode/pdf417/BC_PDF417ErrorCorrection.h" 27 #include "xfa/fxbarcode/pdf417/BC_PDF417ErrorCorrection.h"
28 #include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h" 28 #include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h"
29 #include "xfa/fxbarcode/utils.h" 29 #include "xfa/fxbarcode/utils.h"
30 30
31 int32_t CBC_PDF417::START_PATTERN = 0x1fea8; 31 const int32_t CBC_PDF417::CODEWORD_TABLE[][929] = {
32 int32_t CBC_PDF417::STOP_PATTERN = 0x3fa29;
33 int32_t CBC_PDF417::CODEWORD_TABLE[][1000] = {
34 {0x1d5c0, 0x1eaf0, 0x1f57c, 0x1d4e0, 0x1ea78, 0x1f53e, 0x1a8c0, 0x1d470, 32 {0x1d5c0, 0x1eaf0, 0x1f57c, 0x1d4e0, 0x1ea78, 0x1f53e, 0x1a8c0, 0x1d470,
35 0x1a860, 0x15040, 0x1a830, 0x15020, 0x1adc0, 0x1d6f0, 0x1eb7c, 0x1ace0, 33 0x1a860, 0x15040, 0x1a830, 0x15020, 0x1adc0, 0x1d6f0, 0x1eb7c, 0x1ace0,
36 0x1d678, 0x1eb3e, 0x158c0, 0x1ac70, 0x15860, 0x15dc0, 0x1aef0, 0x1d77c, 34 0x1d678, 0x1eb3e, 0x158c0, 0x1ac70, 0x15860, 0x15dc0, 0x1aef0, 0x1d77c,
37 0x15ce0, 0x1ae78, 0x1d73e, 0x15c70, 0x1ae3c, 0x15ef0, 0x1af7c, 0x15e78, 35 0x15ce0, 0x1ae78, 0x1d73e, 0x15c70, 0x1ae3c, 0x15ef0, 0x1af7c, 0x15e78,
38 0x1af3e, 0x15f7c, 0x1f5fa, 0x1d2e0, 0x1e978, 0x1f4be, 0x1a4c0, 0x1d270, 36 0x1af3e, 0x15f7c, 0x1f5fa, 0x1d2e0, 0x1e978, 0x1f4be, 0x1a4c0, 0x1d270,
39 0x1e93c, 0x1a460, 0x1d238, 0x14840, 0x1a430, 0x1d21c, 0x14820, 0x1a418, 37 0x1e93c, 0x1a460, 0x1d238, 0x14840, 0x1a430, 0x1d21c, 0x14820, 0x1a418,
40 0x14810, 0x1a6e0, 0x1d378, 0x1e9be, 0x14cc0, 0x1a670, 0x1d33c, 0x14c60, 38 0x14810, 0x1a6e0, 0x1d378, 0x1e9be, 0x14cc0, 0x1a670, 0x1d33c, 0x14c60,
41 0x1a638, 0x1d31e, 0x14c30, 0x1a61c, 0x14ee0, 0x1a778, 0x1d3be, 0x14e70, 39 0x1a638, 0x1d31e, 0x14c30, 0x1a61c, 0x14ee0, 0x1a778, 0x1d3be, 0x14e70,
42 0x1a73c, 0x14e38, 0x1a71e, 0x14f78, 0x1a7be, 0x14f3c, 0x14f1e, 0x1a2c0, 40 0x1a73c, 0x14e38, 0x1a71e, 0x14f78, 0x1a7be, 0x14f3c, 0x14f1e, 0x1a2c0,
43 0x1d170, 0x1e8bc, 0x1a260, 0x1d138, 0x1e89e, 0x14440, 0x1a230, 0x1d11c, 41 0x1d170, 0x1e8bc, 0x1a260, 0x1d138, 0x1e89e, 0x14440, 0x1a230, 0x1d11c,
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 dimension->Add(m_minCols); 575 dimension->Add(m_minCols);
578 dimension->Add(rows); 576 dimension->Add(rows);
579 } 577 }
580 } 578 }
581 if (dimension == NULL) { 579 if (dimension == NULL) {
582 e = BCExceptionUnableToFitMessageInColumns; 580 e = BCExceptionUnableToFitMessageInColumns;
583 return NULL; 581 return NULL;
584 } 582 }
585 return dimension; 583 return dimension;
586 } 584 }
OLDNEW
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417.h ('k') | xfa/fxbarcode/pdf417/BC_PDF417CodewordDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698