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_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ |
8 #define CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 FX_BOOL GetPagePos(int index, | 28 FX_BOOL GetPagePos(int index, |
29 FX_FILESIZE& szPageStartPos, | 29 FX_FILESIZE& szPageStartPos, |
30 FX_FILESIZE& szPageLength, | 30 FX_FILESIZE& szPageLength, |
31 FX_DWORD& dwObjNum); | 31 FX_DWORD& dwObjNum); |
32 FX_BOOL CheckPage(int index, IFX_DownloadHints* pHints); | 32 FX_BOOL CheckPage(int index, IFX_DownloadHints* pHints); |
33 FX_BOOL LoadHintStream(CPDF_Stream* pHintStream); | 33 FX_BOOL LoadHintStream(CPDF_Stream* pHintStream); |
34 | 34 |
35 protected: | 35 protected: |
36 FX_BOOL ReadPageHintTable(CFX_BitStream* hStream); | 36 FX_BOOL ReadPageHintTable(CFX_BitStream* hStream); |
37 FX_BOOL ReadSharedObjHintTable(CFX_BitStream* hStream); | 37 FX_BOOL ReadSharedObjHintTable(CFX_BitStream* hStream, FX_DWORD offset); |
38 FX_DWORD GetItemLength(int index, const CFX_FileSizeArray& szArray); | 38 FX_DWORD GetItemLength(int index, const CFX_FileSizeArray& szArray); |
39 | 39 |
40 private: | 40 private: |
41 int ReadPrimaryHintStreamOffset() const; | 41 int ReadPrimaryHintStreamOffset() const; |
42 int ReadPrimaryHintStreamLength() const; | 42 int ReadPrimaryHintStreamLength() const; |
43 | 43 |
44 CPDF_Dictionary* m_pLinearizedDict; | 44 CPDF_Dictionary* m_pLinearizedDict; |
45 CPDF_DataAvail* m_pDataAvail; | 45 CPDF_DataAvail* m_pDataAvail; |
46 FX_DWORD m_nFirstPageSharedObjs; | 46 FX_DWORD m_nFirstPageSharedObjs; |
47 FX_FILESIZE m_szFirstPageObjOffset; | 47 FX_FILESIZE m_szFirstPageObjOffset; |
48 CFX_DWordArray m_dwDeltaNObjsArray; | 48 CFX_DWordArray m_dwDeltaNObjsArray; |
49 CFX_DWordArray m_dwNSharedObjsArray; | 49 CFX_DWordArray m_dwNSharedObjsArray; |
50 CFX_DWordArray m_dwSharedObjNumArray; | 50 CFX_DWordArray m_dwSharedObjNumArray; |
51 CFX_DWordArray m_dwIdentifierArray; | 51 CFX_DWordArray m_dwIdentifierArray; |
52 CFX_FileSizeArray m_szPageOffsetArray; | 52 CFX_FileSizeArray m_szPageOffsetArray; |
53 CFX_FileSizeArray m_szSharedObjOffsetArray; | 53 CFX_FileSizeArray m_szSharedObjOffsetArray; |
54 }; | 54 }; |
55 | 55 |
56 #endif // CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ | 56 #endif // CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ |
OLD | NEW |