Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 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 | |
Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame] | 7 | #include "fxbarcode/BC_Library.h" |
Dan Sinclair | 85c8e7f | 2016-11-21 13:50:32 -0500 | [diff] [blame] | 8 | |
Dan Sinclair | a98600a | 2016-03-21 15:15:56 -0400 | [diff] [blame] | 9 | #include <stdint.h> |
| 10 | |
Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame] | 11 | #include "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h" |
| 12 | #include "fxbarcode/datamatrix/BC_ErrorCorrection.h" |
| 13 | #include "fxbarcode/datamatrix/BC_SymbolInfo.h" |
| 14 | #include "fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h" |
| 15 | #include "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h" |
| 16 | #include "fxbarcode/qrcode/BC_QRCoderMode.h" |
| 17 | #include "fxbarcode/qrcode/BC_QRCoderVersion.h" |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 18 | |
| 19 | void BC_Library_Init() { |
| 20 | CBC_QRCoderErrorCorrectionLevel::Initialize(); |
| 21 | CBC_QRCoderMode::Initialize(); |
| 22 | CBC_QRCoderVersion::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 23 | CBC_ReedSolomonGF256::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 24 | CBC_SymbolInfo::Initialize(); |
| 25 | CBC_ErrorCorrection::Initialize(); |
| 26 | CBC_PDF417HighLevelEncoder::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 27 | } |
Tom Sepez | 5628fd7 | 2017-04-27 14:58:53 -0700 | [diff] [blame] | 28 | |
| 29 | void BC_Library_Destroy() { |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 30 | CBC_QRCoderErrorCorrectionLevel::Finalize(); |
| 31 | CBC_QRCoderMode::Finalize(); |
| 32 | CBC_QRCoderVersion::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 33 | CBC_ReedSolomonGF256::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 34 | CBC_SymbolInfo::Finalize(); |
| 35 | CBC_ErrorCorrection::Finalize(); |
| 36 | CBC_PDF417HighLevelEncoder::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 37 | } |