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

Unified Diff: xfa/fxbarcode/pdf417/BC_PDF417Common.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417CodewordDecoder.cpp ('k') | xfa/fxbarcode/pdf417/BC_PDF417Common.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxbarcode/pdf417/BC_PDF417Common.h
diff --git a/xfa/fxbarcode/pdf417/BC_PDF417Common.h b/xfa/fxbarcode/pdf417/BC_PDF417Common.h
index 61e93ab759703f8806f7d77347452ef60541b31f..7e272b8a36e549f0bdf7b325e3169fc0f20f17af 100644
--- a/xfa/fxbarcode/pdf417/BC_PDF417Common.h
+++ b/xfa/fxbarcode/pdf417/BC_PDF417Common.h
@@ -15,16 +15,16 @@ class CBC_PDF417Common {
virtual ~CBC_PDF417Common();
static int32_t getBitCountSum(CFX_Int32Array& moduleBitCount);
static int32_t getCodeword(FX_DWORD symbol);
- static int32_t NUMBER_OF_CODEWORDS;
- static int32_t MAX_CODEWORDS_IN_BARCODE;
- static int32_t MIN_ROWS_IN_BARCODE;
- static int32_t MAX_ROWS_IN_BARCODE;
- static int32_t MAX_CODEWORDS_IN_ROW;
- static int32_t MODULES_IN_CODEWORD;
- static int32_t MODULES_IN_STOP_PATTERN;
- static int32_t BARS_IN_MODULE;
- static int32_t SYMBOL_TABLE[];
- static int32_t CODEWORD_TABLE[];
+ static const int32_t NUMBER_OF_CODEWORDS = 929;
+ static const int32_t MAX_CODEWORDS_IN_BARCODE = NUMBER_OF_CODEWORDS - 1;
+ static const int32_t MIN_ROWS_IN_BARCODE = 3;
+ static const int32_t MAX_ROWS_IN_BARCODE = 90;
+ static const int32_t MAX_CODEWORDS_IN_ROW = 32;
+ static const int32_t MODULES_IN_CODEWORD = 17;
+ static const int32_t MODULES_IN_STOP_PATTERN = 18;
+ static const int32_t BARS_IN_MODULE = 8;
+ static const int32_t SYMBOL_TABLE[];
+ static const uint16_t CODEWORD_TABLE[];
private:
static CFX_Int32Array* EMPTY_INT_ARRAY;
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417CodewordDecoder.cpp ('k') | xfa/fxbarcode/pdf417/BC_PDF417Common.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698