• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
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_QRCODE_BC_QRCODERECBLOCKS_H_
8 #define FXBARCODE_QRCODE_BC_QRCODERECBLOCKS_H_
9 
10 #include <stdint.h>
11 
12 #include <vector>
13 
14 struct CBC_QRCoderECBlockData;
15 
16 class CBC_QRCoderECBlocks {
17  public:
18   explicit CBC_QRCoderECBlocks(const CBC_QRCoderECBlockData& data);
19   ~CBC_QRCoderECBlocks();
20 
21   int32_t GetNumBlocks() const;
22   int32_t GetTotalECCodeWords() const;
23   int32_t GetTotalDataCodeWords() const;
24 
25  private:
26   int32_t GetECCodeWordsPerBlock() const;
27 
28   const CBC_QRCoderECBlockData& m_data;
29 };
30 
31 #endif  // FXBARCODE_QRCODE_BC_QRCODERECBLOCKS_H_
32