rhodes 5.5.15 → 5.5.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +48 -13
- data/doc/oss/WM_CE_Installation_And_Build_Guidelines.md +1 -1
- data/lib/commonAPI/barcode/ext.yml +6 -2
- data/lib/commonAPI/barcode/ext/barcode.xml +1 -1
- data/lib/commonAPI/barcode/ext/build.bat +8 -0
- data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro +90 -0
- data/lib/commonAPI/barcode/ext/platform/qt/Rakefile +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/barcode.qrc +10 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonBack.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonRetry.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonSave.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/scanner_sound.wav +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeController.cpp +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeController.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogBuilder.h +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.cpp +175 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/Barcode_impl.cpp +109 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/decoderthread.cpp +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/decoderthread.h +29 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/CameraImageWrapper.cpp +131 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/CameraImageWrapper.h +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.h +173 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.pri +277 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing_global.h +13 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/imagehandler.cpp +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/imagehandler.h +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/qzxing.cpp +303 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigInteger.cc +405 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigInteger.hh +215 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerAlgorithms.cc +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerAlgorithms.hh +25 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerLibrary.hh +8 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerUtils.cc +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerUtils.hh +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsigned.cc +697 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsigned.hh +418 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsignedInABase.cc +125 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsignedInABase.hh +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/ChangeLog +146 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/NumberlikeArray.hh +177 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/README +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/iconv.h +14 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/msvc/stdint.h +247 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/win_iconv.c +2035 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BarcodeFormat.cpp +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BarcodeFormat.h +60 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Binarizer.cpp +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Binarizer.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BinaryBitmap.cpp +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BinaryBitmap.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ChecksumException.cpp +28 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ChecksumException.h +34 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/DecodeHints.cpp +148 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/DecodeHints.h +85 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Exception.cpp +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Exception.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/FormatException.cpp +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/FormatException.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/IllegalStateException.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/InvertedLuminanceSource.cpp +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/InvertedLuminanceSource.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/LuminanceSource.cpp +86 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/LuminanceSource.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/MultiFormatReader.cpp +124 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/MultiFormatReader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/NotFoundException.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Reader.cpp +31 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Reader.h +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ReaderException.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Result.cpp +66 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Result.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultIO.cpp +34 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPoint.cpp +108 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPoint.h +55 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPointCallback.cpp +26 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPointCallback.h +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/WriterException.h +17 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ZXing.h +140 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecDetectorResult.cpp +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecDetectorResult.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecReader.cpp +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecReader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/decoder/AztecDecoder.cpp +495 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/decoder/Decoder.h +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/detector/AztecDetector.cpp +548 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/detector/Detector.h +92 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Array.h +173 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArray.cpp +237 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArray.h +97 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArrayIO.cpp +31 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitMatrix.cpp +143 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitMatrix.h +91 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitSource.cpp +76 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitSource.h +74 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/CharacterSetECI.cpp +104 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/CharacterSetECI.h +53 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Counted.h +140 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DecoderResult.cpp +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DecoderResult.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DetectorResult.cpp +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DetectorResult.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GlobalHistogramBinarizer.cpp +212 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GlobalHistogramBinarizer.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleLuminanceSource.cpp +80 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleLuminanceSource.h +53 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleRotatedLuminanceSource.cpp +81 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleRotatedLuminanceSource.h +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GridSampler.cpp +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GridSampler.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/HybridBinarizer.cpp +226 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/HybridBinarizer.h +67 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/IllegalArgumentException.cpp +27 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/IllegalArgumentException.h +36 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/PerspectiveTransform.cpp +107 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/PerspectiveTransform.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Point.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Str.cpp +61 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Str.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/StringUtils.cpp +198 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/StringUtils.h +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/JavaMath.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MathUtils.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MonochromeRectangleDetector.cpp +175 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MonochromeRectangleDetector.h +62 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/WhiteRectangleDetector.cpp +330 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/WhiteRectangleDetector.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGF.cpp +150 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGF.h +73 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGFPoly.cpp +218 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGFPoly.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonDecoder.cpp +174 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonDecoder.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonException.cpp +30 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonException.h +33 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixReader.cpp +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixReader.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixVersion.cpp +199 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/Version.h +87 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/BitMatrixParser.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataBlock.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixBitMatrixParser.cpp +361 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDataBlock.cpp +113 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp +416 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDecoder.cpp +93 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DecodedBitStreamParser.h +104 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/Decoder.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/CornerPoint.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixCornerPoint.cpp +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixDetector.cpp +447 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixDetectorException.cpp +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/Detector.h +94 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DetectorException.h +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/ByQuadrantReader.cpp +75 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/ByQuadrantReader.h +42 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/GenericMultipleBarcodeReader.cpp +137 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/GenericMultipleBarcodeReader.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/MultipleBarcodeReader.cpp +29 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/MultipleBarcodeReader.h +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/QRCodeMultiReader.cpp +58 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/QRCodeMultiReader.h +36 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiDetector.cpp +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiDetector.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiFinderPatternFinder.cpp +236 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiFinderPatternFinder.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/CodaBarReader.cpp +340 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/CodaBarReader.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code128Reader.cpp +497 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code128Reader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code39Reader.cpp +329 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code39Reader.h +63 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code93Reader.cpp +293 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code93Reader.h +58 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN13Reader.cpp +85 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN13Reader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN8Reader.cpp +65 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN8Reader.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/ITFReader.cpp +337 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/ITFReader.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatOneDReader.cpp +96 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatOneDReader.h +38 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatUPCEANReader.cpp +110 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatUPCEANReader.h +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDReader.cpp +228 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDReader.h +81 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDResultPoint.cpp +28 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDResultPoint.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCAReader.cpp +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCAReader.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEANReader.cpp +309 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEANReader.h +88 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEReader.cpp +146 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEReader.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/PDF417Reader.cpp +170 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/PDF417Reader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/BitMatrixParser.h +84 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/DecodedBitStreamParser.h +84 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/Decoder.h +62 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417BitMatrixParser.cpp +997 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417DecodedBitStreamParser.cpp +563 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417Decoder.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ErrorCorrection.cpp +214 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ErrorCorrection.h +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusGF.cpp +120 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusGF.h +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusPoly.cpp +284 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusPoly.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/Detector.h +106 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/LinesSampler.cpp +719 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/LinesSampler.h +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/PDF417Detector.cpp +664 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/ErrorCorrectionLevel.h +55 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/FormatInformation.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRCodeReader.cpp +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRCodeReader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRErrorCorrectionLevel.cpp +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRFormatInformation.cpp +117 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRVersion.cpp +566 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/Version.h +86 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/BitMatrixParser.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DataBlock.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DataMask.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DecodedBitStreamParser.h +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/Decoder.h +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/Mode.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRBitMatrixParser.cpp +183 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDataBlock.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDataMask.cpp +159 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDecodedBitStreamParser.cpp +433 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDecoder.cpp +107 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRMode.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/AlignmentPattern.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/AlignmentPatternFinder.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/Detector.h +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPattern.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPatternFinder.h +80 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPatternInfo.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRAlignmentPattern.cpp +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRAlignmentPatternFinder.cpp +208 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRDetector.cpp +315 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPattern.cpp +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPatternFinder.cpp +638 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPatternInfo.cpp +41 -0
- data/lib/commonAPI/coreapi/ext.yml +1 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/network/Network.java +21 -7
- data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +10 -0
- data/lib/commonAPI/coreapi/ext/platform/wm/src/Registry.cpp +57 -7
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.cpp +11 -0
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.h +2 -0
- data/lib/commonAPI/coreapi/ext/shared/qt/NavbarImpl.cpp +1 -1
- data/lib/commonAPI/coreapi/ext/system.xml +3 -0
- data/lib/commonAPI/coreapi/ext/webview.xml +0 -2
- data/lib/commonAPI/coreapi/public/api/rhonodejsapi.js +921 -0
- data/lib/commonAPI/mediacapture/ext.yml +1 -0
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +3 -2
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +260 -230
- data/lib/commonAPI/mediacapture/ext/platform/qt/MediaCapture.pro +17 -5
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/buttonBack.png +0 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/mediacapture.qrc +1 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.cpp +11 -4
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.h +4 -7
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraDialogView.h +1 -6
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraRefresher.h +54 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/Camera_impl.cpp +15 -21
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/ImageFilenameGetterResult.h +7 -2
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/cameradialogview.cpp +34 -32
- data/lib/extensions/zlib/ext/zlib.pro +11 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +36 -22
- data/platform/iphone/Classes/SimpleMainView.m +1 -1
- data/platform/shared/api_generator/MethodResult.cpp +22 -7
- data/platform/shared/api_generator/MethodResult.h +3 -1
- data/platform/shared/api_generator/iphone/CMethodResult.m +6 -2
- data/platform/shared/api_generator/js_helpers.cpp +19 -0
- data/platform/shared/api_generator/js_helpers.h +23 -0
- data/platform/shared/common/RhoConf.cpp +0 -1
- data/platform/shared/common/RhoPort.h +3 -0
- data/platform/shared/common/RhodesApp.cpp +46 -11
- data/platform/shared/common/RhodesApp.h +7 -0
- data/platform/shared/common/RhodesAppBase.cpp +5 -1
- data/platform/shared/common/RhodesAppBase.h +8 -1
- data/platform/shared/common/ThreadQueue.h +1 -1
- data/platform/shared/common/map/BaseMapEngine.cpp +2 -0
- data/platform/shared/net/HttpServer.cpp +0 -1
- data/platform/shared/qt/RhoSimulator.pro +11 -0
- data/platform/shared/qt/RhoSimulator_dev.pro +12 -2
- data/platform/shared/qt/curl/curl.pro +10 -0
- data/platform/shared/qt/rhodes/guithreadfunchelper.h +29 -0
- data/platform/shared/qt/rhodes/iexecutable.h +9 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +10 -21
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +1 -1
- data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +15 -1
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +7 -7
- data/platform/shared/qt/rhodes/mainwindowinterface.h +12 -0
- data/platform/shared/qt/rhodes/newVersion/DateTimeDialog.cpp +96 -0
- data/platform/shared/qt/rhodes/newVersion/DateTimeDialog.h +54 -0
- data/platform/shared/qt/rhodes/newVersion/ExternalWebView.cpp +45 -0
- data/platform/shared/qt/rhodes/newVersion/ExternalWebView.h +47 -0
- data/platform/shared/qt/rhodes/newVersion/QWebEngineViewSelectionSuppressor.h +103 -0
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +1181 -0
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +194 -0
- data/platform/shared/qt/rhodes/newVersion/QtNativeTabBar.cpp +107 -0
- data/platform/shared/qt/rhodes/newVersion/QtNativeTabBar.h +40 -0
- data/platform/shared/qt/rhodes/newVersion/RhoNativeApiCall.cpp +51 -0
- data/platform/shared/qt/rhodes/newVersion/RhoNativeApiCall.h +52 -0
- data/platform/shared/qt/rhodes/newVersion/main.cpp +280 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebenginepage.cpp +19 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebenginepage.h +21 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebengineview.cpp +6 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebengineview.h +18 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.cpp → oldVersion/DateTimeDialog.cpp} +0 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.h → oldVersion/DateTimeDialog.h} +0 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.ui → oldVersion/DateTimeDialog.ui} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.cpp → oldVersion/ExternalWebView.cpp} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.h → oldVersion/ExternalWebView.h} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.ui → oldVersion/ExternalWebView.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtMainWindow.cpp → oldVersion/QtMainWindow.cpp} +4 -1
- data/platform/shared/qt/rhodes/{QtMainWindow.h → oldVersion/QtMainWindow.h} +8 -5
- data/platform/shared/qt/rhodes/{QtMainWindow.ui → oldVersion/QtMainWindow.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtNativeTabBar.cpp → oldVersion/QtNativeTabBar.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtNativeTabBar.h → oldVersion/QtNativeTabBar.h} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.cpp → oldVersion/QtWebInspector.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.h → oldVersion/QtWebInspector.h} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.ui → oldVersion/QtWebInspector.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtWebPage.cpp → oldVersion/QtWebPage.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtWebPage.h → oldVersion/QtWebPage.h} +0 -0
- data/platform/shared/qt/rhodes/{RhoNativeApiCall.cpp → oldVersion/RhoNativeApiCall.cpp} +0 -0
- data/platform/shared/qt/rhodes/{RhoNativeApiCall.h → oldVersion/RhoNativeApiCall.h} +0 -0
- data/platform/shared/qt/rhodes/{main.cpp → oldVersion/main.cpp} +2 -0
- data/platform/shared/qt/rhodes/{qkineticscroller.cpp → oldVersion/qkineticscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qkineticscroller.h → oldVersion/qkineticscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qkineticscroller_p.h → oldVersion/qkineticscroller_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtflickgesture.cpp → oldVersion/qtflickgesture.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtflickgesture_p.h → oldVersion/qtflickgesture_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller.cpp → oldVersion/qtscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller.h → oldVersion/qtscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller_p.h → oldVersion/qtscroller_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerfilter.cpp → oldVersion/qtscrollerfilter.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerfilter_p.h → oldVersion/qtscrollerfilter_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties.cpp → oldVersion/qtscrollerproperties.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties.h → oldVersion/qtscrollerproperties.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties_p.h → oldVersion/qtscrollerproperties_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent.cpp → oldVersion/qtscrollevent.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent.h → oldVersion/qtscrollevent.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent_p.h → oldVersion/qtscrollevent_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewkineticscroller.cpp → oldVersion/qwebviewkineticscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewkineticscroller.h → oldVersion/qwebviewkineticscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewselectionsuppressor.h → oldVersion/qwebviewselectionsuppressor.h} +0 -0
- data/platform/shared/qt/rhodes/rhodes.pro +92 -47
- data/platform/shared/qt/rholib/rholib.pro +32 -19
- data/platform/shared/qt/rubylib/rubylib.pro +12 -0
- data/platform/shared/qt/sqlite3/sqlite3.pro +11 -1
- data/platform/shared/qt/syncengine/syncengine.pro +10 -0
- data/platform/shared/ruby/eval.c +2 -4
- data/platform/shared/ruby/eval_intern.h +12 -0
- data/platform/shared/ruby/ext/rho/extensions.c +6 -2
- data/platform/shared/ruby/include/ruby/missing.h +6 -4
- data/platform/shared/ruby/io.c +27 -0
- data/platform/shared/ruby/numeric.c +5 -2
- data/platform/shared/ruby/time.c +4 -0
- data/platform/shared/ruby/win32/win32 backup.c +5808 -0
- data/platform/shared/ruby/win32/win32.c +2254 -2131
- data/platform/shared/unzip/deflate.cpp +6 -1
- data/platform/shared/unzip/gunzip.cpp +1 -1
- data/platform/shared/unzip/unzip.cpp +3 -6
- data/platform/shared/unzip/zip.cpp +1 -25
- data/platform/shared/unzip/zutil.cpp +1 -1
- data/platform/shared/unzip/zutil.h +1 -1
- data/platform/win32/RhoSimulator/rho/Databases/Databases.db +0 -0
- data/platform/win32/RhoSimulator/rho/WebpageIcons.db +0 -0
- data/platform/win32/RhoSimulator/rho/rholog.txt_pos +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/Databases/Databases.db +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/WebpageIcons.db +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/rholog.txt_pos +0 -0
- data/platform/wm/build/build_inf.js +7 -3
- data/platform/wm/build/wm.rake +96 -30
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -1
- data/rakefile.rb +48 -13
- data/res/generators/rhogen.rb +87 -8
- data/res/generators/templates/api/cpp/montana_js_wrap.cpp +1 -1
- data/res/generators/templates/application/nodejs/main.js +501 -0
- data/res/generators/templates/application/nodejs/rhoapp.js +71 -0
- data/res/generators/templates/application/nodejs/server/app.js +19 -0
- data/res/generators/templates/application/nodejs/server/package.json +16 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.css +587 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.min.css +6 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.min.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.css +6757 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.min.css +6 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.min.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.eot +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.svg +288 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/bootstrap.js +2377 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/bootstrap.min.js +7 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/npm.js +13 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/jquery/jquery-3.1.1.min.js +4 -0
- data/res/generators/templates/application/nodejs/server/public/jquery/jquery-3.1.1.min.map +1 -0
- data/res/generators/templates/application/nodejs_build.yml +76 -0
- data/res/generators/templates/application/nodejs_rhoconfig.txt +137 -0
- data/version +1 -1
- metadata +345 -77
- data/platform/win32/RhoSimulator/D3Dcompiler_46.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5MultimediaWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5OpenGL.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Sensors.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Sql.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5V8.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebKit.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebKitWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/icudt52.dll +0 -0
- data/platform/win32/RhoSimulator/icuin52.dll +0 -0
- data/platform/win32/RhoSimulator/icuuc52.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qmng.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
- data/platform/win32/RhoSimulator/libEGL.dll +0 -0
- data/platform/win32/RhoSimulator/libGLESv2.dll +0 -0
- data/platform/win32/RhoSimulator/libeay32.dll +0 -0
- data/platform/win32/RhoSimulator/msvcp110.dll +0 -0
- data/platform/win32/RhoSimulator/msvcr110.dll +0 -0
- data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
- data/platform/win32/RhoSimulator/ssleay32.dll +0 -0
- data/platform/win32/RhoSimulator/vccorlib110.dll +0 -0
- data/platform/win32/RhoSimulator/vcomp110.dll +0 -0
data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecDetectorResult.cpp
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* AtztecDetecorResult.cpp
|
4
|
+
* zxing
|
5
|
+
*
|
6
|
+
* Created by Lukas Stabe on 08/02/2012.
|
7
|
+
* Copyright 2012 ZXing authors All rights reserved.
|
8
|
+
*
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
+
* you may not use this file except in compliance with the License.
|
11
|
+
* You may obtain a copy of the License at
|
12
|
+
*
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
14
|
+
*
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
+
* See the License for the specific language governing permissions and
|
19
|
+
* limitations under the License.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include <zxing/aztec/AztecDetectorResult.h>
|
23
|
+
|
24
|
+
using zxing::aztec::AztecDetectorResult;
|
25
|
+
|
26
|
+
// VC++
|
27
|
+
using zxing::Ref;
|
28
|
+
using zxing::ArrayRef;
|
29
|
+
using zxing::BitMatrix;
|
30
|
+
using zxing::ResultPoint;
|
31
|
+
|
32
|
+
|
33
|
+
AztecDetectorResult::AztecDetectorResult(Ref<BitMatrix> bits,
|
34
|
+
ArrayRef< Ref<ResultPoint> > points,
|
35
|
+
bool compact,
|
36
|
+
int nbDatablocks,
|
37
|
+
int nbLayers)
|
38
|
+
: DetectorResult(bits, points),
|
39
|
+
compact_(compact),
|
40
|
+
nbDatablocks_(nbDatablocks),
|
41
|
+
nbLayers_(nbLayers) {
|
42
|
+
}
|
43
|
+
|
44
|
+
bool AztecDetectorResult::isCompact() {
|
45
|
+
return compact_;
|
46
|
+
}
|
47
|
+
|
48
|
+
int AztecDetectorResult::getNBDatablocks() {
|
49
|
+
return nbDatablocks_;
|
50
|
+
}
|
51
|
+
|
52
|
+
int AztecDetectorResult::getNBLayers() {
|
53
|
+
return nbLayers_;
|
54
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* AtztecDetecorResult.h
|
4
|
+
* zxing
|
5
|
+
*
|
6
|
+
* Created by Lukas Stabe on 08/02/2012.
|
7
|
+
* Copyright 2012 ZXing authors All rights reserved.
|
8
|
+
*
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
+
* you may not use this file except in compliance with the License.
|
11
|
+
* You may obtain a copy of the License at
|
12
|
+
*
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
14
|
+
*
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
+
* See the License for the specific language governing permissions and
|
19
|
+
* limitations under the License.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include <zxing/common/DetectorResult.h>
|
23
|
+
|
24
|
+
#ifndef ZXingWidget_AtztecDetecorResult_h
|
25
|
+
#define ZXingWidget_AtztecDetecorResult_h
|
26
|
+
|
27
|
+
namespace zxing {
|
28
|
+
namespace aztec {
|
29
|
+
|
30
|
+
class AztecDetectorResult : public DetectorResult {
|
31
|
+
private:
|
32
|
+
bool compact_;
|
33
|
+
int nbDatablocks_, nbLayers_;
|
34
|
+
public:
|
35
|
+
AztecDetectorResult(Ref<BitMatrix> bits,
|
36
|
+
ArrayRef< Ref<ResultPoint> > points,
|
37
|
+
bool compact,
|
38
|
+
int nbDatablocks,
|
39
|
+
int nbLayers);
|
40
|
+
bool isCompact();
|
41
|
+
int getNBDatablocks();
|
42
|
+
int getNBLayers();
|
43
|
+
};
|
44
|
+
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
#endif
|
@@ -0,0 +1,68 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* AztecReader.cpp
|
4
|
+
* zxing
|
5
|
+
*
|
6
|
+
* Created by Lukas Stabe on 08/02/2012.
|
7
|
+
* Copyright 2012 ZXing authors All rights reserved.
|
8
|
+
*
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
+
* you may not use this file except in compliance with the License.
|
11
|
+
* You may obtain a copy of the License at
|
12
|
+
*
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
14
|
+
*
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
+
* See the License for the specific language governing permissions and
|
19
|
+
* limitations under the License.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include <zxing/aztec/AztecReader.h>
|
23
|
+
#include <zxing/aztec/detector/Detector.h>
|
24
|
+
#include <zxing/common/DecoderResult.h>
|
25
|
+
#include <iostream>
|
26
|
+
|
27
|
+
using zxing::Ref;
|
28
|
+
using zxing::ArrayRef;
|
29
|
+
using zxing::Result;
|
30
|
+
using zxing::aztec::AztecReader;
|
31
|
+
|
32
|
+
// VC++
|
33
|
+
using zxing::BinaryBitmap;
|
34
|
+
using zxing::DecodeHints;
|
35
|
+
|
36
|
+
AztecReader::AztecReader() : decoder_() {
|
37
|
+
// nothing
|
38
|
+
}
|
39
|
+
|
40
|
+
Ref<Result> AztecReader::decode(Ref<zxing::BinaryBitmap> image) {
|
41
|
+
Detector detector(image->getBlackMatrix());
|
42
|
+
|
43
|
+
Ref<AztecDetectorResult> detectorResult(detector.detect());
|
44
|
+
|
45
|
+
ArrayRef< Ref<ResultPoint> > points(detectorResult->getPoints());
|
46
|
+
|
47
|
+
Ref<DecoderResult> decoderResult(decoder_.decode(detectorResult));
|
48
|
+
|
49
|
+
Ref<Result> result(new Result(decoderResult->getText(),
|
50
|
+
decoderResult->getRawBytes(),
|
51
|
+
points,
|
52
|
+
BarcodeFormat::AZTEC));
|
53
|
+
|
54
|
+
return result;
|
55
|
+
}
|
56
|
+
|
57
|
+
Ref<Result> AztecReader::decode(Ref<BinaryBitmap> image, DecodeHints) {
|
58
|
+
//cout << "decoding with hints not supported for aztec" << "\n" << flush;
|
59
|
+
return this->decode(image);
|
60
|
+
}
|
61
|
+
|
62
|
+
AztecReader::~AztecReader() {
|
63
|
+
// nothing
|
64
|
+
}
|
65
|
+
|
66
|
+
zxing::aztec::Decoder& AztecReader::getDecoder() {
|
67
|
+
return decoder_;
|
68
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* AztecReader.h
|
4
|
+
* zxing
|
5
|
+
*
|
6
|
+
* Created by Lukas Stabe on 08/02/2012.
|
7
|
+
* Copyright 2012 ZXing authors All rights reserved.
|
8
|
+
*
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
+
* you may not use this file except in compliance with the License.
|
11
|
+
* You may obtain a copy of the License at
|
12
|
+
*
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
14
|
+
*
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
+
* See the License for the specific language governing permissions and
|
19
|
+
* limitations under the License.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include <zxing/Reader.h>
|
23
|
+
#include <zxing/aztec/decoder/Decoder.h>
|
24
|
+
#include <zxing/DecodeHints.h>
|
25
|
+
|
26
|
+
#ifndef ZXingWidget_AztecReader_h
|
27
|
+
#define ZXingWidget_AztecReader_h
|
28
|
+
|
29
|
+
namespace zxing {
|
30
|
+
namespace aztec {
|
31
|
+
|
32
|
+
class AztecReader : public Reader {
|
33
|
+
private:
|
34
|
+
Decoder decoder_;
|
35
|
+
|
36
|
+
protected:
|
37
|
+
Decoder &getDecoder();
|
38
|
+
|
39
|
+
public:
|
40
|
+
AztecReader();
|
41
|
+
virtual Ref<Result> decode(Ref<BinaryBitmap> image);
|
42
|
+
virtual Ref<Result> decode(Ref<BinaryBitmap> image, DecodeHints hints);
|
43
|
+
virtual ~AztecReader();
|
44
|
+
};
|
45
|
+
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
#endif
|
data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/decoder/AztecDecoder.cpp
ADDED
@@ -0,0 +1,495 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* Decoder.cpp
|
4
|
+
* zxing
|
5
|
+
*
|
6
|
+
* Created by Lukas Stabe on 08/02/2012.
|
7
|
+
* Copyright 2012 ZXing authors All rights reserved.
|
8
|
+
*
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
10
|
+
* you may not use this file except in compliance with the License.
|
11
|
+
* You may obtain a copy of the License at
|
12
|
+
*
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
14
|
+
*
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
18
|
+
* See the License for the specific language governing permissions and
|
19
|
+
* limitations under the License.
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include <zxing/aztec/decoder/Decoder.h>
|
23
|
+
#ifndef NO_ICONV
|
24
|
+
#include <iconv.h>
|
25
|
+
#endif
|
26
|
+
#include <iostream>
|
27
|
+
#include <zxing/FormatException.h>
|
28
|
+
#include <zxing/common/reedsolomon/ReedSolomonDecoder.h>
|
29
|
+
#include <zxing/common/reedsolomon/ReedSolomonException.h>
|
30
|
+
#include <zxing/common/reedsolomon/GenericGF.h>
|
31
|
+
#include <zxing/common/IllegalArgumentException.h>
|
32
|
+
#include <zxing/common/DecoderResult.h>
|
33
|
+
|
34
|
+
#include <qglobal.h>
|
35
|
+
|
36
|
+
using zxing::aztec::Decoder;
|
37
|
+
using zxing::DecoderResult;
|
38
|
+
using zxing::String;
|
39
|
+
using zxing::BitArray;
|
40
|
+
using zxing::BitMatrix;
|
41
|
+
using zxing::Ref;
|
42
|
+
|
43
|
+
using std::string;
|
44
|
+
|
45
|
+
namespace {
|
46
|
+
void add(string& result, char character) {
|
47
|
+
#ifndef NO_ICONV
|
48
|
+
char character2 = character & 0xff;
|
49
|
+
char s[] = {character2};
|
50
|
+
char* ss = s;
|
51
|
+
size_t sl = sizeof(s);
|
52
|
+
char d[4];
|
53
|
+
char* ds = d;
|
54
|
+
size_t dl = sizeof(d);
|
55
|
+
iconv_t ic = iconv_open("UTF-8", "ISO-8859-1");
|
56
|
+
#if defined(Q_OS_SYMBIAN)
|
57
|
+
iconv(ic, (const char**)&ss, &sl, &ds, &dl);
|
58
|
+
#else
|
59
|
+
iconv(ic, (char**)&ss, &sl, &ds, &dl);
|
60
|
+
#endif
|
61
|
+
iconv_close(ic);
|
62
|
+
d[sizeof(d)-dl] = 0;
|
63
|
+
result.append(d);
|
64
|
+
#else
|
65
|
+
result.push_back(character);
|
66
|
+
#endif
|
67
|
+
}
|
68
|
+
|
69
|
+
const int NB_BITS_COMPACT[] = {
|
70
|
+
0, 104, 240, 408, 608
|
71
|
+
};
|
72
|
+
|
73
|
+
const int NB_BITS[] = {
|
74
|
+
0, 128, 288, 480, 704, 960, 1248, 1568, 1920, 2304, 2720, 3168, 3648, 4160, 4704, 5280, 5888, 6528,
|
75
|
+
7200, 7904, 8640, 9408, 10208, 11040, 11904, 12800, 13728, 14688, 15680, 16704, 17760, 18848, 19968
|
76
|
+
};
|
77
|
+
|
78
|
+
const int NB_DATABLOCK_COMPACT[] = {
|
79
|
+
0, 17, 40, 51, 76
|
80
|
+
};
|
81
|
+
|
82
|
+
const int NB_DATABLOCK[] = {
|
83
|
+
0, 21, 48, 60, 88, 120, 156, 196, 240, 230, 272, 316, 364, 416, 470, 528, 588, 652, 720, 790, 864,
|
84
|
+
940, 1020, 920, 992, 1066, 1144, 1224, 1306, 1392, 1480, 1570, 1664
|
85
|
+
};
|
86
|
+
|
87
|
+
const char* UPPER_TABLE[] = {
|
88
|
+
"CTRL_PS", " ", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
|
89
|
+
"Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "CTRL_LL", "CTRL_ML", "CTRL_DL", "CTRL_BS"
|
90
|
+
};
|
91
|
+
|
92
|
+
const char* LOWER_TABLE[] = {
|
93
|
+
"CTRL_PS", " ", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p",
|
94
|
+
"q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "CTRL_US", "CTRL_ML", "CTRL_DL", "CTRL_BS"
|
95
|
+
};
|
96
|
+
|
97
|
+
const char* MIXED_TABLE[] = {
|
98
|
+
"CTRL_PS", " ", "\1", "\2", "\3", "\4", "\5", "\6", "\7", "\b", "\t", "\n",
|
99
|
+
"\13", "\f", "\r", "\33", "\34", "\35", "\36", "\37", "@", "\\", "^", "_",
|
100
|
+
"`", "|", "~", "\177", "CTRL_LL", "CTRL_UL", "CTRL_PL", "CTRL_BS"
|
101
|
+
};
|
102
|
+
|
103
|
+
const char* PUNCT_TABLE[] = {
|
104
|
+
"", "\r", "\r\n", ". ", ", ", ": ", "!", "\"", "#", "$", "%", "&", "'", "(", ")",
|
105
|
+
"*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "?", "[", "]", "{", "}", "CTRL_UL"
|
106
|
+
};
|
107
|
+
|
108
|
+
const char* DIGIT_TABLE[] = {
|
109
|
+
"CTRL_PS", " ", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ",", ".", "CTRL_UL", "CTRL_US"
|
110
|
+
};
|
111
|
+
}
|
112
|
+
|
113
|
+
Decoder::Table Decoder::getTable(char t) {
|
114
|
+
switch (t) {
|
115
|
+
case 'L':
|
116
|
+
return LOWER;
|
117
|
+
case 'P':
|
118
|
+
return PUNCT;
|
119
|
+
case 'M':
|
120
|
+
return MIXED;
|
121
|
+
case 'D':
|
122
|
+
return DIGIT;
|
123
|
+
case 'B':
|
124
|
+
return BINARY;
|
125
|
+
case 'U':
|
126
|
+
default:
|
127
|
+
return UPPER;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
const char* Decoder::getCharacter(zxing::aztec::Decoder::Table table, int code) {
|
132
|
+
switch (table) {
|
133
|
+
case UPPER:
|
134
|
+
return UPPER_TABLE[code];
|
135
|
+
case LOWER:
|
136
|
+
return LOWER_TABLE[code];
|
137
|
+
case MIXED:
|
138
|
+
return MIXED_TABLE[code];
|
139
|
+
case PUNCT:
|
140
|
+
return PUNCT_TABLE[code];
|
141
|
+
case DIGIT:
|
142
|
+
return DIGIT_TABLE[code];
|
143
|
+
default:
|
144
|
+
return "";
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
Decoder::Decoder() {
|
149
|
+
// nothing
|
150
|
+
}
|
151
|
+
|
152
|
+
Ref<DecoderResult> Decoder::decode(Ref<zxing::aztec::AztecDetectorResult> detectorResult) {
|
153
|
+
ddata_ = detectorResult;
|
154
|
+
|
155
|
+
// std::printf("getting bits\n");
|
156
|
+
|
157
|
+
Ref<BitMatrix> matrix = detectorResult->getBits();
|
158
|
+
|
159
|
+
if (!ddata_->isCompact()) {
|
160
|
+
// std::printf("removing lines\n");
|
161
|
+
matrix = removeDashedLines(ddata_->getBits());
|
162
|
+
}
|
163
|
+
|
164
|
+
// std::printf("extracting bits\n");
|
165
|
+
Ref<BitArray> rawbits = extractBits(matrix);
|
166
|
+
|
167
|
+
// std::printf("correcting bits\n");
|
168
|
+
Ref<BitArray> aCorrectedBits = correctBits(rawbits);
|
169
|
+
|
170
|
+
// std::printf("decoding bits\n");
|
171
|
+
Ref<String> result = getEncodedData(aCorrectedBits);
|
172
|
+
|
173
|
+
// std::printf("constructing array\n");
|
174
|
+
ArrayRef<char> arrayOut(aCorrectedBits->getSize());
|
175
|
+
for (int i = 0; i < aCorrectedBits->count(); i++) {
|
176
|
+
arrayOut[i] = (char)aCorrectedBits->get(i);
|
177
|
+
}
|
178
|
+
|
179
|
+
// std::printf("returning\n");
|
180
|
+
|
181
|
+
return Ref<DecoderResult>(new DecoderResult(arrayOut, result));
|
182
|
+
}
|
183
|
+
|
184
|
+
Ref<String> Decoder::getEncodedData(Ref<zxing::BitArray> correctedBits) {
|
185
|
+
int endIndex = codewordSize_ * ddata_->getNBDatablocks() - invertedBitCount_;
|
186
|
+
if (endIndex > (int)correctedBits->getSize()) {
|
187
|
+
// std::printf("invalid input\n");
|
188
|
+
throw FormatException("invalid input data");
|
189
|
+
}
|
190
|
+
|
191
|
+
Table lastTable = UPPER;
|
192
|
+
Table table = UPPER;
|
193
|
+
int startIndex = 0;
|
194
|
+
std::string result;
|
195
|
+
bool end = false;
|
196
|
+
bool shift = false;
|
197
|
+
bool switchShift = false;
|
198
|
+
bool binaryShift = false;
|
199
|
+
|
200
|
+
while (!end) {
|
201
|
+
// std::printf("decoooooding\n");
|
202
|
+
|
203
|
+
if (shift) {
|
204
|
+
switchShift = true;
|
205
|
+
} else {
|
206
|
+
lastTable = table;
|
207
|
+
}
|
208
|
+
|
209
|
+
int code;
|
210
|
+
if (binaryShift) {
|
211
|
+
if (endIndex - startIndex < 5) {
|
212
|
+
break;
|
213
|
+
}
|
214
|
+
|
215
|
+
int length = readCode(correctedBits, startIndex, 5);
|
216
|
+
startIndex += 5;
|
217
|
+
if (length == 0) {
|
218
|
+
if (endIndex - startIndex < 11) {
|
219
|
+
break;
|
220
|
+
}
|
221
|
+
|
222
|
+
length = readCode(correctedBits, startIndex, 11) + 31;
|
223
|
+
startIndex += 11;
|
224
|
+
}
|
225
|
+
for (int charCount = 0; charCount < length; charCount++) {
|
226
|
+
if (endIndex - startIndex < 8) {
|
227
|
+
end = true;
|
228
|
+
break;
|
229
|
+
}
|
230
|
+
|
231
|
+
code = readCode(correctedBits, startIndex, 8);
|
232
|
+
add(result, code);
|
233
|
+
startIndex += 8;
|
234
|
+
}
|
235
|
+
binaryShift = false;
|
236
|
+
} else {
|
237
|
+
if (table == BINARY) {
|
238
|
+
if (endIndex - startIndex < 8) {
|
239
|
+
break;
|
240
|
+
}
|
241
|
+
code = readCode(correctedBits, startIndex, 8);
|
242
|
+
startIndex += 8;
|
243
|
+
|
244
|
+
add(result, code);
|
245
|
+
} else {
|
246
|
+
int size = 5;
|
247
|
+
|
248
|
+
if (table == DIGIT) {
|
249
|
+
size = 4;
|
250
|
+
}
|
251
|
+
|
252
|
+
if (endIndex - startIndex < size) {
|
253
|
+
break;
|
254
|
+
}
|
255
|
+
|
256
|
+
code = readCode(correctedBits, startIndex, size);
|
257
|
+
startIndex += size;
|
258
|
+
|
259
|
+
const char *str = getCharacter(table, code);
|
260
|
+
std::string string(str);
|
261
|
+
if ((int)string.find("CTRL_") != -1) {
|
262
|
+
table = getTable(str[5]);
|
263
|
+
|
264
|
+
if (str[6] == 'S') {
|
265
|
+
shift = true;
|
266
|
+
if (str[5] == 'B') {
|
267
|
+
binaryShift = true;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
} else {
|
271
|
+
result.append(string);
|
272
|
+
}
|
273
|
+
|
274
|
+
}
|
275
|
+
}
|
276
|
+
|
277
|
+
if (switchShift) {
|
278
|
+
table = lastTable;
|
279
|
+
shift = false;
|
280
|
+
switchShift = false;
|
281
|
+
}
|
282
|
+
|
283
|
+
|
284
|
+
}
|
285
|
+
|
286
|
+
return Ref<String>(new String(result));
|
287
|
+
|
288
|
+
}
|
289
|
+
|
290
|
+
Ref<BitArray> Decoder::correctBits(Ref<zxing::BitArray> rawbits) {
|
291
|
+
//return rawbits;
|
292
|
+
// std::printf("decoding stuff:%d datablocks in %d layers\n", ddata_->getNBDatablocks(), ddata_->getNBLayers());
|
293
|
+
|
294
|
+
Ref<GenericGF> gf = GenericGF::AZTEC_DATA_6;
|
295
|
+
|
296
|
+
if (ddata_->getNBLayers() <= 2) {
|
297
|
+
codewordSize_ = 6;
|
298
|
+
gf = GenericGF::AZTEC_DATA_6;
|
299
|
+
} else if (ddata_->getNBLayers() <= 8) {
|
300
|
+
codewordSize_ = 8;
|
301
|
+
gf = GenericGF::AZTEC_DATA_8;
|
302
|
+
} else if (ddata_->getNBLayers() <= 22) {
|
303
|
+
codewordSize_ = 10;
|
304
|
+
gf = GenericGF::AZTEC_DATA_10;
|
305
|
+
} else {
|
306
|
+
codewordSize_ = 12;
|
307
|
+
gf = GenericGF::AZTEC_DATA_12;
|
308
|
+
}
|
309
|
+
|
310
|
+
int numDataCodewords = ddata_->getNBDatablocks();
|
311
|
+
int numECCodewords;
|
312
|
+
int offset;
|
313
|
+
|
314
|
+
if (ddata_->isCompact()) {
|
315
|
+
offset = NB_BITS_COMPACT[ddata_->getNBLayers()] - numCodewords_ * codewordSize_;
|
316
|
+
numECCodewords = NB_DATABLOCK_COMPACT[ddata_->getNBLayers()] - numDataCodewords;
|
317
|
+
} else {
|
318
|
+
offset = NB_BITS[ddata_->getNBLayers()] - numCodewords_ * codewordSize_;
|
319
|
+
numECCodewords = NB_DATABLOCK[ddata_->getNBLayers()] - numDataCodewords;
|
320
|
+
}
|
321
|
+
|
322
|
+
ArrayRef<int> dataWords(numCodewords_);
|
323
|
+
|
324
|
+
for (int i = 0; i < numCodewords_; i++) {
|
325
|
+
int flag = 1;
|
326
|
+
for (int j = 1; j <= codewordSize_; j++) {
|
327
|
+
if (rawbits->get(codewordSize_ * i + codewordSize_ - j + offset)) {
|
328
|
+
dataWords[i] += flag;
|
329
|
+
}
|
330
|
+
flag <<= 1;
|
331
|
+
}
|
332
|
+
|
333
|
+
//
|
334
|
+
//
|
335
|
+
//
|
336
|
+
}
|
337
|
+
|
338
|
+
try {
|
339
|
+
ReedSolomonDecoder rsDecoder(gf);
|
340
|
+
rsDecoder.decode(dataWords, numECCodewords);
|
341
|
+
} catch (ReedSolomonException const& ignored) {
|
342
|
+
(void)ignored;
|
343
|
+
// std::printf("got reed solomon exception:%s, throwing formatexception\n", rse.what());
|
344
|
+
throw FormatException("rs decoding failed");
|
345
|
+
} catch (IllegalArgumentException const& iae) {
|
346
|
+
(void)iae;
|
347
|
+
// std::printf("illegal argument exception: %s", iae.what());
|
348
|
+
}
|
349
|
+
|
350
|
+
offset = 0;
|
351
|
+
invertedBitCount_ = 0;
|
352
|
+
|
353
|
+
Ref<BitArray> correctedBits(new BitArray(numDataCodewords * codewordSize_));
|
354
|
+
for (int i = 0; i < numDataCodewords; i++) {
|
355
|
+
|
356
|
+
bool seriesColor = false;
|
357
|
+
int seriesCount = 0;
|
358
|
+
int flag = 1 << (codewordSize_ - 1);
|
359
|
+
|
360
|
+
for (int j = 0; j < codewordSize_; j++) {
|
361
|
+
|
362
|
+
bool color = (dataWords[i] & flag) == flag;
|
363
|
+
|
364
|
+
if (seriesCount == codewordSize_ - 1) {
|
365
|
+
|
366
|
+
if (color == seriesColor) {
|
367
|
+
throw FormatException("bit was not inverted");
|
368
|
+
}
|
369
|
+
|
370
|
+
seriesColor = false;
|
371
|
+
seriesCount = 0;
|
372
|
+
offset++;
|
373
|
+
invertedBitCount_++;
|
374
|
+
|
375
|
+
} else {
|
376
|
+
|
377
|
+
if (seriesColor == color) {
|
378
|
+
seriesCount++;
|
379
|
+
} else {
|
380
|
+
seriesCount = 1;
|
381
|
+
seriesColor = color;
|
382
|
+
}
|
383
|
+
|
384
|
+
if (color) correctedBits->set(i * codewordSize_ + j - offset);
|
385
|
+
|
386
|
+
}
|
387
|
+
|
388
|
+
flag = ((unsigned int)flag) >> 1;
|
389
|
+
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
393
|
+
return correctedBits;
|
394
|
+
}
|
395
|
+
|
396
|
+
Ref<BitArray> Decoder::extractBits(Ref<zxing::BitMatrix> matrix) {
|
397
|
+
std::vector<bool> rawbits;
|
398
|
+
|
399
|
+
if (ddata_->isCompact()) {
|
400
|
+
if (ddata_->getNBLayers() > 5) { //NB_BITS_COMPACT length
|
401
|
+
throw FormatException("data is too long");
|
402
|
+
}
|
403
|
+
rawbits = std::vector<bool>(NB_BITS_COMPACT[ddata_->getNBLayers()]);
|
404
|
+
numCodewords_ = NB_DATABLOCK_COMPACT[ddata_->getNBLayers()];
|
405
|
+
} else {
|
406
|
+
if (ddata_->getNBLayers() > 33) { //NB_BITS length
|
407
|
+
throw FormatException("data is too long");
|
408
|
+
}
|
409
|
+
rawbits = std::vector<bool>(NB_BITS[ddata_->getNBLayers()]);
|
410
|
+
numCodewords_ = NB_DATABLOCK[ddata_->getNBLayers()];
|
411
|
+
}
|
412
|
+
|
413
|
+
int layer = ddata_->getNBLayers();
|
414
|
+
int size = matrix->getHeight();
|
415
|
+
int rawbitsOffset = 0;
|
416
|
+
int matrixOffset = 0;
|
417
|
+
|
418
|
+
|
419
|
+
while (layer != 0) {
|
420
|
+
|
421
|
+
int flip = 0;
|
422
|
+
for (int i = 0; i < 2 * size - 4; i++) {
|
423
|
+
rawbits[rawbitsOffset + i] = matrix->get(matrixOffset + flip, matrixOffset + i / 2);
|
424
|
+
rawbits[rawbitsOffset + 2 * size - 4 + i] = matrix->get(matrixOffset + i / 2, matrixOffset + size - 1 - flip);
|
425
|
+
flip = (flip + 1) % 2;
|
426
|
+
}
|
427
|
+
|
428
|
+
flip = 0;
|
429
|
+
for (int i = 2 * size + 1; i > 5; i--) {
|
430
|
+
rawbits[rawbitsOffset + 4 * size - 8 + (2 * size - i) + 1] =
|
431
|
+
matrix->get(matrixOffset + size - 1 - flip, matrixOffset + i / 2 - 1);
|
432
|
+
rawbits[rawbitsOffset + 6 * size - 12 + (2 * size - i) + 1] =
|
433
|
+
matrix->get(matrixOffset + i / 2 - 1, matrixOffset + flip);
|
434
|
+
flip = (flip + 1) % 2;
|
435
|
+
}
|
436
|
+
|
437
|
+
matrixOffset += 2;
|
438
|
+
rawbitsOffset += 8 * size - 16;
|
439
|
+
layer--;
|
440
|
+
size -= 4;
|
441
|
+
|
442
|
+
}
|
443
|
+
|
444
|
+
Ref<BitArray> returnValue(new BitArray(rawbits.size()));
|
445
|
+
for (int i = 0; i < (int)rawbits.size(); i++) {
|
446
|
+
if (rawbits[i]) returnValue->set(i);
|
447
|
+
}
|
448
|
+
|
449
|
+
return returnValue;
|
450
|
+
|
451
|
+
}
|
452
|
+
|
453
|
+
Ref<BitMatrix> Decoder::removeDashedLines(Ref<zxing::BitMatrix> matrix) {
|
454
|
+
int nbDashed = 1 + 2 * ((matrix->getWidth() - 1) / 2 / 16);
|
455
|
+
Ref<BitMatrix> newMatrix(new BitMatrix(matrix->getWidth() - nbDashed, matrix->getHeight() - nbDashed));
|
456
|
+
|
457
|
+
int nx = 0;
|
458
|
+
|
459
|
+
for (int x = 0; x < (int)matrix->getWidth(); x++) {
|
460
|
+
|
461
|
+
if ((matrix->getWidth() / 2 - x) % 16 == 0) {
|
462
|
+
continue;
|
463
|
+
}
|
464
|
+
|
465
|
+
int ny = 0;
|
466
|
+
for (int y = 0; y < (int)matrix->getHeight(); y++) {
|
467
|
+
|
468
|
+
if ((matrix->getWidth() / 2 - y) % 16 == 0) {
|
469
|
+
continue;
|
470
|
+
}
|
471
|
+
|
472
|
+
if (matrix->get(x, y)) {
|
473
|
+
newMatrix->set(nx, ny);
|
474
|
+
}
|
475
|
+
ny++;
|
476
|
+
|
477
|
+
}
|
478
|
+
nx++;
|
479
|
+
|
480
|
+
}
|
481
|
+
return newMatrix;
|
482
|
+
}
|
483
|
+
|
484
|
+
int Decoder::readCode(Ref<zxing::BitArray> rawbits, int startIndex, int length) {
|
485
|
+
int res = 0;
|
486
|
+
|
487
|
+
for (int i = startIndex; i < startIndex + length; i++) {
|
488
|
+
res <<= 1;
|
489
|
+
if (rawbits->get(i)) {
|
490
|
+
res ++;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
|
494
|
+
return res;
|
495
|
+
}
|