* @author dswitkin@google.com (Daniel Switkin)
*/
final class DecodeThread extends Thread {
+
public static final String BARCODE_BITMAP = "barcode_bitmap";
private static final String TAG = "DecodeThread";
doSetDecodeMode(BarcodeFormat.UPC_A,
BarcodeFormat.UPC_E,
BarcodeFormat.EAN_13,
- BarcodeFormat.EAN_8);
+ BarcodeFormat.EAN_8,
+ BarcodeFormat.RSS14);
}
/**
BarcodeFormat.EAN_8,
BarcodeFormat.CODE_39,
BarcodeFormat.CODE_128,
- BarcodeFormat.ITF);
+ BarcodeFormat.ITF,
+ BarcodeFormat.RSS14);
}
private void setDecodeQRMode() {
BarcodeFormat.CODE_39,
BarcodeFormat.CODE_128,
BarcodeFormat.ITF,
+ BarcodeFormat.RSS14,
BarcodeFormat.QR_CODE);
}
rawResult = multiFormatReader.decodeWithState(bitmap);
} catch (ReaderException re) {
// continue
+ } finally {
+ multiFormatReader.reset();
}
if (rawResult != null) {