| OLD | NEW |
| 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_DATAMATRIXBITMATRIXPARSER_H_ | 7 #ifndef _BC_DATAMATRIXBITMATRIXPARSER_H_ |
| 8 #define _BC_DATAMATRIXBITMATRIXPARSER_H_ | 8 #define _BC_DATAMATRIXBITMATRIXPARSER_H_ |
| 9 class CBC_CommonBitMatrix; | 9 class CBC_CommonBitMatrix; |
| 10 class CBC_DataMatrixVersion; | 10 class CBC_DataMatrixVersion; |
| 11 class CBC_DataMatrixBitMatrixParser; | 11 class CBC_DataMatrixBitMatrixParser |
| 12 class CBC_DataMatrixBitMatrixParser : public CFX_Object | |
| 13 { | 12 { |
| 14 public: | 13 public: |
| 15 CBC_DataMatrixBitMatrixParser(); | 14 CBC_DataMatrixBitMatrixParser(); |
| 16 virtual ~CBC_DataMatrixBitMatrixParser(); | 15 virtual ~CBC_DataMatrixBitMatrixParser(); |
| 17 CBC_DataMatrixVersion *GetVersion(); | 16 CBC_DataMatrixVersion *GetVersion(); |
| 18 CFX_ByteArray *ReadCodewords(FX_INT32 &e); | 17 CFX_ByteArray *ReadCodewords(FX_INT32 &e); |
| 19 FX_BOOL ReadModule(FX_INT32 row, FX_INT32 column, FX_INT32 numRows, FX_INT32
numColumns); | 18 FX_BOOL ReadModule(FX_INT32 row, FX_INT32 column, FX_INT32 numRows, FX_INT32
numColumns); |
| 20 FX_INT32 ReadUtah(FX_INT32 row, FX_INT32 column, FX_INT32 numRows, FX_INT32
numColumns); | 19 FX_INT32 ReadUtah(FX_INT32 row, FX_INT32 column, FX_INT32 numRows, FX_INT32
numColumns); |
| 21 FX_INT32 ReadCorner1(FX_INT32 numRows, FX_INT32 numColumns); | 20 FX_INT32 ReadCorner1(FX_INT32 numRows, FX_INT32 numColumns); |
| 22 FX_INT32 ReadCorner2(FX_INT32 numRows, FX_INT32 numColumns); | 21 FX_INT32 ReadCorner2(FX_INT32 numRows, FX_INT32 numColumns); |
| 23 FX_INT32 ReadCorner3(FX_INT32 numRows, FX_INT32 numColumns); | 22 FX_INT32 ReadCorner3(FX_INT32 numRows, FX_INT32 numColumns); |
| 24 FX_INT32 ReadCorner4(FX_INT32 numRows, FX_INT32 numColumns); | 23 FX_INT32 ReadCorner4(FX_INT32 numRows, FX_INT32 numColumns); |
| 25 CBC_CommonBitMatrix *ExtractDataRegion(CBC_CommonBitMatrix *bitMatrix, FX_IN
T32 &e); | 24 CBC_CommonBitMatrix *ExtractDataRegion(CBC_CommonBitMatrix *bitMatrix, FX_IN
T32 &e); |
| 26 virtual void Init(CBC_CommonBitMatrix *bitMatrix, FX_INT32 &e); | 25 virtual void Init(CBC_CommonBitMatrix *bitMatrix, FX_INT32 &e); |
| 27 private: | 26 private: |
| 28 static CBC_DataMatrixVersion* ReadVersion(CBC_CommonBitMatrix *bitMatrix, FX
_INT32 &e); | 27 static CBC_DataMatrixVersion* ReadVersion(CBC_CommonBitMatrix *bitMatrix, FX
_INT32 &e); |
| 29 CBC_CommonBitMatrix *m_mappingBitMatrix; | 28 CBC_CommonBitMatrix *m_mappingBitMatrix; |
| 30 CBC_CommonBitMatrix *m_readMappingMatrix; | 29 CBC_CommonBitMatrix *m_readMappingMatrix; |
| 31 CBC_DataMatrixVersion *m_version; | 30 CBC_DataMatrixVersion *m_version; |
| 32 }; | 31 }; |
| 33 #endif | 32 #endif |
| OLD | NEW |