Tiny style bits

git-svn-id: https://zxing.googlecode.com/svn/trunk@1528 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-08-13 17:17:47 +00:00
parent 56ad5f5554
commit f2ac4e651b
4 changed files with 5 additions and 8 deletions

View file

@ -186,7 +186,7 @@ final class ExpandedProductResultParser extends ResultParser {
// We look for a new AI. If it doesn't exist (ERROR), we coninue
// with the iteration
if ("ERROR".equals(findAIvalue(index, rawTextAux))) {
buf.append(c);
buf.append('(');
} else {
break;
}

View file

@ -79,12 +79,10 @@ public final class Decoder {
*
* @param bits booleans representing white/black QR Code modules
* @return text and bytes encoded within the QR Code
* @throws NotFoundException if the QR Code cannot be found
* @throws FormatException if the QR Code cannot be decoded
* @throws ChecksumException if error correction fails
*/
public DecoderResult decode(BitMatrix bits, Hashtable hints)
throws NotFoundException, FormatException, ChecksumException {
public DecoderResult decode(BitMatrix bits, Hashtable hints) throws FormatException, ChecksumException {
// Construct a parser and read version, error-correction level
BitMatrixParser parser = new BitMatrixParser(bits);

View file

@ -160,7 +160,7 @@ public class Detector {
sourceBottomRightX = sourceBottomRightY = dimMinusThree;
}
PerspectiveTransform transform = PerspectiveTransform.quadrilateralToQuadrilateral(
return PerspectiveTransform.quadrilateralToQuadrilateral(
3.5f,
3.5f,
dimMinusThree,
@ -177,8 +177,6 @@ public class Detector {
bottomRightY,
bottomLeft.getX(),
bottomLeft.getY());
return transform;
}
private static BitMatrix sampleGrid(BitMatrix image,

View file

@ -20,6 +20,7 @@ import com.google.zxing.EncodeHintType;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitArray;
import com.google.zxing.common.CharacterSetECI;
import com.google.zxing.common.ECI;
import com.google.zxing.common.reedsolomon.GF256;
import com.google.zxing.common.reedsolomon.ReedSolomonEncoder;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
@ -547,7 +548,7 @@ public final class Encoder {
}
}
private static void appendECI(CharacterSetECI eci, BitArray bits) {
private static void appendECI(ECI eci, BitArray bits) {
bits.appendBits(Mode.ECI.getBits(), 4);
// This is correct for values up to 127, which is all we need now.
bits.appendBits(eci.getValue(), 8);