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 void
buildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, Version version, int maskPattern, ByteMatrix matrix)
(package private) static int
calculateBCHCode(int value, int poly)
(package private) static void
clearMatrix(ByteMatrix matrix)
(package private) static void
embedBasicPatterns(Version version, ByteMatrix matrix)
(package private) static void
embedDataBits(BitArray dataBits, int maskPattern, ByteMatrix matrix)
(package private) static void
embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix)
(package private) static int
findMSBSet(int value)
(package private) static void
makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitArray bits)
(package private) static void
makeVersionInfoBits(Version version, BitArray bits)
(package private) static void
maybeEmbedVersionInfo(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
-
-