| 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 XFA_FXBARCODE_PDF417_BC_PDF417SCANNINGDECODER_H_ | 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417SCANNINGDECODER_H_ |
| 8 #define XFA_FXBARCODE_PDF417_BC_PDF417SCANNINGDECODER_H_ | 8 #define XFA_FXBARCODE_PDF417_BC_PDF417SCANNINGDECODER_H_ |
| 9 | 9 |
| 10 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeValue.h" | 10 #include "xfa/fxbarcode/pdf417/BC_PDF417BarcodeValue.h" |
| 11 | 11 |
| 12 class CBC_CommonDecoderResult; | 12 class CBC_CommonDecoderResult; |
| 13 class CBC_CommonBitMatrix; | 13 class CBC_CommonBitMatrix; |
| 14 class CBC_Codeword; | 14 class CBC_Codeword; |
| 15 class CBC_BoundingBox; | 15 class CBC_BoundingBox; |
| 16 class CBC_ResultPoint; | 16 class CBC_ResultPoint; |
| 17 class CBC_BarcodeMetadata; | 17 class CBC_BarcodeMetadata; |
| 18 class CBC_DetectionResult; | 18 class CBC_DetectionResult; |
| 19 class CBC_DetectionResultRowIndicatorColumn; | 19 class CBC_DetectionResultRowIndicatorColumn; |
| 20 | 20 |
| 21 class CBC_PDF417ScanningDecoder { | 21 class CBC_PDF417ScanningDecoder { |
| 22 public: | 22 public: |
| 23 CBC_PDF417ScanningDecoder(); | 23 CBC_PDF417ScanningDecoder(); |
| 24 virtual ~CBC_PDF417ScanningDecoder(); | 24 virtual ~CBC_PDF417ScanningDecoder(); |
| 25 |
| 25 static void Initialize(); | 26 static void Initialize(); |
| 26 static void Finalize(); | 27 static void Finalize(); |
| 27 static CBC_CommonDecoderResult* decode(CBC_CommonBitMatrix* image, | 28 static CBC_CommonDecoderResult* decode(CBC_CommonBitMatrix* image, |
| 28 CBC_ResultPoint* imageTopLeft, | 29 CBC_ResultPoint* imageTopLeft, |
| 29 CBC_ResultPoint* imageBottomLeft, | 30 CBC_ResultPoint* imageBottomLeft, |
| 30 CBC_ResultPoint* imageTopRight, | 31 CBC_ResultPoint* imageTopRight, |
| 31 CBC_ResultPoint* imageBottomRight, | 32 CBC_ResultPoint* imageBottomRight, |
| 32 int32_t minCodewordWidth, | 33 int32_t minCodewordWidth, |
| 33 int32_t maxCodewordWidth, | 34 int32_t maxCodewordWidth, |
| 34 int32_t& e); | 35 int32_t& e); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 int32_t& e); | 113 int32_t& e); |
| 113 static void verifyCodewordCount(CFX_Int32Array& codewords, | 114 static void verifyCodewordCount(CFX_Int32Array& codewords, |
| 114 int32_t numECCodewords, | 115 int32_t numECCodewords, |
| 115 int32_t& e); | 116 int32_t& e); |
| 116 static CFX_Int32Array* getBitCountForCodeword(int32_t codeword); | 117 static CFX_Int32Array* getBitCountForCodeword(int32_t codeword); |
| 117 static int32_t getCodewordBucketNumber(int32_t codeword); | 118 static int32_t getCodewordBucketNumber(int32_t codeword); |
| 118 static int32_t getCodewordBucketNumber(CFX_Int32Array& moduleBitCount); | 119 static int32_t getCodewordBucketNumber(CFX_Int32Array& moduleBitCount); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 #endif // XFA_FXBARCODE_PDF417_BC_PDF417SCANNINGDECODER_H_ | 122 #endif // XFA_FXBARCODE_PDF417_BC_PDF417SCANNINGDECODER_H_ |
| OLD | NEW |