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_FXGE_DIB_DIB_INT_H_ | 7 #ifndef CORE_FXGE_DIB_DIB_INT_H_ |
8 #define CORE_FXGE_DIB_DIB_INT_H_ | 8 #define CORE_FXGE_DIB_DIB_INT_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 bool Calc(int dest_len, | 49 bool Calc(int dest_len, |
50 int dest_min, | 50 int dest_min, |
51 int dest_max, | 51 int dest_max, |
52 int src_len, | 52 int src_len, |
53 int src_min, | 53 int src_min, |
54 int src_max, | 54 int src_max, |
55 int flags); | 55 int flags); |
56 PixelWeight* GetPixelWeight(int pixel) const; | 56 PixelWeight* GetPixelWeight(int pixel) const; |
57 int* GetValueFromPixelWeight(PixelWeight* pWeight, int index) const; | 57 int* GetValueFromPixelWeight(PixelWeight* pWeight, int index) const; |
| 58 size_t GetPixelWeightSize() const; |
58 | 59 |
59 private: | 60 private: |
60 int m_DestMin; | 61 int m_DestMin; |
61 int m_ItemSize; | 62 int m_ItemSize; |
62 uint8_t* m_pWeightTables; | 63 uint8_t* m_pWeightTables; |
63 size_t m_dwWeightTablesSize; | 64 size_t m_dwWeightTablesSize; |
64 }; | 65 }; |
65 | 66 |
66 class CStretchEngine { | 67 class CStretchEngine { |
67 public: | 68 public: |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 int m_State; | 107 int m_State; |
107 }; | 108 }; |
108 | 109 |
109 FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, | 110 FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, |
110 int width, | 111 int width, |
111 int height, | 112 int height, |
112 FX_BOOL bFlipX, | 113 FX_BOOL bFlipX, |
113 FX_BOOL bFlipY); | 114 FX_BOOL bFlipY); |
114 | 115 |
115 #endif // CORE_FXGE_DIB_DIB_INT_H_ | 116 #endif // CORE_FXGE_DIB_DIB_INT_H_ |
OLD | NEW |