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

Side by Side Diff: xfa/src/fxbarcode/src/include/BC_CommonPerspectiveTransform.h

Issue 842043002: Organize barcode codes into modules. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 11 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 _BC_COMMONPERSPECTIVETRANSFORM_H_
8 #define _BC_COMMONPERSPECTIVETRANSFORM_H_
9 class CBC_CommonPerspectiveTransform;
10 class CBC_CommonPerspectiveTransform : public CFX_Object
11 {
12 public:
13 CBC_CommonPerspectiveTransform(FX_FLOAT a11, FX_FLOAT a21, FX_FLOAT a31,
14 FX_FLOAT a12, FX_FLOAT a22, FX_FLOAT a32,
15 FX_FLOAT a13, FX_FLOAT a23, FX_FLOAT a33);
16 virtual ~CBC_CommonPerspectiveTransform();
17 static CBC_CommonPerspectiveTransform *QuadrilateralToQuadrilateral(FX_FLOAT x0, FX_FLOAT y0,
18 FX_FLOAT x1, FX_FLOAT y1,
19 FX_FLOAT x2, FX_FLOAT y2,
20 FX_FLOAT x3, FX_FLOAT y3,
21 FX_FLOAT x0p, FX_FLOAT y0p,
22 FX_FLOAT x1p, FX_FLOAT y1p,
23 FX_FLOAT x2p, FX_FLOAT y2p,
24 FX_FLOAT x3p, FX_FLOAT y3p);
25 static CBC_CommonPerspectiveTransform *SquareToQuadrilateral(FX_FLOAT x0, FX _FLOAT y0,
26 FX_FLOAT x1, FX_FLOAT y1,
27 FX_FLOAT x2, FX_FLOAT y2,
28 FX_FLOAT x3, FX_FLOAT y3);
29 static CBC_CommonPerspectiveTransform *QuadrilateralToSquare(FX_FLOAT x0, FX _FLOAT y0,
30 FX_FLOAT x1, FX_FLOAT y1,
31 FX_FLOAT x2, FX_FLOAT y2,
32 FX_FLOAT x3, FX_FLOAT y3);
33 CBC_CommonPerspectiveTransform *BuildAdjoint();
34 CBC_CommonPerspectiveTransform *Times(CBC_CommonPerspectiveTransform &other) ;
35 void TransformPoints(CFX_FloatArray *points);
36 private:
37 FX_FLOAT m_a11, m_a12, m_a13, m_a21, m_a22, m_a23, m_a31, m_a32, m_a33;
38 };
39 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/src/include/BC_CommonECI.h ('k') | xfa/src/fxbarcode/src/include/BC_DataMatrixBitMatrixParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698