Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _BC_ERRORCORRECTION_H_ 7 #ifndef _BC_ERRORCORRECTION_H_
8 #define _BC_ERRORCORRECTION_H_ 8 #define _BC_ERRORCORRECTION_H_
9 class CBC_SymbolInfo; 9 class CBC_SymbolInfo;
10 class CBC_ErrorCorrection 10 class CBC_ErrorCorrection
11 { 11 {
12 public: 12 public:
13 CBC_ErrorCorrection(); 13 CBC_ErrorCorrection();
14 virtual ~CBC_ErrorCorrection(); 14 virtual ~CBC_ErrorCorrection();
15 static void Initialize(); 15 static void Initialize();
16 static void Finalize(); 16 static void Finalize();
17 static CFX_WideString encodeECC200(CFX_WideString codewords, CBC_SymbolInfo* symbolInfo, FX_INT32 &e); 17 static CFX_WideString encodeECC200(CFX_WideString codewords, CBC_SymbolInfo* symbolInfo, int32_t &e);
18 private: 18 private:
19 static FX_INT32 FACTOR_SETS[]; 19 static int32_t FACTOR_SETS[];
20 static FX_INT32 FACTORS[][100]; 20 static int32_t FACTORS[][100];
21 static FX_INT32 MODULO_VALUE; 21 static int32_t MODULO_VALUE;
22 static FX_INT32 LOG[256]; 22 static int32_t LOG[256];
23 static FX_INT32 ALOG[256]; 23 static int32_t ALOG[256];
24 private: 24 private:
25 static CFX_WideString createECCBlock(CFX_WideString codewords, FX_INT32 numE CWords, FX_INT32 &e); 25 static CFX_WideString createECCBlock(CFX_WideString codewords, int32_t numEC Words, int32_t &e);
26 static CFX_WideString createECCBlock(CFX_WideString codewords, FX_INT32 star t, FX_INT32 len, FX_INT32 numECWords, FX_INT32 &e); 26 static CFX_WideString createECCBlock(CFX_WideString codewords, int32_t start , int32_t len, int32_t numECWords, int32_t &e);
27 }; 27 };
28 #endif 28 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/datamatrix/BC_EncoderContext.cpp ('k') | xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698