OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_ |
9 | 9 |
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class CPDF_Function; | 24 class CPDF_Function; |
25 class CPDF_Stream; | 25 class CPDF_Stream; |
26 | 26 |
27 class CPDF_MeshStream { | 27 class CPDF_MeshStream { |
28 public: | 28 public: |
29 FX_BOOL Load(CPDF_Stream* pShadingStream, | 29 FX_BOOL Load(CPDF_Stream* pShadingStream, |
30 CPDF_Function** pFuncs, | 30 CPDF_Function** pFuncs, |
31 int nFuncs, | 31 int nFuncs, |
32 CPDF_ColorSpace* pCS); | 32 CPDF_ColorSpace* pCS); |
33 | 33 |
34 FX_DWORD GetFlag(); | 34 uint32_t GetFlag(); |
35 | 35 |
36 void GetCoords(FX_FLOAT& x, FX_FLOAT& y); | 36 void GetCoords(FX_FLOAT& x, FX_FLOAT& y); |
37 void GetColor(FX_FLOAT& r, FX_FLOAT& g, FX_FLOAT& b); | 37 void GetColor(FX_FLOAT& r, FX_FLOAT& g, FX_FLOAT& b); |
38 | 38 |
39 FX_DWORD GetVertex(CPDF_MeshVertex& vertex, CFX_Matrix* pObject2Bitmap); | 39 uint32_t GetVertex(CPDF_MeshVertex& vertex, CFX_Matrix* pObject2Bitmap); |
40 FX_BOOL GetVertexRow(CPDF_MeshVertex* vertex, | 40 FX_BOOL GetVertexRow(CPDF_MeshVertex* vertex, |
41 int count, | 41 int count, |
42 CFX_Matrix* pObject2Bitmap); | 42 CFX_Matrix* pObject2Bitmap); |
43 | 43 |
44 CPDF_Function** m_pFuncs; | 44 CPDF_Function** m_pFuncs; |
45 CPDF_ColorSpace* m_pCS; | 45 CPDF_ColorSpace* m_pCS; |
46 FX_DWORD m_nFuncs; | 46 uint32_t m_nFuncs; |
47 FX_DWORD m_nCoordBits; | 47 uint32_t m_nCoordBits; |
48 FX_DWORD m_nCompBits; | 48 uint32_t m_nCompBits; |
49 FX_DWORD m_nFlagBits; | 49 uint32_t m_nFlagBits; |
50 FX_DWORD m_nComps; | 50 uint32_t m_nComps; |
51 FX_DWORD m_CoordMax; | 51 uint32_t m_CoordMax; |
52 FX_DWORD m_CompMax; | 52 uint32_t m_CompMax; |
53 FX_FLOAT m_xmin; | 53 FX_FLOAT m_xmin; |
54 FX_FLOAT m_xmax; | 54 FX_FLOAT m_xmax; |
55 FX_FLOAT m_ymin; | 55 FX_FLOAT m_ymin; |
56 FX_FLOAT m_ymax; | 56 FX_FLOAT m_ymax; |
57 FX_FLOAT m_ColorMin[8]; | 57 FX_FLOAT m_ColorMin[8]; |
58 FX_FLOAT m_ColorMax[8]; | 58 FX_FLOAT m_ColorMax[8]; |
59 CPDF_StreamAcc m_Stream; | 59 CPDF_StreamAcc m_Stream; |
60 CFX_BitStream m_BitStream; | 60 CFX_BitStream m_BitStream; |
61 }; | 61 }; |
62 | 62 |
63 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_ | 63 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_ |
OLD | NEW |