mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Fixed the build.
git-svn-id: https://zxing.googlecode.com/svn/trunk@447 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
2c39fdb648
commit
905d44424b
|
@ -106,19 +106,21 @@ final class DecodedBitStreamParser {
|
||||||
|
|
||||||
private static int parseECI(BitSource bits) {
|
private static int parseECI(BitSource bits) {
|
||||||
int firstByte = bits.readBits(8);
|
int firstByte = bits.readBits(8);
|
||||||
if (firstByte & 0x80 == 0) {
|
if ((firstByte & 0x80) == 0) {
|
||||||
// just one byte
|
// just one byte
|
||||||
return firstByte & 0x7F;
|
return firstByte & 0x7F;
|
||||||
} else if (firstByte & 0xC0 == 0x80) {
|
} else if ((firstByte & 0xC0) == 0x80) {
|
||||||
// two bytes
|
// two bytes
|
||||||
int secondByte = bits.readBits(8);
|
int secondByte = bits.readBits(8);
|
||||||
return ((firstByte & 0x3F) << 8) | secondByte;
|
return ((firstByte & 0x3F) << 8) | secondByte;
|
||||||
} else if (firstByte & 0xE0 == 0xC0) {
|
} else if ((firstByte & 0xE0) == 0xC0) {
|
||||||
// three bytes
|
// three bytes
|
||||||
int secondByte = bits.readBits(8);
|
int secondByte = bits.readBits(8);
|
||||||
int thirdByte = bits.readBits(8);
|
int thirdByte = bits.readBits(8);
|
||||||
return ((firstByte & 0x1F) << 16) | (secondByte << 8) | thirdByte;
|
return ((firstByte & 0x1F) << 16) | (secondByte << 8) | thirdByte;
|
||||||
}
|
}
|
||||||
|
// FIXME: What should we return here?
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void decodeKanjiSegment(BitSource bits,
|
private static void decodeKanjiSegment(BitSource bits,
|
||||||
|
|
Loading…
Reference in a new issue