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

Side by Side Diff: xfa/fxbarcode/BC_Library.cpp

Issue 1816133002: Move xfa/include/fxbarcode/BC_Barcode.h to xfa/fxbarcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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
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 6
7 #include "xfa/fxbarcode/BC_Binarizer.h" 7 #include <stdint.h>
8 #include "xfa/fxbarcode/BC_BinaryBitmap.h" 8
9 #include "xfa/fxbarcode/BC_BinaryBitmap.h"
10 #include "xfa/fxbarcode/BC_BufferedImageLuminanceSource.h"
11 #include "xfa/fxbarcode/BC_DecoderResult.h"
12 #include "xfa/fxbarcode/BC_Dimension.h"
13 #include "xfa/fxbarcode/BC_LuminanceSource.h"
14 #include "xfa/fxbarcode/BC_Reader.h"
15 #include "xfa/fxbarcode/BC_ResultPoint.h"
16 #include "xfa/fxbarcode/BC_TwoDimWriter.h"
17 #include "xfa/fxbarcode/BC_UtilCodingConvert.h"
18 #include "xfa/fxbarcode/BC_UtilCodingConvert.h"
19 #include "xfa/fxbarcode/BC_Writer.h"
20 #include "xfa/fxbarcode/common/BC_CommonBitArray.h"
21 #include "xfa/fxbarcode/common/BC_CommonBitMatrix.h"
22 #include "xfa/fxbarcode/common/BC_CommonBitMatrix.h"
23 #include "xfa/fxbarcode/common/BC_CommonBitMatrix.h"
24 #include "xfa/fxbarcode/common/BC_CommonByteMatrix.h"
25 #include "xfa/fxbarcode/common/BC_CommonDecoderResult.h"
26 #include "xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.h"
27 #include "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h" 9 #include "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h"
28 #include "xfa/fxbarcode/datamatrix/BC_ASCIIEncoder.h"
29 #include "xfa/fxbarcode/datamatrix/BC_Base256Encoder.h"
30 #include "xfa/fxbarcode/datamatrix/BC_C40Encoder.h"
31 #include "xfa/fxbarcode/datamatrix/BC_DataMatrixReader.h"
32 #include "xfa/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.h"
33 #include "xfa/fxbarcode/datamatrix/BC_DataMatrixVersion.h" 10 #include "xfa/fxbarcode/datamatrix/BC_DataMatrixVersion.h"
34 #include "xfa/fxbarcode/datamatrix/BC_DataMatrixWriter.h"
35 #include "xfa/fxbarcode/datamatrix/BC_DefaultPlacement.h"
36 #include "xfa/fxbarcode/datamatrix/BC_EdifactEncoder.h"
37 #include "xfa/fxbarcode/datamatrix/BC_Encoder.h"
38 #include "xfa/fxbarcode/datamatrix/BC_EncoderContext.h"
39 #include "xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h" 11 #include "xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h"
40 #include "xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h"
41 #include "xfa/fxbarcode/datamatrix/BC_SymbolInfo.h" 12 #include "xfa/fxbarcode/datamatrix/BC_SymbolInfo.h"
42 #include "xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.h"
43 #include "xfa/fxbarcode/datamatrix/BC_TextEncoder.h"
44 #include "xfa/fxbarcode/datamatrix/BC_X12Encoder.h"
45 #include "xfa/fxbarcode/oned/BC_OneDReader.h"
46 #include "xfa/fxbarcode/oned/BC_OneDimReader.h"
47 #include "xfa/fxbarcode/oned/BC_OneDimWriter.h"
48 #include "xfa/fxbarcode/oned/BC_OnedCodaBarReader.h"
49 #include "xfa/fxbarcode/oned/BC_OnedCode128Reader.h"
50 #include "xfa/fxbarcode/oned/BC_OnedCode128Writer.h"
51 #include "xfa/fxbarcode/oned/BC_OnedCode39Reader.h"
52 #include "xfa/fxbarcode/oned/BC_OnedCode39Writer.h"
53 #include "xfa/fxbarcode/oned/BC_OnedEAN13Reader.h"
54 #include "xfa/fxbarcode/oned/BC_OnedEAN13Writer.h"
55 #include "xfa/fxbarcode/oned/BC_OnedEAN8Reader.h"
56 #include "xfa/fxbarcode/oned/BC_OnedEAN8Writer.h"
57 #include "xfa/fxbarcode/oned/BC_OnedUPCAReader.h"
58 #include "xfa/fxbarcode/oned/BC_OnedUPCAWriter.h"
59 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeMetadata.h"
60 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeValue.h"
61 #include "xfa/fxbarcode/pdf417/BC_PDF417BoundingBox.h"
62 #include "xfa/fxbarcode/pdf417/BC_PDF417Codeword.h"
63 #include "xfa/fxbarcode/pdf417/BC_PDF417CodewordDecoder.h" 13 #include "xfa/fxbarcode/pdf417/BC_PDF417CodewordDecoder.h"
64 #include "xfa/fxbarcode/pdf417/BC_PDF417Common.h"
65 #include "xfa/fxbarcode/pdf417/BC_PDF417Compaction.h"
66 #include "xfa/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h" 14 #include "xfa/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h"
67 #include "xfa/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h"
68 #include "xfa/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h"
69 #include "xfa/fxbarcode/pdf417/BC_PDF417DetectionResult.h"
70 #include "xfa/fxbarcode/pdf417/BC_PDF417DetectionResultColumn.h"
71 #include "xfa/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.h"
72 #include "xfa/fxbarcode/pdf417/BC_PDF417Detector.h"
73 #include "xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h"
74 #include "xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h"
75 #include "xfa/fxbarcode/pdf417/BC_PDF417ECErrorCorrection.h" 15 #include "xfa/fxbarcode/pdf417/BC_PDF417ECErrorCorrection.h"
76 #include "xfa/fxbarcode/pdf417/BC_PDF417ECModulusGF.h" 16 #include "xfa/fxbarcode/pdf417/BC_PDF417ECModulusGF.h"
77 #include "xfa/fxbarcode/pdf417/BC_PDF417ECModulusPoly.h"
78 #include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h" 17 #include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h"
79 #include "xfa/fxbarcode/pdf417/BC_PDF417Reader.h"
80 #include "xfa/fxbarcode/pdf417/BC_PDF417ScanningDecoder.h" 18 #include "xfa/fxbarcode/pdf417/BC_PDF417ScanningDecoder.h"
81 #include "xfa/fxbarcode/qrcode/BC_QRCodeReader.h"
82 #include "xfa/fxbarcode/qrcode/BC_QRCodeWriter.h"
83 #include "xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h" 19 #include "xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h"
84 #include "xfa/fxbarcode/qrcode/BC_QRCoderMode.h" 20 #include "xfa/fxbarcode/qrcode/BC_QRCoderMode.h"
85 #include "xfa/fxbarcode/qrcode/BC_QRCoderVersion.h" 21 #include "xfa/fxbarcode/qrcode/BC_QRCoderVersion.h"
86 #include "xfa/fxbarcode/qrcode/BC_QRDataMask.h" 22 #include "xfa/fxbarcode/qrcode/BC_QRDataMask.h"
87 #include "xfa/fxbarcode/qrcode/BC_QRDecodedBitStreamParser.h"
88 23
89 void BC_Library_Init() { 24 void BC_Library_Init() {
90 CBC_QRCoderErrorCorrectionLevel::Initialize(); 25 CBC_QRCoderErrorCorrectionLevel::Initialize();
91 CBC_QRCoderMode::Initialize(); 26 CBC_QRCoderMode::Initialize();
92 CBC_QRCoderVersion::Initialize(); 27 CBC_QRCoderVersion::Initialize();
93 CBC_QRDataMask::Initialize(); 28 CBC_QRDataMask::Initialize();
94 CBC_ReedSolomonGF256::Initialize(); 29 CBC_ReedSolomonGF256::Initialize();
95 CBC_DataMatrixVersion::Initialize(); 30 CBC_DataMatrixVersion::Initialize();
96 CBC_SymbolInfo::Initialize(); 31 CBC_SymbolInfo::Initialize();
97 CBC_ErrorCorrection::Initialize(); 32 CBC_ErrorCorrection::Initialize();
98 CBC_PDF417HighLevelEncoder::Initialize(); 33 CBC_PDF417HighLevelEncoder::Initialize();
34
99 int32_t e = 0; 35 int32_t e = 0;
100 CBC_PDF417ECModulusGF::Initialize(e); 36 CBC_PDF417ECModulusGF::Initialize(e);
101 CBC_DecodedBitStreamPaser::Initialize(); 37 CBC_DecodedBitStreamPaser::Initialize();
102 CBC_PDF417CodewordDecoder::Initialize(); 38 CBC_PDF417CodewordDecoder::Initialize();
103 CBC_PDF417ECErrorCorrection::Initialize(e); 39 CBC_PDF417ECErrorCorrection::Initialize(e);
104 CBC_PDF417ScanningDecoder::Initialize(); 40 CBC_PDF417ScanningDecoder::Initialize();
105 } 41 }
106 void BC_Library_Destory() { 42 void BC_Library_Destory() {
107 CBC_QRCoderErrorCorrectionLevel::Finalize(); 43 CBC_QRCoderErrorCorrectionLevel::Finalize();
108 CBC_QRCoderMode::Finalize(); 44 CBC_QRCoderMode::Finalize();
109 CBC_QRCoderVersion::Finalize(); 45 CBC_QRCoderVersion::Finalize();
110 CBC_QRDataMask::Finalize(); 46 CBC_QRDataMask::Finalize();
111 CBC_ReedSolomonGF256::Finalize(); 47 CBC_ReedSolomonGF256::Finalize();
112 CBC_DataMatrixVersion::Finalize(); 48 CBC_DataMatrixVersion::Finalize();
113 CBC_SymbolInfo::Finalize(); 49 CBC_SymbolInfo::Finalize();
114 CBC_ErrorCorrection::Finalize(); 50 CBC_ErrorCorrection::Finalize();
115 CBC_PDF417HighLevelEncoder::Finalize(); 51 CBC_PDF417HighLevelEncoder::Finalize();
116 CBC_DecodedBitStreamPaser::Finalize(); 52 CBC_DecodedBitStreamPaser::Finalize();
117 CBC_PDF417CodewordDecoder::Finalize(); 53 CBC_PDF417CodewordDecoder::Finalize();
118 CBC_PDF417ECErrorCorrection::Finalize(); 54 CBC_PDF417ECErrorCorrection::Finalize();
119 CBC_PDF417ECModulusGF::Finalize(); 55 CBC_PDF417ECModulusGF::Finalize();
120 CBC_PDF417ScanningDecoder::Finalize(); 56 CBC_PDF417ScanningDecoder::Finalize();
121 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698