Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / BC_ReedSolomon.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _BC_READSOLOMON_H_\r
8 #define _BC_READSOLOMON_H_\r
9 class CBC_ReedSolomonGF256;\r
10 class CBC_ReedSolomonGF256Poly;\r
11 class  CBC_ReedSolomonEncoder;\r
12 class CBC_ReedSolomonEncoder : public CFX_Object\r
13 {\r
14 private:\r
15     CBC_ReedSolomonGF256* m_field;\r
16     CFX_PtrArray m_cachedGenerators;\r
17     CBC_ReedSolomonGF256Poly* BuildGenerator(FX_INT32 degree, FX_INT32 &e);\r
18 public:\r
19     CBC_ReedSolomonEncoder(CBC_ReedSolomonGF256 * field);\r
20     virtual ~CBC_ReedSolomonEncoder();\r
21 \r
22     void Encode(CFX_Int32Array *toEncode, FX_INT32 ecBytes, FX_INT32 &e);\r
23     virtual void Init();\r
24 };\r
25 #endif\r