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

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

Issue 1545563003: Cleanup: Remove unused CFX_PSRenderer and various encoders it used. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase 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 void FlateEncode(const uint8_t* src_buf, 829 bool 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 void FlateEncode(const uint8_t* src_buf, 833
834 FX_DWORD src_size, 834 // This used to have more parameters like the predictor and bpc, but there was
835 int predictor, 835 // only one callers, so the interface has been simplified, the values are hard
836 int Colors, 836 // coded, and dead code has been removed.
837 int BitsPerComponent, 837 bool PngEncode(const uint8_t* src_buf,
838 int Columns, 838 FX_DWORD src_size,
839 uint8_t*& dest_buf, 839 uint8_t** dest_buf,
840 FX_DWORD& dest_size); 840 FX_DWORD* dest_size);
841
841 FX_DWORD FlateDecode(const uint8_t* src_buf, 842 FX_DWORD FlateDecode(const uint8_t* src_buf,
842 FX_DWORD src_size, 843 FX_DWORD src_size,
843 uint8_t*& dest_buf, 844 uint8_t*& dest_buf,
844 FX_DWORD& dest_size); 845 FX_DWORD& dest_size);
845 FX_DWORD RunLengthDecode(const uint8_t* src_buf, 846 FX_DWORD RunLengthDecode(const uint8_t* src_buf,
846 FX_DWORD src_size, 847 FX_DWORD src_size,
847 uint8_t*& dest_buf, 848 uint8_t*& dest_buf,
848 FX_DWORD& dest_size); 849 FX_DWORD& dest_size);
849 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict); 850 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict);
850 851
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 FX_DWORD src_size, 997 FX_DWORD src_size,
997 const CPDF_Dictionary* pDict, 998 const CPDF_Dictionary* pDict,
998 uint8_t*& dest_buf, 999 uint8_t*& dest_buf,
999 FX_DWORD& dest_size, 1000 FX_DWORD& dest_size,
1000 CFX_ByteString& ImageEncoding, 1001 CFX_ByteString& ImageEncoding,
1001 CPDF_Dictionary*& pImageParms, 1002 CPDF_Dictionary*& pImageParms,
1002 FX_DWORD estimated_size, 1003 FX_DWORD estimated_size,
1003 FX_BOOL bImageAcc); 1004 FX_BOOL bImageAcc);
1004 1005
1005 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 1006 #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