Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / src / fxbarcode / common / reedsolomon / BC_ReedSolomonGF256Poly.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_READSOLOMONGF256POLY_H_\r
8 #define _BC_READSOLOMONGF256POLY_H_\r
9 class CBC_ReedSolomonGF256;\r
10 class CBC_ReedSolomonGF256Poly\r
11 {\r
12 public:\r
13     CBC_ReedSolomonGF256Poly(CBC_ReedSolomonGF256* field, int32_t coefficients);\r
14     CBC_ReedSolomonGF256Poly();\r
15     virtual ~CBC_ReedSolomonGF256Poly();\r
16     int32_t GetCoefficients(int32_t degree);\r
17     CFX_Int32Array* GetCoefficients();\r
18     int32_t             GetDegree();\r
19     FX_BOOL                     IsZero();\r
20     int32_t             EvaluateAt(int32_t a);\r
21     CBC_ReedSolomonGF256Poly* AddOrSubtract(CBC_ReedSolomonGF256Poly* other, int32_t &e);\r
22     CBC_ReedSolomonGF256Poly* Multiply(CBC_ReedSolomonGF256Poly* other, int32_t &e);\r
23     CBC_ReedSolomonGF256Poly* Multiply(int32_t scalar, int32_t &e);\r
24     CBC_ReedSolomonGF256Poly* MultiplyByMonomial(int32_t degree, int32_t coefficient, int32_t &e);\r
25     CFX_PtrArray* Divide(CBC_ReedSolomonGF256Poly *other, int32_t &e);\r
26     CBC_ReedSolomonGF256Poly* Clone(int32_t &e);\r
27     virtual void Init(CBC_ReedSolomonGF256* field, CFX_Int32Array* coefficients, int32_t &e);\r
28 private:\r
29     CBC_ReedSolomonGF256* m_field;\r
30     CFX_Int32Array m_coefficients;\r
31 };\r
32 #endif\r