xref: /aosp_15_r20/external/pdfium/fxbarcode/qrcode/BC_QRCoderECBlocksData.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2017 The PDFium Authors
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_QRCODERECBLOCKSDATA_H_
8 #define FXBARCODE_QRCODE_BC_QRCODERECBLOCKSDATA_H_
9 
10 #include <stdint.h>
11 
12 struct CBC_QRCoderECBlockData {
13   uint8_t ecCodeWordsPerBlock;
14   uint8_t count1;
15   uint8_t dataCodeWords1;
16   uint8_t count2;
17   uint8_t dataCodeWords2;
18 };
19 
20 namespace fxbarcode {
21 
22 extern const CBC_QRCoderECBlockData kECBData[40][4];
23 
24 }  // namespace fxbarcode
25 
26 #endif  // FXBARCODE_QRCODE_BC_QRCODERECBLOCKSDATA_H_
27