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_PDF417ErrorCorrection.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_PDF417_BC_PDF417ERRORCORRECTION_H_
8#define FXBARCODE_PDF417_BC_PDF417ERRORCORRECTION_H_
9
10#include <stdint.h>
11
12#include <optional>
13
14#include "core/fxcrt/widestring.h"
15
17 public:
20
21 static int32_t GetErrorCorrectionCodewordCount(int32_t errorCorrectionLevel);
22 static std::optional<WideString> GenerateErrorCorrection(
23 const WideString& dataCodewords,
24 int32_t errorCorrectionLevel);
25};
26
27#endif // FXBARCODE_PDF417_BC_PDF417ERRORCORRECTION_H_
CBC_BarcodeRow * getRow(size_t row) const
DataVector< uint8_t > toBitArray()
CBC_BarcodeMatrix(size_t width, size_t height)
void AddBar(bool black, size_t width)
CBC_BarcodeRow(size_t width)
pdfium::span< const uint8_t > GetRow() const
static std::optional< WideString > GenerateErrorCorrection(const WideString &dataCodewords, int32_t errorCorrectionLevel)
static int32_t GetErrorCorrectionCodewordCount(int32_t errorCorrectionLevel)
void setDimensions(int32_t maxCols, int32_t minCols, int32_t maxRows, int32_t minRows)
bool GenerateBarcodeLogic(WideStringView msg, int32_t errorCorrectionLevel)
CBC_BarcodeMatrix * getBarcodeMatrix()
WideString & operator+=(wchar_t ch)
WideString(const WideString &other)=default
fxcrt::WideStringView WideStringView
fxcrt::WideString WideString
Definition widestring.h:207