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_QRCoderVersion.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_QRCODERVERSION_H_
8#define FXBARCODE_QRCODE_BC_QRCODERVERSION_H_
9
10#include <memory>
11
12#include "fxbarcode/qrcode/BC_QRCoderECBlocks.h"
13
15
17 public:
18 static constexpr int32_t kMaxVersion = 40;
19
20 CBC_QRCoderVersion(int32_t versionNumber,
21 const CBC_QRCoderECBlockData data[4]);
23
24 static void Initialize();
25 static void Finalize();
26
27 static const CBC_QRCoderVersion* GetVersionForNumber(int32_t versionNumber);
28
29 int32_t GetVersionNumber() const;
30 int32_t GetTotalCodeWords() const;
31 int32_t GetDimensionForVersion() const;
33 const CBC_QRCoderErrorCorrectionLevel& ecLevel) const;
34
35 private:
36 const int32_t m_versionNumber;
37 int32_t m_totalCodeWords;
38 std::unique_ptr<CBC_QRCoderECBlocks> m_ecBlocksArray[4];
39};
40
41#endif // FXBARCODE_QRCODE_BC_QRCODERVERSION_H_
void BC_Library_Init()
void BC_Library_Destroy()
~CBC_QRCoderEncoder()=delete
CBC_QRCoderEncoder()=delete
static bool Encode(WideStringView content, const CBC_QRCoderErrorCorrectionLevel *ecLevel, CBC_QRCoder *qrCode)
static CBC_QRCoderErrorCorrectionLevel * Q
static CBC_QRCoderErrorCorrectionLevel * H
static CBC_QRCoderErrorCorrectionLevel * L
static CBC_QRCoderErrorCorrectionLevel * M
static CBC_QRCoderMode * sNUMERIC
int32_t GetCharacterCountBits(int32_t number) const
static CBC_QRCoderMode * sBYTE
int32_t GetBits() const
static void Finalize()
static void Initialize()
static CBC_QRCoderMode * sALPHANUMERIC
int32_t GetDimensionForVersion() const
CBC_QRCoderVersion(int32_t versionNumber, const CBC_QRCoderECBlockData data[4])
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
int32_t GetSymbolDataHeight() const
int32_t GetSymbolWidth() const
virtual ~CBC_SymbolInfo()
int32_t GetSymbolHeight() const
size_t data_capacity() const
size_t GetDataLengthForInterleavedBlock() const
int32_t matrix_height() const
size_t GetErrorLengthForInterleavedBlock() const
static void Finalize()
static const CBC_SymbolInfo * Lookup(size_t data_codewords, bool allow_rectangular)
static void Initialize()
int32_t GetSymbolDataWidth() const
virtual size_t GetInterleavedBlockCount() const
int32_t matrix_width() const
size_t error_codewords() const
CBC_SymbolInfo(const Data *data)