| 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 _DIB_INT_H_ |
| 8 #define _DIB_INT_H_ |
| 9 |
| 7 class CPDF_FixedMatrix : public CFX_Object | 10 class CPDF_FixedMatrix : public CFX_Object |
| 8 { | 11 { |
| 9 public: | 12 public: |
| 10 CPDF_FixedMatrix(const CFX_AffineMatrix& src, int bits) | 13 CPDF_FixedMatrix(const CFX_AffineMatrix& src, int bits) |
| 11 { | 14 { |
| 12 base = 1 << bits; | 15 base = 1 << bits; |
| 13 a = FXSYS_round(src.a * base); | 16 a = FXSYS_round(src.a * base); |
| 14 b = FXSYS_round(src.b * base); | 17 b = FXSYS_round(src.b * base); |
| 15 c = FXSYS_round(src.c * base); | 18 c = FXSYS_round(src.c * base); |
| 16 d = FXSYS_round(src.d * base); | 19 d = FXSYS_round(src.d * base); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 unsigned char* m_pExtraAlphaBuf; | 82 unsigned char* m_pExtraAlphaBuf; |
| 80 int m_TransMethod; | 83 int m_TransMethod; |
| 81 int m_Flags; | 84 int m_Flags; |
| 82 CWeightTable m_WeightTable; | 85 CWeightTable m_WeightTable; |
| 83 int m_CurRow; | 86 int m_CurRow; |
| 84 FX_BOOL StartStretchHorz(); | 87 FX_BOOL StartStretchHorz(); |
| 85 FX_BOOL ContinueStretchHorz(IFX_Pause* pPause); | 88 FX_BOOL ContinueStretchHorz(IFX_Pause* pPause); |
| 86 void StretchVert(); | 89 void StretchVert(); |
| 87 int m_State; | 90 int m_State; |
| 88 }; | 91 }; |
| 92 |
| 93 #endif // _DIB_INT_H_ |
| OLD | NEW |