Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / src / fxbarcode / common / reedsolomon / BC_ReedSolomonDecoder.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_REEDSOLOMONDECODER_H_\r
8 #define _BC_REEDSOLOMONDECODER_H_\r
9 class CBC_ReedSolomonGF256;\r
10 class CBC_ReedSolomonGF256Poly;\r
11 class CBC_ReedSolomonDecoder\r
12 {\r
13 private:\r
14     CBC_ReedSolomonGF256 * m_field;\r
15 public:\r
16     CBC_ReedSolomonDecoder(CBC_ReedSolomonGF256 * field);\r
17     virtual ~CBC_ReedSolomonDecoder();\r
18     void Decode(CFX_Int32Array* received, int32_t twoS, int32_t &e);\r
19     CFX_PtrArray* RunEuclideanAlgorithm(CBC_ReedSolomonGF256Poly* a, CBC_ReedSolomonGF256Poly* b, int32_t R, int32_t &e);\r
20     CFX_Int32Array* FindErrorLocations(CBC_ReedSolomonGF256Poly* errorLocator, int32_t &e);\r
21     CFX_Int32Array* FindErrorMagnitudes(CBC_ReedSolomonGF256Poly* errorEvaluator, CFX_Int32Array* errorLocations, FX_BOOL dataMatrix, int32_t &e);\r
22 };\r
23 #endif\r