#pragma once
#include <vector>
namespace ZXing {
class BitMatrix;
class ResultPoint;
class DecoderResult;
template <typename T> class Nullable;
namespace Pdf417 {
class ScanningDecoder
{
public:
static DecoderResult Decode(const BitMatrix& image,
const Nullable<ResultPoint>& imageTopLeft, const Nullable<ResultPoint>& imageBottomLeft,
const Nullable<ResultPoint>& imageTopRight, const Nullable<ResultPoint>& imageBottomRight,
int minCodewordWidth, int maxCodewordWidth);
};
inline int NumECCodeWords(int ecLevel)
{
return 1 << (ecLevel + 1);
}
DecoderResult DecodeCodewords(std::vector<int>& codewords, int numECCodeWords);
} }