Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / 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 class CBC_ReedSolomonDecoder : public CFX_Object\r
13 {\r
14 private:\r
15     CBC_ReedSolomonGF256 * m_field;\r
16 public:\r
17     CBC_ReedSolomonDecoder(CBC_ReedSolomonGF256 * field);\r
18     virtual ~CBC_ReedSolomonDecoder();\r
19     void Decode(CFX_Int32Array* received, FX_INT32 twoS, FX_INT32 &e);\r
20     CFX_PtrArray* RunEuclideanAlgorithm(CBC_ReedSolomonGF256Poly* a, CBC_ReedSolomonGF256Poly* b, FX_INT32 R, FX_INT32 &e);\r
21     CFX_Int32Array* FindErrorLocations(CBC_ReedSolomonGF256Poly* errorLocator, FX_INT32 &e);\r
22     CFX_Int32Array* FindErrorMagnitudes(CBC_ReedSolomonGF256Poly* errorEvaluator, CFX_Int32Array* errorLocations, FX_BOOL dataMatrix, FX_INT32 &e);\r
23 };\r
24 #endif\r