OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_SRC_FXGE_DIB_DIB_INT_H_ | 7 #ifndef CORE_SRC_FXGE_DIB_DIB_INT_H_ |
8 #define CORE_SRC_FXGE_DIB_DIB_INT_H_ | 8 #define CORE_SRC_FXGE_DIB_DIB_INT_H_ |
9 | 9 |
| 10 #include "core/include/fxcrt/fx_coordinates.h" |
| 11 #include "core/include/fxge/fx_dib.h" |
| 12 |
| 13 class IFX_ScanlineComposer; |
| 14 |
10 extern const int SDP_Table[513]; | 15 extern const int SDP_Table[513]; |
11 | 16 |
12 class CPDF_FixedMatrix { | 17 class CPDF_FixedMatrix { |
13 public: | 18 public: |
14 CPDF_FixedMatrix(const CFX_AffineMatrix& src, int bits) { | 19 CPDF_FixedMatrix(const CFX_AffineMatrix& src, int bits) { |
15 base = 1 << bits; | 20 base = 1 << bits; |
16 a = FXSYS_round(src.a * base); | 21 a = FXSYS_round(src.a * base); |
17 b = FXSYS_round(src.b * base); | 22 b = FXSYS_round(src.b * base); |
18 c = FXSYS_round(src.c * base); | 23 c = FXSYS_round(src.c * base); |
19 d = FXSYS_round(src.d * base); | 24 d = FXSYS_round(src.d * base); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 int m_State; | 96 int m_State; |
92 }; | 97 }; |
93 | 98 |
94 FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, | 99 FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, |
95 int width, | 100 int width, |
96 int height, | 101 int height, |
97 FX_BOOL bFlipX, | 102 FX_BOOL bFlipX, |
98 FX_BOOL bFlipY); | 103 FX_BOOL bFlipY); |
99 | 104 |
100 #endif // CORE_SRC_FXGE_DIB_DIB_INT_H_ | 105 #endif // CORE_SRC_FXGE_DIB_DIB_INT_H_ |
OLD | NEW |