| 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_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 9 | 9 |
| 10 #include "../fxcrt/fx_system.h" | 10 #include "../fxcrt/fx_system.h" |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 CPDF_Document* m_pDocument; | 445 CPDF_Document* m_pDocument; |
| 446 | 446 |
| 447 CPDF_SyntaxParser m_Syntax; | 447 CPDF_SyntaxParser m_Syntax; |
| 448 FX_BOOL m_bOwnFileRead; | 448 FX_BOOL m_bOwnFileRead; |
| 449 CPDF_Object* ParseDirect(CPDF_Object* pObj); | 449 CPDF_Object* ParseDirect(CPDF_Object* pObj); |
| 450 | 450 |
| 451 FX_BOOL LoadAllCrossRefV4(FX_FILESIZE pos); | 451 FX_BOOL LoadAllCrossRefV4(FX_FILESIZE pos); |
| 452 | 452 |
| 453 FX_BOOL LoadAllCrossRefV5(FX_FILESIZE pos); | 453 FX_BOOL LoadAllCrossRefV5(FX_FILESIZE pos); |
| 454 | 454 |
| 455 FX_BOOL LoadCrossRefV4(FX_FILESIZE pos, | 455 bool LoadCrossRefV4(FX_FILESIZE pos, |
| 456 FX_FILESIZE streampos, | 456 FX_FILESIZE streampos, |
| 457 FX_BOOL bSkip, | 457 FX_BOOL bSkip, |
| 458 FX_BOOL bFirst); | 458 FX_BOOL bFirst); |
| 459 | 459 |
| 460 FX_BOOL LoadCrossRefV5(FX_FILESIZE pos, FX_FILESIZE& prev, FX_BOOL bMainXRef); | 460 FX_BOOL LoadCrossRefV5(FX_FILESIZE pos, FX_FILESIZE& prev, FX_BOOL bMainXRef); |
| 461 | 461 |
| 462 CPDF_Dictionary* LoadTrailerV4(); | 462 CPDF_Dictionary* LoadTrailerV4(); |
| 463 | 463 |
| 464 FX_BOOL RebuildCrossRef(); | 464 FX_BOOL RebuildCrossRef(); |
| 465 | 465 |
| 466 FX_DWORD SetEncryptHandler(); | 466 FX_DWORD SetEncryptHandler(); |
| 467 | 467 |
| 468 void ReleaseEncryptHandler(); | 468 void ReleaseEncryptHandler(); |
| 469 | 469 |
| 470 FX_BOOL LoadLinearizedAllCrossRefV4(FX_FILESIZE pos, FX_DWORD dwObjCount); | 470 FX_BOOL LoadLinearizedAllCrossRefV4(FX_FILESIZE pos, FX_DWORD dwObjCount); |
| 471 | 471 |
| 472 FX_BOOL LoadLinearizedCrossRefV4(FX_FILESIZE pos, FX_DWORD dwObjCount); | 472 FX_BOOL LoadLinearizedCrossRefV4(FX_FILESIZE pos, FX_DWORD dwObjCount); |
| 473 | 473 |
| 474 FX_BOOL LoadLinearizedAllCrossRefV5(FX_FILESIZE pos); | 474 FX_BOOL LoadLinearizedAllCrossRefV5(FX_FILESIZE pos); |
| 475 | 475 |
| 476 FX_DWORD LoadLinearizedMainXRefTable(); | 476 FX_DWORD LoadLinearizedMainXRefTable(); |
| 477 | 477 |
| 478 CFX_MapPtrToPtr m_ObjectStreamMap; | 478 CFX_MapPtrToPtr m_ObjectStreamMap; |
| 479 | 479 |
| 480 CPDF_StreamAcc* GetObjectStream(FX_DWORD number); | 480 CPDF_StreamAcc* GetObjectStream(FX_DWORD number); |
| 481 | 481 |
| 482 FX_BOOL IsLinearizedFile(IFX_FileRead* pFileAccess, FX_DWORD offset); | 482 FX_BOOL IsLinearizedFile(IFX_FileRead* pFileAccess, FX_DWORD offset); |
| 483 | 483 |
| 484 bool FindPosInOffsets(FX_FILESIZE pos) const; |
| 485 |
| 484 int m_FileVersion; | 486 int m_FileVersion; |
| 485 | 487 |
| 486 CPDF_Dictionary* m_pTrailer; | 488 CPDF_Dictionary* m_pTrailer; |
| 487 | 489 |
| 488 CPDF_Dictionary* m_pEncryptDict; | 490 CPDF_Dictionary* m_pEncryptDict; |
| 489 void SetEncryptDictionary(CPDF_Dictionary* pDict); | 491 void SetEncryptDictionary(CPDF_Dictionary* pDict); |
| 490 | 492 |
| 491 FX_FILESIZE m_LastXRefOffset; | 493 FX_FILESIZE m_LastXRefOffset; |
| 492 | 494 |
| 493 FX_BOOL m_bXRefStream; | 495 FX_BOOL m_bXRefStream; |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 FX_DWORD src_size, | 930 FX_DWORD src_size, |
| 929 const CPDF_Dictionary* pDict, | 931 const CPDF_Dictionary* pDict, |
| 930 uint8_t*& dest_buf, | 932 uint8_t*& dest_buf, |
| 931 FX_DWORD& dest_size, | 933 FX_DWORD& dest_size, |
| 932 CFX_ByteString& ImageEncoding, | 934 CFX_ByteString& ImageEncoding, |
| 933 CPDF_Dictionary*& pImageParms, | 935 CPDF_Dictionary*& pImageParms, |
| 934 FX_DWORD estimated_size, | 936 FX_DWORD estimated_size, |
| 935 FX_BOOL bImageAcc); | 937 FX_BOOL bImageAcc); |
| 936 | 938 |
| 937 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 939 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| OLD | NEW |