Package com.google.zxing.qrcode.encoder
Class MatrixUtil
- java.lang.Object
-
- com.google.zxing.qrcode.encoder.MatrixUtil
-
final class MatrixUtil extends Object
- Author:
- satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidbuildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, Version version, int maskPattern, ByteMatrix matrix)(package private) static intcalculateBCHCode(int value, int poly)(package private) static voidclearMatrix(ByteMatrix matrix)(package private) static voidembedBasicPatterns(Version version, ByteMatrix matrix)(package private) static voidembedDataBits(BitArray dataBits, int maskPattern, ByteMatrix matrix)(package private) static voidembedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix)(package private) static intfindMSBSet(int value)(package private) static voidmakeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitArray bits)(package private) static voidmakeVersionInfoBits(Version version, BitArray bits)(package private) static voidmaybeEmbedVersionInfo(Version version, ByteMatrix matrix)
-
-
-
Method Detail
-
clearMatrix
static void clearMatrix(ByteMatrix matrix)
-
buildMatrix
static void buildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, Version version, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
embedBasicPatterns
static void embedBasicPatterns(Version version, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
embedTypeInfo
static void embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
maybeEmbedVersionInfo
static void maybeEmbedVersionInfo(Version version, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
embedDataBits
static void embedDataBits(BitArray dataBits, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
findMSBSet
static int findMSBSet(int value)
-
calculateBCHCode
static int calculateBCHCode(int value, int poly)
-
makeTypeInfoBits
static void makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitArray bits) throws WriterException
- Throws:
WriterException
-
makeVersionInfoBits
static void makeVersionInfoBits(Version version, BitArray bits) throws WriterException
- Throws:
WriterException
-
-