Class MatrixUtil
- java.lang.Object
-
- ext.plantuml.com.google.zxing.qrcode.encoder.MatrixUtil
-
public final class MatrixUtil extends Object
- Author:
- [email protected] (Satoru Takabayashi) - creator, [email protected] (Daniel Switkin) - ported from C++
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
buildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix)
static int
calculateBCHCode(int value, int poly)
static void
clearMatrix(ByteMatrix matrix)
static void
embedBasicPatterns(int version, ByteMatrix matrix)
static void
embedDataBits(BitArray dataBits, int maskPattern, ByteMatrix matrix)
static void
embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix)
static int
findMSBSet(int value)
static void
makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitArray bits)
static void
makeVersionInfoBits(int version, BitArray bits)
static void
maybeEmbedVersionInfo(int version, ByteMatrix matrix)
-
-
-
Method Detail
-
clearMatrix
public static void clearMatrix(ByteMatrix matrix)
-
buildMatrix
public static void buildMatrix(BitArray dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
embedBasicPatterns
public static void embedBasicPatterns(int version, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
embedTypeInfo
public static void embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
maybeEmbedVersionInfo
public static void maybeEmbedVersionInfo(int version, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
embedDataBits
public static void embedDataBits(BitArray dataBits, int maskPattern, ByteMatrix matrix) throws WriterException
- Throws:
WriterException
-
findMSBSet
public static int findMSBSet(int value)
-
calculateBCHCode
public static int calculateBCHCode(int value, int poly)
-
makeTypeInfoBits
public static void makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitArray bits) throws WriterException
- Throws:
WriterException
-
makeVersionInfoBits
public static void makeVersionInfoBits(int version, BitArray bits) throws WriterException
- Throws:
WriterException
-
-