Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: xfa/src/fxbarcode/pdf417/BC_PDF417BoundingBox.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 XFA_SRC_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_
8 #define XFA_SRC_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_
9
10 #include "core/include/fxcrt/fx_system.h"
11
12 class CBC_CommonBitMatrix;
13 class CBC_ResultPoint;
14
15 class CBC_BoundingBox {
16 public:
17 CBC_BoundingBox(CBC_CommonBitMatrix* image,
18 CBC_ResultPoint* topLeft,
19 CBC_ResultPoint* bottomLeft,
20 CBC_ResultPoint* topRight,
21 CBC_ResultPoint* bottomRight,
22 int32_t& e);
23 CBC_BoundingBox(CBC_BoundingBox* boundingBox);
24 virtual ~CBC_BoundingBox();
25 static CBC_BoundingBox* merge(CBC_BoundingBox* leftBox,
26 CBC_BoundingBox* rightBox,
27 int32_t& e);
28 CBC_BoundingBox* addMissingRows(int32_t missingStartRows,
29 int32_t missingEndRows,
30 FX_BOOL isLeft,
31 int32_t& e);
32 void setTopRight(CBC_ResultPoint topRight);
33 void setBottomRight(CBC_ResultPoint bottomRight);
34 int32_t getMinX();
35 int32_t getMaxX();
36 int32_t getMinY();
37 int32_t getMaxY();
38 CBC_ResultPoint* getTopLeft();
39 CBC_ResultPoint* getTopRight();
40 CBC_ResultPoint* getBottomLeft();
41 CBC_ResultPoint* getBottomRight();
42
43 private:
44 CBC_CommonBitMatrix* m_image;
45 CBC_ResultPoint* m_topLeft;
46 CBC_ResultPoint* m_bottomLeft;
47 CBC_ResultPoint* m_topRight;
48 CBC_ResultPoint* m_bottomRight;
49 int32_t m_minX;
50 int32_t m_maxX;
51 int32_t m_minY;
52 int32_t m_maxY;
53 void init(CBC_CommonBitMatrix* image,
54 CBC_ResultPoint* topLeft,
55 CBC_ResultPoint* bottomLeft,
56 CBC_ResultPoint* topRight,
57 CBC_ResultPoint* bottomRight);
58 void calculateMinMaxValues();
59 };
60
61 #endif // XFA_SRC_FXBARCODE_PDF417_BC_PDF417BOUNDINGBOX_H_
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/pdf417/BC_PDF417BarcodeValue.cpp ('k') | xfa/src/fxbarcode/pdf417/BC_PDF417BoundingBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698