Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / BC_QRGridSampler.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_QRGRIDSAMPLER_H_\r
8 #define _BC_QRGRIDSAMPLER_H_\r
9 class CBC_CommonBitMatrix;\r
10 class CBC_CommonPerspectiveTransform;\r
11 class CBC_CommonDefaultGridSampler;\r
12 class CBC_QRGridSampler;\r
13 class CBC_QRGridSampler\r
14 {\r
15 private:\r
16     static CBC_QRGridSampler m_gridSampler;\r
17 public:\r
18     CBC_QRGridSampler();\r
19     virtual ~CBC_QRGridSampler();\r
20     virtual CBC_CommonBitMatrix* SampleGrid(CBC_CommonBitMatrix *image, FX_INT32 dimensionX, FX_INT32 dimensionY,\r
21                                             FX_FLOAT p1ToX, FX_FLOAT p1ToY,\r
22                                             FX_FLOAT p2ToX, FX_FLOAT p2ToY,\r
23                                             FX_FLOAT p3ToX, FX_FLOAT p3ToY,\r
24                                             FX_FLOAT p4ToX, FX_FLOAT p4ToY,\r
25                                             FX_FLOAT p1FromX, FX_FLOAT p1FromY,\r
26                                             FX_FLOAT p2FromX, FX_FLOAT p2FromY,\r
27                                             FX_FLOAT p3FromX, FX_FLOAT p3FromY,\r
28                                             FX_FLOAT p4FromX, FX_FLOAT p4FromY, FX_INT32 &e);\r
29 \r
30     static CBC_QRGridSampler &GetInstance();\r
31     static void CheckAndNudgePoints(CBC_CommonBitMatrix *image, CFX_FloatArray *points, FX_INT32 &e);\r
32 };\r
33 #endif\r