Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / BC_PDF417Reader.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_PDF417READER_H_\r
8 #define _BC_PDF417READER_H_\r
9 class CBC_BinaryBitmap;\r
10 class CBC_ResultPoint;\r
11 class CBC_PDF417Reader;\r
12 class CBC_PDF417Reader : public CBC_Reader\r
13 {\r
14 public:\r
15     CBC_PDF417Reader();\r
16     virtual ~CBC_PDF417Reader();\r
17     CFX_ByteString Decode(CBC_BinaryBitmap *image, FX_INT32 &e);\r
18     CFX_ByteString Decode(CBC_BinaryBitmap *image, FX_BOOL multiple, FX_INT32 hints, FX_INT32 &e);\r
19     CFX_ByteString Decode(CBC_BinaryBitmap *image, FX_INT32 hints, FX_INT32 &e);\r
20 private:\r
21     static FX_INT32 getMaxWidth(CBC_ResultPoint* p1, CBC_ResultPoint* p2);\r
22     static FX_INT32 getMinWidth(CBC_ResultPoint* p1, CBC_ResultPoint* p2);\r
23     static FX_INT32 getMaxCodewordWidth(CFX_PtrArray& p);\r
24     static FX_INT32 getMinCodewordWidth(CFX_PtrArray& p);\r
25 };\r
26 #endif\r