I moved a chunk of the histogram/black point code out of BaseMonochromeBitmapSource...
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 21 May 2009 19:56:25 +0000 (19:56 +0000)
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 21 May 2009 19:56:25 +0000 (19:56 +0000)
commit6f340039aea8000c4725609c99c7ee18848da8d2
treeda78cbb9757be2a97d3ec9935c2c88fe4d4285ef
parent84b56555331a16cac9aea139228b5954f0c08183
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: http://zxing.googlecode.com/svn/trunk@945 59b500cc-1b3d-0410-9834-0bbf25fbcc57
android/src/com/google/zxing/client/android/YUVMonochromeBitmapSource.java
androidtest/src/com/google/zxing/client/androidtest/RGBMonochromeBitmapSource.java
core/src/com/google/zxing/MonochromeBitmapSource.java
core/src/com/google/zxing/common/BaseMonochromeBitmapSource.java
core/src/com/google/zxing/common/BlackPointEstimator.java
core/src/com/google/zxing/common/CroppedMonochromeBitmapSource.java
core/test/src/com/google/zxing/common/BlackPointEstimationMethodTestCase.java [deleted file]
core/test/src/com/google/zxing/common/BlackPointEstimatorTestCase.java [new file with mode: 0644]
javame/src/com/google/zxing/client/j2me/LCDUIImageMonochromeBitmapSource.java
javase/src/com/google/zxing/client/j2se/BufferedImageMonochromeBitmapSource.java