Refactored the MonochromeBitmapSource class hierarchy into LuminanceSource, Binarizer...
[zxing.git] / core / src / com / google / zxing / pdf417 / PDF417Reader.java
index 389641d..eee1bd4 100644 (file)
@@ -17,8 +17,8 @@
 package com.google.zxing.pdf417;\r
 \r
 import com.google.zxing.BarcodeFormat;\r
+import com.google.zxing.BinaryBitmap;\r
 import com.google.zxing.DecodeHintType;\r
-import com.google.zxing.MonochromeBitmapSource;\r
 import com.google.zxing.Reader;\r
 import com.google.zxing.ReaderException;\r
 import com.google.zxing.Result;\r
@@ -48,11 +48,11 @@ public final class PDF417Reader implements Reader {
    * @return a String representing the content encoded by the PDF417 code\r
    * @throws ReaderException if a PDF417 code cannot be found, or cannot be decoded\r
    */\r
-  public Result decode(MonochromeBitmapSource image) throws ReaderException {\r
+  public Result decode(BinaryBitmap image) throws ReaderException {\r
     return decode(image, null);\r
   }\r
 \r
-  public Result decode(MonochromeBitmapSource image, Hashtable hints)\r
+  public Result decode(BinaryBitmap image, Hashtable hints)\r
       throws ReaderException {\r
     DecoderResult decoderResult;\r
     ResultPoint[] points;\r
@@ -65,7 +65,8 @@ public final class PDF417Reader implements Reader {
       decoderResult = decoder.decode(detectorResult.getBits());\r
       points = detectorResult.getPoints();\r
     }\r
-    return new Result(decoderResult.getText(), decoderResult.getRawBytes(), points, BarcodeFormat.PDF417);\r
+    return new Result(decoderResult.getText(), decoderResult.getRawBytes(), points,\r
+        BarcodeFormat.PDF417);\r
   }\r
 \r
   /**\r
@@ -74,7 +75,7 @@ public final class PDF417Reader implements Reader {
    * around it. This is a specialized method that works exceptionally fast in this special\r
    * case.\r
    */\r
-  private static BitMatrix extractPureBits(MonochromeBitmapSource image) throws ReaderException {\r
+  private static BitMatrix extractPureBits(BinaryBitmap image) throws ReaderException {\r
     // Now need to determine module size in pixels\r
 \r
     int height = image.getHeight();\r