Package com.google.zxing.qrcode.encoder
Class MatrixUtil
java.lang.Object
com.google.zxing.qrcode.encoder.MatrixUtil
- Author:
- satorux@google.com (Satoru Takabayashi) - creator, dswitkin@google.com (Daniel Switkin) - ported from C++
-
Method Summary
Modifier and TypeMethodDescription(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 Details
-
clearMatrix
-
buildMatrix
static void buildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, Version version, int maskPattern, ByteMatrix matrix) throws WriterException - Throws:
WriterException
-
embedBasicPatterns
- Throws:
WriterException
-
embedTypeInfo
static void embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix) throws WriterException - Throws:
WriterException
-
maybeEmbedVersionInfo
- 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
- Throws:
WriterException
-