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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 }; | 794 }; |
795 | 795 |
796 CFX_WideString FPDF_FileSpec_GetWin32Path(const CPDF_Object* pFileSpec); | 796 CFX_WideString FPDF_FileSpec_GetWin32Path(const CPDF_Object* pFileSpec); |
797 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec, | 797 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec, |
798 const CFX_WideString& fullpath); | 798 const CFX_WideString& fullpath); |
799 | 799 |
800 void FlateEncode(const uint8_t* src_buf, | 800 void FlateEncode(const uint8_t* src_buf, |
801 FX_DWORD src_size, | 801 FX_DWORD src_size, |
802 uint8_t*& dest_buf, | 802 uint8_t*& dest_buf, |
803 FX_DWORD& dest_size); | 803 FX_DWORD& dest_size); |
| 804 void FlateEncode(const uint8_t* src_buf, |
| 805 FX_DWORD src_size, |
| 806 int predictor, |
| 807 int Colors, |
| 808 int BitsPerComponent, |
| 809 int Columns, |
| 810 uint8_t*& dest_buf, |
| 811 FX_DWORD& dest_size); |
804 FX_DWORD FlateDecode(const uint8_t* src_buf, | 812 FX_DWORD FlateDecode(const uint8_t* src_buf, |
805 FX_DWORD src_size, | 813 FX_DWORD src_size, |
806 uint8_t*& dest_buf, | 814 uint8_t*& dest_buf, |
807 FX_DWORD& dest_size); | 815 FX_DWORD& dest_size); |
808 FX_DWORD RunLengthDecode(const uint8_t* src_buf, | 816 FX_DWORD RunLengthDecode(const uint8_t* src_buf, |
809 FX_DWORD src_size, | 817 FX_DWORD src_size, |
810 uint8_t*& dest_buf, | 818 uint8_t*& dest_buf, |
811 FX_DWORD& dest_size); | 819 FX_DWORD& dest_size); |
| 820 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict); |
| 821 |
812 class CPDF_NumberTree { | 822 class CPDF_NumberTree { |
813 public: | 823 public: |
814 CPDF_NumberTree(CPDF_Dictionary* pRoot) { m_pRoot = pRoot; } | 824 CPDF_NumberTree(CPDF_Dictionary* pRoot) { m_pRoot = pRoot; } |
815 | 825 |
816 CPDF_Object* LookupValue(int num); | 826 CPDF_Object* LookupValue(int num); |
817 | 827 |
818 protected: | 828 protected: |
819 CPDF_Dictionary* m_pRoot; | 829 CPDF_Dictionary* m_pRoot; |
820 }; | 830 }; |
821 | 831 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 PDF_DATAAVAIL_PAGE, | 915 PDF_DATAAVAIL_PAGE, |
906 PDF_DATAAVAIL_PAGE_LATERLOAD, | 916 PDF_DATAAVAIL_PAGE_LATERLOAD, |
907 PDF_DATAAVAIL_RESOURCES, | 917 PDF_DATAAVAIL_RESOURCES, |
908 PDF_DATAAVAIL_DONE, | 918 PDF_DATAAVAIL_DONE, |
909 PDF_DATAAVAIL_ERROR, | 919 PDF_DATAAVAIL_ERROR, |
910 PDF_DATAAVAIL_LOADALLFILE, | 920 PDF_DATAAVAIL_LOADALLFILE, |
911 PDF_DATAAVAIL_TRAILER_APPEND | 921 PDF_DATAAVAIL_TRAILER_APPEND |
912 }; | 922 }; |
913 | 923 |
914 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 924 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
OLD | NEW |