react-native-nitro-zxing 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/VisionCameraZxing.podspec +48 -0
- package/android/CMakeLists.txt +43 -0
- package/android/build.gradle +150 -0
- package/android/fix-prefab.gradle +51 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/cpp/cpp-adapter.cpp +7 -0
- package/android/src/main/java/com/margelo/nitro/camera/zxing/VisionCameraZxingPackage.kt +21 -0
- package/cpp/BarcodeValueTypeClassifier.cpp +70 -0
- package/cpp/BarcodeValueTypeClassifier.hpp +14 -0
- package/cpp/FrameImageView.cpp +75 -0
- package/cpp/FrameImageView.hpp +34 -0
- package/cpp/HybridBarcode.cpp +59 -0
- package/cpp/HybridBarcode.hpp +26 -0
- package/cpp/HybridBarcodeScanner.cpp +121 -0
- package/cpp/HybridBarcodeScanner.hpp +26 -0
- package/cpp/HybridBarcodeScannerFactory.cpp +11 -0
- package/cpp/HybridBarcodeScannerFactory.hpp +14 -0
- package/cpp/ImageDownscaler.cpp +34 -0
- package/cpp/ImageDownscaler.hpp +21 -0
- package/cpp/ZXingDecoder.cpp +189 -0
- package/cpp/ZXingDecoder.hpp +72 -0
- package/cpp/zxing-core/LICENSE +202 -0
- package/cpp/zxing-core/README.md +156 -0
- package/cpp/zxing-core/core/CMakeLists.txt +784 -0
- package/cpp/zxing-core/core/Version.h.in +28 -0
- package/cpp/zxing-core/core/ZXingConfig.cmake.in +9 -0
- package/cpp/zxing-core/core/src/Barcode.cpp +255 -0
- package/cpp/zxing-core/core/src/Barcode.h +191 -0
- package/cpp/zxing-core/core/src/BarcodeData.h +100 -0
- package/cpp/zxing-core/core/src/BarcodeFormat.cpp +286 -0
- package/cpp/zxing-core/core/src/BarcodeFormat.h +272 -0
- package/cpp/zxing-core/core/src/BinaryBitmap.cpp +111 -0
- package/cpp/zxing-core/core/src/BinaryBitmap.h +66 -0
- package/cpp/zxing-core/core/src/BitArray.cpp +38 -0
- package/cpp/zxing-core/core/src/BitArray.h +181 -0
- package/cpp/zxing-core/core/src/BitMatrix.cpp +175 -0
- package/cpp/zxing-core/core/src/BitMatrix.h +199 -0
- package/cpp/zxing-core/core/src/BitMatrixCursor.h +253 -0
- package/cpp/zxing-core/core/src/BitMatrixIO.cpp +101 -0
- package/cpp/zxing-core/core/src/BitMatrixIO.h +21 -0
- package/cpp/zxing-core/core/src/BitSource.cpp +77 -0
- package/cpp/zxing-core/core/src/BitSource.h +72 -0
- package/cpp/zxing-core/core/src/ByteArray.h +42 -0
- package/cpp/zxing-core/core/src/CharacterSet.cpp +78 -0
- package/cpp/zxing-core/core/src/CharacterSet.h +58 -0
- package/cpp/zxing-core/core/src/ConcentricFinder.cpp +312 -0
- package/cpp/zxing-core/core/src/ConcentricFinder.h +156 -0
- package/cpp/zxing-core/core/src/Content.cpp +471 -0
- package/cpp/zxing-core/core/src/Content.h +82 -0
- package/cpp/zxing-core/core/src/ContentType.h +19 -0
- package/cpp/zxing-core/core/src/CreateBarcode.cpp +490 -0
- package/cpp/zxing-core/core/src/CreateBarcode.h +132 -0
- package/cpp/zxing-core/core/src/DecoderResult.h +92 -0
- package/cpp/zxing-core/core/src/DetectorResult.h +44 -0
- package/cpp/zxing-core/core/src/ECI.cpp +81 -0
- package/cpp/zxing-core/core/src/ECI.h +78 -0
- package/cpp/zxing-core/core/src/Error.cpp +29 -0
- package/cpp/zxing-core/core/src/Error.h +79 -0
- package/cpp/zxing-core/core/src/Flags.h +165 -0
- package/cpp/zxing-core/core/src/GTIN.cpp +253 -0
- package/cpp/zxing-core/core/src/GTIN.h +58 -0
- package/cpp/zxing-core/core/src/GlobalHistogramBinarizer.cpp +197 -0
- package/cpp/zxing-core/core/src/GlobalHistogramBinarizer.h +34 -0
- package/cpp/zxing-core/core/src/GridSampler.cpp +124 -0
- package/cpp/zxing-core/core/src/GridSampler.h +59 -0
- package/cpp/zxing-core/core/src/HRI.cpp +343 -0
- package/cpp/zxing-core/core/src/HRI.h +16 -0
- package/cpp/zxing-core/core/src/HybridBinarizer.cpp +315 -0
- package/cpp/zxing-core/core/src/HybridBinarizer.h +40 -0
- package/cpp/zxing-core/core/src/ImageView.h +168 -0
- package/cpp/zxing-core/core/src/JSON.cpp +154 -0
- package/cpp/zxing-core/core/src/JSON.h +66 -0
- package/cpp/zxing-core/core/src/LocalGrid.cpp +242 -0
- package/cpp/zxing-core/core/src/LocalGrid.h +91 -0
- package/cpp/zxing-core/core/src/LogMatrix.h +105 -0
- package/cpp/zxing-core/core/src/Matrix.h +125 -0
- package/cpp/zxing-core/core/src/MultiFormatReader.cpp +107 -0
- package/cpp/zxing-core/core/src/MultiFormatReader.h +34 -0
- package/cpp/zxing-core/core/src/MultiFormatWriter.cpp +111 -0
- package/cpp/zxing-core/core/src/MultiFormatWriter.h +62 -0
- package/cpp/zxing-core/core/src/Pattern.h +472 -0
- package/cpp/zxing-core/core/src/PerspectiveTransform.cpp +81 -0
- package/cpp/zxing-core/core/src/PerspectiveTransform.h +47 -0
- package/cpp/zxing-core/core/src/Point.h +185 -0
- package/cpp/zxing-core/core/src/Quadrilateral.h +215 -0
- package/cpp/zxing-core/core/src/Range.h +112 -0
- package/cpp/zxing-core/core/src/ReadBarcode.cpp +335 -0
- package/cpp/zxing-core/core/src/ReadBarcode.h +33 -0
- package/cpp/zxing-core/core/src/Reader.h +32 -0
- package/cpp/zxing-core/core/src/ReaderOptions.h +210 -0
- package/cpp/zxing-core/core/src/ReedSolomon.cpp +100 -0
- package/cpp/zxing-core/core/src/ReedSolomon.h +66 -0
- package/cpp/zxing-core/core/src/RegressionLine.h +161 -0
- package/cpp/zxing-core/core/src/ResultPoint.cpp +20 -0
- package/cpp/zxing-core/core/src/ResultPoint.h +35 -0
- package/cpp/zxing-core/core/src/StdGenerator.h +121 -0
- package/cpp/zxing-core/core/src/StdPrint.h +38 -0
- package/cpp/zxing-core/core/src/StdScope.h +55 -0
- package/cpp/zxing-core/core/src/StructuredAppend.h +19 -0
- package/cpp/zxing-core/core/src/SymbologyIdentifier.h +29 -0
- package/cpp/zxing-core/core/src/TextDecoder.cpp +59 -0
- package/cpp/zxing-core/core/src/TextDecoder.h +23 -0
- package/cpp/zxing-core/core/src/TextEncoder.cpp +75 -0
- package/cpp/zxing-core/core/src/TextEncoder.h +31 -0
- package/cpp/zxing-core/core/src/ThresholdBinarizer.h +58 -0
- package/cpp/zxing-core/core/src/TritMatrix.h +29 -0
- package/cpp/zxing-core/core/src/Utf.cpp +276 -0
- package/cpp/zxing-core/core/src/Utf.h +26 -0
- package/cpp/zxing-core/core/src/WhiteRectDetector.cpp +276 -0
- package/cpp/zxing-core/core/src/WhiteRectDetector.h +36 -0
- package/cpp/zxing-core/core/src/WriteBarcode.cpp +213 -0
- package/cpp/zxing-core/core/src/WriteBarcode.h +72 -0
- package/cpp/zxing-core/core/src/ZXAlgorithms.h +353 -0
- package/cpp/zxing-core/core/src/ZXConfig.h +17 -0
- package/cpp/zxing-core/core/src/ZXTestSupport.h +9 -0
- package/cpp/zxing-core/core/src/ZXVersion.h +14 -0
- package/cpp/zxing-core/core/src/ZXingC.cpp +460 -0
- package/cpp/zxing-core/core/src/ZXingC.h +296 -0
- package/cpp/zxing-core/core/src/ZXingCpp.cpp +18 -0
- package/cpp/zxing-core/core/src/ZXingCpp.h +76 -0
- package/cpp/zxing-core/core/src/ZXingQt.h +606 -0
- package/cpp/zxing-core/core/src/aztec/AZDecoder.cpp +376 -0
- package/cpp/zxing-core/core/src/aztec/AZDecoder.h +20 -0
- package/cpp/zxing-core/core/src/aztec/AZDetector.cpp +508 -0
- package/cpp/zxing-core/core/src/aztec/AZDetector.h +25 -0
- package/cpp/zxing-core/core/src/aztec/AZDetectorResult.h +51 -0
- package/cpp/zxing-core/core/src/aztec/AZEncoder.cpp +318 -0
- package/cpp/zxing-core/core/src/aztec/AZEncoder.h +44 -0
- package/cpp/zxing-core/core/src/aztec/AZEncodingState.h +40 -0
- package/cpp/zxing-core/core/src/aztec/AZHighLevelEncoder.cpp +377 -0
- package/cpp/zxing-core/core/src/aztec/AZHighLevelEncoder.h +36 -0
- package/cpp/zxing-core/core/src/aztec/AZReader.cpp +45 -0
- package/cpp/zxing-core/core/src/aztec/AZReader.h +21 -0
- package/cpp/zxing-core/core/src/aztec/AZToken.cpp +44 -0
- package/cpp/zxing-core/core/src/aztec/AZToken.h +39 -0
- package/cpp/zxing-core/core/src/aztec/AZWriter.cpp +38 -0
- package/cpp/zxing-core/core/src/aztec/AZWriter.h +55 -0
- package/cpp/zxing-core/core/src/datamatrix/DMBitLayout.cpp +194 -0
- package/cpp/zxing-core/core/src/datamatrix/DMBitLayout.h +21 -0
- package/cpp/zxing-core/core/src/datamatrix/DMDataBlock.cpp +63 -0
- package/cpp/zxing-core/core/src/datamatrix/DMDataBlock.h +41 -0
- package/cpp/zxing-core/core/src/datamatrix/DMDecoder.cpp +457 -0
- package/cpp/zxing-core/core/src/datamatrix/DMDecoder.h +19 -0
- package/cpp/zxing-core/core/src/datamatrix/DMDetector.cpp +1230 -0
- package/cpp/zxing-core/core/src/datamatrix/DMDetector.h +23 -0
- package/cpp/zxing-core/core/src/datamatrix/DMECEncoder.cpp +137 -0
- package/cpp/zxing-core/core/src/datamatrix/DMECEncoder.h +26 -0
- package/cpp/zxing-core/core/src/datamatrix/DMEncoderContext.h +128 -0
- package/cpp/zxing-core/core/src/datamatrix/DMHighLevelEncoder.cpp +919 -0
- package/cpp/zxing-core/core/src/datamatrix/DMHighLevelEncoder.h +29 -0
- package/cpp/zxing-core/core/src/datamatrix/DMReader.cpp +40 -0
- package/cpp/zxing-core/core/src/datamatrix/DMReader.h +21 -0
- package/cpp/zxing-core/core/src/datamatrix/DMSymbolInfo.cpp +141 -0
- package/cpp/zxing-core/core/src/datamatrix/DMSymbolInfo.h +78 -0
- package/cpp/zxing-core/core/src/datamatrix/DMSymbolShape.h +17 -0
- package/cpp/zxing-core/core/src/datamatrix/DMVersion.cpp +82 -0
- package/cpp/zxing-core/core/src/datamatrix/DMVersion.h +76 -0
- package/cpp/zxing-core/core/src/datamatrix/DMWriter.cpp +114 -0
- package/cpp/zxing-core/core/src/datamatrix/DMWriter.h +62 -0
- package/cpp/zxing-core/core/src/librscpp/README.md +65 -0
- package/cpp/zxing-core/core/src/librscpp/decode.h +258 -0
- package/cpp/zxing-core/core/src/librscpp/encode.h +124 -0
- package/cpp/zxing-core/core/src/librscpp/field.h +158 -0
- package/cpp/zxing-core/core/src/librscpp/poly.h +194 -0
- package/cpp/zxing-core/core/src/libzint/2of5inter.c +1 -0
- package/cpp/zxing-core/core/src/libzint/2of5inter_based.c +1 -0
- package/cpp/zxing-core/core/src/libzint/aztec.c +1 -0
- package/cpp/zxing-core/core/src/libzint/aztec.h +1 -0
- package/cpp/zxing-core/core/src/libzint/big5.h +1 -0
- package/cpp/zxing-core/core/src/libzint/codabar.c +1 -0
- package/cpp/zxing-core/core/src/libzint/code.c +1 -0
- package/cpp/zxing-core/core/src/libzint/code128.c +1 -0
- package/cpp/zxing-core/core/src/libzint/code128.h +1 -0
- package/cpp/zxing-core/core/src/libzint/common.c +1 -0
- package/cpp/zxing-core/core/src/libzint/common.h +1 -0
- package/cpp/zxing-core/core/src/libzint/dmatrix.c +1 -0
- package/cpp/zxing-core/core/src/libzint/dmatrix.h +1 -0
- package/cpp/zxing-core/core/src/libzint/dxfilmedge.c +1 -0
- package/cpp/zxing-core/core/src/libzint/eci.c +1 -0
- package/cpp/zxing-core/core/src/libzint/eci.h +1 -0
- package/cpp/zxing-core/core/src/libzint/eci_sb.h +1 -0
- package/cpp/zxing-core/core/src/libzint/filemem.c +1 -0
- package/cpp/zxing-core/core/src/libzint/filemem.h +1 -0
- package/cpp/zxing-core/core/src/libzint/fonts/normal_woff2.h +1 -0
- package/cpp/zxing-core/core/src/libzint/fonts/upcean_woff2.h +1 -0
- package/cpp/zxing-core/core/src/libzint/gb18030.h +1 -0
- package/cpp/zxing-core/core/src/libzint/gb2312.h +1 -0
- package/cpp/zxing-core/core/src/libzint/gbk.h +1 -0
- package/cpp/zxing-core/core/src/libzint/general_field.c +1 -0
- package/cpp/zxing-core/core/src/libzint/general_field.h +1 -0
- package/cpp/zxing-core/core/src/libzint/gs1.c +1 -0
- package/cpp/zxing-core/core/src/libzint/gs1.h +1 -0
- package/cpp/zxing-core/core/src/libzint/gs1_lint.h +1 -0
- package/cpp/zxing-core/core/src/libzint/iso3166.h +1 -0
- package/cpp/zxing-core/core/src/libzint/iso4217.h +1 -0
- package/cpp/zxing-core/core/src/libzint/ksx1001.h +1 -0
- package/cpp/zxing-core/core/src/libzint/large.c +1 -0
- package/cpp/zxing-core/core/src/libzint/large.h +1 -0
- package/cpp/zxing-core/core/src/libzint/library.c +1 -0
- package/cpp/zxing-core/core/src/libzint/maxicode.c +1 -0
- package/cpp/zxing-core/core/src/libzint/maxicode.h +1 -0
- package/cpp/zxing-core/core/src/libzint/medical.c +1 -0
- package/cpp/zxing-core/core/src/libzint/output.c +1 -0
- package/cpp/zxing-core/core/src/libzint/output.h +1 -0
- package/cpp/zxing-core/core/src/libzint/pdf417.c +1 -0
- package/cpp/zxing-core/core/src/libzint/pdf417.h +1 -0
- package/cpp/zxing-core/core/src/libzint/pdf417_tabs.h +1 -0
- package/cpp/zxing-core/core/src/libzint/qr.c +1 -0
- package/cpp/zxing-core/core/src/libzint/qr.h +1 -0
- package/cpp/zxing-core/core/src/libzint/raster.c +1 -0
- package/cpp/zxing-core/core/src/libzint/raster_font.h +1 -0
- package/cpp/zxing-core/core/src/libzint/reedsol.c +1 -0
- package/cpp/zxing-core/core/src/libzint/reedsol.h +1 -0
- package/cpp/zxing-core/core/src/libzint/reedsol_logs.h +1 -0
- package/cpp/zxing-core/core/src/libzint/rss.c +1 -0
- package/cpp/zxing-core/core/src/libzint/rss.h +1 -0
- package/cpp/zxing-core/core/src/libzint/sjis.h +1 -0
- package/cpp/zxing-core/core/src/libzint/stubs.c +137 -0
- package/cpp/zxing-core/core/src/libzint/svg.c +1 -0
- package/cpp/zxing-core/core/src/libzint/telepen.c +1 -0
- package/cpp/zxing-core/core/src/libzint/upcean.c +1 -0
- package/cpp/zxing-core/core/src/libzint/vector.c +1 -0
- package/cpp/zxing-core/core/src/libzint/zfiletypes.h +1 -0
- package/cpp/zxing-core/core/src/libzint/zint.h +1 -0
- package/cpp/zxing-core/core/src/libzint/zintconfig.h +1 -0
- package/cpp/zxing-core/core/src/libzueci/README.md +11 -0
- package/cpp/zxing-core/core/src/libzueci/zueci.c +1718 -0
- package/cpp/zxing-core/core/src/libzueci/zueci.h +179 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_big5.h +3884 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_common.h +31 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_gb18030.h +264 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_gb2312.h +2381 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_gbk.h +4047 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_ksx1001.h +2932 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_sb.h +1112 -0
- package/cpp/zxing-core/core/src/libzueci/zueci_sjis.h +2286 -0
- package/cpp/zxing-core/core/src/maxicode/MCBitMatrixParser.cpp +68 -0
- package/cpp/zxing-core/core/src/maxicode/MCBitMatrixParser.h +30 -0
- package/cpp/zxing-core/core/src/maxicode/MCDecoder.cpp +329 -0
- package/cpp/zxing-core/core/src/maxicode/MCDecoder.h +19 -0
- package/cpp/zxing-core/core/src/maxicode/MCReader.cpp +65 -0
- package/cpp/zxing-core/core/src/maxicode/MCReader.h +21 -0
- package/cpp/zxing-core/core/src/oned/ODCodabarReader.cpp +102 -0
- package/cpp/zxing-core/core/src/oned/ODCodabarReader.h +21 -0
- package/cpp/zxing-core/core/src/oned/ODCodabarWriter.cpp +136 -0
- package/cpp/zxing-core/core/src/oned/ODCodabarWriter.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODCode128Patterns.h +130 -0
- package/cpp/zxing-core/core/src/oned/ODCode128Reader.cpp +236 -0
- package/cpp/zxing-core/core/src/oned/ODCode128Reader.h +21 -0
- package/cpp/zxing-core/core/src/oned/ODCode128Writer.cpp +261 -0
- package/cpp/zxing-core/core/src/oned/ODCode128Writer.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODCode39Reader.cpp +213 -0
- package/cpp/zxing-core/core/src/oned/ODCode39Reader.h +26 -0
- package/cpp/zxing-core/core/src/oned/ODCode39Writer.cpp +176 -0
- package/cpp/zxing-core/core/src/oned/ODCode39Writer.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODCode93Patterns.h +80 -0
- package/cpp/zxing-core/core/src/oned/ODCode93Reader.cpp +112 -0
- package/cpp/zxing-core/core/src/oned/ODCode93Reader.h +21 -0
- package/cpp/zxing-core/core/src/oned/ODCode93Writer.cpp +192 -0
- package/cpp/zxing-core/core/src/oned/ODCode93Writer.h +32 -0
- package/cpp/zxing-core/core/src/oned/ODDXFilmEdgeReader.cpp +246 -0
- package/cpp/zxing-core/core/src/oned/ODDXFilmEdgeReader.h +26 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarCommon.cpp +172 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarCommon.h +204 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarExpandedBitDecoder.cpp +253 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarExpandedBitDecoder.h +19 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarExpandedReader.cpp +383 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarExpandedReader.h +25 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarLimitedReader.cpp +163 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarLimitedReader.h +23 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarReader.cpp +240 -0
- package/cpp/zxing-core/core/src/oned/ODDataBarReader.h +25 -0
- package/cpp/zxing-core/core/src/oned/ODEAN13Writer.cpp +62 -0
- package/cpp/zxing-core/core/src/oned/ODEAN13Writer.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODEAN8Writer.cpp +51 -0
- package/cpp/zxing-core/core/src/oned/ODEAN8Writer.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODITFReader.cpp +97 -0
- package/cpp/zxing-core/core/src/oned/ODITFReader.h +33 -0
- package/cpp/zxing-core/core/src/oned/ODITFWriter.cpp +78 -0
- package/cpp/zxing-core/core/src/oned/ODITFWriter.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODMultiUPCEANReader.cpp +323 -0
- package/cpp/zxing-core/core/src/oned/ODMultiUPCEANReader.h +32 -0
- package/cpp/zxing-core/core/src/oned/ODReader.cpp +259 -0
- package/cpp/zxing-core/core/src/oned/ODReader.h +35 -0
- package/cpp/zxing-core/core/src/oned/ODRowReader.h +222 -0
- package/cpp/zxing-core/core/src/oned/ODTelepenReader.cpp +199 -0
- package/cpp/zxing-core/core/src/oned/ODTelepenReader.h +25 -0
- package/cpp/zxing-core/core/src/oned/ODUPCAWriter.cpp +33 -0
- package/cpp/zxing-core/core/src/oned/ODUPCAWriter.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODUPCEANCommon.cpp +80 -0
- package/cpp/zxing-core/core/src/oned/ODUPCEANCommon.h +129 -0
- package/cpp/zxing-core/core/src/oned/ODUPCEWriter.cpp +56 -0
- package/cpp/zxing-core/core/src/oned/ODUPCEWriter.h +34 -0
- package/cpp/zxing-core/core/src/oned/ODWriterHelper.cpp +39 -0
- package/cpp/zxing-core/core/src/oned/ODWriterHelper.h +48 -0
- package/cpp/zxing-core/core/src/pdf417/MicroPDFReader.cpp +796 -0
- package/cpp/zxing-core/core/src/pdf417/MicroPDFReader.h +23 -0
- package/cpp/zxing-core/core/src/pdf417/PDF417.cpp +85 -0
- package/cpp/zxing-core/core/src/pdf417/PDF417.h +81 -0
- package/cpp/zxing-core/core/src/pdf417/PDFBarcodeMetadata.h +53 -0
- package/cpp/zxing-core/core/src/pdf417/PDFBarcodeValue.cpp +48 -0
- package/cpp/zxing-core/core/src/pdf417/PDFBarcodeValue.h +38 -0
- package/cpp/zxing-core/core/src/pdf417/PDFBoundingBox.cpp +116 -0
- package/cpp/zxing-core/core/src/pdf417/PDFBoundingBox.h +75 -0
- package/cpp/zxing-core/core/src/pdf417/PDFCodeword.h +71 -0
- package/cpp/zxing-core/core/src/pdf417/PDFCodewordDecoder.cpp +588 -0
- package/cpp/zxing-core/core/src/pdf417/PDFCodewordDecoder.h +41 -0
- package/cpp/zxing-core/core/src/pdf417/PDFCompaction.h +20 -0
- package/cpp/zxing-core/core/src/pdf417/PDFCustomData.h +32 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDecoder.cpp +725 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDecoder.h +20 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDetectionResult.cpp +247 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDetectionResult.h +74 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDetectionResultColumn.cpp +321 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDetectionResultColumn.h +83 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDetector.cpp +371 -0
- package/cpp/zxing-core/core/src/pdf417/PDFDetector.h +45 -0
- package/cpp/zxing-core/core/src/pdf417/PDFEncoder.cpp +570 -0
- package/cpp/zxing-core/core/src/pdf417/PDFEncoder.h +182 -0
- package/cpp/zxing-core/core/src/pdf417/PDFHighLevelEncoder.cpp +570 -0
- package/cpp/zxing-core/core/src/pdf417/PDFHighLevelEncoder.h +32 -0
- package/cpp/zxing-core/core/src/pdf417/PDFReader.cpp +333 -0
- package/cpp/zxing-core/core/src/pdf417/PDFReader.h +28 -0
- package/cpp/zxing-core/core/src/pdf417/PDFScanningDecoder.cpp +559 -0
- package/cpp/zxing-core/core/src/pdf417/PDFScanningDecoder.h +41 -0
- package/cpp/zxing-core/core/src/pdf417/PDFWriter.cpp +170 -0
- package/cpp/zxing-core/core/src/pdf417/PDFWriter.h +74 -0
- package/cpp/zxing-core/core/src/pdf417/ZXBigInteger.cpp +623 -0
- package/cpp/zxing-core/core/src/pdf417/ZXBigInteger.h +81 -0
- package/cpp/zxing-core/core/src/pdf417/ZXNullable.h +105 -0
- package/cpp/zxing-core/core/src/qrcode/QRBitMatrixParser.cpp +294 -0
- package/cpp/zxing-core/core/src/qrcode/QRBitMatrixParser.h +41 -0
- package/cpp/zxing-core/core/src/qrcode/QRCodecMode.cpp +95 -0
- package/cpp/zxing-core/core/src/qrcode/QRCodecMode.h +59 -0
- package/cpp/zxing-core/core/src/qrcode/QRDataBlock.cpp +93 -0
- package/cpp/zxing-core/core/src/qrcode/QRDataBlock.h +52 -0
- package/cpp/zxing-core/core/src/qrcode/QRDataMask.h +50 -0
- package/cpp/zxing-core/core/src/qrcode/QRDecoder.cpp +359 -0
- package/cpp/zxing-core/core/src/qrcode/QRDecoder.h +19 -0
- package/cpp/zxing-core/core/src/qrcode/QRDetector.cpp +920 -0
- package/cpp/zxing-core/core/src/qrcode/QRDetector.h +45 -0
- package/cpp/zxing-core/core/src/qrcode/QRECB.h +52 -0
- package/cpp/zxing-core/core/src/qrcode/QREncodeResult.h +33 -0
- package/cpp/zxing-core/core/src/qrcode/QREncoder.cpp +568 -0
- package/cpp/zxing-core/core/src/qrcode/QREncoder.h +21 -0
- package/cpp/zxing-core/core/src/qrcode/QRErrorCorrectionLevel.cpp +51 -0
- package/cpp/zxing-core/core/src/qrcode/QRErrorCorrectionLevel.h +39 -0
- package/cpp/zxing-core/core/src/qrcode/QRFormatInformation.cpp +160 -0
- package/cpp/zxing-core/core/src/qrcode/QRFormatInformation.h +61 -0
- package/cpp/zxing-core/core/src/qrcode/QRMaskUtil.cpp +156 -0
- package/cpp/zxing-core/core/src/qrcode/QRMaskUtil.h +15 -0
- package/cpp/zxing-core/core/src/qrcode/QRMatrixUtil.cpp +318 -0
- package/cpp/zxing-core/core/src/qrcode/QRMatrixUtil.h +25 -0
- package/cpp/zxing-core/core/src/qrcode/QRReader.cpp +149 -0
- package/cpp/zxing-core/core/src/qrcode/QRReader.h +21 -0
- package/cpp/zxing-core/core/src/qrcode/QRVersion.cpp +754 -0
- package/cpp/zxing-core/core/src/qrcode/QRVersion.h +127 -0
- package/cpp/zxing-core/core/src/qrcode/QRWriter.cpp +51 -0
- package/cpp/zxing-core/core/src/qrcode/QRWriter.h +74 -0
- package/cpp/zxing-core/core/version.rc.in +34 -0
- package/cpp/zxing-core/core/zxing.pc.in +8 -0
- package/cpp/zxing-core/wrappers/ios/README.md +25 -0
- package/cpp/zxing-core/wrappers/ios/Sources/Wrapper/Version.h +29 -0
- package/cpp/zxing-core/zxing-cpp.podspec +45 -0
- package/lib/factory.d.ts +10 -0
- package/lib/factory.js +12 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +9 -0
- package/lib/specs/Barcode.nitro.d.ts +63 -0
- package/lib/specs/Barcode.nitro.js +1 -0
- package/lib/specs/BarcodeFormat.d.ts +11 -0
- package/lib/specs/BarcodeFormat.js +1 -0
- package/lib/specs/BarcodeScanner.nitro.d.ts +89 -0
- package/lib/specs/BarcodeScanner.nitro.js +1 -0
- package/lib/specs/BarcodeScannerFactory.nitro.d.ts +26 -0
- package/lib/specs/BarcodeScannerFactory.nitro.js +1 -0
- package/lib/specs/BarcodeValueType.d.ts +9 -0
- package/lib/specs/BarcodeValueType.js +1 -0
- package/lib/specs/Point.d.ts +14 -0
- package/lib/specs/Point.js +1 -0
- package/lib/specs/Rect.d.ts +22 -0
- package/lib/specs/Rect.js +1 -0
- package/lib/useBarcodeScanner.d.ts +23 -0
- package/lib/useBarcodeScanner.js +25 -0
- package/nitro.json +20 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/VisionCameraZxing+autolinking.cmake +83 -0
- package/nitrogen/generated/android/VisionCameraZxing+autolinking.gradle +27 -0
- package/nitrogen/generated/android/VisionCameraZxingOnLoad.cpp +49 -0
- package/nitrogen/generated/android/VisionCameraZxingOnLoad.hpp +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/camera/zxing/VisionCameraZxingOnLoad.kt +35 -0
- package/nitrogen/generated/ios/VisionCameraZxing+autolinking.rb +62 -0
- package/nitrogen/generated/ios/VisionCameraZxing-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/VisionCameraZxing-Swift-Cxx-Bridge.hpp +27 -0
- package/nitrogen/generated/ios/VisionCameraZxing-Swift-Cxx-Umbrella.hpp +38 -0
- package/nitrogen/generated/ios/VisionCameraZxingAutolinking.mm +35 -0
- package/nitrogen/generated/ios/VisionCameraZxingAutolinking.swift +16 -0
- package/nitrogen/generated/shared/c++/BarcodeFormat.hpp +124 -0
- package/nitrogen/generated/shared/c++/BarcodeScannerOptions.hpp +85 -0
- package/nitrogen/generated/shared/c++/BarcodeValueType.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridBarcodeScannerSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridBarcodeScannerSpec.hpp +74 -0
- package/nitrogen/generated/shared/c++/HybridBarcodeSpec.cpp +27 -0
- package/nitrogen/generated/shared/c++/HybridBarcodeSpec.hpp +82 -0
- package/nitrogen/generated/shared/c++/HybridZXingBarcodeScannerFactorySpec.cpp +21 -0
- package/nitrogen/generated/shared/c++/HybridZXingBarcodeScannerFactorySpec.hpp +67 -0
- package/nitrogen/generated/shared/c++/Point.hpp +87 -0
- package/nitrogen/generated/shared/c++/Rect.hpp +95 -0
- package/nitrogen/generated/shared/c++/TargetBarcodeFormat.hpp +124 -0
- package/package.json +108 -0
- package/react-native.config.js +16 -0
- package/src/factory.ts +26 -0
- package/src/index.ts +9 -0
- package/src/specs/Barcode.nitro.ts +70 -0
- package/src/specs/BarcodeFormat.ts +31 -0
- package/src/specs/BarcodeScanner.nitro.ts +91 -0
- package/src/specs/BarcodeScannerFactory.nitro.ts +27 -0
- package/src/specs/BarcodeValueType.ts +25 -0
- package/src/specs/Point.ts +14 -0
- package/src/specs/Rect.ts +22 -0
- package/src/useBarcodeScanner.ts +36 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
// Copyright 2016 ZXing authors
|
|
2
|
+
// Copyright 2017-2026 Axel Waggershauser
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
#include <algorithm>
|
|
8
|
+
#include <cassert>
|
|
9
|
+
#include <cstddef>
|
|
10
|
+
#include <numeric>
|
|
11
|
+
#include <span>
|
|
12
|
+
#include <vector>
|
|
13
|
+
|
|
14
|
+
namespace librscpp {
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @brief Represents a polynomial whose coefficients are elements of Field.
|
|
18
|
+
*
|
|
19
|
+
* The coefficients are stored in a vector, arranged from most significant (highest-power term) to least significant.
|
|
20
|
+
*/
|
|
21
|
+
template <typename Field>
|
|
22
|
+
class Poly : public std::vector<typename Field::value_type>
|
|
23
|
+
{
|
|
24
|
+
using T = typename Field::value_type;
|
|
25
|
+
using Base = std::vector<T>;
|
|
26
|
+
|
|
27
|
+
public:
|
|
28
|
+
void trimLeft(ptrdiff_t delta) { Base::erase(begin(), begin() + delta); }
|
|
29
|
+
|
|
30
|
+
void normalize(int start = 0)
|
|
31
|
+
{
|
|
32
|
+
auto firstNonZero = std::find_if(begin() + std::min<int>(start, size()), end(), [](T c) { return c != 0; });
|
|
33
|
+
trimLeft(firstNonZero - begin());
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
using Base::at;
|
|
37
|
+
using Base::capacity;
|
|
38
|
+
using Base::front;
|
|
39
|
+
|
|
40
|
+
public:
|
|
41
|
+
using Base::begin;
|
|
42
|
+
using Base::end;
|
|
43
|
+
using Base::reserve;
|
|
44
|
+
using Base::size;
|
|
45
|
+
|
|
46
|
+
const Field& field;
|
|
47
|
+
|
|
48
|
+
Poly(const Field& field, size_t capacity = 0) : field(field) { reserve(capacity); }
|
|
49
|
+
|
|
50
|
+
Poly(const Field& field, std::vector<T>&& coefficients, size_t capacity = 0) : Base(std::move(coefficients)), field(field)
|
|
51
|
+
{
|
|
52
|
+
reserve(capacity);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
Poly(const Field& field, std::span<const T> coefficients, size_t capacity = 0) : field(field)
|
|
56
|
+
{
|
|
57
|
+
reserve(std::max(capacity, coefficients.size() + 1));
|
|
58
|
+
Base::insert(end(), coefficients.begin(), coefficients.end());
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
Poly& operator=(Poly&& other) noexcept
|
|
62
|
+
{
|
|
63
|
+
assert(&field == &other.field);
|
|
64
|
+
Base::operator=(std::move(other));
|
|
65
|
+
return *this;
|
|
66
|
+
};
|
|
67
|
+
Poly(Poly&& other) noexcept = default;
|
|
68
|
+
|
|
69
|
+
void resize(size_t size)
|
|
70
|
+
{
|
|
71
|
+
assert(size <= capacity());
|
|
72
|
+
Base::resize(size);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
Poly copy() const { return Poly(field, *this, capacity()); }
|
|
76
|
+
T coef(int degree) const { return at(size() - 1 - degree); }
|
|
77
|
+
T& coef(int degree) { return at(size() - 1 - degree); }
|
|
78
|
+
int deg() const { return static_cast<int>(size()) - 1; }
|
|
79
|
+
bool isZero() const { return size() == 0 || front() == 0; }
|
|
80
|
+
|
|
81
|
+
/// @brief set to the monomial representing coefficient * x ^ degree
|
|
82
|
+
void set(T coefficient, int degree = 0)
|
|
83
|
+
{
|
|
84
|
+
assert(degree >= 0);
|
|
85
|
+
|
|
86
|
+
if (coefficient == 0 && degree == 0) {
|
|
87
|
+
resize(0);
|
|
88
|
+
} else {
|
|
89
|
+
resize(degree + 1);
|
|
90
|
+
std::ranges::fill(*this, 0);
|
|
91
|
+
front() = coefficient;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
void sub(const Poly& rhs)
|
|
96
|
+
{
|
|
97
|
+
assert(&field == &rhs.field);
|
|
98
|
+
|
|
99
|
+
auto oldCoef = [oldDeg = deg(), this](int i) { return i <= oldDeg ? at(oldDeg - i) : 0; };
|
|
100
|
+
resize(std::max(size(), rhs.size()));
|
|
101
|
+
for (int i = 0; i <= rhs.deg(); ++i)
|
|
102
|
+
coef(i) = field.sub(oldCoef(i), rhs.coef(i));
|
|
103
|
+
|
|
104
|
+
normalize();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
void mul(const Poly& rhs, int trimDeg = 0)
|
|
108
|
+
{
|
|
109
|
+
assert(this != &rhs); // self-multiplication is not supported
|
|
110
|
+
assert(&field == &rhs.field);
|
|
111
|
+
|
|
112
|
+
int lhsSize = size();
|
|
113
|
+
int rhsSize = rhs.size();
|
|
114
|
+
int productSize = lhsSize + rhsSize - 1;
|
|
115
|
+
|
|
116
|
+
if (trimDeg == 0) {
|
|
117
|
+
// inplace multiplication
|
|
118
|
+
resize(productSize);
|
|
119
|
+
for (int p = productSize - 1; p >= 0; --p) {
|
|
120
|
+
T acc = 0;
|
|
121
|
+
for (int i = std::max(0, p - (rhsSize - 1)); i <= std::min(lhsSize - 1, p); ++i)
|
|
122
|
+
acc = field.add(acc, field.mul(at(i), rhs.at(p - i)));
|
|
123
|
+
at(p) = acc;
|
|
124
|
+
}
|
|
125
|
+
} else {
|
|
126
|
+
// canonical long multiplication with optional left or right side trimming
|
|
127
|
+
std::vector<T> res(productSize, 0);
|
|
128
|
+
for (int i = 0; i < lhsSize; ++i)
|
|
129
|
+
for (int j = 0; j < rhsSize; ++j)
|
|
130
|
+
res[i + j] = field.add(res[i + j], field.mul(at(i), rhs.at(j)));
|
|
131
|
+
resize(std::abs(trimDeg));
|
|
132
|
+
if (trimDeg < 0)
|
|
133
|
+
std::move(res.end() + trimDeg, res.end(), begin());
|
|
134
|
+
else
|
|
135
|
+
std::move(res.begin(), res.begin() + trimDeg, begin());
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
void mul(T coefficient, int degree = 0)
|
|
140
|
+
{
|
|
141
|
+
assert(degree >= 0);
|
|
142
|
+
|
|
143
|
+
if (coefficient == 0) {
|
|
144
|
+
set(0);
|
|
145
|
+
} else {
|
|
146
|
+
for (T& c : *this)
|
|
147
|
+
c = field.mul(c, coefficient);
|
|
148
|
+
resize(size() + degree);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
void div(const Poly& divisor, Poly& quotient)
|
|
153
|
+
{
|
|
154
|
+
assert(&field == &divisor.field && &field == "ient.field);
|
|
155
|
+
assert(!divisor.isZero());
|
|
156
|
+
|
|
157
|
+
// Use Expanded Synthetic Division (see https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders)
|
|
158
|
+
// and keep quotient/remainder storage separate to avoid cross-contaminating capacity roles.
|
|
159
|
+
quotient.resize(deg() < divisor.deg() ? 0 : size() - divisor.deg());
|
|
160
|
+
auto normalizer = field.inv(divisor.at(0));
|
|
161
|
+
for (size_t i = 0; i < quotient.size(); ++i) {
|
|
162
|
+
auto& ci = at(i);
|
|
163
|
+
if (ci != 0) {
|
|
164
|
+
ci = field.mul(ci, normalizer);
|
|
165
|
+
|
|
166
|
+
// we always skip the first coefficient of the divisor, because it's only used to normalize the dividend coefficient
|
|
167
|
+
for (size_t j = 1; j < divisor.size(); ++j)
|
|
168
|
+
at(i + j) = field.sub(at(i + j), field.mul(divisor.at(j), ci)); // equivalent to: result[i + j] -= divisor[j] * ci
|
|
169
|
+
}
|
|
170
|
+
quotient.at(i) = ci;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// extract the normalized remainder from result
|
|
174
|
+
normalize(quotient.size());
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
void neg()
|
|
178
|
+
{
|
|
179
|
+
for (T& c : *this)
|
|
180
|
+
c = field.neg(c);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
template <typename U = T>
|
|
184
|
+
static T evaluate(const Field& field, std::span<const U> coeffs, T a)
|
|
185
|
+
{
|
|
186
|
+
return std::accumulate(coeffs.begin(), coeffs.end(), T(0),
|
|
187
|
+
[&field, a](T res, U coeff) { return field.add(field.mul(a, res), coeff); });
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/// @brief evaluation of this polynomial at a given point
|
|
191
|
+
T evaluate(T a) const { return evaluate(field, std::span(*this), a); }
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
} // namespace librscpp
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/2of5inter.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/2of5inter_based.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/aztec.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/aztec.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/big5.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/codabar.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/code.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/code128.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/code128.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/common.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/common.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/dmatrix.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/dmatrix.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/dxfilmedge.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/eci.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/eci.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/eci_sb.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/filemem.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/filemem.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/fonts/normal_woff2.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/fonts/upcean_woff2.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/gb18030.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/gb2312.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/gbk.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/general_field.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/general_field.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/gs1.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/gs1.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/gs1_lint.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/iso3166.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/iso4217.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/ksx1001.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/large.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/large.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/library.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/maxicode.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/maxicode.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/medical.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/output.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/output.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/pdf417.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/pdf417.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/pdf417_tabs.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/qr.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/qr.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/raster.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/raster_font.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/reedsol.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/reedsol.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/reedsol_logs.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/rss.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/rss.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/sjis.h"
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
2
|
+
|
|
3
|
+
#include "Version.h"
|
|
4
|
+
#include "common.h"
|
|
5
|
+
|
|
6
|
+
#define STUB_PIXEL_PLOT(NAME) \
|
|
7
|
+
INTERNAL int NAME(struct zint_symbol* symbol, const unsigned char* pixelbuf) \
|
|
8
|
+
{ \
|
|
9
|
+
(void)symbol; \
|
|
10
|
+
(void)pixelbuf; \
|
|
11
|
+
return ZINT_ERROR_ENCODING_PROBLEM; \
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#define STUB_FUNC_CHAR(NAME) \
|
|
15
|
+
INTERNAL int NAME(struct zint_symbol* symbol, unsigned char source[], int length) \
|
|
16
|
+
{ \
|
|
17
|
+
(void)symbol; \
|
|
18
|
+
(void)source; \
|
|
19
|
+
(void)length; \
|
|
20
|
+
strcpy(symbol->errtxt, "Symbology " #NAME " not implemented in embedded libzint"); \
|
|
21
|
+
return ZINT_ERROR_ENCODING_PROBLEM; \
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#define STUB_FUNC_SEGS(NAME) \
|
|
25
|
+
INTERNAL int NAME(struct zint_symbol* symbol, struct zint_seg segs[], const int seg_count) \
|
|
26
|
+
{ \
|
|
27
|
+
(void)symbol; \
|
|
28
|
+
(void)segs; \
|
|
29
|
+
(void)seg_count; \
|
|
30
|
+
strcpy(symbol->errtxt, "Symbology " #NAME " not implemented in embedded libzint"); \
|
|
31
|
+
return ZINT_ERROR_ENCODING_PROBLEM; \
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
STUB_PIXEL_PLOT(zint_png_pixel_plot)
|
|
35
|
+
STUB_PIXEL_PLOT(zint_bmp_pixel_plot)
|
|
36
|
+
STUB_PIXEL_PLOT(zint_pcx_pixel_plot)
|
|
37
|
+
STUB_PIXEL_PLOT(zint_gif_pixel_plot)
|
|
38
|
+
STUB_PIXEL_PLOT(zint_tif_pixel_plot)
|
|
39
|
+
|
|
40
|
+
INTERNAL int zint_ps_plot(struct zint_symbol* symbol)
|
|
41
|
+
{
|
|
42
|
+
(void)symbol;
|
|
43
|
+
return ZINT_ERROR_ENCODING_PROBLEM;
|
|
44
|
+
}
|
|
45
|
+
INTERNAL int zint_emf_plot(struct zint_symbol* symbol, int rotate_angle)
|
|
46
|
+
{
|
|
47
|
+
(void)symbol;
|
|
48
|
+
(void)rotate_angle;
|
|
49
|
+
return ZINT_ERROR_ENCODING_PROBLEM;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
STUB_FUNC_CHAR(zint_c25standard)
|
|
53
|
+
STUB_FUNC_CHAR(zint_c25ind)
|
|
54
|
+
STUB_FUNC_CHAR(zint_c25iata)
|
|
55
|
+
STUB_FUNC_CHAR(zint_c25logic)
|
|
56
|
+
STUB_FUNC_CHAR(zint_ean14)
|
|
57
|
+
STUB_FUNC_CHAR(zint_code11)
|
|
58
|
+
STUB_FUNC_CHAR(zint_msi_plessey)
|
|
59
|
+
STUB_FUNC_CHAR(zint_plessey)
|
|
60
|
+
STUB_FUNC_CHAR(zint_flat)
|
|
61
|
+
STUB_FUNC_CHAR(zint_fim)
|
|
62
|
+
STUB_FUNC_CHAR(zint_postnet)
|
|
63
|
+
STUB_FUNC_CHAR(zint_planet)
|
|
64
|
+
STUB_FUNC_CHAR(zint_usps_imail)
|
|
65
|
+
STUB_FUNC_CHAR(zint_rm4scc)
|
|
66
|
+
STUB_FUNC_CHAR(zint_auspost)
|
|
67
|
+
STUB_FUNC_CHAR(zint_code16k)
|
|
68
|
+
STUB_FUNC_CHAR(zint_composite)
|
|
69
|
+
STUB_FUNC_CHAR(zint_kix)
|
|
70
|
+
STUB_FUNC_CHAR(zint_daft)
|
|
71
|
+
STUB_FUNC_CHAR(zint_nve18)
|
|
72
|
+
STUB_FUNC_CHAR(zint_koreapost)
|
|
73
|
+
STUB_FUNC_CHAR(zint_japanpost)
|
|
74
|
+
STUB_FUNC_CHAR(zint_code49)
|
|
75
|
+
STUB_FUNC_CHAR(zint_channel)
|
|
76
|
+
STUB_FUNC_SEGS(zint_codeone)
|
|
77
|
+
STUB_FUNC_SEGS(zint_gridmatrix)
|
|
78
|
+
STUB_FUNC_SEGS(zint_hanxin)
|
|
79
|
+
STUB_FUNC_SEGS(zint_dotcode)
|
|
80
|
+
STUB_FUNC_SEGS(zint_codablockf)
|
|
81
|
+
STUB_FUNC_CHAR(zint_mailmark_2d)
|
|
82
|
+
STUB_FUNC_CHAR(zint_mailmark_4s)
|
|
83
|
+
STUB_FUNC_CHAR(zint_upu_s10)
|
|
84
|
+
STUB_FUNC_SEGS(zint_ultra)
|
|
85
|
+
STUB_FUNC_CHAR(zint_dpd)
|
|
86
|
+
STUB_FUNC_CHAR(zint_bc412)
|
|
87
|
+
|
|
88
|
+
#if !ZXING_ENABLE_1D
|
|
89
|
+
STUB_FUNC_CHAR(zint_c25inter)
|
|
90
|
+
STUB_FUNC_CHAR(zint_itf14)
|
|
91
|
+
STUB_FUNC_CHAR(zint_dpleit)
|
|
92
|
+
STUB_FUNC_CHAR(zint_dpident)
|
|
93
|
+
STUB_FUNC_CHAR(zint_codabar)
|
|
94
|
+
STUB_FUNC_CHAR(zint_code39)
|
|
95
|
+
STUB_FUNC_CHAR(zint_telepen)
|
|
96
|
+
STUB_FUNC_CHAR(zint_telepen_num)
|
|
97
|
+
STUB_FUNC_CHAR(zint_pzn)
|
|
98
|
+
STUB_FUNC_CHAR(zint_code32)
|
|
99
|
+
STUB_FUNC_CHAR(zint_vin)
|
|
100
|
+
STUB_FUNC_CHAR(zint_pharma)
|
|
101
|
+
STUB_FUNC_CHAR(zint_pharma_two)
|
|
102
|
+
STUB_FUNC_CHAR(zint_code93)
|
|
103
|
+
STUB_FUNC_CHAR(zint_code128)
|
|
104
|
+
STUB_FUNC_CHAR(zint_gs1_128)
|
|
105
|
+
STUB_FUNC_CHAR(zint_excode39)
|
|
106
|
+
STUB_FUNC_CHAR(zint_dbar_exp)
|
|
107
|
+
STUB_FUNC_CHAR(zint_dbar_ltd)
|
|
108
|
+
STUB_FUNC_CHAR(zint_dbar_omn)
|
|
109
|
+
STUB_FUNC_CHAR(zint_eanx)
|
|
110
|
+
STUB_FUNC_CHAR(zint_dxfilmedge)
|
|
111
|
+
#endif
|
|
112
|
+
|
|
113
|
+
#if !ZXING_ENABLE_AZTEC
|
|
114
|
+
STUB_FUNC_CHAR(zint_aztec)
|
|
115
|
+
STUB_FUNC_CHAR(zint_azrune)
|
|
116
|
+
#endif
|
|
117
|
+
|
|
118
|
+
#if !ZXING_ENABLE_DATAMATRIX
|
|
119
|
+
STUB_FUNC_SEGS(zint_datamatrix)
|
|
120
|
+
#endif
|
|
121
|
+
|
|
122
|
+
#if !ZXING_ENABLE_MAXICODE
|
|
123
|
+
STUB_FUNC_CHAR(zint_maxicode)
|
|
124
|
+
#endif
|
|
125
|
+
|
|
126
|
+
#if !ZXING_ENABLE_PDF417
|
|
127
|
+
STUB_FUNC_SEGS(zint_pdf417)
|
|
128
|
+
STUB_FUNC_SEGS(zint_micropdf417)
|
|
129
|
+
#endif
|
|
130
|
+
|
|
131
|
+
#if !ZXING_ENABLE_QRCODE
|
|
132
|
+
STUB_FUNC_SEGS(zint_qrcode)
|
|
133
|
+
STUB_FUNC_SEGS(zint_microqr)
|
|
134
|
+
STUB_FUNC_SEGS(zint_rmqr)
|
|
135
|
+
STUB_FUNC_SEGS(zint_upnqr)
|
|
136
|
+
#endif
|
|
137
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/svg.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/telepen.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/upcean.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/vector.c"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/zfiletypes.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/zint.h"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#include "../../../zint/backend/zintconfig.h"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# libzueci
|
|
2
|
+
|
|
3
|
+
A simple, standalone, BSD-3-Clause C library for converting UTF-8 to/from Extended Channel Interpretations, as
|
|
4
|
+
defined by AIM ITS/04-023 International Technical Standard - Extended Channel Interpretations Part 3: Register
|
|
5
|
+
(Version 2, February 2022).
|
|
6
|
+
|
|
7
|
+
The libzueci project is hosted at https://sourceforge.net/projects/libzueci/. After a longer discussion in
|
|
8
|
+
https://github.com/zxing-cpp/zxing-cpp/issues/332 and https://github.com/zxing-cpp/zxing-cpp/issues/377 it was
|
|
9
|
+
decided to prevent a dependency on the lib as an external project and copy the relevant files directly into
|
|
10
|
+
this repository.
|
|
11
|
+
|