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

Side by Side Diff: core/include/fpdfapi/fpdf_parser.h

Issue 1540993004: Revert "Cleanup: Remove unused CFX_PSRenderer and various encoders it used." (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 years 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 | « BUILD.gn ('k') | core/include/fxcodec/fx_codec.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 10 #include <map>
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 void ParseStream(IFX_FileRead* pFile, FX_BOOL bOwnFile); 819 void ParseStream(IFX_FileRead* pFile, FX_BOOL bOwnFile);
820 CPDF_Dictionary* m_pRootDict; 820 CPDF_Dictionary* m_pRootDict;
821 IFX_FileRead* m_pFile; 821 IFX_FileRead* m_pFile;
822 FX_BOOL m_bOwnFile; 822 FX_BOOL m_bOwnFile;
823 }; 823 };
824 824
825 CFX_WideString FPDF_FileSpec_GetWin32Path(const CPDF_Object* pFileSpec); 825 CFX_WideString FPDF_FileSpec_GetWin32Path(const CPDF_Object* pFileSpec);
826 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec, 826 void FPDF_FileSpec_SetWin32Path(CPDF_Object* pFileSpec,
827 const CFX_WideString& fullpath); 827 const CFX_WideString& fullpath);
828 828
829 bool FlateEncode(const uint8_t* src_buf, 829 void FlateEncode(const uint8_t* src_buf,
830 FX_DWORD src_size, 830 FX_DWORD src_size,
831 uint8_t** dest_buf, 831 uint8_t*& dest_buf,
832 FX_DWORD* dest_size); 832 FX_DWORD& dest_size);
833 833 void FlateEncode(const uint8_t* src_buf,
834 // This used to have more parameters like the predictor and bpc, but there was 834 FX_DWORD src_size,
835 // only one callers, so the interface has been simplified, the values are hard 835 int predictor,
836 // coded, and dead code has been removed. 836 int Colors,
837 bool PngEncode(const uint8_t* src_buf, 837 int BitsPerComponent,
838 FX_DWORD src_size, 838 int Columns,
839 uint8_t** dest_buf, 839 uint8_t*& dest_buf,
840 FX_DWORD* dest_size); 840 FX_DWORD& dest_size);
841
842 FX_DWORD FlateDecode(const uint8_t* src_buf, 841 FX_DWORD FlateDecode(const uint8_t* src_buf,
843 FX_DWORD src_size, 842 FX_DWORD src_size,
844 uint8_t*& dest_buf, 843 uint8_t*& dest_buf,
845 FX_DWORD& dest_size); 844 FX_DWORD& dest_size);
846 FX_DWORD RunLengthDecode(const uint8_t* src_buf, 845 FX_DWORD RunLengthDecode(const uint8_t* src_buf,
847 FX_DWORD src_size, 846 FX_DWORD src_size,
848 uint8_t*& dest_buf, 847 uint8_t*& dest_buf,
849 FX_DWORD& dest_size); 848 FX_DWORD& dest_size);
850 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict); 849 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict);
851 850
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 FX_DWORD src_size, 996 FX_DWORD src_size,
998 const CPDF_Dictionary* pDict, 997 const CPDF_Dictionary* pDict,
999 uint8_t*& dest_buf, 998 uint8_t*& dest_buf,
1000 FX_DWORD& dest_size, 999 FX_DWORD& dest_size,
1001 CFX_ByteString& ImageEncoding, 1000 CFX_ByteString& ImageEncoding,
1002 CPDF_Dictionary*& pImageParms, 1001 CPDF_Dictionary*& pImageParms,
1003 FX_DWORD estimated_size, 1002 FX_DWORD estimated_size,
1004 FX_BOOL bImageAcc); 1003 FX_BOOL bImageAcc);
1005 1004
1006 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 1005 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/include/fxcodec/fx_codec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698