zxing_cpp 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (332) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.gitmodules +3 -0
  4. data/CHANGELOG.rdoc +6 -0
  5. data/Gemfile +3 -0
  6. data/Manifest.txt +331 -0
  7. data/README.rdoc +138 -0
  8. data/Rakefile +28 -0
  9. data/bin/zxd +87 -0
  10. data/bin/zxe +53 -0
  11. data/ext/zxing/extconf.rb +27 -0
  12. data/ext/zxing/zxing-cpp/.gitignore +4 -0
  13. data/ext/zxing/zxing-cpp/AUTHORS +115 -0
  14. data/ext/zxing/zxing-cpp/CMakeLists.txt +84 -0
  15. data/ext/zxing/zxing-cpp/COPYING +201 -0
  16. data/ext/zxing/zxing-cpp/NOTICE +65 -0
  17. data/ext/zxing/zxing-cpp/README.md +50 -0
  18. data/ext/zxing/zxing-cpp/cli/src/ImageReaderSource.cpp +112 -0
  19. data/ext/zxing/zxing-cpp/cli/src/ImageReaderSource.h +40 -0
  20. data/ext/zxing/zxing-cpp/cli/src/jpgd.cpp +3174 -0
  21. data/ext/zxing/zxing-cpp/cli/src/jpgd.h +319 -0
  22. data/ext/zxing/zxing-cpp/cli/src/lodepng.cpp +6261 -0
  23. data/ext/zxing/zxing-cpp/cli/src/lodepng.h +1695 -0
  24. data/ext/zxing/zxing-cpp/cli/src/main.cpp +297 -0
  25. data/ext/zxing/zxing-cpp/cmake/FindCPPUNIT.cmake +54 -0
  26. data/ext/zxing/zxing-cpp/cmake/FindIconv.cmake +57 -0
  27. data/ext/zxing/zxing-cpp/core/src/bigint/.gitignore +6 -0
  28. data/ext/zxing/zxing-cpp/core/src/bigint/BigInteger.cc +405 -0
  29. data/ext/zxing/zxing-cpp/core/src/bigint/BigInteger.hh +215 -0
  30. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerAlgorithms.cc +70 -0
  31. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerAlgorithms.hh +25 -0
  32. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerLibrary.hh +8 -0
  33. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerUtils.cc +50 -0
  34. data/ext/zxing/zxing-cpp/core/src/bigint/BigIntegerUtils.hh +72 -0
  35. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsigned.cc +697 -0
  36. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsigned.hh +418 -0
  37. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsignedInABase.cc +125 -0
  38. data/ext/zxing/zxing-cpp/core/src/bigint/BigUnsignedInABase.hh +122 -0
  39. data/ext/zxing/zxing-cpp/core/src/bigint/ChangeLog +146 -0
  40. data/ext/zxing/zxing-cpp/core/src/bigint/Makefile +73 -0
  41. data/ext/zxing/zxing-cpp/core/src/bigint/NumberlikeArray.hh +177 -0
  42. data/ext/zxing/zxing-cpp/core/src/bigint/README +71 -0
  43. data/ext/zxing/zxing-cpp/core/src/win32/zxing/iconv.h +14 -0
  44. data/ext/zxing/zxing-cpp/core/src/win32/zxing/stdint.h +247 -0
  45. data/ext/zxing/zxing-cpp/core/src/win32/zxing/win_iconv.c +2035 -0
  46. data/ext/zxing/zxing-cpp/core/src/zxing/BarcodeFormat.cpp +40 -0
  47. data/ext/zxing/zxing-cpp/core/src/zxing/BarcodeFormat.h +60 -0
  48. data/ext/zxing/zxing-cpp/core/src/zxing/Binarizer.cpp +45 -0
  49. data/ext/zxing/zxing-cpp/core/src/zxing/Binarizer.h +50 -0
  50. data/ext/zxing/zxing-cpp/core/src/zxing/BinaryBitmap.cpp +70 -0
  51. data/ext/zxing/zxing-cpp/core/src/zxing/BinaryBitmap.h +56 -0
  52. data/ext/zxing/zxing-cpp/core/src/zxing/ChecksumException.cpp +28 -0
  53. data/ext/zxing/zxing-cpp/core/src/zxing/ChecksumException.h +34 -0
  54. data/ext/zxing/zxing-cpp/core/src/zxing/DecodeHints.cpp +142 -0
  55. data/ext/zxing/zxing-cpp/core/src/zxing/DecodeHints.h +85 -0
  56. data/ext/zxing/zxing-cpp/core/src/zxing/Exception.cpp +43 -0
  57. data/ext/zxing/zxing-cpp/core/src/zxing/Exception.h +51 -0
  58. data/ext/zxing/zxing-cpp/core/src/zxing/FormatException.cpp +41 -0
  59. data/ext/zxing/zxing-cpp/core/src/zxing/FormatException.h +37 -0
  60. data/ext/zxing/zxing-cpp/core/src/zxing/IllegalStateException.h +35 -0
  61. data/ext/zxing/zxing-cpp/core/src/zxing/InvertedLuminanceSource.cpp +68 -0
  62. data/ext/zxing/zxing-cpp/core/src/zxing/InvertedLuminanceSource.h +48 -0
  63. data/ext/zxing/zxing-cpp/core/src/zxing/LuminanceSource.cpp +86 -0
  64. data/ext/zxing/zxing-cpp/core/src/zxing/LuminanceSource.h +59 -0
  65. data/ext/zxing/zxing-cpp/core/src/zxing/MultiFormatReader.cpp +124 -0
  66. data/ext/zxing/zxing-cpp/core/src/zxing/MultiFormatReader.h +48 -0
  67. data/ext/zxing/zxing-cpp/core/src/zxing/NotFoundException.h +35 -0
  68. data/ext/zxing/zxing-cpp/core/src/zxing/Reader.cpp +31 -0
  69. data/ext/zxing/zxing-cpp/core/src/zxing/Reader.h +40 -0
  70. data/ext/zxing/zxing-cpp/core/src/zxing/ReaderException.h +37 -0
  71. data/ext/zxing/zxing-cpp/core/src/zxing/Result.cpp +61 -0
  72. data/ext/zxing/zxing-cpp/core/src/zxing/Result.h +55 -0
  73. data/ext/zxing/zxing-cpp/core/src/zxing/ResultIO.cpp +34 -0
  74. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPoint.cpp +108 -0
  75. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPoint.h +55 -0
  76. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPointCallback.cpp +26 -0
  77. data/ext/zxing/zxing-cpp/core/src/zxing/ResultPointCallback.h +39 -0
  78. data/ext/zxing/zxing-cpp/core/src/zxing/ZXing.h +133 -0
  79. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecDetectorResult.cpp +54 -0
  80. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecDetectorResult.h +48 -0
  81. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecReader.cpp +68 -0
  82. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecReader.h +49 -0
  83. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/decoder/Decoder.cpp +489 -0
  84. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/decoder/Decoder.h +69 -0
  85. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/detector/Detector.cpp +548 -0
  86. data/ext/zxing/zxing-cpp/core/src/zxing/aztec/detector/Detector.h +92 -0
  87. data/ext/zxing/zxing-cpp/core/src/zxing/common/Array.h +170 -0
  88. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitArray.cpp +155 -0
  89. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitArray.h +81 -0
  90. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitArrayIO.cpp +31 -0
  91. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitMatrix.cpp +143 -0
  92. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitMatrix.h +91 -0
  93. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitSource.cpp +76 -0
  94. data/ext/zxing/zxing-cpp/core/src/zxing/common/BitSource.h +74 -0
  95. data/ext/zxing/zxing-cpp/core/src/zxing/common/CharacterSetECI.cpp +104 -0
  96. data/ext/zxing/zxing-cpp/core/src/zxing/common/CharacterSetECI.h +53 -0
  97. data/ext/zxing/zxing-cpp/core/src/zxing/common/Counted.h +140 -0
  98. data/ext/zxing/zxing-cpp/core/src/zxing/common/DecoderResult.cpp +46 -0
  99. data/ext/zxing/zxing-cpp/core/src/zxing/common/DecoderResult.h +51 -0
  100. data/ext/zxing/zxing-cpp/core/src/zxing/common/DetectorResult.cpp +39 -0
  101. data/ext/zxing/zxing-cpp/core/src/zxing/common/DetectorResult.h +43 -0
  102. data/ext/zxing/zxing-cpp/core/src/zxing/common/GlobalHistogramBinarizer.cpp +212 -0
  103. data/ext/zxing/zxing-cpp/core/src/zxing/common/GlobalHistogramBinarizer.h +48 -0
  104. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp +80 -0
  105. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleLuminanceSource.h +53 -0
  106. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp +81 -0
  107. data/ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.h +46 -0
  108. data/ext/zxing/zxing-cpp/core/src/zxing/common/GridSampler.cpp +122 -0
  109. data/ext/zxing/zxing-cpp/core/src/zxing/common/GridSampler.h +45 -0
  110. data/ext/zxing/zxing-cpp/core/src/zxing/common/HybridBinarizer.cpp +226 -0
  111. data/ext/zxing/zxing-cpp/core/src/zxing/common/HybridBinarizer.h +67 -0
  112. data/ext/zxing/zxing-cpp/core/src/zxing/common/IllegalArgumentException.cpp +27 -0
  113. data/ext/zxing/zxing-cpp/core/src/zxing/common/IllegalArgumentException.h +36 -0
  114. data/ext/zxing/zxing-cpp/core/src/zxing/common/PerspectiveTransform.cpp +107 -0
  115. data/ext/zxing/zxing-cpp/core/src/zxing/common/PerspectiveTransform.h +49 -0
  116. data/ext/zxing/zxing-cpp/core/src/zxing/common/Point.h +47 -0
  117. data/ext/zxing/zxing-cpp/core/src/zxing/common/Str.cpp +61 -0
  118. data/ext/zxing/zxing-cpp/core/src/zxing/common/Str.h +51 -0
  119. data/ext/zxing/zxing-cpp/core/src/zxing/common/StringUtils.cpp +198 -0
  120. data/ext/zxing/zxing-cpp/core/src/zxing/common/StringUtils.h +52 -0
  121. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/JavaMath.h +43 -0
  122. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/MathUtils.h +57 -0
  123. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/MonochromeRectangleDetector.cpp +174 -0
  124. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/MonochromeRectangleDetector.h +62 -0
  125. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/WhiteRectangleDetector.cpp +330 -0
  126. data/ext/zxing/zxing-cpp/core/src/zxing/common/detector/WhiteRectangleDetector.h +59 -0
  127. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGF.cpp +150 -0
  128. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGF.h +73 -0
  129. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGFPoly.cpp +218 -0
  130. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGFPoly.h +56 -0
  131. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.cpp +174 -0
  132. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.h +49 -0
  133. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.cpp +30 -0
  134. data/ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.h +33 -0
  135. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/DataMatrixReader.cpp +54 -0
  136. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/DataMatrixReader.h +45 -0
  137. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/Version.cpp +199 -0
  138. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/Version.h +87 -0
  139. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/BitMatrixParser.cpp +361 -0
  140. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/BitMatrixParser.h +59 -0
  141. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DataBlock.cpp +113 -0
  142. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DataBlock.h +49 -0
  143. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.cpp +416 -0
  144. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.h +104 -0
  145. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/Decoder.cpp +93 -0
  146. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/Decoder.h +49 -0
  147. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/CornerPoint.cpp +46 -0
  148. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/CornerPoint.h +43 -0
  149. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/Detector.cpp +446 -0
  150. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/Detector.h +94 -0
  151. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/DetectorException.cpp +23 -0
  152. data/ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/DetectorException.h +23 -0
  153. data/ext/zxing/zxing-cpp/core/src/zxing/multi/ByQuadrantReader.cpp +75 -0
  154. data/ext/zxing/zxing-cpp/core/src/zxing/multi/ByQuadrantReader.h +42 -0
  155. data/ext/zxing/zxing-cpp/core/src/zxing/multi/GenericMultipleBarcodeReader.cpp +137 -0
  156. data/ext/zxing/zxing-cpp/core/src/zxing/multi/GenericMultipleBarcodeReader.h +51 -0
  157. data/ext/zxing/zxing-cpp/core/src/zxing/multi/MultipleBarcodeReader.cpp +29 -0
  158. data/ext/zxing/zxing-cpp/core/src/zxing/multi/MultipleBarcodeReader.h +41 -0
  159. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/QRCodeMultiReader.cpp +58 -0
  160. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/QRCodeMultiReader.h +36 -0
  161. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiDetector.cpp +47 -0
  162. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiDetector.h +37 -0
  163. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiFinderPatternFinder.cpp +236 -0
  164. data/ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiFinderPatternFinder.h +47 -0
  165. data/ext/zxing/zxing-cpp/core/src/zxing/oned/CodaBarReader.cpp +340 -0
  166. data/ext/zxing/zxing-cpp/core/src/zxing/oned/CodaBarReader.h +57 -0
  167. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code128Reader.cpp +496 -0
  168. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code128Reader.h +48 -0
  169. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code39Reader.cpp +328 -0
  170. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code39Reader.h +63 -0
  171. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code93Reader.cpp +293 -0
  172. data/ext/zxing/zxing-cpp/core/src/zxing/oned/Code93Reader.h +58 -0
  173. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN13Reader.cpp +85 -0
  174. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN13Reader.h +49 -0
  175. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN8Reader.cpp +65 -0
  176. data/ext/zxing/zxing-cpp/core/src/zxing/oned/EAN8Reader.h +47 -0
  177. data/ext/zxing/zxing-cpp/core/src/zxing/oned/ITFReader.cpp +337 -0
  178. data/ext/zxing/zxing-cpp/core/src/zxing/oned/ITFReader.h +54 -0
  179. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatOneDReader.cpp +96 -0
  180. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatOneDReader.h +38 -0
  181. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatUPCEANReader.cpp +110 -0
  182. data/ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatUPCEANReader.h +41 -0
  183. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDReader.cpp +227 -0
  184. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDReader.h +81 -0
  185. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDResultPoint.cpp +28 -0
  186. data/ext/zxing/zxing-cpp/core/src/zxing/oned/OneDResultPoint.h +35 -0
  187. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCAReader.cpp +71 -0
  188. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCAReader.h +50 -0
  189. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEANReader.cpp +309 -0
  190. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEANReader.h +88 -0
  191. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEReader.cpp +146 -0
  192. data/ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEReader.h +47 -0
  193. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/PDF417Reader.cpp +170 -0
  194. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/PDF417Reader.h +49 -0
  195. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/BitMatrixParser.cpp +997 -0
  196. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/BitMatrixParser.h +84 -0
  197. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/DecodedBitStreamParser.cpp +563 -0
  198. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/DecodedBitStreamParser.h +84 -0
  199. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/Decoder.cpp +118 -0
  200. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/Decoder.h +62 -0
  201. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ErrorCorrection.cpp +214 -0
  202. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ErrorCorrection.h +71 -0
  203. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusGF.cpp +120 -0
  204. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusGF.h +72 -0
  205. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusPoly.cpp +284 -0
  206. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusPoly.h +68 -0
  207. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/Detector.cpp +664 -0
  208. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/Detector.h +106 -0
  209. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/LinesSampler.cpp +714 -0
  210. data/ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/LinesSampler.h +122 -0
  211. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.cpp +65 -0
  212. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.h +52 -0
  213. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/FormatInformation.cpp +117 -0
  214. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/FormatInformation.h +54 -0
  215. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/QRCodeReader.cpp +52 -0
  216. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/QRCodeReader.h +48 -0
  217. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/Version.cpp +560 -0
  218. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/Version.h +85 -0
  219. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.cpp +183 -0
  220. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.h +56 -0
  221. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataBlock.cpp +118 -0
  222. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataBlock.h +50 -0
  223. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataMask.cpp +159 -0
  224. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataMask.h +50 -0
  225. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.cpp +425 -0
  226. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.h +72 -0
  227. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Decoder.cpp +107 -0
  228. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Decoder.h +46 -0
  229. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Mode.cpp +90 -0
  230. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Mode.h +57 -0
  231. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPattern.cpp +47 -0
  232. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPattern.h +45 -0
  233. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.cpp +208 -0
  234. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.h +68 -0
  235. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/Detector.cpp +314 -0
  236. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/Detector.h +69 -0
  237. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPattern.cpp +69 -0
  238. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPattern.h +48 -0
  239. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.cpp +559 -0
  240. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h +76 -0
  241. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.cpp +41 -0
  242. data/ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.h +47 -0
  243. data/ext/zxing/zxing-cpp/core/tests/src/TestRunner.cpp +30 -0
  244. data/ext/zxing/zxing-cpp/core/tests/src/common/BitArrayTest.cpp +216 -0
  245. data/ext/zxing/zxing-cpp/core/tests/src/common/BitArrayTest.h +61 -0
  246. data/ext/zxing/zxing-cpp/core/tests/src/common/BitMatrixTest.cpp +106 -0
  247. data/ext/zxing/zxing-cpp/core/tests/src/common/BitMatrixTest.h +55 -0
  248. data/ext/zxing/zxing-cpp/core/tests/src/common/BitSourceTest.cpp +49 -0
  249. data/ext/zxing/zxing-cpp/core/tests/src/common/BitSourceTest.h +42 -0
  250. data/ext/zxing/zxing-cpp/core/tests/src/common/CountedTest.cpp +58 -0
  251. data/ext/zxing/zxing-cpp/core/tests/src/common/CountedTest.h +46 -0
  252. data/ext/zxing/zxing-cpp/core/tests/src/common/PerspectiveTransformTest.cpp +69 -0
  253. data/ext/zxing/zxing-cpp/core/tests/src/common/PerspectiveTransformTest.h +47 -0
  254. data/ext/zxing/zxing-cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.cpp +129 -0
  255. data/ext/zxing/zxing-cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.h +62 -0
  256. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.cpp +47 -0
  257. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.h +45 -0
  258. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/FormatInformationTest.cpp +88 -0
  259. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/FormatInformationTest.h +47 -0
  260. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/VersionTest.cpp +88 -0
  261. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/VersionTest.h +49 -0
  262. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/DataMaskTest.cpp +132 -0
  263. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/DataMaskTest.h +91 -0
  264. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/ModeTest.cpp +52 -0
  265. data/ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/ModeTest.h +47 -0
  266. data/ext/zxing/zxing.cc +224 -0
  267. data/lib/zxing.rb +50 -0
  268. data/lib/zxing/.gitignore +2 -0
  269. data/lib/zxing/aztec.rb +5 -0
  270. data/lib/zxing/aztec/aztec_reader.rb +14 -0
  271. data/lib/zxing/bad_image_exception.rb +4 -0
  272. data/lib/zxing/binarizer.rb +8 -0
  273. data/lib/zxing/binary_bitmap.rb +15 -0
  274. data/lib/zxing/checksum_exception.rb +4 -0
  275. data/lib/zxing/common.rb +7 -0
  276. data/lib/zxing/common/bit_matrix.rb +9 -0
  277. data/lib/zxing/common/hybrid_binarizer.rb +17 -0
  278. data/lib/zxing/common/illegal_argument_exception.rb +4 -0
  279. data/lib/zxing/datamatrix.rb +5 -0
  280. data/lib/zxing/datamatrix/data_matrix_reader.rb +14 -0
  281. data/lib/zxing/decodable.rb +11 -0
  282. data/lib/zxing/exception.rb +4 -0
  283. data/lib/zxing/ffi.rb +20 -0
  284. data/lib/zxing/ffi/aztec.rb +6 -0
  285. data/lib/zxing/ffi/aztec/aztec_reader.rb +9 -0
  286. data/lib/zxing/ffi/binarizer.rb +25 -0
  287. data/lib/zxing/ffi/binary_bitmap.rb +15 -0
  288. data/lib/zxing/ffi/common.rb +8 -0
  289. data/lib/zxing/ffi/common/bit_matrix.rb +12 -0
  290. data/lib/zxing/ffi/common/greyscale_luminance_source.rb +30 -0
  291. data/lib/zxing/ffi/common/hybrid_binarizer.rb +10 -0
  292. data/lib/zxing/ffi/datamatrix.rb +6 -0
  293. data/lib/zxing/ffi/datamatrix/data_matrix_reader.rb +9 -0
  294. data/lib/zxing/ffi/library.rb +102 -0
  295. data/lib/zxing/ffi/luminance_source.rb +18 -0
  296. data/lib/zxing/ffi/multi_format_reader.rb +9 -0
  297. data/lib/zxing/ffi/oned.rb +6 -0
  298. data/lib/zxing/ffi/oned/code_39_reader.rb +10 -0
  299. data/lib/zxing/ffi/qrcode.rb +8 -0
  300. data/lib/zxing/ffi/qrcode/decoder.rb +10 -0
  301. data/lib/zxing/ffi/qrcode/detector.rb +10 -0
  302. data/lib/zxing/ffi/reader.rb +58 -0
  303. data/lib/zxing/ffi/result.rb +23 -0
  304. data/lib/zxing/format_exception.rb +4 -0
  305. data/lib/zxing/illegal_argument_exception.rb +4 -0
  306. data/lib/zxing/image.rb +15 -0
  307. data/lib/zxing/luminance_source.rb +18 -0
  308. data/lib/zxing/multi_format_reader.rb +11 -0
  309. data/lib/zxing/not_found_exception.rb +4 -0
  310. data/lib/zxing/oned.rb +5 -0
  311. data/lib/zxing/oned/code_39_reader.rb +15 -0
  312. data/lib/zxing/qrcode.rb +8 -0
  313. data/lib/zxing/qrcode/decoder.rb +14 -0
  314. data/lib/zxing/qrcode/detector.rb +14 -0
  315. data/lib/zxing/qrcode/encoder.rb +8 -0
  316. data/lib/zxing/qrcode/encoder/byte_matrix.rb +18 -0
  317. data/lib/zxing/qrcode/encoder/encoder.rb +9 -0
  318. data/lib/zxing/qrcode/encoder/qrcode.rb +18 -0
  319. data/lib/zxing/reader.rb +8 -0
  320. data/lib/zxing/reader_exception.rb +4 -0
  321. data/lib/zxing/reed_solomon_exception.rb +2 -0
  322. data/lib/zxing/result.rb +18 -0
  323. data/lib/zxing/rmagick.rb +5 -0
  324. data/lib/zxing/rmagick/image.rb +104 -0
  325. data/lib/zxing/version.rb +33 -0
  326. data/test/qrcode.png +0 -0
  327. data/test/test_helper.rb +5 -0
  328. data/test/test_zxing.rb +58 -0
  329. data/test/vendor.rb +360 -0
  330. data/test/zxing/test_decodable.rb +38 -0
  331. data/zxing_cpp.gemspec +48 -0
  332. metadata +473 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b419584e04c824a4e3075c1a38e558753aaca225
4
+ data.tar.gz: d5775f7156f64249e2f3097c5df41872fdbacf96
5
+ SHA512:
6
+ metadata.gz: f96bf92589a3e14a42dfe36dacc0d2c439945cdf049ff97a69bbbddd5983c33a7f0ffae8a17c4026e3fddd687eb349f469b44ea19f9863c93c7e66a0e57c57bf
7
+ data.tar.gz: 09b88b47d439346d20a4a36666bf6b4d95839040d6a910a6bde11646f1fcfb7d8697f6614918ba5c9b3951abe8fd9dddf0760485df36689fa8b675fba100bdbc
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ .DS_Store
2
+ /.idea/
3
+ /.rbenv-version
4
+ /tmp
5
+ /lib/zxing/Makefile
6
+ /lib/zxing/zxing.so
7
+ /lib/zxing/zxing.bundle
8
+ /lib/zxing/objc/zxing.bundle
9
+ /pkg
10
+ /Gemfile.lock
11
+ /*.png
12
+ /*.jpg
13
+ *.o
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "vendor/zxing-cpp"]
2
+ path = ext/zxing/zxing-cpp
3
+ url = https://github.com/glassechidna/zxing-cpp.git
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,6 @@
1
+ === 0.1.0 / 2014-12-17
2
+
3
+ * Initial version forked from zxing.rb
4
+
5
+ * Wraps a forked version of the previously deprecated ZXing C++ library.
6
+ * Initial release focuses on decoding.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Manifest.txt ADDED
@@ -0,0 +1,331 @@
1
+ .gitignore
2
+ .gitmodules
3
+ CHANGELOG.rdoc
4
+ Gemfile
5
+ Manifest.txt
6
+ README.rdoc
7
+ Rakefile
8
+ bin/zxd
9
+ bin/zxe
10
+ ext/zxing/extconf.rb
11
+ ext/zxing/zxing-cpp
12
+ ext/zxing/zxing-cpp/.gitignore
13
+ ext/zxing/zxing-cpp/AUTHORS
14
+ ext/zxing/zxing-cpp/CMakeLists.txt
15
+ ext/zxing/zxing-cpp/COPYING
16
+ ext/zxing/zxing-cpp/NOTICE
17
+ ext/zxing/zxing-cpp/README.md
18
+ ext/zxing/zxing-cpp/cli/src/ImageReaderSource.cpp
19
+ ext/zxing/zxing-cpp/cli/src/ImageReaderSource.h
20
+ ext/zxing/zxing-cpp/cli/src/jpgd.cpp
21
+ ext/zxing/zxing-cpp/cli/src/jpgd.h
22
+ ext/zxing/zxing-cpp/cli/src/lodepng.cpp
23
+ ext/zxing/zxing-cpp/cli/src/lodepng.h
24
+ ext/zxing/zxing-cpp/cli/src/main.cpp
25
+ ext/zxing/zxing-cpp/cmake/FindCPPUNIT.cmake
26
+ ext/zxing/zxing-cpp/cmake/FindIconv.cmake
27
+ ext/zxing/zxing-cpp/core/src/bigint/.gitignore
28
+ ext/zxing/zxing-cpp/core/src/bigint/BigInteger.cc
29
+ ext/zxing/zxing-cpp/core/src/bigint/BigInteger.hh
30
+ ext/zxing/zxing-cpp/core/src/bigint/BigIntegerAlgorithms.cc
31
+ ext/zxing/zxing-cpp/core/src/bigint/BigIntegerAlgorithms.hh
32
+ ext/zxing/zxing-cpp/core/src/bigint/BigIntegerLibrary.hh
33
+ ext/zxing/zxing-cpp/core/src/bigint/BigIntegerUtils.cc
34
+ ext/zxing/zxing-cpp/core/src/bigint/BigIntegerUtils.hh
35
+ ext/zxing/zxing-cpp/core/src/bigint/BigUnsigned.cc
36
+ ext/zxing/zxing-cpp/core/src/bigint/BigUnsigned.hh
37
+ ext/zxing/zxing-cpp/core/src/bigint/BigUnsignedInABase.cc
38
+ ext/zxing/zxing-cpp/core/src/bigint/BigUnsignedInABase.hh
39
+ ext/zxing/zxing-cpp/core/src/bigint/ChangeLog
40
+ ext/zxing/zxing-cpp/core/src/bigint/Makefile
41
+ ext/zxing/zxing-cpp/core/src/bigint/NumberlikeArray.hh
42
+ ext/zxing/zxing-cpp/core/src/bigint/README
43
+ ext/zxing/zxing-cpp/core/src/win32/zxing/iconv.h
44
+ ext/zxing/zxing-cpp/core/src/win32/zxing/stdint.h
45
+ ext/zxing/zxing-cpp/core/src/win32/zxing/win_iconv.c
46
+ ext/zxing/zxing-cpp/core/src/zxing/BarcodeFormat.cpp
47
+ ext/zxing/zxing-cpp/core/src/zxing/BarcodeFormat.h
48
+ ext/zxing/zxing-cpp/core/src/zxing/Binarizer.cpp
49
+ ext/zxing/zxing-cpp/core/src/zxing/Binarizer.h
50
+ ext/zxing/zxing-cpp/core/src/zxing/BinaryBitmap.cpp
51
+ ext/zxing/zxing-cpp/core/src/zxing/BinaryBitmap.h
52
+ ext/zxing/zxing-cpp/core/src/zxing/ChecksumException.cpp
53
+ ext/zxing/zxing-cpp/core/src/zxing/ChecksumException.h
54
+ ext/zxing/zxing-cpp/core/src/zxing/DecodeHints.cpp
55
+ ext/zxing/zxing-cpp/core/src/zxing/DecodeHints.h
56
+ ext/zxing/zxing-cpp/core/src/zxing/Exception.cpp
57
+ ext/zxing/zxing-cpp/core/src/zxing/Exception.h
58
+ ext/zxing/zxing-cpp/core/src/zxing/FormatException.cpp
59
+ ext/zxing/zxing-cpp/core/src/zxing/FormatException.h
60
+ ext/zxing/zxing-cpp/core/src/zxing/IllegalStateException.h
61
+ ext/zxing/zxing-cpp/core/src/zxing/InvertedLuminanceSource.cpp
62
+ ext/zxing/zxing-cpp/core/src/zxing/InvertedLuminanceSource.h
63
+ ext/zxing/zxing-cpp/core/src/zxing/LuminanceSource.cpp
64
+ ext/zxing/zxing-cpp/core/src/zxing/LuminanceSource.h
65
+ ext/zxing/zxing-cpp/core/src/zxing/MultiFormatReader.cpp
66
+ ext/zxing/zxing-cpp/core/src/zxing/MultiFormatReader.h
67
+ ext/zxing/zxing-cpp/core/src/zxing/NotFoundException.h
68
+ ext/zxing/zxing-cpp/core/src/zxing/Reader.cpp
69
+ ext/zxing/zxing-cpp/core/src/zxing/Reader.h
70
+ ext/zxing/zxing-cpp/core/src/zxing/ReaderException.h
71
+ ext/zxing/zxing-cpp/core/src/zxing/Result.cpp
72
+ ext/zxing/zxing-cpp/core/src/zxing/Result.h
73
+ ext/zxing/zxing-cpp/core/src/zxing/ResultIO.cpp
74
+ ext/zxing/zxing-cpp/core/src/zxing/ResultPoint.cpp
75
+ ext/zxing/zxing-cpp/core/src/zxing/ResultPoint.h
76
+ ext/zxing/zxing-cpp/core/src/zxing/ResultPointCallback.cpp
77
+ ext/zxing/zxing-cpp/core/src/zxing/ResultPointCallback.h
78
+ ext/zxing/zxing-cpp/core/src/zxing/ZXing.h
79
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecDetectorResult.cpp
80
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecDetectorResult.h
81
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecReader.cpp
82
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/AztecReader.h
83
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/decoder/Decoder.cpp
84
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/decoder/Decoder.h
85
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/detector/Detector.cpp
86
+ ext/zxing/zxing-cpp/core/src/zxing/aztec/detector/Detector.h
87
+ ext/zxing/zxing-cpp/core/src/zxing/common/Array.h
88
+ ext/zxing/zxing-cpp/core/src/zxing/common/BitArray.cpp
89
+ ext/zxing/zxing-cpp/core/src/zxing/common/BitArray.h
90
+ ext/zxing/zxing-cpp/core/src/zxing/common/BitArrayIO.cpp
91
+ ext/zxing/zxing-cpp/core/src/zxing/common/BitMatrix.cpp
92
+ ext/zxing/zxing-cpp/core/src/zxing/common/BitMatrix.h
93
+ ext/zxing/zxing-cpp/core/src/zxing/common/BitSource.cpp
94
+ ext/zxing/zxing-cpp/core/src/zxing/common/BitSource.h
95
+ ext/zxing/zxing-cpp/core/src/zxing/common/CharacterSetECI.cpp
96
+ ext/zxing/zxing-cpp/core/src/zxing/common/CharacterSetECI.h
97
+ ext/zxing/zxing-cpp/core/src/zxing/common/Counted.h
98
+ ext/zxing/zxing-cpp/core/src/zxing/common/DecoderResult.cpp
99
+ ext/zxing/zxing-cpp/core/src/zxing/common/DecoderResult.h
100
+ ext/zxing/zxing-cpp/core/src/zxing/common/DetectorResult.cpp
101
+ ext/zxing/zxing-cpp/core/src/zxing/common/DetectorResult.h
102
+ ext/zxing/zxing-cpp/core/src/zxing/common/GlobalHistogramBinarizer.cpp
103
+ ext/zxing/zxing-cpp/core/src/zxing/common/GlobalHistogramBinarizer.h
104
+ ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp
105
+ ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleLuminanceSource.h
106
+ ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp
107
+ ext/zxing/zxing-cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.h
108
+ ext/zxing/zxing-cpp/core/src/zxing/common/GridSampler.cpp
109
+ ext/zxing/zxing-cpp/core/src/zxing/common/GridSampler.h
110
+ ext/zxing/zxing-cpp/core/src/zxing/common/HybridBinarizer.cpp
111
+ ext/zxing/zxing-cpp/core/src/zxing/common/HybridBinarizer.h
112
+ ext/zxing/zxing-cpp/core/src/zxing/common/IllegalArgumentException.cpp
113
+ ext/zxing/zxing-cpp/core/src/zxing/common/IllegalArgumentException.h
114
+ ext/zxing/zxing-cpp/core/src/zxing/common/PerspectiveTransform.cpp
115
+ ext/zxing/zxing-cpp/core/src/zxing/common/PerspectiveTransform.h
116
+ ext/zxing/zxing-cpp/core/src/zxing/common/Point.h
117
+ ext/zxing/zxing-cpp/core/src/zxing/common/Str.cpp
118
+ ext/zxing/zxing-cpp/core/src/zxing/common/Str.h
119
+ ext/zxing/zxing-cpp/core/src/zxing/common/StringUtils.cpp
120
+ ext/zxing/zxing-cpp/core/src/zxing/common/StringUtils.h
121
+ ext/zxing/zxing-cpp/core/src/zxing/common/detector/JavaMath.h
122
+ ext/zxing/zxing-cpp/core/src/zxing/common/detector/MathUtils.h
123
+ ext/zxing/zxing-cpp/core/src/zxing/common/detector/MonochromeRectangleDetector.cpp
124
+ ext/zxing/zxing-cpp/core/src/zxing/common/detector/MonochromeRectangleDetector.h
125
+ ext/zxing/zxing-cpp/core/src/zxing/common/detector/WhiteRectangleDetector.cpp
126
+ ext/zxing/zxing-cpp/core/src/zxing/common/detector/WhiteRectangleDetector.h
127
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGF.cpp
128
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGF.h
129
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGFPoly.cpp
130
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/GenericGFPoly.h
131
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.cpp
132
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonDecoder.h
133
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.cpp
134
+ ext/zxing/zxing-cpp/core/src/zxing/common/reedsolomon/ReedSolomonException.h
135
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/DataMatrixReader.cpp
136
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/DataMatrixReader.h
137
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/Version.cpp
138
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/Version.h
139
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/BitMatrixParser.cpp
140
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/BitMatrixParser.h
141
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DataBlock.cpp
142
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DataBlock.h
143
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.cpp
144
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/DecodedBitStreamParser.h
145
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/Decoder.cpp
146
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/decoder/Decoder.h
147
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/CornerPoint.cpp
148
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/CornerPoint.h
149
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/Detector.cpp
150
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/Detector.h
151
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/DetectorException.cpp
152
+ ext/zxing/zxing-cpp/core/src/zxing/datamatrix/detector/DetectorException.h
153
+ ext/zxing/zxing-cpp/core/src/zxing/multi/ByQuadrantReader.cpp
154
+ ext/zxing/zxing-cpp/core/src/zxing/multi/ByQuadrantReader.h
155
+ ext/zxing/zxing-cpp/core/src/zxing/multi/GenericMultipleBarcodeReader.cpp
156
+ ext/zxing/zxing-cpp/core/src/zxing/multi/GenericMultipleBarcodeReader.h
157
+ ext/zxing/zxing-cpp/core/src/zxing/multi/MultipleBarcodeReader.cpp
158
+ ext/zxing/zxing-cpp/core/src/zxing/multi/MultipleBarcodeReader.h
159
+ ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/QRCodeMultiReader.cpp
160
+ ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/QRCodeMultiReader.h
161
+ ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiDetector.cpp
162
+ ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiDetector.h
163
+ ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiFinderPatternFinder.cpp
164
+ ext/zxing/zxing-cpp/core/src/zxing/multi/qrcode/detector/MultiFinderPatternFinder.h
165
+ ext/zxing/zxing-cpp/core/src/zxing/oned/CodaBarReader.cpp
166
+ ext/zxing/zxing-cpp/core/src/zxing/oned/CodaBarReader.h
167
+ ext/zxing/zxing-cpp/core/src/zxing/oned/Code128Reader.cpp
168
+ ext/zxing/zxing-cpp/core/src/zxing/oned/Code128Reader.h
169
+ ext/zxing/zxing-cpp/core/src/zxing/oned/Code39Reader.cpp
170
+ ext/zxing/zxing-cpp/core/src/zxing/oned/Code39Reader.h
171
+ ext/zxing/zxing-cpp/core/src/zxing/oned/Code93Reader.cpp
172
+ ext/zxing/zxing-cpp/core/src/zxing/oned/Code93Reader.h
173
+ ext/zxing/zxing-cpp/core/src/zxing/oned/EAN13Reader.cpp
174
+ ext/zxing/zxing-cpp/core/src/zxing/oned/EAN13Reader.h
175
+ ext/zxing/zxing-cpp/core/src/zxing/oned/EAN8Reader.cpp
176
+ ext/zxing/zxing-cpp/core/src/zxing/oned/EAN8Reader.h
177
+ ext/zxing/zxing-cpp/core/src/zxing/oned/ITFReader.cpp
178
+ ext/zxing/zxing-cpp/core/src/zxing/oned/ITFReader.h
179
+ ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatOneDReader.cpp
180
+ ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatOneDReader.h
181
+ ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatUPCEANReader.cpp
182
+ ext/zxing/zxing-cpp/core/src/zxing/oned/MultiFormatUPCEANReader.h
183
+ ext/zxing/zxing-cpp/core/src/zxing/oned/OneDReader.cpp
184
+ ext/zxing/zxing-cpp/core/src/zxing/oned/OneDReader.h
185
+ ext/zxing/zxing-cpp/core/src/zxing/oned/OneDResultPoint.cpp
186
+ ext/zxing/zxing-cpp/core/src/zxing/oned/OneDResultPoint.h
187
+ ext/zxing/zxing-cpp/core/src/zxing/oned/UPCAReader.cpp
188
+ ext/zxing/zxing-cpp/core/src/zxing/oned/UPCAReader.h
189
+ ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEANReader.cpp
190
+ ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEANReader.h
191
+ ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEReader.cpp
192
+ ext/zxing/zxing-cpp/core/src/zxing/oned/UPCEReader.h
193
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/PDF417Reader.cpp
194
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/PDF417Reader.h
195
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/BitMatrixParser.cpp
196
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/BitMatrixParser.h
197
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/DecodedBitStreamParser.cpp
198
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/DecodedBitStreamParser.h
199
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/Decoder.cpp
200
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/Decoder.h
201
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ErrorCorrection.cpp
202
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ErrorCorrection.h
203
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusGF.cpp
204
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusGF.h
205
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusPoly.cpp
206
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/decoder/ec/ModulusPoly.h
207
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/Detector.cpp
208
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/Detector.h
209
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/LinesSampler.cpp
210
+ ext/zxing/zxing-cpp/core/src/zxing/pdf417/detector/LinesSampler.h
211
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.cpp
212
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/ErrorCorrectionLevel.h
213
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/FormatInformation.cpp
214
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/FormatInformation.h
215
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/QRCodeReader.cpp
216
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/QRCodeReader.h
217
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/Version.cpp
218
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/Version.h
219
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.cpp
220
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/BitMatrixParser.h
221
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataBlock.cpp
222
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataBlock.h
223
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataMask.cpp
224
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DataMask.h
225
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.cpp
226
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/DecodedBitStreamParser.h
227
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Decoder.cpp
228
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Decoder.h
229
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Mode.cpp
230
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/decoder/Mode.h
231
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPattern.cpp
232
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPattern.h
233
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.cpp
234
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/AlignmentPatternFinder.h
235
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/Detector.cpp
236
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/Detector.h
237
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPattern.cpp
238
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPattern.h
239
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.cpp
240
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternFinder.h
241
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.cpp
242
+ ext/zxing/zxing-cpp/core/src/zxing/qrcode/detector/FinderPatternInfo.h
243
+ ext/zxing/zxing-cpp/core/tests/src/TestRunner.cpp
244
+ ext/zxing/zxing-cpp/core/tests/src/common/BitArrayTest.cpp
245
+ ext/zxing/zxing-cpp/core/tests/src/common/BitArrayTest.h
246
+ ext/zxing/zxing-cpp/core/tests/src/common/BitMatrixTest.cpp
247
+ ext/zxing/zxing-cpp/core/tests/src/common/BitMatrixTest.h
248
+ ext/zxing/zxing-cpp/core/tests/src/common/BitSourceTest.cpp
249
+ ext/zxing/zxing-cpp/core/tests/src/common/BitSourceTest.h
250
+ ext/zxing/zxing-cpp/core/tests/src/common/CountedTest.cpp
251
+ ext/zxing/zxing-cpp/core/tests/src/common/CountedTest.h
252
+ ext/zxing/zxing-cpp/core/tests/src/common/PerspectiveTransformTest.cpp
253
+ ext/zxing/zxing-cpp/core/tests/src/common/PerspectiveTransformTest.h
254
+ ext/zxing/zxing-cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.cpp
255
+ ext/zxing/zxing-cpp/core/tests/src/common/reedsolomon/ReedSolomonTest.h
256
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.cpp
257
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/ErrorCorrectionLevelTest.h
258
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/FormatInformationTest.cpp
259
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/FormatInformationTest.h
260
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/VersionTest.cpp
261
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/VersionTest.h
262
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/DataMaskTest.cpp
263
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/DataMaskTest.h
264
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/ModeTest.cpp
265
+ ext/zxing/zxing-cpp/core/tests/src/qrcode/decoder/ModeTest.h
266
+ ext/zxing/zxing.cc
267
+ lib/zxing.rb
268
+ lib/zxing/.gitignore
269
+ lib/zxing/aztec.rb
270
+ lib/zxing/aztec/aztec_reader.rb
271
+ lib/zxing/bad_image_exception.rb
272
+ lib/zxing/binarizer.rb
273
+ lib/zxing/binary_bitmap.rb
274
+ lib/zxing/checksum_exception.rb
275
+ lib/zxing/common.rb
276
+ lib/zxing/common/bit_matrix.rb
277
+ lib/zxing/common/hybrid_binarizer.rb
278
+ lib/zxing/common/illegal_argument_exception.rb
279
+ lib/zxing/datamatrix.rb
280
+ lib/zxing/datamatrix/data_matrix_reader.rb
281
+ lib/zxing/decodable.rb
282
+ lib/zxing/exception.rb
283
+ lib/zxing/ffi.rb
284
+ lib/zxing/ffi/aztec.rb
285
+ lib/zxing/ffi/aztec/aztec_reader.rb
286
+ lib/zxing/ffi/binarizer.rb
287
+ lib/zxing/ffi/binary_bitmap.rb
288
+ lib/zxing/ffi/common.rb
289
+ lib/zxing/ffi/common/bit_matrix.rb
290
+ lib/zxing/ffi/common/greyscale_luminance_source.rb
291
+ lib/zxing/ffi/common/hybrid_binarizer.rb
292
+ lib/zxing/ffi/datamatrix.rb
293
+ lib/zxing/ffi/datamatrix/data_matrix_reader.rb
294
+ lib/zxing/ffi/library.rb
295
+ lib/zxing/ffi/luminance_source.rb
296
+ lib/zxing/ffi/multi_format_reader.rb
297
+ lib/zxing/ffi/oned.rb
298
+ lib/zxing/ffi/oned/code_39_reader.rb
299
+ lib/zxing/ffi/qrcode.rb
300
+ lib/zxing/ffi/qrcode/decoder.rb
301
+ lib/zxing/ffi/qrcode/detector.rb
302
+ lib/zxing/ffi/reader.rb
303
+ lib/zxing/ffi/result.rb
304
+ lib/zxing/format_exception.rb
305
+ lib/zxing/illegal_argument_exception.rb
306
+ lib/zxing/image.rb
307
+ lib/zxing/luminance_source.rb
308
+ lib/zxing/multi_format_reader.rb
309
+ lib/zxing/not_found_exception.rb
310
+ lib/zxing/oned.rb
311
+ lib/zxing/oned/code_39_reader.rb
312
+ lib/zxing/qrcode.rb
313
+ lib/zxing/qrcode/decoder.rb
314
+ lib/zxing/qrcode/detector.rb
315
+ lib/zxing/qrcode/encoder.rb
316
+ lib/zxing/qrcode/encoder/byte_matrix.rb
317
+ lib/zxing/qrcode/encoder/encoder.rb
318
+ lib/zxing/qrcode/encoder/qrcode.rb
319
+ lib/zxing/reader.rb
320
+ lib/zxing/reader_exception.rb
321
+ lib/zxing/reed_solomon_exception.rb
322
+ lib/zxing/result.rb
323
+ lib/zxing/rmagick.rb
324
+ lib/zxing/rmagick/image.rb
325
+ lib/zxing/version.rb
326
+ test/qrcode.png
327
+ test/test_helper.rb
328
+ test/test_zxing.rb
329
+ test/vendor.rb
330
+ test/zxing/test_decodable.rb
331
+ zxing_cpp.gemspec
data/README.rdoc ADDED
@@ -0,0 +1,138 @@
1
+ = zxing_cpp
2
+
3
+ * https://github.com/glassechidna/zxing_cpp.rb
4
+
5
+ == DESCRIPTION:
6
+
7
+ zxing_cpp is a Ruby interface for the ZXing C++ barcode and QR code library.
8
+
9
+ It is a light-weight fork of zxing.rb (https://github.com/smparkes/zxing.rb).
10
+
11
+ == FEATURES:
12
+
13
+ * Wraps the ZXing C++ library (https://github.com/glassechidna/zxing-cpp)
14
+
15
+ == SUPPORT:
16
+
17
+ The {bug tracker}[https://github.com/glassechidna/zxing_cpp.rb/issues] is available here:
18
+
19
+ https://github.com/glassechidna/zxing_cpp.rb/issues
20
+
21
+ == SYNOPSIS:
22
+
23
+ require 'zxing'
24
+ result = ZXing.decode "myimage.png"
25
+
26
+ zxing.rb also comes with a command that decodes images: zxd:
27
+
28
+ $ zxd filename.png
29
+ <decoded contents>
30
+
31
+ +zxd+ can take multiple arguments and the arguments can be URLs.
32
+
33
+ zxing.rb provides access to many of the classes of ZXing classes like
34
+ readers, luminance sources, binarizers, so you can mix and match your
35
+ own applications much as you would with a native Java or C++ app. See
36
+ +zxd+ and +test/vendor.rb+ for examples.
37
+
38
+ NOTE: There is a proto-encoder (zxe) in the works but the C wrapper code
39
+ is yet to be written.
40
+
41
+ === Using the ZXing module
42
+
43
+ require 'zxing'
44
+
45
+ # You can decode a URL...
46
+ ZXing.decode 'http://2d-code.co.uk/images/bbc-logo-in-qr-code.gif'
47
+
48
+ # ... or a file path...
49
+ ZXing.decode '/Users/ecin/qrcode.png'
50
+
51
+ # ... or a File object...
52
+ ZXing.decode File.open('qrcode.png')
53
+
54
+ # ... or anything that returns a URL or file path when #path or #to_s
55
+ # is called on it.
56
+ class Image
57
+ attr_reader :path
58
+ def initialize(path); @path = path end
59
+ end
60
+
61
+ image = Image.new('qrcode.png')
62
+ ZXing.decode image
63
+
64
+ # #decode returns nil if it can't decode the image.
65
+ ZXing.decode 'image_without_a_code.png'
66
+ # => nil
67
+
68
+ # #decode! will raise an error if it can't decode the image.
69
+ ZXing.decode! 'image_without_a_code.png'
70
+ # => NativeException
71
+
72
+ # Feel free to include ZXing to shorten the call.
73
+ include ZXing
74
+
75
+ decode 'qrcode.png'
76
+
77
+ === Including the Decodable module
78
+
79
+ require 'zxing/decodable'
80
+
81
+ class File
82
+ include Decodable
83
+ end
84
+
85
+ file = File.open('qrcode.png')
86
+ file.decode
87
+
88
+ == REQUIREMENTS:
89
+
90
+ * Ruby (>= 1.9)
91
+ * CMake (>= 2.8.0)
92
+
93
+ zxing.rb bundles a version of the ZXing C++ library (zxing-cpp).
94
+
95
+ == INSTALL:
96
+
97
+ The gem has yet to be submitted to RubyGems. For now you must clone
98
+ the repo and execute:
99
+
100
+ rake gem
101
+ gem install pkg/zxing_cpp-0.1.0.gem
102
+
103
+ or add it zxing_cpp to your Gemfile:
104
+
105
+ gem 'zxing_cpp', git: 'https://github.com/glassechidna/zxing_cpp.rb.git', submodules: true
106
+
107
+ == DEVELOPMENT:
108
+
109
+ rake test
110
+
111
+ <tt>rake test</tt> runs the zxing.rb unit tests.
112
+
113
+ == LICENSE:
114
+
115
+ (The MIT License)
116
+
117
+ Copyright (c) 2011 {Steven Parkes}[http://github.com/smparkes]
118
+
119
+ Copyright (c) 2014 {Benjamin Dobell}[http://github.com/Benjamin-Dobell], {Glass Echidna Pty Ltd}[http://github.com/glassechidna]
120
+
121
+ Permission is hereby granted, free of charge, to any person obtaining
122
+ a copy of this software and associated documentation files (the
123
+ 'Software'), to deal in the Software without restriction, including
124
+ without limitation the rights to use, copy, modify, merge, publish,
125
+ distribute, sublicense, and/or sell copies of the Software, and to
126
+ permit persons to whom the Software is furnished to do so, subject to
127
+ the following conditions:
128
+
129
+ The above copyright notice and this permission notice shall be
130
+ included in all copies or substantial portions of the Software.
131
+
132
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
133
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
134
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
135
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
136
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
137
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
138
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.