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

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

Issue 1432513002: Merge to XFA: Add a test for the HexDecode method. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month 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/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp » ('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 "../../../third_party/base/nonstd_unique_ptr.h" 10 #include "../../../third_party/base/nonstd_unique_ptr.h"
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 PDF_DATAAVAIL_PAGETREE, 938 PDF_DATAAVAIL_PAGETREE,
939 PDF_DATAAVAIL_PAGE, 939 PDF_DATAAVAIL_PAGE,
940 PDF_DATAAVAIL_PAGE_LATERLOAD, 940 PDF_DATAAVAIL_PAGE_LATERLOAD,
941 PDF_DATAAVAIL_RESOURCES, 941 PDF_DATAAVAIL_RESOURCES,
942 PDF_DATAAVAIL_DONE, 942 PDF_DATAAVAIL_DONE,
943 PDF_DATAAVAIL_ERROR, 943 PDF_DATAAVAIL_ERROR,
944 PDF_DATAAVAIL_LOADALLFILE, 944 PDF_DATAAVAIL_LOADALLFILE,
945 PDF_DATAAVAIL_TRAILER_APPEND 945 PDF_DATAAVAIL_TRAILER_APPEND
946 }; 946 };
947 947
948 // Public for testing.
949 FX_DWORD A85Decode(const uint8_t* src_buf,
950 FX_DWORD src_size,
951 uint8_t*& dest_buf,
952 FX_DWORD& dest_size);
953 // Public for testing.
954 FX_DWORD HexDecode(const uint8_t* src_buf,
955 FX_DWORD src_size,
956 uint8_t*& dest_buf,
957 FX_DWORD& dest_size);
958 // Public for testing.
959 FX_DWORD FPDFAPI_FlateOrLZWDecode(FX_BOOL bLZW,
960 const uint8_t* src_buf,
961 FX_DWORD src_size,
962 CPDF_Dictionary* pParams,
963 FX_DWORD estimated_size,
964 uint8_t*& dest_buf,
965 FX_DWORD& dest_size);
948 FX_BOOL PDF_DataDecode(const uint8_t* src_buf, 966 FX_BOOL PDF_DataDecode(const uint8_t* src_buf,
949 FX_DWORD src_size, 967 FX_DWORD src_size,
950 const CPDF_Dictionary* pDict, 968 const CPDF_Dictionary* pDict,
951 uint8_t*& dest_buf, 969 uint8_t*& dest_buf,
952 FX_DWORD& dest_size, 970 FX_DWORD& dest_size,
953 CFX_ByteString& ImageEncoding, 971 CFX_ByteString& ImageEncoding,
954 CPDF_Dictionary*& pImageParms, 972 CPDF_Dictionary*& pImageParms,
955 FX_DWORD estimated_size, 973 FX_DWORD estimated_size,
956 FX_BOOL bImageAcc); 974 FX_BOOL bImageAcc);
957 975
958 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 976 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698