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

Side by Side Diff: xfa/src/fxbarcode/common/BC_CommonPerspectiveTransform.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_COMMON_BC_COMMONPERSPECTIVETRANSFORM_H_
8 #define XFA_SRC_FXBARCODE_COMMON_BC_COMMONPERSPECTIVETRANSFORM_H_
9
10 #include "core/include/fxcrt/fx_basic.h"
11
12 class CBC_CommonPerspectiveTransform {
13 public:
14 CBC_CommonPerspectiveTransform(FX_FLOAT a11,
15 FX_FLOAT a21,
16 FX_FLOAT a31,
17 FX_FLOAT a12,
18 FX_FLOAT a22,
19 FX_FLOAT a32,
20 FX_FLOAT a13,
21 FX_FLOAT a23,
22 FX_FLOAT a33);
23 virtual ~CBC_CommonPerspectiveTransform();
24 static CBC_CommonPerspectiveTransform* QuadrilateralToQuadrilateral(
25 FX_FLOAT x0,
26 FX_FLOAT y0,
27 FX_FLOAT x1,
28 FX_FLOAT y1,
29 FX_FLOAT x2,
30 FX_FLOAT y2,
31 FX_FLOAT x3,
32 FX_FLOAT y3,
33 FX_FLOAT x0p,
34 FX_FLOAT y0p,
35 FX_FLOAT x1p,
36 FX_FLOAT y1p,
37 FX_FLOAT x2p,
38 FX_FLOAT y2p,
39 FX_FLOAT x3p,
40 FX_FLOAT y3p);
41 static CBC_CommonPerspectiveTransform* SquareToQuadrilateral(FX_FLOAT x0,
42 FX_FLOAT y0,
43 FX_FLOAT x1,
44 FX_FLOAT y1,
45 FX_FLOAT x2,
46 FX_FLOAT y2,
47 FX_FLOAT x3,
48 FX_FLOAT y3);
49 static CBC_CommonPerspectiveTransform* QuadrilateralToSquare(FX_FLOAT x0,
50 FX_FLOAT y0,
51 FX_FLOAT x1,
52 FX_FLOAT y1,
53 FX_FLOAT x2,
54 FX_FLOAT y2,
55 FX_FLOAT x3,
56 FX_FLOAT y3);
57 CBC_CommonPerspectiveTransform* BuildAdjoint();
58 CBC_CommonPerspectiveTransform* Times(CBC_CommonPerspectiveTransform& other);
59 void TransformPoints(CFX_FloatArray* points);
60
61 private:
62 FX_FLOAT m_a11, m_a12, m_a13, m_a21, m_a22, m_a23, m_a31, m_a32, m_a33;
63 };
64
65 #endif // XFA_SRC_FXBARCODE_COMMON_BC_COMMONPERSPECTIVETRANSFORM_H_
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/common/BC_CommonECI.cpp ('k') | xfa/src/fxbarcode/common/BC_CommonPerspectiveTransform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698