final class DecodeHandler extends Handler
Handler.Callback
Modifier and Type | Field and Description |
---|---|
private CaptureActivity |
activity |
private com.google.zxing.MultiFormatReader |
multiFormatReader |
private boolean |
running |
private static String |
TAG |
Constructor and Description |
---|
DecodeHandler(CaptureActivity activity,
Map<com.google.zxing.DecodeHintType,Object> hints) |
Modifier and Type | Method and Description |
---|---|
private void |
decode(byte[] data,
int width,
int height)
Decode the data within the viewfinder rectangle, and time how long it took.
|
void |
handleMessage(Message message) |
dispatchMessage, dump, getLooper, getMessageName, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
private static final String TAG
private final CaptureActivity activity
private final com.google.zxing.MultiFormatReader multiFormatReader
private boolean running
DecodeHandler(CaptureActivity activity, Map<com.google.zxing.DecodeHintType,Object> hints)
public void handleMessage(Message message)
handleMessage
in class Handler
private void decode(byte[] data, int width, int height)
data
- The YUV preview frame.width
- The width of the preview frame.height
- The height of the preview frame.