Many changes to the C++ port.
authorralf.kistner@gmail.com <ralf.kistner@gmail.com@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Sun, 1 Nov 2009 17:30:30 +0000 (17:30 +0000)
committerralf.kistner@gmail.com <ralf.kistner@gmail.com@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Sun, 1 Nov 2009 17:30:30 +0000 (17:30 +0000)
commit1bd3f8056f89c3e7c5163326ce2145de97acb829
tree805e674bf8b9b94c7af5e368ec7c3fcb4f77a3c0
parentb04d9b9e532b4c593f5b2a702d7904575f539468
Many changes to the C++ port.

- Refactoring:
 - All the files are now in a zxing folder,
 - Changed the namespaces so that everything is either in zxing or
zxing::qrcode.
 - Moved most function implementations from the headers to source
files.
- Ported the new design from the Java code with LuminanceSource,
BinaryBitmap, Binarizer, GlobalHistogramBinarizer and
LocalBlockBinarizer.
- Fixed two rare segmentation faults: one in
GridSampler::checkAndNudgePoints, and one in
ReedSolomonDecoder::decode. These would simply cause
ArrayIndexOutOfBoundsExceptions in Java, but have to be checked
explicitly in C++.
- With help from Erno Mäkinen, used std::vector instead of ArrayRef in
many places, as ArrayRef causes problems on Symbian phones.
- Added scons build files.
- Added a test application using ImageMagick.
- More small changes.

git-svn-id: http://zxing.googlecode.com/svn/trunk@1092 59b500cc-1b3d-0410-9834-0bbf25fbcc57
207 files changed:
cpp/README [new file with mode: 0644]
cpp/SConscript [new file with mode: 0644]
cpp/SConstruct [new file with mode: 0644]
cpp/astyle-options [new file with mode: 0644]
cpp/core/src/BarcodeFormat.cpp [deleted file]
cpp/core/src/BarcodeFormat.h [deleted file]
cpp/core/src/BlackPointEstimationMethod.cpp [deleted file]
cpp/core/src/BlackPointEstimationMethod.h [deleted file]
cpp/core/src/Exception.cpp [deleted file]
cpp/core/src/Exception.h [deleted file]
cpp/core/src/GrayBytesMonochromeBitmapSource.cpp [deleted file]
cpp/core/src/GrayBytesMonochromeBitmapSource.h [deleted file]
cpp/core/src/MonochromeBitmapSource.cpp [deleted file]
cpp/core/src/MonochromeBitmapSource.h [deleted file]
cpp/core/src/Reader.cpp [deleted file]
cpp/core/src/Reader.h [deleted file]
cpp/core/src/ReaderException.cpp [deleted file]
cpp/core/src/ReaderException.h [deleted file]
cpp/core/src/Result.cpp [deleted file]
cpp/core/src/Result.h [deleted file]
cpp/core/src/ResultPoint.cpp [deleted file]
cpp/core/src/ResultPoint.h [deleted file]
cpp/core/src/TransformingMonochromeBitmapSource.cpp [deleted file]
cpp/core/src/TransformingMonochromeBitmapSource.h [deleted file]
cpp/core/src/common/Array.cpp [deleted file]
cpp/core/src/common/Array.h [deleted file]
cpp/core/src/common/BitArray.cpp [deleted file]
cpp/core/src/common/BitArray.h [deleted file]
cpp/core/src/common/BitMatrix.cpp [deleted file]
cpp/core/src/common/BitMatrix.h [deleted file]
cpp/core/src/common/BitSource.cpp [deleted file]
cpp/core/src/common/BitSource.h [deleted file]
cpp/core/src/common/BlackPointEstimator.cpp [deleted file]
cpp/core/src/common/BlackPointEstimator.h [deleted file]
cpp/core/src/common/Counted.cpp [deleted file]
cpp/core/src/common/Counted.h [deleted file]
cpp/core/src/common/DecoderResult.cpp [deleted file]
cpp/core/src/common/DecoderResult.h [deleted file]
cpp/core/src/common/DetectorResult.cpp [deleted file]
cpp/core/src/common/DetectorResult.h [deleted file]
cpp/core/src/common/GridSampler.cpp [deleted file]
cpp/core/src/common/GridSampler.h [deleted file]
cpp/core/src/common/IllegalArgumentException.cpp [deleted file]
cpp/core/src/common/IllegalArgumentException.h [deleted file]
cpp/core/src/common/PerspectiveTransform.cpp [deleted file]
cpp/core/src/common/PerspectiveTransform.h [deleted file]
cpp/core/src/common/Str.cpp [deleted file]
cpp/core/src/common/Str.h [deleted file]
cpp/core/src/common/reedsolomon/GF256.cpp [deleted file]
cpp/core/src/common/reedsolomon/GF256.h [deleted file]
cpp/core/src/common/reedsolomon/GF256Poly.cpp [deleted file]
cpp/core/src/common/reedsolomon/GF256Poly.h [deleted file]
cpp/core/src/common/reedsolomon/ReedSolomonDecoder.cpp [deleted file]
cpp/core/src/common/reedsolomon/ReedSolomonDecoder.h [deleted file]
cpp/core/src/common/reedsolomon/ReedSolomonException.cpp [deleted file]
cpp/core/src/common/reedsolomon/ReedSolomonException.h [deleted file]
cpp/core/src/qrcode/QRCodeReader.cpp [deleted file]
cpp/core/src/qrcode/QRCodeReader.h [deleted file]
cpp/core/src/qrcode/decoder/BitMatrixParser.cpp [deleted file]
cpp/core/src/qrcode/decoder/BitMatrixParser.h [deleted file]
cpp/core/src/qrcode/decoder/DataBlock.cpp [deleted file]
cpp/core/src/qrcode/decoder/DataBlock.h [deleted file]
cpp/core/src/qrcode/decoder/DataMask.cpp [deleted file]
cpp/core/src/qrcode/decoder/DataMask.h [deleted file]
cpp/core/src/qrcode/decoder/DecodedBitStreamParser.cpp [deleted file]
cpp/core/src/qrcode/decoder/DecodedBitStreamParser.h [deleted file]
cpp/core/src/qrcode/decoder/Decoder.cpp [deleted file]
cpp/core/src/qrcode/decoder/Decoder.h [deleted file]
cpp/core/src/qrcode/decoder/ErrorCorrectionLevel.cpp [deleted file]
cpp/core/src/qrcode/decoder/ErrorCorrectionLevel.h [deleted file]
cpp/core/src/qrcode/decoder/FormatInformation.cpp [deleted file]
cpp/core/src/qrcode/decoder/FormatInformation.h [deleted file]
cpp/core/src/qrcode/decoder/Mode.cpp [deleted file]
cpp/core/src/qrcode/decoder/Mode.h [deleted file]
cpp/core/src/qrcode/decoder/Version.cpp [deleted file]
cpp/core/src/qrcode/decoder/Version.h [deleted file]
cpp/core/src/qrcode/detector/AlignmentPattern.cpp [deleted file]
cpp/core/src/qrcode/detector/AlignmentPattern.h [deleted file]
cpp/core/src/qrcode/detector/AlignmentPatternFinder.cpp [deleted file]
cpp/core/src/qrcode/detector/AlignmentPatternFinder.h [deleted file]
cpp/core/src/qrcode/detector/Detector.cpp [deleted file]
cpp/core/src/qrcode/detector/Detector.h [deleted file]
cpp/core/src/qrcode/detector/FinderPattern.cpp [deleted file]
cpp/core/src/qrcode/detector/FinderPattern.h [deleted file]
cpp/core/src/qrcode/detector/FinderPatternFinder.cpp [deleted file]
cpp/core/src/qrcode/detector/FinderPatternFinder.h [deleted file]
cpp/core/src/qrcode/detector/FinderPatternInfo.cpp [deleted file]
cpp/core/src/qrcode/detector/FinderPatternInfo.h [deleted file]
cpp/core/src/zxing/BarcodeFormat.cpp [new file with mode: 0755]
cpp/core/src/zxing/BarcodeFormat.h [new file with mode: 0644]
cpp/core/src/zxing/Binarizer.cpp [new file with mode: 0644]
cpp/core/src/zxing/Binarizer.h [new file with mode: 0644]
cpp/core/src/zxing/BinaryBitmap.cpp [new file with mode: 0644]
cpp/core/src/zxing/BinaryBitmap.h [new file with mode: 0644]
cpp/core/src/zxing/Exception.cpp [new file with mode: 0644]
cpp/core/src/zxing/Exception.h [new file with mode: 0644]
cpp/core/src/zxing/LuminanceSource.cpp [new file with mode: 0644]
cpp/core/src/zxing/LuminanceSource.h [new file with mode: 0644]
cpp/core/src/zxing/Reader.cpp [new file with mode: 0755]
cpp/core/src/zxing/Reader.h [new file with mode: 0755]
cpp/core/src/zxing/ReaderException.cpp [new file with mode: 0644]
cpp/core/src/zxing/ReaderException.h [new file with mode: 0644]
cpp/core/src/zxing/Result.cpp [new file with mode: 0644]
cpp/core/src/zxing/Result.h [new file with mode: 0644]
cpp/core/src/zxing/ResultPoint.cpp [new file with mode: 0755]
cpp/core/src/zxing/ResultPoint.h [new file with mode: 0644]
cpp/core/src/zxing/common/Array.cpp [new file with mode: 0755]
cpp/core/src/zxing/common/Array.h [new file with mode: 0644]
cpp/core/src/zxing/common/BitArray.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/BitArray.h [new file with mode: 0644]
cpp/core/src/zxing/common/BitMatrix.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/BitMatrix.h [new file with mode: 0644]
cpp/core/src/zxing/common/BitSource.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/BitSource.h [new file with mode: 0644]
cpp/core/src/zxing/common/Counted.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/Counted.h [new file with mode: 0644]
cpp/core/src/zxing/common/DecoderResult.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/DecoderResult.h [new file with mode: 0644]
cpp/core/src/zxing/common/DetectorResult.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/DetectorResult.h [new file with mode: 0644]
cpp/core/src/zxing/common/GlobalHistogramBinarizer.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/GlobalHistogramBinarizer.h [new file with mode: 0644]
cpp/core/src/zxing/common/GridSampler.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/GridSampler.h [new file with mode: 0644]
cpp/core/src/zxing/common/IllegalArgumentException.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/IllegalArgumentException.h [new file with mode: 0644]
cpp/core/src/zxing/common/LocalBlockBinarizer.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/LocalBlockBinarizer.h [new file with mode: 0644]
cpp/core/src/zxing/common/PerspectiveTransform.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/PerspectiveTransform.h [new file with mode: 0644]
cpp/core/src/zxing/common/Str.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/Str.h [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/GF256.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/GF256.h [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/GF256Poly.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/GF256Poly.h [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.h [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.cpp [new file with mode: 0644]
cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/FormatInformation.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/FormatInformation.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/QRCodeReader.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/QRCodeReader.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/Version.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/Version.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/DataBlock.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/DataBlock.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/DataMask.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/DataMask.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/Decoder.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/Decoder.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/Mode.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/decoder/Mode.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/AlignmentPattern.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/AlignmentPattern.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/Detector.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/Detector.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/FinderPattern.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/FinderPattern.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.cpp [new file with mode: 0644]
cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.h [new file with mode: 0644]
cpp/core/tests/src/TestRunner.cpp
cpp/core/tests/src/common/BitArrayTest.cpp
cpp/core/tests/src/common/BitArrayTest.h
cpp/core/tests/src/common/BitMatrixTest.cpp
cpp/core/tests/src/common/BitMatrixTest.h
cpp/core/tests/src/common/BitSourceTest.cpp
cpp/core/tests/src/common/BitSourceTest.h
cpp/core/tests/src/common/BlackPointEstimatorTest.cpp
cpp/core/tests/src/common/BlackPointEstimatorTest.h
cpp/core/tests/src/common/CountedTest.cpp
cpp/core/tests/src/common/CountedTest.h
cpp/core/tests/src/common/PerspectiveTransformTest.cpp
cpp/core/tests/src/common/PerspectiveTransformTest.h
cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.cpp
cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.h
cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.cpp [new file with mode: 0644]
cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.h [new file with mode: 0644]
cpp/core/tests/src/qrcode/FormatInformationTest.cpp [new file with mode: 0644]
cpp/core/tests/src/qrcode/FormatInformationTest.h [new file with mode: 0644]
cpp/core/tests/src/qrcode/VersionTest.cpp [new file with mode: 0644]
cpp/core/tests/src/qrcode/VersionTest.h [new file with mode: 0644]
cpp/core/tests/src/qrcode/decoder/DataMaskTest.cpp
cpp/core/tests/src/qrcode/decoder/DataMaskTest.h
cpp/core/tests/src/qrcode/decoder/ErrorCorrectionLevelTest.cpp [deleted file]
cpp/core/tests/src/qrcode/decoder/ErrorCorrectionLevelTest.h [deleted file]
cpp/core/tests/src/qrcode/decoder/FormatInformationTest.cpp [deleted file]
cpp/core/tests/src/qrcode/decoder/FormatInformationTest.h [deleted file]
cpp/core/tests/src/qrcode/decoder/ModeTest.cpp
cpp/core/tests/src/qrcode/decoder/ModeTest.h
cpp/core/tests/src/qrcode/decoder/VersionTest.cpp [deleted file]
cpp/core/tests/src/qrcode/decoder/VersionTest.h [deleted file]
cpp/format [new file with mode: 0755]
cpp/magick/src/MagickBitmapSource.cpp [new file with mode: 0644]
cpp/magick/src/MagickBitmapSource.h [new file with mode: 0644]
cpp/magick/src/main.cpp [new file with mode: 0644]