OLD | NEW |
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_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 class CPDF_Function { | 370 class CPDF_Function { |
371 public: | 371 public: |
372 enum class Type { | 372 enum class Type { |
373 kTypeInvalid = -1, | 373 kTypeInvalid = -1, |
374 kType0Sampled = 0, | 374 kType0Sampled = 0, |
375 kType2ExpotentialInterpolation = 2, | 375 kType2ExpotentialInterpolation = 2, |
376 kType3Stitching = 3, | 376 kType3Stitching = 3, |
377 kType4PostScript = 4, | 377 kType4PostScript = 4, |
378 }; | 378 }; |
379 | 379 |
380 static CPDF_Function* Load(CPDF_Object* pFuncObj); | 380 static std::unique_ptr<CPDF_Function> Load(CPDF_Object* pFuncObj); |
381 static Type IntegerToFunctionType(int iType); | 381 static Type IntegerToFunctionType(int iType); |
382 | 382 |
383 virtual ~CPDF_Function(); | 383 virtual ~CPDF_Function(); |
384 FX_BOOL Call(FX_FLOAT* inputs, | 384 FX_BOOL Call(FX_FLOAT* inputs, |
385 uint32_t ninputs, | 385 uint32_t ninputs, |
386 FX_FLOAT* results, | 386 FX_FLOAT* results, |
387 int& nresults) const; | 387 int& nresults) const; |
388 uint32_t CountInputs() const { return m_nInputs; } | 388 uint32_t CountInputs() const { return m_nInputs; } |
389 uint32_t CountOutputs() const { return m_nOutputs; } | 389 uint32_t CountOutputs() const { return m_nOutputs; } |
390 FX_FLOAT GetDomain(int i) const { return m_pDomains[i]; } | 390 FX_FLOAT GetDomain(int i) const { return m_pDomains[i]; } |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 }; | 548 }; |
549 | 549 |
550 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); | 550 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); |
551 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( | 551 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( |
552 const CFX_ByteStringC& abbr); | 552 const CFX_ByteStringC& abbr); |
553 | 553 |
554 void PDF_ReplaceAbbr(CPDF_Object* pObj); | 554 void PDF_ReplaceAbbr(CPDF_Object* pObj); |
555 bool IsPathOperator(const uint8_t* buf, size_t len); | 555 bool IsPathOperator(const uint8_t* buf, size_t len); |
556 | 556 |
557 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 557 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
OLD | NEW |