zxing-cpp 3.1.1__tar.gz → 3.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/CMakeLists.txt +10 -18
  2. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/PKG-INFO +13 -2
  3. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/README.md +11 -0
  4. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/CMakeLists.txt +6 -6
  5. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/Version.h.in +1 -0
  6. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Barcode.cpp +55 -21
  7. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Barcode.h +5 -2
  8. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BarcodeData.h +2 -4
  9. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BarcodeFormat.cpp +14 -3
  10. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BarcodeFormat.h +3 -0
  11. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BinaryBitmap.cpp +4 -1
  12. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitMatrix.h +3 -3
  13. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitMatrixCursor.h +16 -9
  14. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitMatrixIO.cpp +32 -20
  15. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitMatrixIO.h +4 -1
  16. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ConcentricFinder.cpp +19 -17
  17. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ConcentricFinder.h +2 -1
  18. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Content.cpp +69 -156
  19. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/CreateBarcode.cpp +9 -12
  20. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/CreateBarcode.h +4 -1
  21. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ECI.h +2 -2
  22. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Error.cpp +2 -2
  23. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/GTIN.cpp +1 -1
  24. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/GridSampler.cpp +6 -12
  25. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/HybridBinarizer.cpp +96 -14
  26. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ImageView.h +6 -2
  27. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/JSON.h +1 -1
  28. zxing_cpp-3.2.0/core/src/LocalGrid.cpp +432 -0
  29. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/LocalGrid.h +81 -16
  30. zxing_cpp-3.2.0/core/src/Log.h +160 -0
  31. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Matrix.h +4 -4
  32. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Pattern.h +4 -0
  33. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Point.h +8 -0
  34. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Quadrilateral.h +6 -2
  35. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ReadBarcode.cpp +16 -10
  36. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ReaderOptions.h +1 -3
  37. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/RegressionLine.h +2 -8
  38. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/TextDecoder.cpp +35 -3
  39. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/TextEncoder.cpp +8 -6
  40. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Utf.cpp +74 -66
  41. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Utf.h +2 -0
  42. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/WriteBarcode.cpp +46 -63
  43. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXAlgorithms.h +26 -16
  44. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXingC.cpp +5 -4
  45. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXingC.h +12 -7
  46. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXingCpp.h +1 -1
  47. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXingQt.h +5 -2
  48. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZDecoder.cpp +10 -3
  49. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZDetector.cpp +49 -48
  50. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZDetectorResult.h +7 -3
  51. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMDecoder.cpp +30 -17
  52. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMDetector.cpp +62 -77
  53. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMHighLevelEncoder.cpp +1 -1
  54. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/librscpp/poly.h +2 -1
  55. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci.c +2 -2
  56. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_sb.h +22 -22
  57. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/maxicode/MCDecoder.cpp +28 -19
  58. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode128Reader.cpp +6 -3
  59. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode39Reader.cpp +3 -1
  60. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarCommon.h +5 -4
  61. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarLimitedReader.cpp +6 -17
  62. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarReader.cpp +1 -1
  63. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODTelepenReader.cpp +6 -9
  64. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/MicroPDFReader.cpp +41 -34
  65. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDF417.cpp +22 -5
  66. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDF417.h +0 -11
  67. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDecoder.cpp +54 -13
  68. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDecoder.h +1 -1
  69. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFEncoder.cpp +3 -3
  70. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFHighLevelEncoder.cpp +1 -1
  71. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFReader.cpp +7 -17
  72. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFScanningDecoder.cpp +2 -2
  73. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFScanningDecoder.h +1 -1
  74. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRBitMatrixParser.cpp +4 -1
  75. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRCodecMode.cpp +1 -1
  76. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRCodecMode.h +1 -0
  77. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRDataBlock.cpp +2 -2
  78. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRDecoder.cpp +23 -11
  79. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRDetector.cpp +142 -74
  80. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRECB.h +4 -9
  81. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QREncoder.cpp +3 -3
  82. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRErrorCorrectionLevel.cpp +6 -8
  83. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRErrorCorrectionLevel.h +3 -1
  84. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRReader.cpp +5 -19
  85. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRVersion.cpp +7 -4
  86. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRVersion.h +2 -2
  87. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/pyproject.toml +4 -5
  88. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/test.py +10 -1
  89. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zxing.cmake +3 -1
  90. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zxing.cpp +27 -13
  91. zxing_cpp-3.1.1/core/src/LocalGrid.cpp +0 -242
  92. zxing_cpp-3.1.1/core/src/LogMatrix.h +0 -105
  93. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/.gitignore +0 -0
  94. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/LICENSE +0 -0
  95. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/ZXingConfig.cmake.in +0 -0
  96. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BinaryBitmap.h +0 -0
  97. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitArray.cpp +0 -0
  98. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitArray.h +0 -0
  99. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitMatrix.cpp +0 -0
  100. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitSource.cpp +0 -0
  101. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/BitSource.h +0 -0
  102. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ByteArray.h +0 -0
  103. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/CharacterSet.cpp +0 -0
  104. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/CharacterSet.h +0 -0
  105. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Content.h +0 -0
  106. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ContentType.h +0 -0
  107. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/DecoderResult.h +0 -0
  108. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/DetectorResult.h +0 -0
  109. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ECI.cpp +0 -0
  110. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Error.h +0 -0
  111. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Flags.h +0 -0
  112. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/GTIN.h +0 -0
  113. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/GlobalHistogramBinarizer.cpp +0 -0
  114. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/GlobalHistogramBinarizer.h +0 -0
  115. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/GridSampler.h +0 -0
  116. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/HRI.cpp +0 -0
  117. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/HRI.h +0 -0
  118. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/HybridBinarizer.h +0 -0
  119. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/JSON.cpp +0 -0
  120. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/MultiFormatReader.cpp +0 -0
  121. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/MultiFormatReader.h +0 -0
  122. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/MultiFormatWriter.cpp +0 -0
  123. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/MultiFormatWriter.h +0 -0
  124. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/PerspectiveTransform.cpp +0 -0
  125. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/PerspectiveTransform.h +0 -0
  126. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Range.h +0 -0
  127. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ReadBarcode.h +0 -0
  128. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/Reader.h +0 -0
  129. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ReedSolomon.cpp +0 -0
  130. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ReedSolomon.h +0 -0
  131. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ResultPoint.cpp +0 -0
  132. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ResultPoint.h +0 -0
  133. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/StdGenerator.h +0 -0
  134. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/StdPrint.h +0 -0
  135. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/StdScope.h +0 -0
  136. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/StructuredAppend.h +0 -0
  137. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/SymbologyIdentifier.h +0 -0
  138. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/TextDecoder.h +0 -0
  139. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/TextEncoder.h +0 -0
  140. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ThresholdBinarizer.h +0 -0
  141. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/TritMatrix.h +0 -0
  142. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/WhiteRectDetector.cpp +0 -0
  143. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/WhiteRectDetector.h +0 -0
  144. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/WriteBarcode.h +0 -0
  145. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXConfig.h +0 -0
  146. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXTestSupport.h +0 -0
  147. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXVersion.h +0 -0
  148. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/ZXingCpp.cpp +0 -0
  149. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZDecoder.h +0 -0
  150. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZDetector.h +0 -0
  151. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZEncoder.cpp +0 -0
  152. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZEncoder.h +0 -0
  153. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZEncodingState.h +0 -0
  154. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZHighLevelEncoder.cpp +0 -0
  155. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZHighLevelEncoder.h +0 -0
  156. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZReader.cpp +0 -0
  157. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZReader.h +0 -0
  158. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZToken.cpp +0 -0
  159. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZToken.h +0 -0
  160. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZWriter.cpp +0 -0
  161. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/aztec/AZWriter.h +0 -0
  162. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMBitLayout.cpp +0 -0
  163. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMBitLayout.h +0 -0
  164. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMDataBlock.cpp +0 -0
  165. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMDataBlock.h +0 -0
  166. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMDecoder.h +0 -0
  167. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMDetector.h +0 -0
  168. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMECEncoder.cpp +0 -0
  169. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMECEncoder.h +0 -0
  170. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMEncoderContext.h +0 -0
  171. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMHighLevelEncoder.h +0 -0
  172. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMReader.cpp +0 -0
  173. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMReader.h +0 -0
  174. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMSymbolInfo.cpp +0 -0
  175. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMSymbolInfo.h +0 -0
  176. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMSymbolShape.h +0 -0
  177. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMVersion.cpp +0 -0
  178. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMVersion.h +0 -0
  179. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMWriter.cpp +0 -0
  180. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/datamatrix/DMWriter.h +0 -0
  181. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/librscpp/README.md +0 -0
  182. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/librscpp/decode.h +0 -0
  183. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/librscpp/encode.h +0 -0
  184. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/librscpp/field.h +0 -0
  185. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/2of5inter.c +0 -0
  186. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/2of5inter_based.c +0 -0
  187. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/aztec.c +0 -0
  188. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/aztec.h +0 -0
  189. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/big5.h +0 -0
  190. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/codabar.c +0 -0
  191. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/code.c +0 -0
  192. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/code128.c +0 -0
  193. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/code128.h +0 -0
  194. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/common.c +0 -0
  195. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/common.h +0 -0
  196. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/dmatrix.c +0 -0
  197. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/dmatrix.h +0 -0
  198. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/dxfilmedge.c +0 -0
  199. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/eci.c +0 -0
  200. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/eci.h +0 -0
  201. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/eci_sb.h +0 -0
  202. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/filemem.c +0 -0
  203. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/filemem.h +0 -0
  204. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/fonts/normal_woff2.h +0 -0
  205. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/fonts/upcean_woff2.h +0 -0
  206. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/gb18030.h +0 -0
  207. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/gb2312.h +0 -0
  208. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/gbk.h +0 -0
  209. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/general_field.c +0 -0
  210. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/general_field.h +0 -0
  211. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/gs1.c +0 -0
  212. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/gs1.h +0 -0
  213. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/gs1_lint.h +0 -0
  214. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/iso3166.h +0 -0
  215. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/iso4217.h +0 -0
  216. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/ksx1001.h +0 -0
  217. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/large.c +0 -0
  218. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/large.h +0 -0
  219. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/library.c +0 -0
  220. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/maxicode.c +0 -0
  221. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/maxicode.h +0 -0
  222. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/medical.c +0 -0
  223. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/output.c +0 -0
  224. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/output.h +0 -0
  225. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/pdf417.c +0 -0
  226. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/pdf417.h +0 -0
  227. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/pdf417_tabs.h +0 -0
  228. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/qr.c +0 -0
  229. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/qr.h +0 -0
  230. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/raster.c +0 -0
  231. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/raster_font.h +0 -0
  232. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/reedsol.c +0 -0
  233. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/reedsol.h +0 -0
  234. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/reedsol_logs.h +0 -0
  235. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/rss.c +0 -0
  236. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/rss.h +0 -0
  237. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/sjis.h +0 -0
  238. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/stubs.c +0 -0
  239. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/svg.c +0 -0
  240. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/telepen.c +0 -0
  241. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/upcean.c +0 -0
  242. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/vector.c +0 -0
  243. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/zfiletypes.h +0 -0
  244. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/zint.h +0 -0
  245. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzint/zintconfig.h +0 -0
  246. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/README.md +0 -0
  247. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci.h +0 -0
  248. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_big5.h +0 -0
  249. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_common.h +0 -0
  250. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_gb18030.h +0 -0
  251. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_gb2312.h +0 -0
  252. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_gbk.h +0 -0
  253. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_ksx1001.h +0 -0
  254. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/libzueci/zueci_sjis.h +0 -0
  255. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/maxicode/MCBitMatrixParser.cpp +0 -0
  256. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/maxicode/MCBitMatrixParser.h +0 -0
  257. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/maxicode/MCDecoder.h +0 -0
  258. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/maxicode/MCReader.cpp +0 -0
  259. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/maxicode/MCReader.h +0 -0
  260. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCodabarReader.cpp +0 -0
  261. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCodabarReader.h +0 -0
  262. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCodabarWriter.cpp +0 -0
  263. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCodabarWriter.h +0 -0
  264. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode128Patterns.h +0 -0
  265. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode128Reader.h +0 -0
  266. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode128Writer.cpp +0 -0
  267. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode128Writer.h +0 -0
  268. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode39Reader.h +0 -0
  269. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode39Writer.cpp +0 -0
  270. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode39Writer.h +0 -0
  271. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode93Patterns.h +0 -0
  272. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode93Reader.cpp +0 -0
  273. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode93Reader.h +0 -0
  274. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode93Writer.cpp +0 -0
  275. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODCode93Writer.h +0 -0
  276. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDXFilmEdgeReader.cpp +0 -0
  277. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDXFilmEdgeReader.h +0 -0
  278. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarCommon.cpp +0 -0
  279. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarExpandedBitDecoder.cpp +0 -0
  280. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarExpandedBitDecoder.h +0 -0
  281. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarExpandedReader.cpp +0 -0
  282. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarExpandedReader.h +0 -0
  283. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarLimitedReader.h +0 -0
  284. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODDataBarReader.h +0 -0
  285. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODEAN13Writer.cpp +0 -0
  286. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODEAN13Writer.h +0 -0
  287. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODEAN8Writer.cpp +0 -0
  288. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODEAN8Writer.h +0 -0
  289. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODITFReader.cpp +0 -0
  290. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODITFReader.h +0 -0
  291. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODITFWriter.cpp +0 -0
  292. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODITFWriter.h +0 -0
  293. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODMultiUPCEANReader.cpp +0 -0
  294. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODMultiUPCEANReader.h +0 -0
  295. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODReader.cpp +0 -0
  296. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODReader.h +0 -0
  297. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODRowReader.h +0 -0
  298. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODTelepenReader.h +0 -0
  299. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODUPCAWriter.cpp +0 -0
  300. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODUPCAWriter.h +0 -0
  301. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODUPCEANCommon.cpp +0 -0
  302. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODUPCEANCommon.h +0 -0
  303. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODUPCEWriter.cpp +0 -0
  304. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODUPCEWriter.h +0 -0
  305. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODWriterHelper.cpp +0 -0
  306. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/oned/ODWriterHelper.h +0 -0
  307. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/MicroPDFReader.h +0 -0
  308. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFBarcodeMetadata.h +0 -0
  309. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFBarcodeValue.cpp +0 -0
  310. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFBarcodeValue.h +0 -0
  311. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFBoundingBox.cpp +0 -0
  312. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFBoundingBox.h +0 -0
  313. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFCodeword.h +0 -0
  314. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFCodewordDecoder.cpp +0 -0
  315. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFCodewordDecoder.h +0 -0
  316. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFCompaction.h +0 -0
  317. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFCustomData.h +0 -0
  318. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDetectionResult.cpp +0 -0
  319. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDetectionResult.h +0 -0
  320. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDetectionResultColumn.cpp +0 -0
  321. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDetectionResultColumn.h +0 -0
  322. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDetector.cpp +0 -0
  323. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFDetector.h +0 -0
  324. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFEncoder.h +0 -0
  325. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFHighLevelEncoder.h +0 -0
  326. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFReader.h +0 -0
  327. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFWriter.cpp +0 -0
  328. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/PDFWriter.h +0 -0
  329. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/ZXBigInteger.cpp +0 -0
  330. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/ZXBigInteger.h +0 -0
  331. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/pdf417/ZXNullable.h +0 -0
  332. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRBitMatrixParser.h +0 -0
  333. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRDataBlock.h +0 -0
  334. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRDataMask.h +0 -0
  335. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRDecoder.h +0 -0
  336. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRDetector.h +0 -0
  337. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QREncodeResult.h +0 -0
  338. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QREncoder.h +0 -0
  339. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRFormatInformation.cpp +0 -0
  340. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRFormatInformation.h +0 -0
  341. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRMaskUtil.cpp +0 -0
  342. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRMaskUtil.h +0 -0
  343. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRMatrixUtil.cpp +0 -0
  344. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRMatrixUtil.h +0 -0
  345. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRReader.h +0 -0
  346. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRWriter.cpp +0 -0
  347. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/src/qrcode/QRWriter.h +0 -0
  348. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/version.rc.in +0 -0
  349. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/core/zxing.pc.in +0 -0
  350. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/demo_reader.py +0 -0
  351. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/demo_writer.py +0 -0
  352. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/init.py +0 -0
  353. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/2of5.c +0 -0
  354. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/2of5inter.c +0 -0
  355. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/2of5inter_based.c +0 -0
  356. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/CMakeLists.txt +0 -0
  357. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/DEVELOPER +0 -0
  358. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/Makefile.mingw +0 -0
  359. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/auspost.c +0 -0
  360. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/aztec.c +0 -0
  361. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/aztec.h +0 -0
  362. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/bc412.c +0 -0
  363. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/big5.h +0 -0
  364. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/bmp.c +0 -0
  365. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/bmp.h +0 -0
  366. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/channel.c +0 -0
  367. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/channel_precalcs.h +0 -0
  368. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/codabar.c +0 -0
  369. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/codablock.c +0 -0
  370. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code.c +0 -0
  371. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code1.c +0 -0
  372. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code1.h +0 -0
  373. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code11.c +0 -0
  374. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code128.c +0 -0
  375. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code128.h +0 -0
  376. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code128_based.c +0 -0
  377. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code16k.c +0 -0
  378. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code49.c +0 -0
  379. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/code49.h +0 -0
  380. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/common.c +0 -0
  381. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/common.h +0 -0
  382. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/composite.c +0 -0
  383. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/composite.h +0 -0
  384. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/dllversion.c +0 -0
  385. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/dmatrix.c +0 -0
  386. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/dmatrix.h +0 -0
  387. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/dmatrix_trace.h +0 -0
  388. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/dotcode.c +0 -0
  389. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/dxfilmedge.c +0 -0
  390. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/eci.c +0 -0
  391. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/eci.h +0 -0
  392. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/eci_sb.h +0 -0
  393. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/emf.c +0 -0
  394. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/emf.h +0 -0
  395. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/filemem.c +0 -0
  396. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/filemem.h +0 -0
  397. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/fonts/OCRB-16.bdf +0 -0
  398. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/fonts/OCRB-18.bdf +0 -0
  399. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/fonts/normal_ttf.h +0 -0
  400. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/fonts/normal_woff2.h +0 -0
  401. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/fonts/upcean_ttf.h +0 -0
  402. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/fonts/upcean_woff2.h +0 -0
  403. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gb18030.h +0 -0
  404. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gb2312.h +0 -0
  405. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gbk.h +0 -0
  406. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/general_field.c +0 -0
  407. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/general_field.h +0 -0
  408. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gif.c +0 -0
  409. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gridmtx.c +0 -0
  410. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gridmtx.h +0 -0
  411. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gs1.c +0 -0
  412. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gs1.h +0 -0
  413. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/gs1_lint.h +0 -0
  414. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/hanxin.c +0 -0
  415. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/hanxin.h +0 -0
  416. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/imail.c +0 -0
  417. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/iso3166.h +0 -0
  418. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/iso4217.h +0 -0
  419. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/ksx1001.h +0 -0
  420. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/large.c +0 -0
  421. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/large.h +0 -0
  422. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/library.c +0 -0
  423. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/libzint.rc +0 -0
  424. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/mailmark.c +0 -0
  425. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/maxicode.c +0 -0
  426. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/maxicode.h +0 -0
  427. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/medical.c +0 -0
  428. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/output.c +0 -0
  429. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/output.h +0 -0
  430. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/pcx.c +0 -0
  431. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/pcx.h +0 -0
  432. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/pdf417.c +0 -0
  433. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/pdf417.h +0 -0
  434. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/pdf417_tabs.h +0 -0
  435. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/pdf417_trace.h +0 -0
  436. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/plessey.c +0 -0
  437. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/png.c +0 -0
  438. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/postal.c +0 -0
  439. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/ps.c +0 -0
  440. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/qr.c +0 -0
  441. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/qr.h +0 -0
  442. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/raster.c +0 -0
  443. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/raster_font.h +0 -0
  444. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/reedsol.c +0 -0
  445. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/reedsol.h +0 -0
  446. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/reedsol_logs.h +0 -0
  447. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/rss.c +0 -0
  448. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/rss.h +0 -0
  449. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/sjis.h +0 -0
  450. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/svg.c +0 -0
  451. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/telepen.c +0 -0
  452. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/tif.c +0 -0
  453. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/tif.h +0 -0
  454. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/tif_lzw.h +0 -0
  455. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/ultra.c +0 -0
  456. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/upcean.c +0 -0
  457. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/vector.c +0 -0
  458. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/zfiletypes.h +0 -0
  459. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/zint.h +0 -0
  460. {zxing_cpp-3.1.1 → zxing_cpp-3.2.0}/zint/backend/zintconfig.h +0 -0
@@ -1,18 +1,15 @@
1
- cmake_minimum_required(VERSION 3.18)
1
+ cmake_minimum_required(VERSION 3.21)
2
2
  project(ZXingPython)
3
3
 
4
- # check if we are called from the top-level ZXing project
5
- get_directory_property(hasParent PARENT_DIRECTORY)
6
- if (NOT hasParent)
4
+ if (PROJECT_IS_TOP_LEVEL)
7
5
  # TODO: replace with symlinks once https://github.com/scikit-build/scikit-build-core/issues/801 is resolved
8
6
  message(STATUS "Copying files from parent folder needed for sdist")
9
7
  foreach(NAME zxing.cmake LICENSE)
10
- if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${NAME}")
11
- execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
12
- "${CMAKE_CURRENT_SOURCE_DIR}/../../${NAME}"
13
- "${CMAKE_CURRENT_SOURCE_DIR}/${NAME}"
14
- )
15
- endif()
8
+ file(COPY_FILE
9
+ "${CMAKE_CURRENT_SOURCE_DIR}/../../${NAME}"
10
+ "${CMAKE_CURRENT_SOURCE_DIR}/${NAME}"
11
+ ONLY_IF_DIFFERENT
12
+ )
16
13
  endforeach()
17
14
 
18
15
  set(CMAKE_CXX_STANDARD 20) # required here for the module itself
@@ -21,14 +18,9 @@ if (NOT hasParent)
21
18
  option (ZXING_READERS "Build with reader support (decoders)" ON)
22
19
  set (ZXING_WRITERS "NEW" CACHE STRING "Build with old and/or new writer (encoder) backend (OFF/ON/OLD/NEW)")
23
20
  set (ZXING_DEPENDENCIES "AUTO" CACHE STRING "Fetch from github or use locally installed (AUTO/GITHUB/LOCAL)")
24
- option (ZXING_EXPERIMENTAL_API "Build with experimental API" ON)
25
21
 
26
- set(CORE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/core)
27
- if(IS_SYMLINK ${CORE_PATH})
28
- # This is needed because otherwise GCC resolves the symlink which causes paths to randomly
29
- # be prefixed by /core or by /wrappers/python/core depending on include order.
30
- set(CORE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../core)
31
- endif()
22
+ # resolve the symlink so GCC doesn't randomly prefix paths with /core or /wrappers/python/core
23
+ file(REAL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/core" CORE_PATH)
32
24
 
33
25
  if(EXISTS ${CORE_PATH})
34
26
  add_subdirectory(${CORE_PATH} ZXing EXCLUDE_FROM_ALL)
@@ -42,7 +34,7 @@ endif()
42
34
  find_package(Python 3.10
43
35
  REQUIRED COMPONENTS Interpreter Development.Module
44
36
  OPTIONAL_COMPONENTS Development.SABIModule)
45
- zxing_add_package(nanobind nanobind https://github.com/wjakob/nanobind.git v2.11.0)
37
+ zxing_add_package(nanobind nanobind https://github.com/wjakob/nanobind.git v3.1.0)
46
38
 
47
39
  nanobind_add_module(zxingcpp STABLE_ABI FREE_THREADED zxing.cpp)
48
40
  target_link_libraries(zxingcpp PRIVATE ZXing::ZXing)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zxing-cpp
3
- Version: 3.1.1
3
+ Version: 3.2.0
4
4
  Summary: Python bindings for the zxing-cpp barcode library
5
5
  Keywords: barcode
6
6
  Author-Email: zxing-cpp community <zxingcpp@gmail.com>
@@ -13,7 +13,7 @@ Classifier: Topic :: Multimedia :: Graphics
13
13
  Project-URL: Homepage, https://github.com/zxing-cpp/zxing-cpp
14
14
  Project-URL: Repository, https://github.com/zxing-cpp/zxing-cpp.git
15
15
  Project-URL: Issues, https://github.com/zxing-cpp/zxing-cpp/issues
16
- Requires-Python: >=3.9
16
+ Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # Python bindings for zxing-cpp
@@ -54,6 +54,17 @@ if len(barcodes) == 0:
54
54
  print("Could not find any barcode.")
55
55
  ```
56
56
 
57
+ The `read_barcodes` function can accept images in various formats, including OpenCV, Pillow, and Qt images,
58
+ as well as NumPy arrays with dtype `uint8`. Grayscale arrays can have shape `(height, width)` or
59
+ `(height, width, 1)`. Three-channel arrays are interpreted as BGR, matching OpenCV's default `imread` output.
60
+ To explicitly specify the image buffer memory layout including the number of channels, the shape and the stride
61
+ of any given memory view / array, you can use the `ImageView` class:
62
+
63
+ ```python
64
+ view = zxingcpp.ImageView(memoryview(img), width, height, zxingcpp.ImageFormat.RGBA, row_stride, pix_stride)
65
+ barcodes = zxingcpp.read_barcodes(view)
66
+ ```
67
+
57
68
  ### Writing barcodes
58
69
 
59
70
  ```python
@@ -36,6 +36,17 @@ if len(barcodes) == 0:
36
36
  print("Could not find any barcode.")
37
37
  ```
38
38
 
39
+ The `read_barcodes` function can accept images in various formats, including OpenCV, Pillow, and Qt images,
40
+ as well as NumPy arrays with dtype `uint8`. Grayscale arrays can have shape `(height, width)` or
41
+ `(height, width, 1)`. Three-channel arrays are interpreted as BGR, matching OpenCV's default `imread` output.
42
+ To explicitly specify the image buffer memory layout including the number of channels, the shape and the stride
43
+ of any given memory view / array, you can use the `ImageView` class:
44
+
45
+ ```python
46
+ view = zxingcpp.ImageView(memoryview(img), width, height, zxingcpp.ImageFormat.RGBA, row_stride, pix_stride)
47
+ barcodes = zxingcpp.read_barcodes(view)
48
+ ```
49
+
39
50
  ### Writing barcodes
40
51
 
41
52
  ```python
@@ -1,10 +1,11 @@
1
1
  cmake_minimum_required(VERSION 3.16)
2
2
 
3
- project (ZXing VERSION "3.1.1")
3
+ project (ZXing VERSION "3.2.0")
4
4
  set (ZXING_VERSION_SUFFIX "") # e.g. "-rc1"
5
5
  set (ZXING_SONAME 4) # see https://github.com/zxing-cpp/zxing-cpp/issues/333
6
6
 
7
7
  option (ZXING_USE_BUNDLED_ZINT "Use the bundled libzint for barcode creation/writing" ON)
8
+ option (ZXING_ENABLE_UNICODE "Enable UTF-8 to/from ECI character-set conversion" ON)
8
9
  foreach(format 1D AZTEC DATAMATRIX MAXICODE PDF417 QRCODE)
9
10
  option ("ZXING_ENABLE_${format}" "Enable support for ${format} barcodes" ON)
10
11
  endforeach()
@@ -162,7 +163,7 @@ if (ZXING_READERS)
162
163
  src/GlobalHistogramBinarizer.cpp
163
164
  src/GridSampler.h
164
165
  src/GridSampler.cpp
165
- src/LogMatrix.h
166
+ src/Log.h
166
167
  src/LocalGrid.h
167
168
  src/LocalGrid.cpp
168
169
  src/HybridBinarizer.h
@@ -485,7 +486,6 @@ source_group (Sources\\qrcode FILES ${QRCODE_FILES})
485
486
 
486
487
  set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
487
488
  set(THREADS_PREFER_PTHREAD_FLAG TRUE)
488
- find_package(Threads REQUIRED)
489
489
 
490
490
  add_library (ZXing
491
491
  ${COMMON_FILES}
@@ -509,8 +509,6 @@ target_compile_options (ZXing
509
509
 
510
510
  target_compile_features(ZXing PUBLIC cxx_std_17)
511
511
 
512
- target_link_libraries (ZXing PRIVATE Threads::Threads)
513
-
514
512
  if (ZXING_READERS OR ZXING_WRITERS_OLD)
515
513
  set (LIBZUECI_FILES
516
514
  src/libzueci/zueci.c
@@ -520,7 +518,9 @@ if (ZXING_READERS OR ZXING_WRITERS_OLD)
520
518
  COMPILE_FLAGS "$<$<NOT:$<BOOL:${ZXING_READERS}>>:-DZUECI_EMBED_NO_TO_UTF> $<$<NOT:$<BOOL:${ZXING_WRITERS_OLD}>>:-DZUECI_EMBED_NO_TO_ECI>"
521
519
  SKIP_PRECOMPILE_HEADERS ON
522
520
  )
523
- target_sources(ZXing PRIVATE ${LIBZUECI_FILES})
521
+ if (ZXING_ENABLE_UNICODE)
522
+ target_sources(ZXing PRIVATE ${LIBZUECI_FILES})
523
+ endif()
524
524
  source_group (Sources\\libzueci FILES ${LIBZUECI_FILES})
525
525
 
526
526
  set (LIBRSCPP_FILES
@@ -15,6 +15,7 @@
15
15
  #cmakedefine01 ZXING_ENABLE_MAXICODE
16
16
  #cmakedefine01 ZXING_ENABLE_PDF417
17
17
  #cmakedefine01 ZXING_ENABLE_QRCODE
18
+ #cmakedefine01 ZXING_ENABLE_UNICODE
18
19
 
19
20
  #cmakedefine ZXING_EXPERIMENTAL_API
20
21
  #cmakedefine ZXING_USE_ZINT
@@ -52,6 +52,11 @@ const Position& Barcode::position() const
52
52
  return d->position;
53
53
  }
54
54
 
55
+ int Barcode::rotation() const
56
+ {
57
+ return d->rotation();
58
+ }
59
+
55
60
  const std::vector<uint8_t>& Barcode::bytes() const
56
61
  {
57
62
  return d->content.bytes;
@@ -84,7 +89,7 @@ bool Barcode::hasECI() const
84
89
 
85
90
  int Barcode::orientation() const
86
91
  {
87
- return narrow_cast<int>(std::lround(d->position.orientation() * 180 / std::numbers::pi));
92
+ return rotation();
88
93
  }
89
94
 
90
95
  bool Barcode::isMirrored() const
@@ -148,16 +153,41 @@ std::string Barcode::extra(std::string_view key) const
148
153
  if (key == "ALL") {
149
154
  if (format() == BarcodeFormat::None)
150
155
  return {};
151
- auto res =
152
- StrCat("{", JsonProp("Text", text(TextMode::Plain)), JsonProp("HRI", text(TextMode::HRI)),
153
- JsonProp("TextECI", text(TextMode::ECI)), JsonProp("Bytes", text(TextMode::Hex)),
154
- JsonProp("Identifier", symbologyIdentifier()), JsonProp("Format", Name(format())),
155
- JsonProp("Symbology", Name(Symbology(format()))), JsonProp("ContentType", isValid() ? ToString(contentType()) : ""),
156
- JsonProp("Position", ToString(position())), JsonProp("HasECI", hasECI()), JsonProp("IsMirrored", isMirrored()),
157
- JsonProp("IsInverted", isInverted()), d->extra, JsonProp("Error", ToString(error())));
156
+ auto res = StrCat(
157
+ "{", JsonProp("Text", text(TextMode::Plain)), JsonProp("HRI", text(TextMode::HRI)),
158
+ JsonProp("TextECI", text(TextMode::ECI)), JsonProp("Bytes", text(TextMode::Hex)),
159
+ JsonProp("Identifier", symbologyIdentifier()), JsonProp("Format", Name(format())),
160
+ JsonProp("Symbology", Name(Symbology(format()))), JsonProp("ContentType", isValid() ? ToString(contentType()) : ""),
161
+ JsonProp("Position", ToString(position())), JsonProp("Rotation", rotation()), JsonProp("HasECI", hasECI()),
162
+ JsonProp("IsMirrored", isMirrored()), JsonProp("IsInverted", isInverted()), JsonProp("ReaderInit", readerInit()),
163
+ JsonProp("IsPartOfSequence", isPartOfSequence()), JsonProp("SequenceSize", sequenceSize(), -1),
164
+ JsonProp("SequenceIndex", sequenceIndex(), -1), JsonProp("SequenceId", sequenceId()),
165
+ JsonProp("IsLastInSequence", isLastInSequence()), d->extra, JsonProp("Error", ToString(error())));
158
166
  res.back() = '}';
159
167
  return res;
160
168
  }
169
+
170
+ // clang-format off
171
+ if (key == "TextPlain") return text(TextMode::Plain);
172
+ if (key == "TextHRI") return text(TextMode::HRI);
173
+ if (key == "TextECI") return text(TextMode::ECI);
174
+ if (key == "TextEscaped") return text(TextMode::Escaped);
175
+ if (key == "TextHex") return text(TextMode::Hex);
176
+ if (key == "Format") return ToString(format());
177
+ if (key == "ContentType") return ToString(contentType());
178
+ if (key == "Position") return ToString(position());
179
+ if (key == "Rotation") return std::to_string(rotation());
180
+ if (key == "HasECI") return hasECI() ? "true" : "false";
181
+ if (key == "Identifier") return symbologyIdentifier();
182
+ if (key == "IsMirrored") return isMirrored() ? "true" : "false";
183
+ if (key == "IsInverted") return isInverted() ? "true" : "false";
184
+ if (key == "IsPartOfSequence") return isPartOfSequence() ? "true" : "false";
185
+ if (key == "IsLastInSequence") return isLastInSequence() ? "true" : "false";
186
+ if (key == "SequenceId") return sequenceId();
187
+ if (key == "SequenceIndex") return std::to_string(sequenceIndex());
188
+ if (key == "SequenceSize") return std::to_string(sequenceSize());
189
+ // clang-format on
190
+
161
191
  return d->extra.empty() ? ""
162
192
  : key.empty() ? StrCat("{", std::string_view(d->extra).substr(0, d->extra.size() - 1), "}") // remove trailing ','
163
193
  : JsonGet<std::string>(d->extra, key).value_or(""); // make sure JsonUnescape() is called
@@ -183,7 +213,7 @@ bool BarcodeData::operator==(const BarcodeData& o) const
183
213
  return IsInside(Center(o.position), position);
184
214
  }
185
215
 
186
- if (content.bytes != o.content.bytes || error != o.error || orientation() != o.orientation())
216
+ if (content.bytes != o.content.bytes || error != o.error || rotation() != o.rotation())
187
217
  return false;
188
218
 
189
219
  if (lineCount > 1 && o.lineCount > 1)
@@ -219,17 +249,21 @@ Barcode MergeStructuredAppendSequence(const Barcodes& barcodes)
219
249
  std::list<Barcode> allBarcodes(barcodes.begin(), barcodes.end());
220
250
  allBarcodes.sort([](const Barcode& r1, const Barcode& r2) { return r1.sequenceIndex() < r2.sequenceIndex(); });
221
251
 
222
- Barcode res = allBarcodes.front();
223
- for (auto i = std::next(allBarcodes.begin()); i != allBarcodes.end(); ++i)
224
- res.d->content.append(i->d->content);
225
-
226
- res.d->position = {};
227
- res.d->sai.index = -1;
228
-
229
- if (allBarcodes.back().sequenceSize() != Size(allBarcodes) ||
230
- !std::all_of(allBarcodes.begin(), allBarcodes.end(),
231
- [&](Barcode& it) { return it.sequenceId() == allBarcodes.front().sequenceId(); }))
232
- res.d->error = FormatError("sequenceIDs not matching during structured append sequence merging");
252
+ const BarcodeData* bd = allBarcodes.front().d.get();
253
+ Barcode res(BarcodeData{.format = bd->format, .sai = bd->sai});
254
+ res.d->sai.index = -1; // mark as merged sequence
255
+ res.d->content.symbology = bd->content.symbology;
256
+ for (const auto& barcode : allBarcodes)
257
+ res.d->content.append(barcode.d->content);
258
+
259
+ if (allBarcodes.back().sequenceSize() != Size(allBarcodes))
260
+ res.d->error = FormatError("Incomplete sequence during structured append sequence merging");
261
+ else if (!std::all_of(allBarcodes.begin(), allBarcodes.end(),
262
+ [&](Barcode& it) { return it.format() == allBarcodes.front().format(); }))
263
+ res.d->error = FormatError("Format not matching during structured append sequence merging");
264
+ else if (!std::all_of(allBarcodes.begin(), allBarcodes.end(),
265
+ [&](Barcode& it) { return it.sequenceId() == allBarcodes.front().sequenceId(); }))
266
+ res.d->error = FormatError("SequenceIDs not matching during structured append sequence merging");
233
267
 
234
268
  return res;
235
269
  }
@@ -239,7 +273,7 @@ Barcodes MergeStructuredAppendSequences(const Barcodes& barcodes)
239
273
  std::map<std::string, Barcodes> sas;
240
274
  for (auto& barcode : barcodes) {
241
275
  if (barcode.isPartOfSequence())
242
- sas[barcode.sequenceId()].push_back(barcode);
276
+ sas[StrCat(EnumName(barcode.format()), barcode.sequenceId())].push_back(barcode);
243
277
  }
244
278
 
245
279
  Barcodes res;
@@ -113,8 +113,8 @@ public:
113
113
  /// bottomLeft).
114
114
  const Position& position() const;
115
115
 
116
- /// Returns the orientation of the barcode in degrees, see also Position::orientation()
117
- int orientation() const;
116
+ /// Returns the rotation of the barcode in degrees.
117
+ int rotation() const;
118
118
 
119
119
  /// Returns whether the symbol is mirrored (currently only supported by QRCode and DataMatrix).
120
120
  bool isMirrored() const;
@@ -162,6 +162,9 @@ public:
162
162
  std::string extra(std::string_view key = "") const;
163
163
 
164
164
  /// @cond DEPRECATED
165
+ /// Returns the rotation of the barcode in degrees
166
+ [[deprecated("Use rotation() instead")]] int orientation() const; // deprecated in v3.2
167
+
165
168
  /// Returns the error correction level of the symbol (empty string if not applicable).
166
169
  // [[deprecated ("use extra(BarcodeExtra::ECLevel) instead")]]
167
170
  std::string ecLevel() const { return extra(BarcodeExtra::ECLevel); }
@@ -16,7 +16,6 @@
16
16
  #include "StructuredAppend.h"
17
17
 
18
18
  #include <memory>
19
- #include <mutex>
20
19
  #include <numbers>
21
20
  #include <string>
22
21
  #include <vector>
@@ -37,7 +36,7 @@ namespace ZXing {
37
36
 
38
37
  struct BarcodeData
39
38
  {
40
- Content content;
39
+ Content content = {};
41
40
  Error error = {};
42
41
  Position position = {};
43
42
  BarcodeFormat format = BarcodeFormat::None;
@@ -46,7 +45,6 @@ struct BarcodeData
46
45
  BitMatrix symbol = {};
47
46
  #ifdef ZXING_USE_ZINT
48
47
  unique_zint_symbol zint = {};
49
- mutable std::unique_ptr<std::mutex> zintMutex = {};
50
48
  #endif
51
49
  TextMode defaultTextMode = TextMode::HRI;
52
50
  int lineCount = 0;
@@ -57,7 +55,7 @@ struct BarcodeData
57
55
 
58
56
  inline bool isValid() const { return format != BarcodeFormat::None && !content.bytes.empty() && !error; }
59
57
 
60
- inline int orientation() const { return narrow_cast<int>(std::lround(position.orientation() * 180 / std::numbers::pi)); }
58
+ inline int rotation() const { return narrow_cast<int>(std::lround(position.rotation() * 180 / std::numbers::pi)); }
61
59
  };
62
60
 
63
61
  using BarcodesData = std::vector<BarcodeData>;
@@ -32,6 +32,17 @@ std::string_view Name(BarcodeFormat format)
32
32
  };
33
33
  }
34
34
 
35
+ std::string_view EnumName(BarcodeFormat format)
36
+ {
37
+ switch (format) {
38
+ #define X(NAME, SYM, VAR, FLAGS, ZINT, ENABLED, HRI) \
39
+ case BarcodeFormat(ZX_BCF_ID(SYM, VAR)): return #NAME;
40
+ ZX_BCF_LIST(X)
41
+ #undef X
42
+ default: return "Unknown";
43
+ };
44
+ }
45
+
35
46
  BarcodeFormat BarcodeFormatFromString(std::string_view str)
36
47
  {
37
48
  if (str.size() < 3)
@@ -141,15 +152,15 @@ BarcodeFormats BarcodeFormats::list(const BarcodeFormats& filter)
141
152
  return res;
142
153
  }
143
154
  for (auto f : filter) {
144
- // printf("Filter for: %s\n", IdStr(f).c_str());
155
+ // log_l("Filter for: %s", IdStr(f).c_str());
145
156
  #define X(NAME, SYM, VAR, FLAGS, ZINT, ENABLED, HRI) \
146
157
  if (ENABLED && SYM != '*' \
147
158
  && (SymbologyKey(f) == '*' ? BarcodeFormat(ZX_BCF_ID(SYM, VAR)) & f \
148
159
  : SYM == SymbologyKey(f) && (VariantKey(f) == ' ' || VariantKey(f) == VAR))) \
149
- res.push_back(BarcodeFormat(ZX_BCF_ID(SYM, VAR))); //, printf("adding: %c %c\n", SYM, VAR);
160
+ res.push_back(BarcodeFormat(ZX_BCF_ID(SYM, VAR))); //, log_l("adding: %c %c", SYM, VAR);
150
161
  ZX_BCF_LIST(X)
151
162
  #undef X
152
- // printf("N: %d\n", (int)res.size());
163
+ // log_l("N: %d", (int)res.size());
153
164
  }
154
165
  return res;
155
166
  }
@@ -134,6 +134,9 @@ BarcodeFormat Symbology(BarcodeFormat format);
134
134
  /// Returns the human-readable name of the given barcode format.
135
135
  std::string_view Name(BarcodeFormat format);
136
136
 
137
+ /// Returns the C++ enum identifier of the given barcode format.
138
+ std::string_view EnumName(BarcodeFormat format);
139
+
137
140
  /// Test if left hand side (e == element) is 'inside' right hand side (s == set) (e.g. MicroQRCode <= QRCode).
138
141
  bool operator<=(BarcodeFormat e, BarcodeFormat s);
139
142
 
@@ -78,7 +78,7 @@ void BinaryBitmap::invert()
78
78
  template <typename F>
79
79
  void SumFilter(const BitMatrix& in, BitMatrix& out, F func)
80
80
  {
81
- assert(in.height() >= 3);
81
+ assert(in.height() >= 3 && in.width() >= 3);
82
82
 
83
83
  const auto* in0 = in.row(0).begin();
84
84
  const auto* in1 = in.row(1).begin();
@@ -95,6 +95,9 @@ void SumFilter(const BitMatrix& in, BitMatrix& out, F func)
95
95
 
96
96
  void BinaryBitmap::close()
97
97
  {
98
+ if (_buffer.width() < 3 || _buffer.height() < 3)
99
+ return;
100
+
98
101
  if (_cache->matrix) {
99
102
  auto& matrix = *const_cast<BitMatrix*>(_cache->matrix.get());
100
103
  BitMatrix tmp(matrix.width(), matrix.height());
@@ -115,11 +115,11 @@ public:
115
115
  */
116
116
  void setRegion(int left, int top, int width, int height);
117
117
 
118
- void rotate90();
118
+ void rotate90(); // Rotate the matrix 90 degrees counter clockwise
119
119
 
120
- void rotate180();
120
+ void rotate180(); // Rotate the matrix 180 degrees
121
121
 
122
- void mirror();
122
+ void mirror(); // Mirror the matrix horizontally
123
123
 
124
124
  /**
125
125
  * Find the rectangle that contains all non-white pixels. Useful for detection of 'pure' barcodes.
@@ -105,13 +105,14 @@ public:
105
105
  this_t turnedBack() const noexcept { return {*img, p, back()}; }
106
106
 
107
107
  /**
108
- * @brief stepToEdge advances cursor to one step behind the next (or n-th) edge.
108
+ * @brief stepToEdge advances cursor to one step behind the next (or n-th) edge or outside the image/range.
109
109
  * @param nth number of edges to pass
110
110
  * @param range max number of steps to take
111
111
  * @param backup whether or not to backup one step so we land in front of the edge
112
- * @return number of steps taken or 0 if moved outside of range/image
112
+ * @param acceptImageBorder whether or not to consider the image border as a valid edge
113
+ * @return number of steps taken or 0 if moved outside of range
113
114
  */
114
- int stepToEdge(int nth = 1, int range = 0, bool backup = false)
115
+ int stepToEdge(int nth = 1, int range = 0, bool backup = false, bool acceptImageBorder = true)
115
116
  {
116
117
  int steps = 0;
117
118
  auto lv = testAt(p);
@@ -119,15 +120,13 @@ public:
119
120
  while (nth && (!range || steps < range) && lv.isValid()) {
120
121
  ++steps;
121
122
  auto v = testAt(p + steps * d);
122
- if (lv != v) {
123
- lv = v;
124
- --nth;
125
- }
123
+ nth -= lv != v;
124
+ lv = v;
126
125
  }
127
- if (backup)
126
+ if (backup && nth == 0)
128
127
  --steps;
129
128
  p += steps * d;
130
- return steps * (nth == 0);
129
+ return steps * (nth == 0 && (acceptImageBorder || lv.isValid()));
131
130
  }
132
131
 
133
132
  bool stepAlongEdge(Direction dir, bool skipCorner = false)
@@ -178,6 +177,8 @@ public:
178
177
  }
179
178
  if (min && max) {
180
179
  min -= Reduce(res);
180
+ if (min > 0)
181
+ res = {};
181
182
  int steps = -1;
182
183
  while (min > 0 && max && (steps = stepToEdge(2, max))) {
183
184
  max -= steps;
@@ -208,6 +209,7 @@ class FastEdgeToEdgeCounter
208
209
  public:
209
210
  FastEdgeToEdgeCounter(const BitMatrixCursorI& cur)
210
211
  {
212
+ assert(cur.isIn());
211
213
  stride = cur.d.y * cur.img->width() + cur.d.x;
212
214
  p = cur.img->row(cur.p.y).begin() + cur.p.x;
213
215
 
@@ -220,6 +222,11 @@ public:
220
222
  {
221
223
  int maxSteps = std::min(stepsToBorder, range);
222
224
  int steps = 0;
225
+
226
+ if (maxSteps < 0) // already outside the image
227
+ return 0;
228
+
229
+ // Move forward until we a) find a different pixel value or b) step outside the image or c) reach the range limit.
223
230
  do {
224
231
  if (++steps > maxSteps) {
225
232
  if (maxSteps == stepsToBorder)
@@ -6,12 +6,41 @@
6
6
 
7
7
  #include "BitMatrixIO.h"
8
8
 
9
+ #include "ZXAlgorithms.h"
10
+
9
11
  #include <array>
10
12
  #include <fstream>
11
- #include <sstream>
12
13
 
13
14
  namespace ZXing {
14
15
 
16
+ std::string ToSVG(ImageView iv, bool invert)
17
+ {
18
+ if (!iv.data())
19
+ return {};
20
+
21
+ // see https://stackoverflow.com/questions/10789059/create-qr-code-in-vector-image/60638350#60638350
22
+
23
+ // don't use std::ostringstream, see #1151
24
+ std::string res = StrCat(R"(<?xml version="1.0" encoding="UTF-8"?>)", "\n",
25
+ R"(<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 )", std::to_string(iv.width()),
26
+ ' ', std::to_string(iv.height()), R"(" stroke="none">)", "\n", "<path d=\"");
27
+ res.reserve(res.size() + iv.width() * iv.height() * 16);
28
+
29
+ for (int y = 0; y < iv.height(); ++y)
30
+ for (int x = 0; x < iv.width(); ++x)
31
+ if ((*iv.data(x, y) == 0) ^ invert) {
32
+ res += "M";
33
+ res += std::to_string(x);
34
+ res += ",";
35
+ res += std::to_string(y);
36
+ res += "h1v1h-1z";
37
+ }
38
+
39
+ res += "\"/>\n</svg>";
40
+
41
+ return res;
42
+ }
43
+
15
44
  std::string ToString(const BitMatrix& matrix, char one, char zero, bool addSpace, bool printAsCString)
16
45
  {
17
46
  std::string result;
@@ -48,26 +77,9 @@ std::string ToString(const BitMatrix& matrix, bool inverted)
48
77
  return res;
49
78
  }
50
79
 
51
- std::string ToSVG(const BitMatrix& matrix)
80
+ std::string ToSVG(const BitMatrix& matrix, bool invert)
52
81
  {
53
- // see https://stackoverflow.com/questions/10789059/create-qr-code-in-vector-image/60638350#60638350
54
-
55
- const int width = matrix.width();
56
- const int height = matrix.height();
57
- std::ostringstream out;
58
-
59
- out << R"(<?xml version="1.0" encoding="UTF-8"?>)" << "\n"
60
- << R"(<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 )" << width << ' ' << height << R"(" stroke="none">)"
61
- << "\n<path d=\"";
62
-
63
- for (int y = 0; y < height; ++y)
64
- for (int x = 0; x < width; ++x)
65
- if (matrix.get(x, y))
66
- out << "M" << x << "," << y << "h1v1h-1z";
67
-
68
- out << "\"/>\n</svg>";
69
-
70
- return out.str();
82
+ return ToSVG(ImageView(matrix.row(0).begin(), matrix.width(), matrix.height(), ImageFormat::Lum), invert);
71
83
  }
72
84
 
73
85
  BitMatrix ParseBitMatrix(const std::string& str, char one, bool expectSpace)
@@ -9,12 +9,15 @@
9
9
  #include <string>
10
10
 
11
11
  #include "BitMatrix.h"
12
+ #include "ImageView.h"
12
13
 
13
14
  namespace ZXing {
14
15
 
16
+ std::string ToSVG(ImageView iv, bool invert = false);
17
+
15
18
  std::string ToString(const BitMatrix& matrix, bool inverted = false);
16
19
  std::string ToString(const BitMatrix& matrix, char one, char zero = ' ', bool addSpace = true, bool printAsCString = false);
17
- std::string ToSVG(const BitMatrix& matrix);
20
+ std::string ToSVG(const BitMatrix& matrix, bool invert = false);
18
21
  BitMatrix ParseBitMatrix(const std::string& str, char one = 'X', bool expectSpace = true);
19
22
  void SaveAsPBM(const BitMatrix& matrix, const std::string& filename, int quietZone = 0);
20
23