1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #include "xfa/src/fxbarcode/barcode.h" 8 #include "xfa/src/fxbarcode/BC_Reader.h" 9 #include "xfa/src/fxbarcode/BC_UtilCodingConvert.h" 10 #include "xfa/src/fxbarcode/BC_BinaryBitmap.h" 11 #include "xfa/src/fxbarcode/BC_LuminanceSource.h" 12 #include "xfa/src/fxbarcode/BC_BufferedImageLuminanceSource.h" 13 #include "xfa/src/fxbarcode/BC_Binarizer.h" 14 #include "xfa/src/fxbarcode/BC_Writer.h" 15 #include "xfa/src/fxbarcode/BC_Dimension.h" 16 #include "xfa/src/fxbarcode/BC_UtilCodingConvert.h" 17 #include "xfa/src/fxbarcode/BC_ResultPoint.h" 18 #include "xfa/src/fxbarcode/BC_BinaryBitmap.h" 19 #include "xfa/src/fxbarcode/BC_DecoderResult.h" 20 #include "xfa/src/fxbarcode/BC_TwoDimWriter.h" 21 #include "xfa/src/fxbarcode/common/BC_GlobalHistogramBinarizer.h" 22 #include "xfa/src/fxbarcode/common/BC_CommonBitMatrix.h" 23 #include "xfa/src/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h" 24 #include "xfa/src/fxbarcode/common/BC_CommonByteMatrix.h" 25 #include "xfa/src/fxbarcode/common/BC_CommonBitMatrix.h" 26 #include "xfa/src/fxbarcode/common/BC_CommonBitArray.h" 27 #include "xfa/src/fxbarcode/common/BC_CommonBitMatrix.h" 28 #include "xfa/src/fxbarcode/common/BC_CommonDecoderResult.h" 29 #include "xfa/src/fxbarcode/datamatrix/BC_DataMatrixVersion.h" 30 #include "xfa/src/fxbarcode/datamatrix/BC_DataMatrixReader.h" 31 #include "xfa/src/fxbarcode/datamatrix/BC_Encoder.h" 32 #include "xfa/src/fxbarcode/datamatrix/BC_DefaultPlacement.h" 33 #include "xfa/src/fxbarcode/datamatrix/BC_SymbolShapeHint.h" 34 #include "xfa/src/fxbarcode/datamatrix/BC_SymbolInfo.h" 35 #include "xfa/src/fxbarcode/datamatrix/BC_DataMatrixSymbolInfo144.h" 36 #include "xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.h" 37 #include "xfa/src/fxbarcode/datamatrix/BC_EncoderContext.h" 38 #include "xfa/src/fxbarcode/datamatrix/BC_C40Encoder.h" 39 #include "xfa/src/fxbarcode/datamatrix/BC_TextEncoder.h" 40 #include "xfa/src/fxbarcode/datamatrix/BC_X12Encoder.h" 41 #include "xfa/src/fxbarcode/datamatrix/BC_EdifactEncoder.h" 42 #include "xfa/src/fxbarcode/datamatrix/BC_Base256Encoder.h" 43 #include "xfa/src/fxbarcode/datamatrix/BC_ASCIIEncoder.h" 44 #include "xfa/src/fxbarcode/datamatrix/BC_HighLevelEncoder.h" 45 #include "xfa/src/fxbarcode/datamatrix/BC_DataMatrixWriter.h" 46 #include "xfa/src/fxbarcode/oned/BC_OneDReader.h" 47 #include "xfa/src/fxbarcode/oned/BC_OnedCode128Reader.h" 48 #include "xfa/src/fxbarcode/oned/BC_OnedCode39Reader.h" 49 #include "xfa/src/fxbarcode/oned/BC_OneDimReader.h" 50 #include "xfa/src/fxbarcode/oned/BC_OnedEAN13Reader.h" 51 #include "xfa/src/fxbarcode/oned/BC_OnedEAN8Reader.h" 52 #include "xfa/src/fxbarcode/oned/BC_OnedUPCAReader.h" 53 #include "xfa/src/fxbarcode/oned/BC_OnedCodaBarReader.h" 54 #include "xfa/src/fxbarcode/oned/BC_OneDimWriter.h" 55 #include "xfa/src/fxbarcode/oned/BC_OnedCode128Writer.h" 56 #include "xfa/src/fxbarcode/oned/BC_OnedCode39Writer.h" 57 #include "xfa/src/fxbarcode/oned/BC_OnedEAN13Writer.h" 58 #include "xfa/src/fxbarcode/oned/BC_OnedEAN8Writer.h" 59 #include "xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.h" 60 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DetectorResult.h" 61 #include "xfa/src/fxbarcode/pdf417/BC_PDF417Compaction.h" 62 #include "xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h" 63 #include "xfa/src/fxbarcode/pdf417/BC_PDF417Detector.h" 64 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DetectorResult.h" 65 #include "xfa/src/fxbarcode/pdf417/BC_PDF417Codeword.h" 66 #include "xfa/src/fxbarcode/pdf417/BC_PDF417Common.h" 67 #include "xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeValue.h" 68 #include "xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeMetadata.h" 69 #include "xfa/src/fxbarcode/pdf417/BC_PDF417BoundingBox.h" 70 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DetectionResultColumn.h" 71 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DetectionResultRowIndicatorColumn.h" 72 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DetectionResult.h" 73 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h" 74 #include "xfa/src/fxbarcode/pdf417/BC_PDF417CodewordDecoder.h" 75 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h" 76 #include "xfa/src/fxbarcode/pdf417/BC_PDF417ECModulusPoly.h" 77 #include "xfa/src/fxbarcode/pdf417/BC_PDF417ECModulusGF.h" 78 #include "xfa/src/fxbarcode/pdf417/BC_PDF417ECErrorCorrection.h" 79 #include "xfa/src/fxbarcode/pdf417/BC_PDF417DecodedBitStreamParser.h" 80 #include "xfa/src/fxbarcode/pdf417/BC_PDF417ScanningDecoder.h" 81 #include "xfa/src/fxbarcode/pdf417/BC_PDF417Reader.h" 82 #include "xfa/src/fxbarcode/qrcode/BC_QRCodeReader.h" 83 #include "xfa/src/fxbarcode/qrcode/BC_QRCodeWriter.h" 84 #include "xfa/src/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h" 85 #include "xfa/src/fxbarcode/qrcode/BC_QRCoderMode.h" 86 #include "xfa/src/fxbarcode/qrcode/BC_QRCoderVersion.h" 87 #include "xfa/src/fxbarcode/qrcode/BC_QRDataMask.h" 88 #include "xfa/src/fxbarcode/qrcode/BC_QRDecodedBitStreamParser.h" 89 void BC_Library_Init() { 90 CBC_QRCoderErrorCorrectionLevel::Initialize(); 91 CBC_QRCoderMode::Initialize(); 92 CBC_QRCoderVersion::Initialize(); 93 CBC_QRDataMask::Initialize(); 94 CBC_ReedSolomonGF256::Initialize(); 95 CBC_DataMatrixVersion::Initialize(); 96 CBC_SymbolInfo::Initialize(); 97 CBC_ErrorCorrection::Initialize(); 98 CBC_PDF417HighLevelEncoder::Initialize(); 99 int32_t e = 0; 100 CBC_PDF417ECModulusGF::Initialize(e); 101 CBC_DecodedBitStreamPaser::Initialize(); 102 CBC_PDF417CodewordDecoder::Initialize(); 103 CBC_PDF417ECErrorCorrection::Initialize(e); 104 CBC_PDF417ScanningDecoder::Initialize(); 105 } 106 void BC_Library_Destory() { 107 CBC_QRCoderErrorCorrectionLevel::Finalize(); 108 CBC_QRCoderMode::Finalize(); 109 CBC_QRCoderVersion::Finalize(); 110 CBC_QRDataMask::Finalize(); 111 CBC_ReedSolomonGF256::Finalize(); 112 CBC_DataMatrixVersion::Finalize(); 113 CBC_SymbolInfo::Finalize(); 114 CBC_ErrorCorrection::Finalize(); 115 CBC_PDF417HighLevelEncoder::Finalize(); 116 CBC_DecodedBitStreamPaser::Finalize(); 117 CBC_PDF417CodewordDecoder::Finalize(); 118 CBC_PDF417ECErrorCorrection::Finalize(); 119 CBC_PDF417ECModulusGF::Finalize(); 120 CBC_PDF417ScanningDecoder::Finalize(); 121 } 122