Commit graph

38 commits

Author SHA1 Message Date
flyashi 52f0822076 C++ port: minor code and comment cleanups all over the place
git-svn-id: https://zxing.googlecode.com/svn/trunk@1494 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-29 18:50:33 +00:00
flyashi d2499c38bb C++: ITFReader.cpp was throwing wrong exception
ITFReader.cpp:75 was catching and re-throwing Exception instead of ReaderException, causing scanning to terminate prematurely in some cases (i.e. core/test/data/blackbox/ean13-1/23.JPG). The calling function, MultiFormatOneDReader::doDecode, is only catching ReaderException's. An Exception would be passed all the way up to the caller, even if scanning hasn't finished yet for other decoders for other rows.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1493 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-27 23:02:28 +00:00
flyashi 348ebf3adc C++: binarizer updates
- ported the HybridBinarizer from Java for improved 2D binarization
 - updated BinaryBitmap to report if it supports cropping and rotation
 - test binary updates to compare both binarizers like it used to

git-svn-id: https://zxing.googlecode.com/svn/trunk@1489 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-19 20:56:17 +00:00
flyashi 8266b61f17 C++: added GreyscaleLuminanceSource
It takes a block of greyscale data, width, height, and cropping parameters, and provides a LuminanceSource interface, with rotation (although only 1D is supported for the rotated object at the moment.)

git-svn-id: https://zxing.googlecode.com/svn/trunk@1488 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-19 20:53:17 +00:00
flyashi 5632ab619f Some updates to the C++ test binary:
- calls MultiFormatReader directly
 - code cleanup, removing parts of the QR-specific framework
 - associated change to blackboxtest

git-svn-id: https://zxing.googlecode.com/svn/trunk@1482 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-14 18:38:59 +00:00
flyashi 5a36cea5af Updates to C++ port:
- updated Binarizer, BinaryBitmap, and LuminanceSource implementations to match Java
 - updated Magick client

git-svn-id: https://zxing.googlecode.com/svn/trunk@1480 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-13 18:43:54 +00:00
flyashi ecbf50da87 C++ port Binarizer and BinaryBitmap weren't caching rows correctly.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1473 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-09 15:15:01 +00:00
flyashi b1032ceba4 Fixed C++ port's handling of reversed barcodes:
- BitArray.reverse() was inverting, not reversing, bits.
 - OneDReader wasn't reversing x coordinates of the result points.
 - OneDReader wasn't catching Binarizer exceptions properly.

Issue 470 can be closed by this.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1472 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-07-09 15:12:46 +00:00
rpechayr 2959549f83 [cpp] added const qualifiers that had been removed (accidentaly\?) to LuminanceSourse pure virtual methods. Fixed build problem of ScanTest. Please check that ScanTest builds if you revert this, it will consist of removing const qualifyers to implementation these methods in sublass of LuminancesSource
git-svn-id: https://zxing.googlecode.com/svn/trunk@1461 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-06-24 05:04:36 +00:00
luizcroc dc9fcff5cb Fixing some issues in C++ port regarding 1D barcode readers
git-svn-id: https://zxing.googlecode.com/svn/trunk@1454 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-06-23 03:05:34 +00:00
luizcroc a4e93f905e Same change as Revision r1395 for C++ port: Small speedup, per issue 422
git-svn-id: https://zxing.googlecode.com/svn/trunk@1404 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-31 20:58:49 +00:00
rpechayr 71eda605bc [iPhone] Minor Corrections: ZXingWidgets now also builds on release mode. Typo corrected that made compile error
git-svn-id: https://zxing.googlecode.com/svn/trunk@1362 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-14 17:21:12 +00:00
luizcroc 9f9096b98e Memory leak in MultiFormatReader fixed and a better fix for the memory leak in MonochromeRectangleDetector
git-svn-id: https://zxing.googlecode.com/svn/trunk@1355 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-12 22:11:18 +00:00
dmaclach 52e6d56a63 Added David Phillip Oster's fixes for compiling and getting the Barcodes app to scan for barcodes.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1343 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-07 17:10:06 +00:00
dmaclach 505af10197 Cleaned up the iPhone code so that it compiles with the 3.1.2 SDK. Also tightened up warnings and cleaned up the C++ code that violated the warnings.
Fixed up some memory issues.



git-svn-id: https://zxing.googlecode.com/svn/trunk@1334 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-04 21:44:53 +00:00
srowen 4c91a1279a Issue 396
git-svn-id: https://zxing.googlecode.com/svn/trunk@1333 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-05-04 09:25:18 +00:00
ralf.kistner@gmail.com 416b2e58ac Fixed things broken in the last commit.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1272 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-04-02 17:17:31 +00:00
ralf.kistner@gmail.com d2aacefff2 C++ port made more compatible with uSTL (no functional changes).
git-svn-id: https://zxing.googlecode.com/svn/trunk@1271 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-04-02 14:11:53 +00:00
luizcroc 2bef6a98d5 #ADD: DataMatrix reader.
#CHANGE: MultiFormatReader can read DataMatrix.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1217 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-02-23 23:50:08 +00:00
ralf.kistner@gmail.com 997c485a35 Fixed the C++ port to compile on a Linux system.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1211 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-02-15 17:00:07 +00:00
warcholuke 76272e8525 One-D barcodes reader port on c++
git-svn-id: https://zxing.googlecode.com/svn/trunk@1196 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2010-02-02 20:38:25 +00:00
ralf.kistner@gmail.com a1083bebd4 C++ port: fixed warnings for Symbian build
git-svn-id: https://zxing.googlecode.com/svn/trunk@1145 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-12-09 11:06:01 +00:00
ralf.kistner 5472325ffe C++ port:
- Added experimental QR edge detector.
 - Modified pattern finder tolerance levels, as in the Java code.
 - Adjusted the local block binarizer slightly.
 - Added a simple example application.
 - Modified MagickBitmapSource to compute the luminance in the same way as the Java BufferedImageLuminanceSource.


git-svn-id: https://zxing.googlecode.com/svn/trunk@1144 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-12-08 21:16:43 +00:00
ralf.kistner@gmail.com 4c51e618e3 C++ Port:
- Fixed to be able to build for the Symbian emulator (variable-sized arrays cannot be created on the stack).
- Fixed bug only present on Symbian phones that prevented the alignment patterns from being found (the Symbian implementation of valarray does not initialize its values to 0, unless it is explicitly specified as the default value).
- Fixed an include.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1100 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-05 22:11:15 +00:00
ralf.kistner@gmail.com 34607d71ee Many changes to the C++ port.
- Refactoring:
 - All the files are now in a zxing folder,
 - Changed the namespaces so that everything is either in zxing or
zxing::qrcode.
 - Moved most function implementations from the headers to source
files.
- Ported the new design from the Java code with LuminanceSource,
BinaryBitmap, Binarizer, GlobalHistogramBinarizer and
LocalBlockBinarizer.
- Fixed two rare segmentation faults: one in
GridSampler::checkAndNudgePoints, and one in
ReedSolomonDecoder::decode. These would simply cause
ArrayIndexOutOfBoundsExceptions in Java, but have to be checked
explicitly in C++.
- With help from Erno Mäkinen, used std::vector instead of ArrayRef in
many places, as ArrayRef causes problems on Symbian phones.
- Added scons build files.
- Added a test application using ImageMagick.
- More small changes.



git-svn-id: https://zxing.googlecode.com/svn/trunk@1092 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-11-01 17:30:30 +00:00
christian.brunschen f09b742ea2 * Throw the actual exception objects, rather than pointers to them, i.e.:
- replace |throw new FooException()| with |throw FooException()|
  - replace |catch (FooException *ex)| with |catch (FooExceptio ex)|
  - update all uses of caught exceptions appropriately:
    . replace |ex->foo| with |ex.foo|
    . remove all attempts to delete the caught exception(s)
* Add 'const' to the 'char *' declarations for character encoding names



git-svn-id: https://zxing.googlecode.com/svn/trunk@1002 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-27 13:22:03 +00:00
srowen 1c243335a6 Remove some DEBUG blocks that apparently do not compile
git-svn-id: https://zxing.googlecode.com/svn/trunk@941 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-21 14:33:23 +00:00
srowen 58705e7b91 Issue 166
git-svn-id: https://zxing.googlecode.com/svn/trunk@902 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-06 21:59:03 +00:00
srowen f743341043 Issue 165
git-svn-id: https://zxing.googlecode.com/svn/trunk@901 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-06 21:56:31 +00:00
srowen 3530bb1d4b Issue 164
git-svn-id: https://zxing.googlecode.com/svn/trunk@899 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-06 21:51:33 +00:00
srowen 938f5cf618 Issue 163
git-svn-id: https://zxing.googlecode.com/svn/trunk@897 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-06 21:41:21 +00:00
srowen 086cdca094 Issue 161
git-svn-id: https://zxing.googlecode.com/svn/trunk@896 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-06 21:38:48 +00:00
christian.brunschen 7b8b7e67d1 initialize valarrays with explicit contents (zero)
git-svn-id: https://zxing.googlecode.com/svn/trunk@636 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-10-24 09:53:01 +00:00
christian.brunschen a63fb3b9a6 Added 'About' screen, localized application name
git-svn-id: https://zxing.googlecode.com/svn/trunk@561 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-08-14 11:00:48 +00:00
christian.brunschen 0fe5931684 fixed CountedTest compilation problem attempting to access a private variable. Also fixed TestRunner exit status.
git-svn-id: https://zxing.googlecode.com/svn/trunk@543 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-08-02 08:36:54 +00:00
christian.brunschen 753ca4afbf debug printout cleanup
git-svn-id: https://zxing.googlecode.com/svn/trunk@472 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-06-24 16:27:52 +00:00
srowen e0db8f9271 Standardize and update all copyright statements to name "ZXing authors" as suggested by open-source team to correctly attribute copyright in a project with contributions from several sources.
git-svn-id: https://zxing.googlecode.com/svn/trunk@455 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-06-19 20:56:24 +00:00
christian.brunschen d02ea4bd84 First version of the iphone client that actually works, for at least a subset
of the intended functionality.



git-svn-id: https://zxing.googlecode.com/svn/trunk@444 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2008-06-19 08:52:37 +00:00