/* * Copyright 2016 Nu-book Inc. * Copyright 2016 ZXing authors */ // SPDX-License-Identifier: Apache-2.0 #pragma once #include namespace ZXing { class BitMatrix; class ResultPoint; class DecoderResult; template class Nullable; namespace Pdf417 { /** * @author Guenther Grau */ class ScanningDecoder { public: static DecoderResult Decode(const BitMatrix& image, const Nullable& imageTopLeft, const Nullable& imageBottomLeft, const Nullable& imageTopRight, const Nullable& imageBottomRight, int minCodewordWidth, int maxCodewordWidth); }; inline int NumECCodeWords(int ecLevel) { return 1 << (ecLevel + 1); } DecoderResult DecodeCodewords(std::vector& codewords, int numECCodeWords); } // Pdf417 } // ZXing