7#ifndef FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
8#define FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
12class CBC_CommonByteMatrix;
25 CBC_CommonByteMatrix* matrix);
void AppendBits(int32_t value, int32_t numBits)
void AppendBitVector(const CBC_QRCoderBitVector *bits)
void AppendBit(int32_t bit)
int32_t GetTotalECCodeWords() const
int32_t GetNumBlocks() const
static bool Encode(WideStringView content, const CBC_QRCoderErrorCorrectionLevel *ecLevel, CBC_QRCoder *qrCode)
static int32_t ApplyMaskPenaltyRule1(CBC_CommonByteMatrix *matrix)
static bool GetDataMaskBit(int32_t maskPattern, int32_t x, int32_t y)
static int32_t ApplyMaskPenaltyRule2(CBC_CommonByteMatrix *matrix)
~CBC_QRCoderMaskUtil()=delete
CBC_QRCoderMaskUtil()=delete
static int32_t ApplyMaskPenaltyRule3(CBC_CommonByteMatrix *matrix)
static int32_t ApplyMaskPenaltyRule4(CBC_CommonByteMatrix *matrix)
~CBC_QRCoderMatrixUtil()=delete
CBC_QRCoderMatrixUtil()=delete
static bool BuildMatrix(CBC_QRCoderBitVector *dataBits, const CBC_QRCoderErrorCorrectionLevel *ecLevel, int32_t version, int32_t maskPattern, CBC_CommonByteMatrix *matrix)
static CBC_QRCoderMode * sNUMERIC
int32_t GetCharacterCountBits(int32_t number) const
static CBC_QRCoderMode * sBYTE
static CBC_QRCoderMode * sALPHANUMERIC
int32_t GetDimensionForVersion() const
int32_t GetVersionNumber() const
static const CBC_QRCoderVersion * GetVersionForNumber(int32_t versionNumber)
static constexpr int32_t kMaxVersion
int32_t GetTotalCodeWords() const
const CBC_QRCoderECBlocks * GetECBlocksForLevel(const CBC_QRCoderErrorCorrectionLevel &ecLevel) const
void SetMatrixWidth(int32_t width)
int32_t GetNumRSBlocks() const
int32_t GetNumTotalBytes() const
void SetNumECBytes(int32_t value)
void SetECLevel(const CBC_QRCoderErrorCorrectionLevel *ecLevel)
void SetNumRSBlocks(int32_t block)
const CBC_QRCoderErrorCorrectionLevel * GetECLevel() const
int32_t GetMatrixWidth() const
int32_t GetNumDataBytes() const
static constexpr int32_t kNumMaskPatterns
int32_t GetMaskPattern() const
void SetNumDataBytes(int32_t bytes)
void SetNumTotalBytes(int32_t value)
int32_t GetVersion() const
void SetVersion(int32_t version)
CBC_ReedSolomonEncoder(CBC_ReedSolomonGF256 *field)
CBC_ReedSolomonGF256(int32_t primitive)