public final class PlanarYUVLuminanceSource
extends com.google.zxing.LuminanceSource
Modifier and Type | Field and Description |
---|---|
private int |
dataHeight |
private int |
dataWidth |
private int |
left |
private int |
top |
private byte[] |
yuvData |
Constructor and Description |
---|
PlanarYUVLuminanceSource(byte[] yuvData,
int dataWidth,
int dataHeight,
int left,
int top,
int width,
int height,
boolean reverseHorizontal) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getMatrix() |
byte[] |
getRow(int y,
byte[] row) |
boolean |
isCropSupported() |
Bitmap |
renderCroppedGreyscaleBitmap() |
private void |
reverseHorizontal(int width,
int height) |
private final byte[] yuvData
private final int dataWidth
private final int dataHeight
private final int left
private final int top
public PlanarYUVLuminanceSource(byte[] yuvData, int dataWidth, int dataHeight, int left, int top, int width, int height, boolean reverseHorizontal)
public byte[] getRow(int y, byte[] row)
getRow
in class com.google.zxing.LuminanceSource
public byte[] getMatrix()
getMatrix
in class com.google.zxing.LuminanceSource
public boolean isCropSupported()
isCropSupported
in class com.google.zxing.LuminanceSource
public Bitmap renderCroppedGreyscaleBitmap()
private void reverseHorizontal(int width, int height)