public final class MatrixUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
buildMatrix(BitVector 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(BitVector 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, BitVector bits) |
static void |
makeVersionInfoBits(int version, BitVector bits) |
static void |
maybeEmbedVersionInfo(int version, ByteMatrix matrix) |
public static void clearMatrix(ByteMatrix matrix)
public static void buildMatrix(BitVector dataBits, ErrorCorrectionLevel ecLevel, int version, int maskPattern, ByteMatrix matrix) throws WriterException
WriterException
public static void embedBasicPatterns(int version, ByteMatrix matrix) throws WriterException
WriterException
public static void embedTypeInfo(ErrorCorrectionLevel ecLevel, int maskPattern, ByteMatrix matrix) throws WriterException
WriterException
public static void maybeEmbedVersionInfo(int version, ByteMatrix matrix) throws WriterException
WriterException
public static void embedDataBits(BitVector dataBits, int maskPattern, ByteMatrix matrix) throws WriterException
WriterException
public static int findMSBSet(int value)
public static int calculateBCHCode(int value, int poly)
public static void makeTypeInfoBits(ErrorCorrectionLevel ecLevel, int maskPattern, BitVector bits) throws WriterException
WriterException
public static void makeVersionInfoBits(int version, BitVector bits) throws WriterException
WriterException
Copyright © 1998–2016. All rights reserved.