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/qrcode/ErrorCorrectionLevel.h
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#ifndef __ERROR_CORRECTION_LEVEL_H__
|
2
|
+
#define __ERROR_CORRECTION_LEVEL_H__
|
3
|
+
|
4
|
+
/*
|
5
|
+
* ErrorCorrectionLevel.h
|
6
|
+
* zxing
|
7
|
+
*
|
8
|
+
* Copyright 2010 ZXing authors All rights reserved.
|
9
|
+
*
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
* you may not use this file except in compliance with the License.
|
12
|
+
* You may obtain a copy of the License at
|
13
|
+
*
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
*
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
* See the License for the specific language governing permissions and
|
20
|
+
* limitations under the License.
|
21
|
+
*/
|
22
|
+
|
23
|
+
#include <zxing/ReaderException.h>
|
24
|
+
#include <zxing/common/Counted.h>
|
25
|
+
|
26
|
+
namespace zxing {
|
27
|
+
namespace qrcode {
|
28
|
+
|
29
|
+
class ErrorCorrectionLevel : public Counted {
|
30
|
+
private:
|
31
|
+
int ordinal_;
|
32
|
+
int bits_;
|
33
|
+
std::string name_;
|
34
|
+
ErrorCorrectionLevel(int inOrdinal, int bits, char const* name);
|
35
|
+
static ErrorCorrectionLevel *FOR_BITS[];
|
36
|
+
static int N_LEVELS;
|
37
|
+
public:
|
38
|
+
static ErrorCorrectionLevel L;
|
39
|
+
static ErrorCorrectionLevel M;
|
40
|
+
static ErrorCorrectionLevel Q;
|
41
|
+
static ErrorCorrectionLevel H;
|
42
|
+
|
43
|
+
ErrorCorrectionLevel(const ErrorCorrectionLevel& other);
|
44
|
+
|
45
|
+
int ordinal() const;
|
46
|
+
int bits() const;
|
47
|
+
std::string const& name() const;
|
48
|
+
operator std::string const& () const;
|
49
|
+
|
50
|
+
static ErrorCorrectionLevel& forBits(int bits);
|
51
|
+
};
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
#endif // __ERROR_CORRECTION_LEVEL_H__
|
@@ -0,0 +1,54 @@
|
|
1
|
+
#ifndef __FORMAT_INFORMATION_H__
|
2
|
+
#define __FORMAT_INFORMATION_H__
|
3
|
+
|
4
|
+
/*
|
5
|
+
* FormatInformation.h
|
6
|
+
* zxing
|
7
|
+
*
|
8
|
+
* Copyright 2010 ZXing authors All rights reserved.
|
9
|
+
*
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
* you may not use this file except in compliance with the License.
|
12
|
+
* You may obtain a copy of the License at
|
13
|
+
*
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
*
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
* See the License for the specific language governing permissions and
|
20
|
+
* limitations under the License.
|
21
|
+
*/
|
22
|
+
|
23
|
+
#include <zxing/qrcode/ErrorCorrectionLevel.h>
|
24
|
+
#include <zxing/common/Counted.h>
|
25
|
+
#include <iostream>
|
26
|
+
|
27
|
+
namespace zxing {
|
28
|
+
namespace qrcode {
|
29
|
+
|
30
|
+
class FormatInformation : public Counted {
|
31
|
+
private:
|
32
|
+
static int FORMAT_INFO_MASK_QR;
|
33
|
+
static int FORMAT_INFO_DECODE_LOOKUP[][2];
|
34
|
+
static int N_FORMAT_INFO_DECODE_LOOKUPS;
|
35
|
+
static int BITS_SET_IN_HALF_BYTE[];
|
36
|
+
|
37
|
+
ErrorCorrectionLevel &errorCorrectionLevel_;
|
38
|
+
char dataMask_;
|
39
|
+
|
40
|
+
FormatInformation(int formatInfo);
|
41
|
+
|
42
|
+
public:
|
43
|
+
static int numBitsDiffering(int a, int b);
|
44
|
+
static Ref<FormatInformation> decodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2);
|
45
|
+
static Ref<FormatInformation> doDecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2);
|
46
|
+
ErrorCorrectionLevel &getErrorCorrectionLevel();
|
47
|
+
char getDataMask();
|
48
|
+
friend bool operator==(const FormatInformation &a, const FormatInformation &b);
|
49
|
+
friend std::ostream& operator<<(std::ostream& out, const FormatInformation& fi);
|
50
|
+
};
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
#endif // __FORMAT_INFORMATION_H__
|
@@ -0,0 +1,52 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* QRCodeReader.cpp
|
4
|
+
* zxing
|
5
|
+
*
|
6
|
+
* Created by Christian Brunschen on 20/05/2008.
|
7
|
+
* Copyright 2008 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/qrcode/QRCodeReader.h>
|
23
|
+
#include <zxing/qrcode/detector/Detector.h>
|
24
|
+
|
25
|
+
#include <iostream>
|
26
|
+
|
27
|
+
namespace zxing {
|
28
|
+
namespace qrcode {
|
29
|
+
|
30
|
+
using namespace std;
|
31
|
+
|
32
|
+
QRCodeReader::QRCodeReader() :decoder_() {
|
33
|
+
}
|
34
|
+
//TODO : see if any of the other files in the qrcode tree need tryHarder
|
35
|
+
Ref<Result> QRCodeReader::decode(Ref<BinaryBitmap> image, DecodeHints hints) {
|
36
|
+
Detector detector(image->getBlackMatrix());
|
37
|
+
Ref<DetectorResult> detectorResult(detector.detect(hints));
|
38
|
+
ArrayRef< Ref<ResultPoint> > points (detectorResult->getPoints());
|
39
|
+
Ref<DecoderResult> decoderResult(decoder_.decode(detectorResult->getBits()));
|
40
|
+
Ref<Result> result(
|
41
|
+
new Result(decoderResult->getText(), decoderResult->getRawBytes(), points, BarcodeFormat::QR_CODE, decoderResult->charSet()));
|
42
|
+
return result;
|
43
|
+
}
|
44
|
+
|
45
|
+
QRCodeReader::~QRCodeReader() {
|
46
|
+
}
|
47
|
+
|
48
|
+
Decoder& QRCodeReader::getDecoder() {
|
49
|
+
return decoder_;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
#ifndef __QR_CODE_READER_H__
|
3
|
+
#define __QR_CODE_READER_H__
|
4
|
+
|
5
|
+
/*
|
6
|
+
* QRCodeReader.h
|
7
|
+
* zxing
|
8
|
+
*
|
9
|
+
* Copyright 2010 ZXing authors All rights reserved.
|
10
|
+
*
|
11
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
12
|
+
* you may not use this file except in compliance with the License.
|
13
|
+
* You may obtain a copy of the License at
|
14
|
+
*
|
15
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
16
|
+
*
|
17
|
+
* Unless required by applicable law or agreed to in writing, software
|
18
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
19
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
20
|
+
* See the License for the specific language governing permissions and
|
21
|
+
* limitations under the License.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#include <zxing/Reader.h>
|
25
|
+
#include <zxing/qrcode/decoder/Decoder.h>
|
26
|
+
#include <zxing/DecodeHints.h>
|
27
|
+
|
28
|
+
namespace zxing {
|
29
|
+
namespace qrcode {
|
30
|
+
|
31
|
+
class QRCodeReader : public Reader {
|
32
|
+
private:
|
33
|
+
Decoder decoder_;
|
34
|
+
|
35
|
+
protected:
|
36
|
+
Decoder& getDecoder();
|
37
|
+
|
38
|
+
public:
|
39
|
+
QRCodeReader();
|
40
|
+
virtual ~QRCodeReader();
|
41
|
+
|
42
|
+
Ref<Result> decode(Ref<BinaryBitmap> image, DecodeHints hints);
|
43
|
+
};
|
44
|
+
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
#endif // __QR_CODE_READER_H__
|
data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRErrorCorrectionLevel.cpp
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
|
2
|
+
/*
|
3
|
+
* ErrorCorrectionLevel.cpp
|
4
|
+
* zxing
|
5
|
+
*
|
6
|
+
* Created by Christian Brunschen on 15/05/2008.
|
7
|
+
* Copyright 2008-2011 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/qrcode/ErrorCorrectionLevel.h>
|
23
|
+
|
24
|
+
using std::string;
|
25
|
+
|
26
|
+
namespace zxing {
|
27
|
+
namespace qrcode {
|
28
|
+
|
29
|
+
ErrorCorrectionLevel::ErrorCorrectionLevel(int inOrdinal,
|
30
|
+
int bits,
|
31
|
+
char const* name) :
|
32
|
+
ordinal_(inOrdinal), bits_(bits), name_(name)
|
33
|
+
{}
|
34
|
+
|
35
|
+
ErrorCorrectionLevel::ErrorCorrectionLevel(const ErrorCorrectionLevel &other) :
|
36
|
+
ordinal_(other.ordinal()), bits_(other.bits()), name_(other.name())
|
37
|
+
{}
|
38
|
+
|
39
|
+
int ErrorCorrectionLevel::ordinal() const {
|
40
|
+
return ordinal_;
|
41
|
+
}
|
42
|
+
|
43
|
+
int ErrorCorrectionLevel::bits() const {
|
44
|
+
return bits_;
|
45
|
+
}
|
46
|
+
|
47
|
+
string const& ErrorCorrectionLevel::name() const {
|
48
|
+
return name_;
|
49
|
+
}
|
50
|
+
|
51
|
+
ErrorCorrectionLevel::operator string const& () const {
|
52
|
+
return name_;
|
53
|
+
}
|
54
|
+
|
55
|
+
ErrorCorrectionLevel& ErrorCorrectionLevel::forBits(int bits) {
|
56
|
+
if (bits < 0 || bits >= N_LEVELS) {
|
57
|
+
throw ReaderException("Ellegal error correction level bits");
|
58
|
+
}
|
59
|
+
return *FOR_BITS[bits];
|
60
|
+
}
|
61
|
+
|
62
|
+
ErrorCorrectionLevel ErrorCorrectionLevel::L(0, 0x01, "L");
|
63
|
+
ErrorCorrectionLevel ErrorCorrectionLevel::M(1, 0x00, "M");
|
64
|
+
ErrorCorrectionLevel ErrorCorrectionLevel::Q(2, 0x03, "Q");
|
65
|
+
ErrorCorrectionLevel ErrorCorrectionLevel::H(3, 0x02, "H");
|
66
|
+
ErrorCorrectionLevel *ErrorCorrectionLevel::FOR_BITS[] = { &M, &L, &H, &Q };
|
67
|
+
int ErrorCorrectionLevel::N_LEVELS = 4;
|
68
|
+
|
69
|
+
}
|
70
|
+
}
|
data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRFormatInformation.cpp
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
/*
|
2
|
+
* FormatInformation.cpp
|
3
|
+
* zxing
|
4
|
+
*
|
5
|
+
* Created by Christian Brunschen on 18/05/2008.
|
6
|
+
* Copyright 2008 ZXing authors All rights reserved.
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*/
|
20
|
+
|
21
|
+
#include <zxing/qrcode/FormatInformation.h>
|
22
|
+
#include <limits>
|
23
|
+
|
24
|
+
namespace zxing {
|
25
|
+
namespace qrcode {
|
26
|
+
|
27
|
+
using namespace std;
|
28
|
+
|
29
|
+
int FormatInformation::FORMAT_INFO_MASK_QR = 0x5412;
|
30
|
+
int FormatInformation::FORMAT_INFO_DECODE_LOOKUP[][2] = { { 0x5412, 0x00 }, { 0x5125, 0x01 }, { 0x5E7C, 0x02 }, {
|
31
|
+
0x5B4B, 0x03 }, { 0x45F9, 0x04 }, { 0x40CE, 0x05 }, { 0x4F97, 0x06 }, { 0x4AA0, 0x07 }, { 0x77C4, 0x08 }, {
|
32
|
+
0x72F3, 0x09 }, { 0x7DAA, 0x0A }, { 0x789D, 0x0B }, { 0x662F, 0x0C }, { 0x6318, 0x0D }, { 0x6C41, 0x0E }, {
|
33
|
+
0x6976, 0x0F }, { 0x1689, 0x10 }, { 0x13BE, 0x11 }, { 0x1CE7, 0x12 }, { 0x19D0, 0x13 }, { 0x0762, 0x14 }, {
|
34
|
+
0x0255, 0x15 }, { 0x0D0C, 0x16 }, { 0x083B, 0x17 }, { 0x355F, 0x18 }, { 0x3068, 0x19 }, { 0x3F31, 0x1A }, {
|
35
|
+
0x3A06, 0x1B }, { 0x24B4, 0x1C }, { 0x2183, 0x1D }, { 0x2EDA, 0x1E }, { 0x2BED, 0x1F },
|
36
|
+
};
|
37
|
+
int FormatInformation::N_FORMAT_INFO_DECODE_LOOKUPS = 32;
|
38
|
+
|
39
|
+
int FormatInformation::BITS_SET_IN_HALF_BYTE[] = { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4 };
|
40
|
+
|
41
|
+
FormatInformation::FormatInformation(int formatInfo) :
|
42
|
+
errorCorrectionLevel_(ErrorCorrectionLevel::forBits((formatInfo >> 3) & 0x03)), dataMask_((char)(formatInfo & 0x07)) {
|
43
|
+
}
|
44
|
+
|
45
|
+
ErrorCorrectionLevel& FormatInformation::getErrorCorrectionLevel() {
|
46
|
+
return errorCorrectionLevel_;
|
47
|
+
}
|
48
|
+
|
49
|
+
char FormatInformation::getDataMask() {
|
50
|
+
return dataMask_;
|
51
|
+
}
|
52
|
+
|
53
|
+
int FormatInformation::numBitsDiffering(int a, int b) {
|
54
|
+
a ^= b;
|
55
|
+
return BITS_SET_IN_HALF_BYTE[a & 0x0F] + BITS_SET_IN_HALF_BYTE[(a >> 4 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >> 8
|
56
|
+
& 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >> 12 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >> 16 & 0x0F)]
|
57
|
+
+ BITS_SET_IN_HALF_BYTE[(a >> 20 & 0x0F)] + BITS_SET_IN_HALF_BYTE[(a >> 24 & 0x0F)]
|
58
|
+
+ BITS_SET_IN_HALF_BYTE[(a >> 28 & 0x0F)];
|
59
|
+
}
|
60
|
+
|
61
|
+
Ref<FormatInformation> FormatInformation::decodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2) {
|
62
|
+
Ref<FormatInformation> result(doDecodeFormatInformation(maskedFormatInfo1, maskedFormatInfo2));
|
63
|
+
if (result != 0) {
|
64
|
+
return result;
|
65
|
+
}
|
66
|
+
// Should return null, but, some QR codes apparently
|
67
|
+
// do not mask this info. Try again by actually masking the pattern
|
68
|
+
// first
|
69
|
+
return doDecodeFormatInformation(maskedFormatInfo1 ^ FORMAT_INFO_MASK_QR,
|
70
|
+
maskedFormatInfo2 ^ FORMAT_INFO_MASK_QR);
|
71
|
+
}
|
72
|
+
Ref<FormatInformation> FormatInformation::doDecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2) {
|
73
|
+
// Find the int in FORMAT_INFO_DECODE_LOOKUP with fewest bits differing
|
74
|
+
int bestDifference = numeric_limits<int>::max();
|
75
|
+
int bestFormatInfo = 0;
|
76
|
+
for (int i = 0; i < N_FORMAT_INFO_DECODE_LOOKUPS; i++) {
|
77
|
+
int* decodeInfo = FORMAT_INFO_DECODE_LOOKUP[i];
|
78
|
+
int targetInfo = decodeInfo[0];
|
79
|
+
if (targetInfo == maskedFormatInfo1 || targetInfo == maskedFormatInfo2) {
|
80
|
+
// Found an exact match
|
81
|
+
Ref<FormatInformation> result(new FormatInformation(decodeInfo[1]));
|
82
|
+
return result;
|
83
|
+
}
|
84
|
+
int bitsDifference = numBitsDiffering(maskedFormatInfo1, targetInfo);
|
85
|
+
if (bitsDifference < bestDifference) {
|
86
|
+
bestFormatInfo = decodeInfo[1];
|
87
|
+
bestDifference = bitsDifference;
|
88
|
+
}
|
89
|
+
if (maskedFormatInfo1 != maskedFormatInfo2) {
|
90
|
+
// also try the other option
|
91
|
+
bitsDifference = numBitsDiffering(maskedFormatInfo2, targetInfo);
|
92
|
+
if (bitsDifference < bestDifference) {
|
93
|
+
bestFormatInfo = decodeInfo[1];
|
94
|
+
bestDifference = bitsDifference;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
if (bestDifference <= 3) {
|
99
|
+
Ref<FormatInformation> result(new FormatInformation(bestFormatInfo));
|
100
|
+
return result;
|
101
|
+
}
|
102
|
+
Ref<FormatInformation> result;
|
103
|
+
return result;
|
104
|
+
}
|
105
|
+
|
106
|
+
bool operator==(const FormatInformation &a, const FormatInformation &b) {
|
107
|
+
return &(a.errorCorrectionLevel_) == &(b.errorCorrectionLevel_) && a.dataMask_ == b.dataMask_;
|
108
|
+
}
|
109
|
+
|
110
|
+
ostream& operator<<(ostream& out, const FormatInformation& fi) {
|
111
|
+
const FormatInformation *fip = &fi;
|
112
|
+
out << "FormatInformation @ " << fip;
|
113
|
+
return out;
|
114
|
+
}
|
115
|
+
|
116
|
+
}
|
117
|
+
}
|
@@ -0,0 +1,566 @@
|
|
1
|
+
/*
|
2
|
+
* Version.cpp
|
3
|
+
* zxing
|
4
|
+
*
|
5
|
+
* Created by Christian Brunschen on 14/05/2008.
|
6
|
+
* Copyright 2008 ZXing authors All rights reserved.
|
7
|
+
*
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
* you may not use this file except in compliance with the License.
|
10
|
+
* You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
* See the License for the specific language governing permissions and
|
18
|
+
* limitations under the License.
|
19
|
+
*/
|
20
|
+
|
21
|
+
#include <zxing/qrcode/Version.h>
|
22
|
+
#include <zxing/qrcode/FormatInformation.h>
|
23
|
+
#include <zxing/FormatException.h>
|
24
|
+
#include <limits>
|
25
|
+
#include <iostream>
|
26
|
+
#include <cstdarg>
|
27
|
+
|
28
|
+
using std::vector;
|
29
|
+
using std::numeric_limits;
|
30
|
+
|
31
|
+
namespace zxing {
|
32
|
+
namespace qrcode {
|
33
|
+
|
34
|
+
ECB::ECB(int count, int dataCodewords) :
|
35
|
+
count_(count), dataCodewords_(dataCodewords) {
|
36
|
+
}
|
37
|
+
|
38
|
+
int ECB::getCount() {
|
39
|
+
return count_;
|
40
|
+
}
|
41
|
+
|
42
|
+
int ECB::getDataCodewords() {
|
43
|
+
return dataCodewords_;
|
44
|
+
}
|
45
|
+
|
46
|
+
ECBlocks::ECBlocks(int ecCodewordsPerBloc, ECB *ecBlocks) :
|
47
|
+
ecCodewordsPerBloc_(ecCodewordsPerBloc), ecBlocks_(1, ecBlocks) {
|
48
|
+
}
|
49
|
+
|
50
|
+
ECBlocks::ECBlocks(int ecCodewordsPerBloc, ECB *ecBlocks1, ECB *ecBlocks2) :
|
51
|
+
ecCodewordsPerBloc_(ecCodewordsPerBloc), ecBlocks_(1, ecBlocks1) {
|
52
|
+
ecBlocks_.push_back(ecBlocks2);
|
53
|
+
}
|
54
|
+
|
55
|
+
int ECBlocks::getECCodewordsPerBloc()
|
56
|
+
{
|
57
|
+
return ecCodewordsPerBloc_;
|
58
|
+
}
|
59
|
+
|
60
|
+
int ECBlocks::getTotalECCodewords()
|
61
|
+
{
|
62
|
+
return ecBlocks_.size();
|
63
|
+
}
|
64
|
+
|
65
|
+
std::vector<ECB*>& ECBlocks::getECBlocks() {
|
66
|
+
return ecBlocks_;
|
67
|
+
}
|
68
|
+
|
69
|
+
ECBlocks::~ECBlocks() {
|
70
|
+
for (size_t i = 0; i < ecBlocks_.size(); i++) {
|
71
|
+
delete ecBlocks_[i];
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
unsigned int Version::VERSION_DECODE_INFO[] = { 0x07C94, 0x085BC, 0x09A99, 0x0A4D3, 0x0BBF6, 0x0C762, 0x0D847, 0x0E60D,
|
76
|
+
0x0F928, 0x10B78, 0x1145D, 0x12A17, 0x13532, 0x149A6, 0x15683, 0x168C9, 0x177EC, 0x18EC4, 0x191E1, 0x1AFAB,
|
77
|
+
0x1B08E, 0x1CC1A, 0x1D33F, 0x1ED75, 0x1F250, 0x209D5, 0x216F0, 0x228BA, 0x2379F, 0x24B0B, 0x2542E, 0x26A64,
|
78
|
+
0x27541, 0x28C69
|
79
|
+
};
|
80
|
+
int Version::N_VERSION_DECODE_INFOS = 34;
|
81
|
+
vector<Ref<Version> > Version::VERSIONS;
|
82
|
+
static int N_VERSIONS = Version::buildVersions();
|
83
|
+
|
84
|
+
int Version::getVersionNumber() const {
|
85
|
+
return versionNumber_;
|
86
|
+
}
|
87
|
+
|
88
|
+
vector<int> &Version::getAlignmentPatternCenters() {
|
89
|
+
return alignmentPatternCenters_;
|
90
|
+
}
|
91
|
+
|
92
|
+
int Version::getTotalCodewords() {
|
93
|
+
return totalCodewords_;
|
94
|
+
}
|
95
|
+
|
96
|
+
int Version::getDimensionForVersion() {
|
97
|
+
return 17 + 4 * versionNumber_;
|
98
|
+
}
|
99
|
+
|
100
|
+
ECBlocks& Version::getECBlocksForLevel(const ErrorCorrectionLevel &ecLevel) const {
|
101
|
+
return *ecBlocks_[ecLevel.ordinal()];
|
102
|
+
}
|
103
|
+
|
104
|
+
Ref<Version> Version::getProvisionalVersionForDimension(int dimension) {
|
105
|
+
if (dimension % 4 != 1) {
|
106
|
+
throw FormatException();
|
107
|
+
}
|
108
|
+
try {
|
109
|
+
return Version::getVersionForNumber((dimension - 17) >> 2);
|
110
|
+
} catch (IllegalArgumentException const& ignored) {
|
111
|
+
(void)ignored;
|
112
|
+
throw FormatException();
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
Ref<Version> Version::getVersionForNumber(int versionNumber) {
|
117
|
+
if (versionNumber < 1 || versionNumber > N_VERSIONS) {
|
118
|
+
throw ReaderException("versionNumber must be between 1 and 40");
|
119
|
+
}
|
120
|
+
|
121
|
+
return VERSIONS[versionNumber - 1];
|
122
|
+
}
|
123
|
+
|
124
|
+
Version::Version(int versionNumber, vector<int> *alignmentPatternCenters, ECBlocks *ecBlocks1, ECBlocks *ecBlocks2,
|
125
|
+
ECBlocks *ecBlocks3, ECBlocks *ecBlocks4) :
|
126
|
+
versionNumber_(versionNumber), alignmentPatternCenters_(*alignmentPatternCenters), ecBlocks_(4), totalCodewords_(0) {
|
127
|
+
ecBlocks_[0] = ecBlocks1;
|
128
|
+
ecBlocks_[1] = ecBlocks2;
|
129
|
+
ecBlocks_[2] = ecBlocks3;
|
130
|
+
ecBlocks_[3] = ecBlocks4;
|
131
|
+
|
132
|
+
int total = 0;
|
133
|
+
int ecCodewords = ecBlocks1->getECCodewordsPerBloc();
|
134
|
+
vector<ECB*> &ecbArray = ecBlocks1->getECBlocks();
|
135
|
+
for (size_t i = 0; i < ecbArray.size(); i++) {
|
136
|
+
ECB *ecBlock = ecbArray[i];
|
137
|
+
total += ecBlock->getCount() * (ecBlock->getDataCodewords() + ecCodewords);
|
138
|
+
}
|
139
|
+
totalCodewords_ = total;
|
140
|
+
}
|
141
|
+
|
142
|
+
Version::~Version() {
|
143
|
+
delete &alignmentPatternCenters_;
|
144
|
+
for (size_t i = 0; i < ecBlocks_.size(); i++) {
|
145
|
+
delete ecBlocks_[i];
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
Ref<Version> Version::decodeVersionInformation(unsigned int versionBits) {
|
150
|
+
int bestDifference = numeric_limits<int>::max();
|
151
|
+
size_t bestVersion = 0;
|
152
|
+
for (int i = 0; i < N_VERSION_DECODE_INFOS; i++) {
|
153
|
+
unsigned targetVersion = VERSION_DECODE_INFO[i];
|
154
|
+
// Do the version info bits match exactly? done.
|
155
|
+
if (targetVersion == versionBits) {
|
156
|
+
return getVersionForNumber(i + 7);
|
157
|
+
}
|
158
|
+
// Otherwise see if this is the closest to a real version info bit
|
159
|
+
// string we have seen so far
|
160
|
+
int bitsDifference = FormatInformation::numBitsDiffering(versionBits, targetVersion);
|
161
|
+
if (bitsDifference < bestDifference) {
|
162
|
+
bestVersion = i + 7;
|
163
|
+
bestDifference = bitsDifference;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
// We can tolerate up to 3 bits of error since no two version info codewords will
|
167
|
+
// differ in less than 4 bits.
|
168
|
+
if (bestDifference <= 3) {
|
169
|
+
return getVersionForNumber(bestVersion);
|
170
|
+
}
|
171
|
+
// If we didn't find a close enough match, fail
|
172
|
+
return Ref<Version>(NULL);
|
173
|
+
}
|
174
|
+
|
175
|
+
Ref<BitMatrix> Version::buildFunctionPattern() {
|
176
|
+
int dimension = getDimensionForVersion();
|
177
|
+
Ref<BitMatrix> functionPattern(new BitMatrix(dimension));
|
178
|
+
|
179
|
+
|
180
|
+
// Top left finder pattern + separator + format
|
181
|
+
functionPattern->setRegion(0, 0, 9, 9);
|
182
|
+
// Top right finder pattern + separator + format
|
183
|
+
functionPattern->setRegion(dimension - 8, 0, 8, 9);
|
184
|
+
// Bottom left finder pattern + separator + format
|
185
|
+
functionPattern->setRegion(0, dimension - 8, 9, 8);
|
186
|
+
|
187
|
+
|
188
|
+
// Alignment patterns
|
189
|
+
size_t max = alignmentPatternCenters_.size();
|
190
|
+
for (size_t x = 0; x < max; x++) {
|
191
|
+
int i = alignmentPatternCenters_[x] - 2;
|
192
|
+
for (size_t y = 0; y < max; y++) {
|
193
|
+
if ((x == 0 && (y == 0 || y == max - 1)) || (x == max - 1 && y == 0)) {
|
194
|
+
// No alignment patterns near the three finder patterns
|
195
|
+
continue;
|
196
|
+
}
|
197
|
+
functionPattern->setRegion(alignmentPatternCenters_[y] - 2, i, 5, 5);
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
// Vertical timing pattern
|
202
|
+
functionPattern->setRegion(6, 9, 1, dimension - 17);
|
203
|
+
// Horizontal timing pattern
|
204
|
+
functionPattern->setRegion(9, 6, dimension - 17, 1);
|
205
|
+
|
206
|
+
if (versionNumber_ > 6) {
|
207
|
+
// Version info, top right
|
208
|
+
functionPattern->setRegion(dimension - 11, 0, 3, 6);
|
209
|
+
// Version info, bottom left
|
210
|
+
functionPattern->setRegion(0, dimension - 11, 6, 3);
|
211
|
+
}
|
212
|
+
|
213
|
+
return functionPattern;
|
214
|
+
}
|
215
|
+
|
216
|
+
static vector<int> *intArray(size_t n...) {
|
217
|
+
va_list ap;
|
218
|
+
va_start(ap, n);
|
219
|
+
vector<int> *result = new vector<int>(n);
|
220
|
+
for (size_t i = 0; i < n; i++) {
|
221
|
+
(*result)[i] = va_arg(ap, int);
|
222
|
+
}
|
223
|
+
va_end(ap);
|
224
|
+
return result;
|
225
|
+
}
|
226
|
+
|
227
|
+
int Version::buildVersions() {
|
228
|
+
VERSIONS.push_back(Ref<Version>(new Version(1, intArray(0),
|
229
|
+
new ECBlocks(7, new ECB(1, 19)),
|
230
|
+
new ECBlocks(10, new ECB(1, 16)),
|
231
|
+
new ECBlocks(13, new ECB(1, 13)),
|
232
|
+
new ECBlocks(17, new ECB(1, 9)))));
|
233
|
+
VERSIONS.push_back(Ref<Version>(new Version(2, intArray(2, 6, 18),
|
234
|
+
new ECBlocks(10, new ECB(1, 34)),
|
235
|
+
new ECBlocks(16, new ECB(1, 28)),
|
236
|
+
new ECBlocks(22, new ECB(1, 22)),
|
237
|
+
new ECBlocks(28, new ECB(1, 16)))));
|
238
|
+
VERSIONS.push_back(Ref<Version>(new Version(3, intArray(2, 6, 22),
|
239
|
+
new ECBlocks(15, new ECB(1, 55)),
|
240
|
+
new ECBlocks(26, new ECB(1, 44)),
|
241
|
+
new ECBlocks(18, new ECB(2, 17)),
|
242
|
+
new ECBlocks(22, new ECB(2, 13)))));
|
243
|
+
VERSIONS.push_back(Ref<Version>(new Version(4, intArray(2, 6, 26),
|
244
|
+
new ECBlocks(20, new ECB(1, 80)),
|
245
|
+
new ECBlocks(18, new ECB(2, 32)),
|
246
|
+
new ECBlocks(26, new ECB(2, 24)),
|
247
|
+
new ECBlocks(16, new ECB(4, 9)))));
|
248
|
+
VERSIONS.push_back(Ref<Version>(new Version(5, intArray(2, 6, 30),
|
249
|
+
new ECBlocks(26, new ECB(1, 108)),
|
250
|
+
new ECBlocks(24, new ECB(2, 43)),
|
251
|
+
new ECBlocks(18, new ECB(2, 15),
|
252
|
+
new ECB(2, 16)),
|
253
|
+
new ECBlocks(22, new ECB(2, 11),
|
254
|
+
new ECB(2, 12)))));
|
255
|
+
VERSIONS.push_back(Ref<Version>(new Version(6, intArray(2, 6, 34),
|
256
|
+
new ECBlocks(18, new ECB(2, 68)),
|
257
|
+
new ECBlocks(16, new ECB(4, 27)),
|
258
|
+
new ECBlocks(24, new ECB(4, 19)),
|
259
|
+
new ECBlocks(28, new ECB(4, 15)))));
|
260
|
+
VERSIONS.push_back(Ref<Version>(new Version(7, intArray(3, 6, 22, 38),
|
261
|
+
new ECBlocks(20, new ECB(2, 78)),
|
262
|
+
new ECBlocks(18, new ECB(4, 31)),
|
263
|
+
new ECBlocks(18, new ECB(2, 14),
|
264
|
+
new ECB(4, 15)),
|
265
|
+
new ECBlocks(26, new ECB(4, 13),
|
266
|
+
new ECB(1, 14)))));
|
267
|
+
VERSIONS.push_back(Ref<Version>(new Version(8, intArray(3, 6, 24, 42),
|
268
|
+
new ECBlocks(24, new ECB(2, 97)),
|
269
|
+
new ECBlocks(22, new ECB(2, 38),
|
270
|
+
new ECB(2, 39)),
|
271
|
+
new ECBlocks(22, new ECB(4, 18),
|
272
|
+
new ECB(2, 19)),
|
273
|
+
new ECBlocks(26, new ECB(4, 14),
|
274
|
+
new ECB(2, 15)))));
|
275
|
+
VERSIONS.push_back(Ref<Version>(new Version(9, intArray(3, 6, 26, 46),
|
276
|
+
new ECBlocks(30, new ECB(2, 116)),
|
277
|
+
new ECBlocks(22, new ECB(3, 36),
|
278
|
+
new ECB(2, 37)),
|
279
|
+
new ECBlocks(20, new ECB(4, 16),
|
280
|
+
new ECB(4, 17)),
|
281
|
+
new ECBlocks(24, new ECB(4, 12),
|
282
|
+
new ECB(4, 13)))));
|
283
|
+
VERSIONS.push_back(Ref<Version>(new Version(10, intArray(3, 6, 28, 50),
|
284
|
+
new ECBlocks(18, new ECB(2, 68),
|
285
|
+
new ECB(2, 69)),
|
286
|
+
new ECBlocks(26, new ECB(4, 43),
|
287
|
+
new ECB(1, 44)),
|
288
|
+
new ECBlocks(24, new ECB(6, 19),
|
289
|
+
new ECB(2, 20)),
|
290
|
+
new ECBlocks(28, new ECB(6, 15),
|
291
|
+
new ECB(2, 16)))));
|
292
|
+
VERSIONS.push_back(Ref<Version>(new Version(11, intArray(3, 6, 30, 54),
|
293
|
+
new ECBlocks(20, new ECB(4, 81)),
|
294
|
+
new ECBlocks(30, new ECB(1, 50),
|
295
|
+
new ECB(4, 51)),
|
296
|
+
new ECBlocks(28, new ECB(4, 22),
|
297
|
+
new ECB(4, 23)),
|
298
|
+
new ECBlocks(24, new ECB(3, 12),
|
299
|
+
new ECB(8, 13)))));
|
300
|
+
VERSIONS.push_back(Ref<Version>(new Version(12, intArray(3, 6, 32, 58),
|
301
|
+
new ECBlocks(24, new ECB(2, 92),
|
302
|
+
new ECB(2, 93)),
|
303
|
+
new ECBlocks(22, new ECB(6, 36),
|
304
|
+
new ECB(2, 37)),
|
305
|
+
new ECBlocks(26, new ECB(4, 20),
|
306
|
+
new ECB(6, 21)),
|
307
|
+
new ECBlocks(28, new ECB(7, 14),
|
308
|
+
new ECB(4, 15)))));
|
309
|
+
VERSIONS.push_back(Ref<Version>(new Version(13, intArray(3, 6, 34, 62),
|
310
|
+
new ECBlocks(26, new ECB(4, 107)),
|
311
|
+
new ECBlocks(22, new ECB(8, 37),
|
312
|
+
new ECB(1, 38)),
|
313
|
+
new ECBlocks(24, new ECB(8, 20),
|
314
|
+
new ECB(4, 21)),
|
315
|
+
new ECBlocks(22, new ECB(12, 11),
|
316
|
+
new ECB(4, 12)))));
|
317
|
+
VERSIONS.push_back(Ref<Version>(new Version(14, intArray(4, 6, 26, 46, 66),
|
318
|
+
new ECBlocks(30, new ECB(3, 115),
|
319
|
+
new ECB(1, 116)),
|
320
|
+
new ECBlocks(24, new ECB(4, 40),
|
321
|
+
new ECB(5, 41)),
|
322
|
+
new ECBlocks(20, new ECB(11, 16),
|
323
|
+
new ECB(5, 17)),
|
324
|
+
new ECBlocks(24, new ECB(11, 12),
|
325
|
+
new ECB(5, 13)))));
|
326
|
+
VERSIONS.push_back(Ref<Version>(new Version(15, intArray(4, 6, 26, 48, 70),
|
327
|
+
new ECBlocks(22, new ECB(5, 87),
|
328
|
+
new ECB(1, 88)),
|
329
|
+
new ECBlocks(24, new ECB(5, 41),
|
330
|
+
new ECB(5, 42)),
|
331
|
+
new ECBlocks(30, new ECB(5, 24),
|
332
|
+
new ECB(7, 25)),
|
333
|
+
new ECBlocks(24, new ECB(11, 12),
|
334
|
+
new ECB(7, 13)))));
|
335
|
+
VERSIONS.push_back(Ref<Version>(new Version(16, intArray(4, 6, 26, 50, 74),
|
336
|
+
new ECBlocks(24, new ECB(5, 98),
|
337
|
+
new ECB(1, 99)),
|
338
|
+
new ECBlocks(28, new ECB(7, 45),
|
339
|
+
new ECB(3, 46)),
|
340
|
+
new ECBlocks(24, new ECB(15, 19),
|
341
|
+
new ECB(2, 20)),
|
342
|
+
new ECBlocks(30, new ECB(3, 15),
|
343
|
+
new ECB(13, 16)))));
|
344
|
+
VERSIONS.push_back(Ref<Version>(new Version(17, intArray(4, 6, 30, 54, 78),
|
345
|
+
new ECBlocks(28, new ECB(1, 107),
|
346
|
+
new ECB(5, 108)),
|
347
|
+
new ECBlocks(28, new ECB(10, 46),
|
348
|
+
new ECB(1, 47)),
|
349
|
+
new ECBlocks(28, new ECB(1, 22),
|
350
|
+
new ECB(15, 23)),
|
351
|
+
new ECBlocks(28, new ECB(2, 14),
|
352
|
+
new ECB(17, 15)))));
|
353
|
+
VERSIONS.push_back(Ref<Version>(new Version(18, intArray(4, 6, 30, 56, 82),
|
354
|
+
new ECBlocks(30, new ECB(5, 120),
|
355
|
+
new ECB(1, 121)),
|
356
|
+
new ECBlocks(26, new ECB(9, 43),
|
357
|
+
new ECB(4, 44)),
|
358
|
+
new ECBlocks(28, new ECB(17, 22),
|
359
|
+
new ECB(1, 23)),
|
360
|
+
new ECBlocks(28, new ECB(2, 14),
|
361
|
+
new ECB(19, 15)))));
|
362
|
+
VERSIONS.push_back(Ref<Version>(new Version(19, intArray(4, 6, 30, 58, 86),
|
363
|
+
new ECBlocks(28, new ECB(3, 113),
|
364
|
+
new ECB(4, 114)),
|
365
|
+
new ECBlocks(26, new ECB(3, 44),
|
366
|
+
new ECB(11, 45)),
|
367
|
+
new ECBlocks(26, new ECB(17, 21),
|
368
|
+
new ECB(4, 22)),
|
369
|
+
new ECBlocks(26, new ECB(9, 13),
|
370
|
+
new ECB(16, 14)))));
|
371
|
+
VERSIONS.push_back(Ref<Version>(new Version(20, intArray(4, 6, 34, 62, 90),
|
372
|
+
new ECBlocks(28, new ECB(3, 107),
|
373
|
+
new ECB(5, 108)),
|
374
|
+
new ECBlocks(26, new ECB(3, 41),
|
375
|
+
new ECB(13, 42)),
|
376
|
+
new ECBlocks(30, new ECB(15, 24),
|
377
|
+
new ECB(5, 25)),
|
378
|
+
new ECBlocks(28, new ECB(15, 15),
|
379
|
+
new ECB(10, 16)))));
|
380
|
+
VERSIONS.push_back(Ref<Version>(new Version(21, intArray(5, 6, 28, 50, 72, 94),
|
381
|
+
new ECBlocks(28, new ECB(4, 116),
|
382
|
+
new ECB(4, 117)),
|
383
|
+
new ECBlocks(26, new ECB(17, 42)),
|
384
|
+
new ECBlocks(28, new ECB(17, 22),
|
385
|
+
new ECB(6, 23)),
|
386
|
+
new ECBlocks(30, new ECB(19, 16),
|
387
|
+
new ECB(6, 17)))));
|
388
|
+
VERSIONS.push_back(Ref<Version>(new Version(22, intArray(5, 6, 26, 50, 74, 98),
|
389
|
+
new ECBlocks(28, new ECB(2, 111),
|
390
|
+
new ECB(7, 112)),
|
391
|
+
new ECBlocks(28, new ECB(17, 46)),
|
392
|
+
new ECBlocks(30, new ECB(7, 24),
|
393
|
+
new ECB(16, 25)),
|
394
|
+
new ECBlocks(24, new ECB(34, 13)))));
|
395
|
+
VERSIONS.push_back(Ref<Version>(new Version(23, intArray(5, 6, 30, 54, 78, 102),
|
396
|
+
new ECBlocks(30, new ECB(4, 121),
|
397
|
+
new ECB(5, 122)),
|
398
|
+
new ECBlocks(28, new ECB(4, 47),
|
399
|
+
new ECB(14, 48)),
|
400
|
+
new ECBlocks(30, new ECB(11, 24),
|
401
|
+
new ECB(14, 25)),
|
402
|
+
new ECBlocks(30, new ECB(16, 15),
|
403
|
+
new ECB(14, 16)))));
|
404
|
+
VERSIONS.push_back(Ref<Version>(new Version(24, intArray(5, 6, 28, 54, 80, 106),
|
405
|
+
new ECBlocks(30, new ECB(6, 117),
|
406
|
+
new ECB(4, 118)),
|
407
|
+
new ECBlocks(28, new ECB(6, 45),
|
408
|
+
new ECB(14, 46)),
|
409
|
+
new ECBlocks(30, new ECB(11, 24),
|
410
|
+
new ECB(16, 25)),
|
411
|
+
new ECBlocks(30, new ECB(30, 16),
|
412
|
+
new ECB(2, 17)))));
|
413
|
+
VERSIONS.push_back(Ref<Version>(new Version(25, intArray(5, 6, 32, 58, 84, 110),
|
414
|
+
new ECBlocks(26, new ECB(8, 106),
|
415
|
+
new ECB(4, 107)),
|
416
|
+
new ECBlocks(28, new ECB(8, 47),
|
417
|
+
new ECB(13, 48)),
|
418
|
+
new ECBlocks(30, new ECB(7, 24),
|
419
|
+
new ECB(22, 25)),
|
420
|
+
new ECBlocks(30, new ECB(22, 15),
|
421
|
+
new ECB(13, 16)))));
|
422
|
+
VERSIONS.push_back(Ref<Version>(new Version(26, intArray(5, 6, 30, 58, 86, 114),
|
423
|
+
new ECBlocks(28, new ECB(10, 114),
|
424
|
+
new ECB(2, 115)),
|
425
|
+
new ECBlocks(28, new ECB(19, 46),
|
426
|
+
new ECB(4, 47)),
|
427
|
+
new ECBlocks(28, new ECB(28, 22),
|
428
|
+
new ECB(6, 23)),
|
429
|
+
new ECBlocks(30, new ECB(33, 16),
|
430
|
+
new ECB(4, 17)))));
|
431
|
+
VERSIONS.push_back(Ref<Version>(new Version(27, intArray(5, 6, 34, 62, 90, 118),
|
432
|
+
new ECBlocks(30, new ECB(8, 122),
|
433
|
+
new ECB(4, 123)),
|
434
|
+
new ECBlocks(28, new ECB(22, 45),
|
435
|
+
new ECB(3, 46)),
|
436
|
+
new ECBlocks(30, new ECB(8, 23),
|
437
|
+
new ECB(26, 24)),
|
438
|
+
new ECBlocks(30, new ECB(12, 15),
|
439
|
+
new ECB(28, 16)))));
|
440
|
+
VERSIONS.push_back(Ref<Version>(new Version(28, intArray(6, 6, 26, 50, 74, 98, 122),
|
441
|
+
new ECBlocks(30, new ECB(3, 117),
|
442
|
+
new ECB(10, 118)),
|
443
|
+
new ECBlocks(28, new ECB(3, 45),
|
444
|
+
new ECB(23, 46)),
|
445
|
+
new ECBlocks(30, new ECB(4, 24),
|
446
|
+
new ECB(31, 25)),
|
447
|
+
new ECBlocks(30, new ECB(11, 15),
|
448
|
+
new ECB(31, 16)))));
|
449
|
+
VERSIONS.push_back(Ref<Version>(new Version(29, intArray(6, 6, 30, 54, 78, 102, 126),
|
450
|
+
new ECBlocks(30, new ECB(7, 116),
|
451
|
+
new ECB(7, 117)),
|
452
|
+
new ECBlocks(28, new ECB(21, 45),
|
453
|
+
new ECB(7, 46)),
|
454
|
+
new ECBlocks(30, new ECB(1, 23),
|
455
|
+
new ECB(37, 24)),
|
456
|
+
new ECBlocks(30, new ECB(19, 15),
|
457
|
+
new ECB(26, 16)))));
|
458
|
+
VERSIONS.push_back(Ref<Version>(new Version(30, intArray(6, 6, 26, 52, 78, 104, 130),
|
459
|
+
new ECBlocks(30, new ECB(5, 115),
|
460
|
+
new ECB(10, 116)),
|
461
|
+
new ECBlocks(28, new ECB(19, 47),
|
462
|
+
new ECB(10, 48)),
|
463
|
+
new ECBlocks(30, new ECB(15, 24),
|
464
|
+
new ECB(25, 25)),
|
465
|
+
new ECBlocks(30, new ECB(23, 15),
|
466
|
+
new ECB(25, 16)))));
|
467
|
+
VERSIONS.push_back(Ref<Version>(new Version(31, intArray(6, 6, 30, 56, 82, 108, 134),
|
468
|
+
new ECBlocks(30, new ECB(13, 115),
|
469
|
+
new ECB(3, 116)),
|
470
|
+
new ECBlocks(28, new ECB(2, 46),
|
471
|
+
new ECB(29, 47)),
|
472
|
+
new ECBlocks(30, new ECB(42, 24),
|
473
|
+
new ECB(1, 25)),
|
474
|
+
new ECBlocks(30, new ECB(23, 15),
|
475
|
+
new ECB(28, 16)))));
|
476
|
+
VERSIONS.push_back(Ref<Version>(new Version(32, intArray(6, 6, 34, 60, 86, 112, 138),
|
477
|
+
new ECBlocks(30, new ECB(17, 115)),
|
478
|
+
new ECBlocks(28, new ECB(10, 46),
|
479
|
+
new ECB(23, 47)),
|
480
|
+
new ECBlocks(30, new ECB(10, 24),
|
481
|
+
new ECB(35, 25)),
|
482
|
+
new ECBlocks(30, new ECB(19, 15),
|
483
|
+
new ECB(35, 16)))));
|
484
|
+
VERSIONS.push_back(Ref<Version>(new Version(33, intArray(6, 6, 30, 58, 86, 114, 142),
|
485
|
+
new ECBlocks(30, new ECB(17, 115),
|
486
|
+
new ECB(1, 116)),
|
487
|
+
new ECBlocks(28, new ECB(14, 46),
|
488
|
+
new ECB(21, 47)),
|
489
|
+
new ECBlocks(30, new ECB(29, 24),
|
490
|
+
new ECB(19, 25)),
|
491
|
+
new ECBlocks(30, new ECB(11, 15),
|
492
|
+
new ECB(46, 16)))));
|
493
|
+
VERSIONS.push_back(Ref<Version>(new Version(34, intArray(6, 6, 34, 62, 90, 118, 146),
|
494
|
+
new ECBlocks(30, new ECB(13, 115),
|
495
|
+
new ECB(6, 116)),
|
496
|
+
new ECBlocks(28, new ECB(14, 46),
|
497
|
+
new ECB(23, 47)),
|
498
|
+
new ECBlocks(30, new ECB(44, 24),
|
499
|
+
new ECB(7, 25)),
|
500
|
+
new ECBlocks(30, new ECB(59, 16),
|
501
|
+
new ECB(1, 17)))));
|
502
|
+
VERSIONS.push_back(Ref<Version>(new Version(35, intArray(7, 6, 30, 54, 78,
|
503
|
+
102, 126, 150),
|
504
|
+
new ECBlocks(30, new ECB(12, 121),
|
505
|
+
new ECB(7, 122)),
|
506
|
+
new ECBlocks(28, new ECB(12, 47),
|
507
|
+
new ECB(26, 48)),
|
508
|
+
new ECBlocks(30, new ECB(39, 24),
|
509
|
+
new ECB(14, 25)),
|
510
|
+
new ECBlocks(30, new ECB(22, 15),
|
511
|
+
new ECB(41, 16)))));
|
512
|
+
VERSIONS.push_back(Ref<Version>(new Version(36, intArray(7, 6, 24, 50, 76,
|
513
|
+
102, 128, 154),
|
514
|
+
new ECBlocks(30, new ECB(6, 121),
|
515
|
+
new ECB(14, 122)),
|
516
|
+
new ECBlocks(28, new ECB(6, 47),
|
517
|
+
new ECB(34, 48)),
|
518
|
+
new ECBlocks(30, new ECB(46, 24),
|
519
|
+
new ECB(10, 25)),
|
520
|
+
new ECBlocks(30, new ECB(2, 15),
|
521
|
+
new ECB(64, 16)))));
|
522
|
+
VERSIONS.push_back(Ref<Version>(new Version(37, intArray(7, 6, 28, 54, 80,
|
523
|
+
106, 132, 158),
|
524
|
+
new ECBlocks(30, new ECB(17, 122),
|
525
|
+
new ECB(4, 123)),
|
526
|
+
new ECBlocks(28, new ECB(29, 46),
|
527
|
+
new ECB(14, 47)),
|
528
|
+
new ECBlocks(30, new ECB(49, 24),
|
529
|
+
new ECB(10, 25)),
|
530
|
+
new ECBlocks(30, new ECB(24, 15),
|
531
|
+
new ECB(46, 16)))));
|
532
|
+
VERSIONS.push_back(Ref<Version>(new Version(38, intArray(7, 6, 32, 58, 84,
|
533
|
+
110, 136, 162),
|
534
|
+
new ECBlocks(30, new ECB(4, 122),
|
535
|
+
new ECB(18, 123)),
|
536
|
+
new ECBlocks(28, new ECB(13, 46),
|
537
|
+
new ECB(32, 47)),
|
538
|
+
new ECBlocks(30, new ECB(48, 24),
|
539
|
+
new ECB(14, 25)),
|
540
|
+
new ECBlocks(30, new ECB(42, 15),
|
541
|
+
new ECB(32, 16)))));
|
542
|
+
VERSIONS.push_back(Ref<Version>(new Version(39, intArray(7, 6, 26, 54, 82,
|
543
|
+
110, 138, 166),
|
544
|
+
new ECBlocks(30, new ECB(20, 117),
|
545
|
+
new ECB(4, 118)),
|
546
|
+
new ECBlocks(28, new ECB(40, 47),
|
547
|
+
new ECB(7, 48)),
|
548
|
+
new ECBlocks(30, new ECB(43, 24),
|
549
|
+
new ECB(22, 25)),
|
550
|
+
new ECBlocks(30, new ECB(10, 15),
|
551
|
+
new ECB(67, 16)))));
|
552
|
+
VERSIONS.push_back(Ref<Version>(new Version(40, intArray(7, 6, 30, 58, 86,
|
553
|
+
114, 142, 170),
|
554
|
+
new ECBlocks(30, new ECB(19, 118),
|
555
|
+
new ECB(6, 119)),
|
556
|
+
new ECBlocks(28, new ECB(18, 47),
|
557
|
+
new ECB(31, 48)),
|
558
|
+
new ECBlocks(30, new ECB(34, 24),
|
559
|
+
new ECB(34, 25)),
|
560
|
+
new ECBlocks(30, new ECB(20, 15),
|
561
|
+
new ECB(61, 16)))));
|
562
|
+
return VERSIONS.size();
|
563
|
+
}
|
564
|
+
|
565
|
+
}
|
566
|
+
}
|