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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_meshstream.h

Issue 1824033002: Split core/include/fpdfapi/fpdf_resource.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_imageobject.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_meshstream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_
9
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h"
11 #include "core/fxcrt/include/fx_basic.h"
12 #include "core/fxcrt/include/fx_system.h"
13
14 struct CPDF_MeshVertex {
15 FX_FLOAT x;
16 FX_FLOAT y;
17 FX_FLOAT r;
18 FX_FLOAT g;
19 FX_FLOAT b;
20 };
21
22 class CFX_Matrix;
23 class CPDF_ColorSpace;
24 class CPDF_Function;
25 class CPDF_Stream;
26
27 class CPDF_MeshStream {
28 public:
29 FX_BOOL Load(CPDF_Stream* pShadingStream,
30 CPDF_Function** pFuncs,
31 int nFuncs,
32 CPDF_ColorSpace* pCS);
33
34 FX_DWORD GetFlag();
35
36 void GetCoords(FX_FLOAT& x, FX_FLOAT& y);
37 void GetColor(FX_FLOAT& r, FX_FLOAT& g, FX_FLOAT& b);
38
39 FX_DWORD GetVertex(CPDF_MeshVertex& vertex, CFX_Matrix* pObject2Bitmap);
40 FX_BOOL GetVertexRow(CPDF_MeshVertex* vertex,
41 int count,
42 CFX_Matrix* pObject2Bitmap);
43
44 CPDF_Function** m_pFuncs;
45 CPDF_ColorSpace* m_pCS;
46 FX_DWORD m_nFuncs;
47 FX_DWORD m_nCoordBits;
48 FX_DWORD m_nCompBits;
49 FX_DWORD m_nFlagBits;
50 FX_DWORD m_nComps;
51 FX_DWORD m_CoordMax;
52 FX_DWORD m_CompMax;
53 FX_FLOAT m_xmin;
54 FX_FLOAT m_xmax;
55 FX_FLOAT m_ymin;
56 FX_FLOAT m_ymax;
57 FX_FLOAT m_ColorMin[8];
58 FX_FLOAT m_ColorMax[8];
59 CPDF_StreamAcc m_Stream;
60 CFX_BitStream m_BitStream;
61 };
62
63 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_MESHSTREAM_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_imageobject.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_meshstream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698