#include "fxbarcode/pdf417/BC_PDF417ErrorCorrection.h"
#include <stdint.h>
#include <array>
#include "core/fxcrt/data_vector.h"
#include "core/fxcrt/span.h"
namespace {
const uint16_t EC_LEVEL_0_COEFFICIENTS[2] = …;
const uint16_t EC_LEVEL_1_COEFFICIENTS[4] = …;
const uint16_t EC_LEVEL_2_COEFFICIENTS[8] = …;
const uint16_t EC_LEVEL_3_COEFFICIENTS[16] = …;
const uint16_t EC_LEVEL_4_COEFFICIENTS[32] = …;
const uint16_t EC_LEVEL_5_COEFFICIENTS[64] = …;
const uint16_t EC_LEVEL_6_COEFFICIENTS[128] = …;
const uint16_t EC_LEVEL_7_COEFFICIENTS[256] = …;
const uint16_t EC_LEVEL_8_COEFFICIENTS[512] = …;
constexpr std::array<pdfium::span<const uint16_t>, 9> EC_COEFFICIENTS = …;
}
int32_t CBC_PDF417ErrorCorrection::GetErrorCorrectionCodewordCount(
int32_t errorCorrectionLevel) { … }
std::optional<WideString> CBC_PDF417ErrorCorrection::GenerateErrorCorrection(
const WideString& dataCodewords,
int32_t errorCorrectionLevel) { … }