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

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

Issue 1410873009: Add a test for the HexDecode method. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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 "../../../public/fpdf_dataavail.h" 10 #include "../../../public/fpdf_dataavail.h"
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 PDF_DATAAVAIL_PAGETREE, 937 PDF_DATAAVAIL_PAGETREE,
938 PDF_DATAAVAIL_PAGE, 938 PDF_DATAAVAIL_PAGE,
939 PDF_DATAAVAIL_PAGE_LATERLOAD, 939 PDF_DATAAVAIL_PAGE_LATERLOAD,
940 PDF_DATAAVAIL_RESOURCES, 940 PDF_DATAAVAIL_RESOURCES,
941 PDF_DATAAVAIL_DONE, 941 PDF_DATAAVAIL_DONE,
942 PDF_DATAAVAIL_ERROR, 942 PDF_DATAAVAIL_ERROR,
943 PDF_DATAAVAIL_LOADALLFILE, 943 PDF_DATAAVAIL_LOADALLFILE,
944 PDF_DATAAVAIL_TRAILER_APPEND 944 PDF_DATAAVAIL_TRAILER_APPEND
945 }; 945 };
946 946
947 // Public for testing.
948 FX_DWORD A85Decode(const uint8_t* src_buf,
949 FX_DWORD src_size,
950 uint8_t*& dest_buf,
951 FX_DWORD& dest_size);
952 // Public for testing.
953 FX_DWORD HexDecode(const uint8_t* src_buf,
954 FX_DWORD src_size,
955 uint8_t*& dest_buf,
956 FX_DWORD& dest_size);
957 // Public for testing.
958 FX_DWORD FPDFAPI_FlateOrLZWDecode(FX_BOOL bLZW,
959 const uint8_t* src_buf,
960 FX_DWORD src_size,
961 CPDF_Dictionary* pParams,
962 FX_DWORD estimated_size,
963 uint8_t*& dest_buf,
964 FX_DWORD& dest_size);
947 FX_BOOL PDF_DataDecode(const uint8_t* src_buf, 965 FX_BOOL PDF_DataDecode(const uint8_t* src_buf,
948 FX_DWORD src_size, 966 FX_DWORD src_size,
949 const CPDF_Dictionary* pDict, 967 const CPDF_Dictionary* pDict,
950 uint8_t*& dest_buf, 968 uint8_t*& dest_buf,
951 FX_DWORD& dest_size, 969 FX_DWORD& dest_size,
952 CFX_ByteString& ImageEncoding, 970 CFX_ByteString& ImageEncoding,
953 CPDF_Dictionary*& pImageParms, 971 CPDF_Dictionary*& pImageParms,
954 FX_DWORD estimated_size, 972 FX_DWORD estimated_size,
955 FX_BOOL bImageAcc); 973 FX_BOOL bImageAcc);
956 974
957 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 975 #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