diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-08-19 13:25:44 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-08-19 13:25:44 -0700 |
commit | c3f4894a6862c74b9ab32b4ec38c531de6ecd83c (patch) | |
tree | f5ad333e8d418d5a978a595f51e94b3ad8f365da /core/include/fpdfapi | |
parent | 71c15a5e6652952a94ba3a3ef7ac0392e3a06962 (diff) | |
download | pdfium-c3f4894a6862c74b9ab32b4ec38c531de6ecd83c.tar.xz |
Extern in .cpp file is a code smell, part 2.
Fixes the remaining issues, except for JBIG2/Skia ...
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1298393003 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r-- | core/include/fpdfapi/fpdf_parser.h | 13 | ||||
-rw-r--r-- | core/include/fpdfapi/fpdf_render.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h index ab48a95255..03ae4cf570 100644 --- a/core/include/fpdfapi/fpdf_parser.h +++ b/core/include/fpdfapi/fpdf_parser.h @@ -51,6 +51,9 @@ class CFX_PrivateData; // 'R' - otherwise. extern const char PDF_CharType[256]; +// Indexed by 8-bit char code, contains unicode code points. +extern const FX_WORD PDFDocEncoding[256]; + class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjects { public: CPDF_Document(); @@ -921,4 +924,14 @@ enum PDF_DATAAVAIL_STATUS { PDF_DATAAVAIL_TRAILER_APPEND }; +FX_BOOL PDF_DataDecode(const uint8_t* src_buf, + FX_DWORD src_size, + const CPDF_Dictionary* pDict, + uint8_t*& dest_buf, + FX_DWORD& dest_size, + CFX_ByteString& ImageEncoding, + CPDF_Dictionary*& pImageParms, + FX_DWORD estimated_size, + FX_BOOL bImageAcc); + #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ diff --git a/core/include/fpdfapi/fpdf_render.h b/core/include/fpdfapi/fpdf_render.h index ad2ca32fe7..3c1d95aa8a 100644 --- a/core/include/fpdfapi/fpdf_render.h +++ b/core/include/fpdfapi/fpdf_render.h @@ -288,4 +288,6 @@ class CPDF_RenderConfig { int m_RenderStepLimit; }; +FX_BOOL IsAvailableMatrix(const CFX_AffineMatrix& matrix); + #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ |