X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=core%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2FMonochromeBitmapSource.java;h=64155a1912c991dfc32cb2eebcbacd188d4ea5a8;hb=67bb87dea0eb848f80814f0353196079023a7aaf;hp=8dda19ec5d3125d144efc10b3a2157badc56a6d7;hpb=adcb498790b50fa7fa9a76b7c823d9bdb64ff322;p=zxing.git
diff --git a/core/src/com/google/zxing/MonochromeBitmapSource.java b/core/src/com/google/zxing/MonochromeBitmapSource.java
index 8dda19ec..64155a19 100644
--- a/core/src/com/google/zxing/MonochromeBitmapSource.java
+++ b/core/src/com/google/zxing/MonochromeBitmapSource.java
@@ -22,7 +22,8 @@ import com.google.zxing.common.BitArray;
*
Encapsulates a generic black-and-white bitmap -- a collection of pixels in two dimensions.
* This unifies many possible representations, like AWT's BufferedImage
.
*
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
+ * @author dswitkin@google.com (Daniel Switkin)
*/
public interface MonochromeBitmapSource {
@@ -48,6 +49,11 @@ public interface MonochromeBitmapSource {
*/
BitArray getBlackRow(int y, BitArray row, int startX, int getWidth);
+ /**
+ * Entirely analogous to {@link #getBlackRow(int, BitArray, int, int)} but gets a column.
+ */
+ BitArray getBlackColumn(int x, BitArray column, int startY, int getHeight);
+
/**
* @return height of underlying image
*/
@@ -58,24 +64,6 @@ public interface MonochromeBitmapSource {
*/
int getWidth();
- /**
- * Retrieves the luminance at the pixel x,y in the bitmap. This method is only used for estimating
- * the black point and implementing getBlackRow() - it is not meant for decoding.
- *
- * @param x The x coordinate in the image.
- * @param y The y coordinate in the image.
- * @return The luminance value between 0 and 255.
- */
- int getLuminance(int x, int y);
-
- /**
- * Some implementations can be much more efficient by fetching an entire row of luminance data at
- * a time. This method should be called once per row before calling getLuminance().
- *
- * @param y The row to cache.
- */
- void cacheRowForLuminance(int y);
-
/**
* Estimates black point according to the given method, which is optionally parameterized by
* a single int argument. For {@link BlackPointEstimationMethod#ROW_SAMPLING}, this