Commit graph

169 commits

Author SHA1 Message Date
srowen 8c876a047a Allow custom search on 'text' results. Seems maybe useful for Code 128/39 payloads, and, the UI for this result type is not overcrowded yet
git-svn-id: https://zxing.googlecode.com/svn/trunk@1055 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-16 09:58:41 +00:00
srowen 5b041daad0 Spell checker fixes, narrowed scope / made less visible where possible. Little stuff
git-svn-id: https://zxing.googlecode.com/svn/trunk@1053 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-15 09:03:05 +00:00
dswitkin 2b0d14963d Added some comments to public methods.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1051 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-11 16:11:47 +00:00
dswitkin 7983309b66 This should have been deleted in the last change.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1050 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-11 14:02:39 +00:00
dswitkin 833ca52c27 Lots of updates:
- Added support for new YUYV preview buffer format.
- Made the preview rectangle larger.
- Added support for high resolution screens.
- Updated for Donut but still runs on Cupcake.
- Converted to standard Java coding style for member variables.
- Added many comments and author tags.
- Removed some Petit Four hacks and vestigial code.

*** The app must be built with the Donut SDK from now on.

git-svn-id: https://zxing.googlecode.com/svn/trunk@1049 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-10 22:18:58 +00:00
dswitkin e83cb0cef1 Final changes for Barcode Scanner 2.93.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1046 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-09-03 20:37:38 +00:00
srowen fff6624521 SImplified optimization a bit and made it more aggressive.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1044 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-08-28 13:31:16 +00:00
srowen b05d7601cf Revert to pre-Cupcake preview callback system since seems to be some collision between the new one and auto-focus callback that stops scanning in some cases. Also, remove a bad version number from search activity?
git-svn-id: https://zxing.googlecode.com/svn/trunk@1042 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-08-26 21:48:52 +00:00
dswitkin 599d513d73 Made another fix for the Samsung Galaxy, and bumped the version to 2.92.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1036 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-08-21 14:18:31 +00:00
dswitkin fc9bc55213 Made a new fix to turn off the Samsung Galaxy flash, and cut release 2.91.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1035 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-08-19 14:52:16 +00:00
srowen 6dbf893cb0 Add MatrixToImageWriter convenience class, small code tweaks in javase/, make ByteMatrix width/height property getters names standard
git-svn-id: https://zxing.googlecode.com/svn/trunk@1028 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-30 08:58:57 +00:00
srowen 91d8e04d86 Re-enable ProGuard, and finally identified the workaround that seems to make 4.4 work with our code without a VerifyError
git-svn-id: https://zxing.googlecode.com/svn/trunk@1025 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-22 10:36:11 +00:00
dswitkin 9dc583f556 Set a camera parameter to force the flash off. Also fixed the uninstall build targets.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1024 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-21 21:36:33 +00:00
dswitkin d71c099313 Converted the Android client and the test app to use the Android 1.5 SDK, and to use a more efficient preview frame mechanism too. We now require devices to be running Cupcake or a newer version of the platform. This change temporarily removes the Proguard step, which Sean is going to add back.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1023 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-21 19:33:25 +00:00
dswitkin 38f73bca64 Added an optimization to the Android client's LuminanceSource implementation, and removed manual array copies in favor of System.arraycopy().
git-svn-id: https://zxing.googlecode.com/svn/trunk@1020 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-15 18:32:01 +00:00
dswitkin c51c5800f6 Added Germany to the list of Google Product Search locales.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1019 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-10 18:55:04 +00:00
dswitkin c0cf079ccb Created v2.9 of Barcode Scanner, and added Japanese translations.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1018 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-07-09 15:20:42 +00:00
dswitkin 167197ec7a Refactored the MonochromeBitmapSource class hierarchy into LuminanceSource, Binarizer, and BinaryBitmap classes. The unit tests pass and I believe the change is complete, but there are some clients like J2ME and Bug that I can't build.
This change will allow new thresholding algorithms to be developed and tested, as well as implemented per platform if needed (e.g. in JNI on Android). It should also perform better when multiple 2D Readers are installed, because the underlying image will only be converted to 1 bit once. It also allows some platforms to return luminance data without a copy.

The current state of this checkin is to use the old black point algorithm, which now lives in GlobalHistogramBinarizer. This will be our benchmark and fallback for slower platforms. Going forward we will begin to use LocalBlockBinarizer as I shake out the edge cases and tune it for performance. Currently it is unused.

IMPORTANT: I have temporarily included three methods from MonochromeBitmapSource at the end of BinaryBitmap as a way to make this change in stages. They are deprecated and will be removed soon. All of the Reader classes will need to change the way they examine 1 bit pixels to use the new getBlackRow() and getBlackMatrix() calls.

git-svn-id: https://zxing.googlecode.com/svn/trunk@993 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-26 17:49:45 +00:00
srowen 63a1dc62a3 Issue 198
git-svn-id: https://zxing.googlecode.com/svn/trunk@972 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-19 13:23:09 +00:00
dswitkin ea0ef87c2b Changed "Search book" back to "Search book contents" for clarity, since it's too confusing next to the "Book Search" button. The "Custom search" button will wrap in this case but it still fits fine.
git-svn-id: https://zxing.googlecode.com/svn/trunk@970 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-18 15:51:18 +00:00
srowen eed790a0bf Issue 155: allow custom product search, and, other small tweaks I think nobody will yell at me for
git-svn-id: https://zxing.googlecode.com/svn/trunk@967 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-10 16:40:56 +00:00
srowen 96025842a1 Don't use books.google.cn for Book Search -- doesn't exist. Also a few tiny tweaks.
git-svn-id: https://zxing.googlecode.com/svn/trunk@965 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-08 17:00:09 +00:00
srowen 9bc1fe4695 Updates to compile against 1.5; figuring we will shortly need to be 1.5-friendly
git-svn-id: https://zxing.googlecode.com/svn/trunk@964 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-06-06 19:50:27 +00:00
dswitkin b24162298a Cut Barcode Scanner v2.8 for Android.
git-svn-id: https://zxing.googlecode.com/svn/trunk@960 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-28 16:03:28 +00:00
dswitkin e19e9a83f6 I moved a chunk of the histogram/black point code out of BaseMonochromeBitmapSource and into BlackPointEstimator which makes a lot more sense. Unfortunately I had to expose three new methods and touch a bunch of files. But I did manage to reuse an array on subsequent calls, which was being allocated on every row scanned, so that might be a bit faster. It will also be easier to convert this code to JNI in the future if we want to, and/or do more advanced thresholding.
git-svn-id: https://zxing.googlecode.com/svn/trunk@945 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-21 19:56:25 +00:00
dswitkin c8d74f359f Stopped sending the decode duration in a message, which no one was looking at, and logged it instead.
git-svn-id: https://zxing.googlecode.com/svn/trunk@943 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-21 16:02:24 +00:00
dswitkin 9ab5dc84ab Added simplified and traditional Chinese translations for the Android client from Kevin Xue.
git-svn-id: https://zxing.googlecode.com/svn/trunk@935 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-11 14:58:14 +00:00
srowen 35800f4bca Restore shutdown of connection manager
git-svn-id: https://zxing.googlecode.com/svn/trunk@926 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-01 19:13:47 +00:00
srowen fb2813d1ea Streamline contact encoding and avoid encoding a line break
git-svn-id: https://zxing.googlecode.com/svn/trunk@925 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-01 17:25:42 +00:00
srowen e168d0c3c6 Possible small bug fix and cleanup of unneeded code
git-svn-id: https://zxing.googlecode.com/svn/trunk@924 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-01 17:23:17 +00:00
dswitkin ae1241880b Final changes for v2.7 of Barcode Scanner, including sending product lookups to the mobile version of Google Product Search.
git-svn-id: https://zxing.googlecode.com/svn/trunk@923 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-05-01 14:36:57 +00:00
dswitkin 02f779cbee Fixed or removed a bunch of TODOs, and enforced the 100 columns limit in a bunch of places. Also allowed QR Codes to be encoded of contacts without names.
git-svn-id: https://zxing.googlecode.com/svn/trunk@907 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-13 21:20:11 +00:00
dswitkin 312d33c381 Removed a bunch of logging cruft from the network code which we don't need.
git-svn-id: https://zxing.googlecode.com/svn/trunk@906 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-13 20:33:28 +00:00
dswitkin 4166f0d707 Fixed encoding geo locations in a QR code. Some floats got converted to doubles by accident in a previous cleanup pass.
git-svn-id: https://zxing.googlecode.com/svn/trunk@905 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-04-13 20:09:51 +00:00
dswitkin 1038cfef62 Created v2.6 final, and added the ability for web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan.
git-svn-id: https://zxing.googlecode.com/svn/trunk@885 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-03-11 19:35:23 +00:00
dswitkin 824121f0de Changes to create Barcode Scanner 2.6 beta 1.
git-svn-id: https://zxing.googlecode.com/svn/trunk@882 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-03-09 20:06:14 +00:00
dswitkin 5b5c7945bb Turned on ITF support in the Android client, and fixed a bug in the ITF result points, which by convention should draw across the whole body of the barcode, not just the start range.
git-svn-id: https://zxing.googlecode.com/svn/trunk@881 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-03-09 15:57:57 +00:00
dswitkin 24580d6bac - Added the version number to the about box in a robust way which will not get stale.
- Moved the Book Search user agent into that class, which will continue to get stale, but never belonged in the XML, as it does not need translation.
- Added a try/catch block around firing off intents, and an error dialog, so that we don't crash on bad  intents like TEL: in the future (even though that particular one was fixed in core).

git-svn-id: https://zxing.googlecode.com/svn/trunk@875 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-03-06 18:31:45 +00:00
dswitkin c1bc060065 Changed the order of the BaseMonochromeBitmapSource constructor arguments to be width, height to match the rest of the codebase, and added two apparently missing methods to the J2ME subclass, although I can't test it.
git-svn-id: https://zxing.googlecode.com/svn/trunk@874 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-03-06 16:52:35 +00:00
dswitkin b2f3eb6b7b Revised the What's New help page, and bumped the version to 2.5 final.
git-svn-id: https://zxing.googlecode.com/svn/trunk@866 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-20 19:04:13 +00:00
dswitkin bbfc82cc47 - Fixed issue 146, QR Codes get clipped when encoding very large amount of data, by adding a ScrollView.
- Also added support for sharing multiple email addresses and phone numbers.

git-svn-id: https://zxing.googlecode.com/svn/trunk@864 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-17 17:10:23 +00:00
dswitkin fb4c6f9d48 Changed the Intent to send emails to address issue 145.
git-svn-id: https://zxing.googlecode.com/svn/trunk@847 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-10 20:08:20 +00:00
srowen f2a9165b7c Refactored width/height values into superclass and enabled construction of RGBMonochromeBitmapSource from a Bitmap
git-svn-id: https://zxing.googlecode.com/svn/trunk@846 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-09 21:25:45 +00:00
srowen 5546f77004 Make public to enable reuse; add convenience constructor for no cropping, or cropping without a Rect object. Also optimize a few things.
git-svn-id: https://zxing.googlecode.com/svn/trunk@843 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-06 14:06:05 +00:00
srowen 1c539c66a4 Convert asserts to exceptions where the conditions could be false in a correct, bug-free program -- makes sure caller errors are caught and reported meaningfully
git-svn-id: https://zxing.googlecode.com/svn/trunk@840 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-02-05 13:06:19 +00:00
srowen 89176baf0c git-svn-id: https://zxing.googlecode.com/svn/trunk@835 59b500cc-1b3d-0410-9834-0bbf25fbcc57 2009-01-30 18:19:16 +00:00
srowen 37fbeaa36a Small updates from code inspection
git-svn-id: https://zxing.googlecode.com/svn/trunk@823 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-01-10 17:01:34 +00:00
srowen 6d8febc69e git-svn-id: https://zxing.googlecode.com/svn/trunk@813 59b500cc-1b3d-0410-9834-0bbf25fbcc57 2009-01-03 14:30:45 +00:00
srowen 0e253bbad1 git-svn-id: https://zxing.googlecode.com/svn/trunk@812 59b500cc-1b3d-0410-9834-0bbf25fbcc57 2009-01-03 14:25:49 +00:00
srowen 3fc5820213 Oops, appears I accidentally committed a typo -- addressing that
git-svn-id: https://zxing.googlecode.com/svn/trunk@811 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2009-01-02 18:41:04 +00:00