Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
BC_QRCoderMatrixUtil.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
8#define FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
9
10#include <stdint.h>
11
12class CBC_CommonByteMatrix;
15
17 public:
20
21 static bool BuildMatrix(CBC_QRCoderBitVector* dataBits,
23 int32_t version,
24 int32_t maskPattern,
25 CBC_CommonByteMatrix* matrix);
26};
27
28#endif // FXBARCODE_QRCODE_BC_QRCODERMATRIXUTIL_H_
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
int32_t GetBits() const
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
Definition BC_QRCoder.h:19
int32_t GetMaskPattern() const
void SetNumDataBytes(int32_t bytes)
bool IsValid() const
void SetNumTotalBytes(int32_t value)
int32_t GetVersion() const
void SetVersion(int32_t version)
CBC_ReedSolomonEncoder(CBC_ReedSolomonGF256 *field)
CBC_ReedSolomonGF256(int32_t primitive)