• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef _BC_DETECTIONRESULTROWINDICATORCOLUMN_H_
8 #define _BC_DETECTIONRESULTROWINDICATORCOLUMN_H_
9 class CBC_BarcodeMetadata;
10 class CBC_BoundingBox;
11 class CBC_DetectionResultRowIndicatorColumn;
12 class CBC_DetectionResultRowIndicatorColumn : public CBC_DetectionResultColumn {
13  public:
14   CBC_DetectionResultRowIndicatorColumn(CBC_BoundingBox* boundingBox,
15                                         FX_BOOL isLeft);
16   virtual ~CBC_DetectionResultRowIndicatorColumn();
17   void setRowNumbers();
18   int32_t adjustCompleteIndicatorColumnRowNumbers(
19       CBC_BarcodeMetadata barcodeMetadata);
20   CFX_Int32Array* getRowHeights(int32_t& e);
21   int32_t adjustIncompleteIndicatorColumnRowNumbers(
22       CBC_BarcodeMetadata barcodeMetadata);
23   CBC_BarcodeMetadata* getBarcodeMetadata();
24   FX_BOOL isLeft();
25   CFX_ByteString toString();
26 
27  private:
28   FX_BOOL m_isLeft;
29   void removeIncorrectCodewords(CFX_PtrArray* codewords,
30                                 CBC_BarcodeMetadata barcodeMetadata);
31 };
32 #endif
33