blob: 5a42fee436890f3dc3eed516bc76465e5f18f9f1 [file] [log] [blame]
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef FXBARCODE_PDF417_BC_PDF417ERRORCORRECTION_H_
#define FXBARCODE_PDF417_BC_PDF417ERRORCORRECTION_H_
#include <stdint.h>
#include "core/fxcrt/widestring.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
class CBC_PDF417ErrorCorrection {
public:
CBC_PDF417ErrorCorrection() = delete;
~CBC_PDF417ErrorCorrection() = delete;
static int32_t GetErrorCorrectionCodewordCount(int32_t errorCorrectionLevel);
static absl::optional<WideString> GenerateErrorCorrection(
const WideString& dataCodewords,
int32_t errorCorrectionLevel);
};
#endif // FXBARCODE_PDF417_BC_PDF417ERRORCORRECTION_H_